forked from mirrors/gecko-dev
Bug 468565 - Change the quit dialog box options when the user is in private browsing mode; r=mconnor
This commit is contained in:
parent
323f086e5a
commit
db2dcbd185
1 changed files with 6 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
# Asaf Romano <mano@mozilla.com>
|
||||
# Marco Bonardo <mak77@bonardo.net>
|
||||
# Dietrich Ayala <dietrich@mozilla.com>
|
||||
# Ehsan Akhgari <ehsan.akhgari@gmail.com>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
|
@ -323,7 +324,11 @@ BrowserGlue.prototype = {
|
|||
showPrompt = this._prefs.getBoolPref("browser.tabs.warnOnClose");
|
||||
} catch (ex) {}
|
||||
|
||||
if (!showPrompt)
|
||||
// Never show a prompt inside the private browsing mode
|
||||
var inPrivateBrowsing = Cc["@mozilla.org/privatebrowsing;1"].
|
||||
getService(Ci.nsIPrivateBrowsingService).
|
||||
privateBrowsingEnabled;
|
||||
if (!showPrompt || inPrivateBrowsing)
|
||||
return false;
|
||||
|
||||
var buttonChoice = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue