From b4e41b59e71f68346b7deba741b9e358ba02ec9e Mon Sep 17 00:00:00 2001 From: "Randall E. Barker" Date: Thu, 24 Oct 2019 10:47:44 -0700 Subject: [PATCH] Fix correct location. --- .../shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java index 0f16ea5f97..8683c8b099 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java @@ -1402,7 +1402,7 @@ public void onHistoryStateChange(@NonNull GeckoSession geckoSession, @NonNull Hi @Nullable @Override public GeckoResult 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); @@ -1432,7 +1432,7 @@ public GeckoResult onVisited(@NonNull GeckoSession geckoSession, @NonNu @UiThread @Nullable public GeckoResult getVisited(@NonNull GeckoSession geckoSession, @NonNull String[] urls) { - if (mSession.isPrivateMode()) { + if (mSessionStack.isPrivateMode()) { return GeckoResult.fromValue(new boolean[]{}); }