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

Commit a0ec4bd

Browse files
keianhzobluemarvin
authored andcommitted
Fixes issues after switching the tracking protection (#2125)
* Fix tracking update issues * Add listeners to the new session after recreating
1 parent 69549cb commit a0ec4bd

File tree

1 file changed

+2
-1
lines changed
  • app/src/common/shared/org/mozilla/vrbrowser/browser/engine

1 file changed

+2
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ private void recreateSession() {
404404
if (previous.mSession != null) {
405405
closeSession(previous.mSession);
406406
}
407+
setupSessionListeners(mState.mSession);
407408

408409
for (SessionChangeListener listener : mSessionChangeListeners) {
409410
listener.onCurrentSessionChange(previous.mSession, mState.mSession);
@@ -723,7 +724,7 @@ protected void setMultiprocess(final boolean aEnabled) {
723724
protected void setTrackingProtection(final boolean aEnabled) {
724725
if (mState.mSettings.isTrackingProtectionEnabled() != aEnabled) {
725726
mState.mSettings.setTrackingProtectionEnabled(aEnabled);
726-
recreateSession();
727+
mState.mSession.getSettings().setUseTrackingProtection(aEnabled);
727728
}
728729
}
729730

0 commit comments

Comments
 (0)