Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix correct location.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored Oct 24, 2019
1 parent 6135a2f commit b4e41b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ public void onHistoryStateChange(@NonNull GeckoSession geckoSession, @NonNull Hi
@Nullable
@Override
public GeckoResult<Boolean> onVisited(@NonNull GeckoSession geckoSession, @NonNull String url, @Nullable String lastVisitedURL, int flags) {
if (mSessionStack.isPrivateMode() ||
if (mSession.isPrivateMode() ||
(flags & VISIT_TOP_LEVEL) == 0 ||
(flags & VISIT_UNRECOVERABLE_ERROR) != 0) {
return GeckoResult.fromValue(false);
Expand Down Expand Up @@ -1432,7 +1432,7 @@ public GeckoResult<Boolean> onVisited(@NonNull GeckoSession geckoSession, @NonNu
@UiThread
@Nullable
public GeckoResult<boolean[]> getVisited(@NonNull GeckoSession geckoSession, @NonNull String[] urls) {
if (mSession.isPrivateMode()) {
if (mSessionStack.isPrivateMode()) {
return GeckoResult.fromValue(new boolean[]{});
}

Expand Down

0 comments on commit b4e41b5

Please sign in to comment.