mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 973658 - Actually revert the value of the Permanent Private Browsing pref when the user presses Cancel in response to the restart dialog; r=jdm
Before we were implicitly relying on the pref being reverted through the checkbox, but that won't happen if the checkbox was never clicked by the user.
This commit is contained in:
parent
9df66916f4
commit
8e4c83b3d6
@ -247,7 +247,7 @@ var gPrivacyPane = {
|
||||
},
|
||||
|
||||
_lastMode: null,
|
||||
_lasCheckState: null,
|
||||
_lastCheckState: null,
|
||||
updateAutostart: function PPP_updateAutostart() {
|
||||
let mode = document.getElementById("historyMode");
|
||||
let autoStart = document.getElementById("privateBrowsingAutoStart");
|
||||
@ -299,6 +299,7 @@ var gPrivacyPane = {
|
||||
} else {
|
||||
autoStart.removeAttribute('checked');
|
||||
}
|
||||
pref.value = autoStart.hasAttribute('checked');
|
||||
mode.selectedIndex = this._lastMode;
|
||||
mode.doCommand();
|
||||
|
||||
|
@ -249,7 +249,7 @@ var gPrivacyPane = {
|
||||
},
|
||||
|
||||
_lastMode: null,
|
||||
_lasCheckState: null,
|
||||
_lastCheckState: null,
|
||||
updateAutostart: function PPP_updateAutostart() {
|
||||
let mode = document.getElementById("historyMode");
|
||||
let autoStart = document.getElementById("privateBrowsingAutoStart");
|
||||
@ -301,6 +301,7 @@ var gPrivacyPane = {
|
||||
} else {
|
||||
autoStart.removeAttribute('checked');
|
||||
}
|
||||
pref.value = autoStart.hasAttribute('checked');
|
||||
mode.selectedIndex = this._lastMode;
|
||||
mode.doCommand();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user