From 0e5afd7a1f3341a9447a4b925a48342cbd7bd47d Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Tue, 16 Oct 2012 21:40:30 -0400 Subject: [PATCH] Bug 802274 - Set the autostart pref when launching Firefox with the -private command line option; shoulder-r=jdm --- .../components/privatebrowsing/src/nsPrivateBrowsingService.js | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js index e7cd108d0b4b..99fe1f88372d 100644 --- a/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js +++ b/browser/components/privatebrowsing/src/nsPrivateBrowsingService.js @@ -466,6 +466,7 @@ PrivateBrowsingService.prototype = { if (this._autoStarted) aSubject.handleFlag("private", false); + Services.prefs.setBoolPref("browser.privatebrowsing.autostart", true); this.privateBrowsingEnabled = true; this._autoStarted = true; this._lastChangedByCommandLine = true;