Bug 817477 - Remove support for global private browsing mode; r=jdm,glandium

This commit is contained in:
Ehsan Akhgari
2013-01-29 13:12:13 -05:00
parent 76fd6bdaa7
commit 5ab06de081
259 changed files with 118 additions and 14651 deletions

View File

@@ -511,17 +511,12 @@ nsBrowserContentHandler.prototype = {
}
if (cmdLine.handleFlag("silent", false))
cmdLine.preventDefault = true;
#ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
if (cmdLine.handleFlag("private-window", false)) {
openWindow(null, this.chromeURL, "_blank",
"chrome,dialog=no,private,all" + this.getFeatures(cmdLine),
"about:privatebrowsing");
cmdLine.preventDefault = true;
}
#else
if (cmdLine.findFlag("private-toggle", false) >= 0)
cmdLine.preventDefault = true;
#endif
var searchParam = cmdLine.handleFlagWithParam("search", false);
if (searchParam) {
@@ -531,11 +526,7 @@ nsBrowserContentHandler.prototype = {
// The global PB Service consumes this flag, so only eat it in per-window
// PB builds.
#ifdef MOZ_PER_WINDOW_PRIVATE_BROWSING
if (cmdLine.handleFlag("private", false)) {
#else
if (cmdLine.findFlag("private", false) >= 0) {
#endif
PrivateBrowsingUtils.enterTemporaryAutoStartMode();
}