mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 508773 - Remove gPrivateBrowsingUI._privateBrowsingAutoStarted; r=dao
This commit is contained in:
parent
1b3208f266
commit
80760f19c8
@ -6861,7 +6861,6 @@ function getNavToolbox() gNavToolbox;
|
||||
let gPrivateBrowsingUI = {
|
||||
_observerService: null,
|
||||
_privateBrowsingService: null,
|
||||
_privateBrowsingAutoStarted: false,
|
||||
_searchBarValue: null,
|
||||
_findBarValue: null,
|
||||
|
||||
@ -6962,9 +6961,7 @@ let gPrivateBrowsingUI = {
|
||||
// temporary fix until bug 463607 is fixed
|
||||
document.getElementById("Tools:Sanitize").setAttribute("disabled", "true");
|
||||
|
||||
this._privateBrowsingAutoStarted = this._privateBrowsingService.autoStarted;
|
||||
|
||||
if (this._privateBrowsingAutoStarted) {
|
||||
if (this._privateBrowsingService.autoStarted) {
|
||||
// Disable the menu item in auto-start mode
|
||||
document.getElementById("privateBrowsingItem")
|
||||
.setAttribute("disabled", "true");
|
||||
@ -7029,8 +7026,6 @@ let gPrivateBrowsingUI = {
|
||||
document.getElementById("Tools:PrivateBrowsing")
|
||||
.removeAttribute("disabled");
|
||||
|
||||
this._privateBrowsingAutoStarted = false;
|
||||
|
||||
gLastOpenDirectory.reset();
|
||||
|
||||
setTimeout(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user