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

Commit

Permalink
Prevent setting tracking protection state on suspended Sessions. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and MortimerGoro committed Nov 22, 2019
1 parent 5597ea0 commit f4e1dca
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,9 @@ protected void resetMultiprocess() {
protected void setTrackingProtection(final boolean aEnabled) {
if (mState.mSettings.isTrackingProtectionEnabled() != aEnabled) {
mState.mSettings.setTrackingProtectionEnabled(aEnabled);
mState.mSession.getSettings().setUseTrackingProtection(aEnabled);
if (mState.mSession != null) {
mState.mSession.getSettings().setUseTrackingProtection(aEnabled);
}
}
}

Expand Down

0 comments on commit f4e1dca

Please sign in to comment.