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

Commit f4e1dca

Browse files
bluemarvinMortimerGoro
authored andcommitted
Prevent setting tracking protection state on suspended Sessions. Fixes #2360 (#2361)
1 parent 5597ea0 commit f4e1dca

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,9 @@ protected void resetMultiprocess() {
781781
protected void setTrackingProtection(final boolean aEnabled) {
782782
if (mState.mSettings.isTrackingProtectionEnabled() != aEnabled) {
783783
mState.mSettings.setTrackingProtectionEnabled(aEnabled);
784-
mState.mSession.getSettings().setUseTrackingProtection(aEnabled);
784+
if (mState.mSession != null) {
785+
mState.mSession.getSettings().setUseTrackingProtection(aEnabled);
786+
}
785787
}
786788
}
787789

0 commit comments

Comments
 (0)