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

Fixes issues after switching the tracking protection #2125

Merged
merged 2 commits into from
Nov 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ private void recreateSession() {
if (previous.mSession != null) {
closeSession(previous.mSession);
}
setupSessionListeners(mState.mSession);

for (SessionChangeListener listener : mSessionChangeListeners) {
listener.onCurrentSessionChange(previous.mSession, mState.mSession);
Expand Down Expand Up @@ -723,7 +724,7 @@ protected void setMultiprocess(final boolean aEnabled) {
protected void setTrackingProtection(final boolean aEnabled) {
if (mState.mSettings.isTrackingProtectionEnabled() != aEnabled) {
mState.mSettings.setTrackingProtectionEnabled(aEnabled);
recreateSession();
mState.mSession.getSettings().setUseTrackingProtection(aEnabled);
}
}

Expand Down