Bug 802274 - Set the autostart pref when launching Firefox with the -private command line option; shoulder-r=jdm

This commit is contained in:
Ehsan Akhgari 2012-10-16 21:40:30 -04:00
Родитель 79c587378f
Коммит 0e5afd7a1f
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;