Skip to content

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 Alexandre Lissy committed Jan 21, 2020
1 parent dd92f6e commit 0ad90b3
Showing 1 changed file with 3 additions and 1 deletion.
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 0ad90b3

Please sign in to comment.