Bug 508773 - Remove gPrivateBrowsingUI._privateBrowsingAutoStarted; r=dao

This commit is contained in:
Ehsan Akhgari 2009-08-08 21:37:30 +04:30
parent 1b3208f266
commit 80760f19c8

View File

@ -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 () {