From a8e23ec7ba72251d5395d186ea6fc2fc1566c30b Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Sun, 24 Mar 2013 12:07:28 -0400 Subject: [PATCH] Bug 853996 - Make sure that opening a new window in permanent private browsing mode never shows about:privatebrowsing; r=jdm --- browser/base/content/browser.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index d0c9e6118de3..48bb491b7d4b 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -3641,8 +3641,10 @@ function OpenBrowserWindow(options) var extraFeatures = ""; if (options && options.private) { extraFeatures = ",private"; - // Force the new window to load about:privatebrowsing instead of the default home page - defaultArgs = "about:privatebrowsing"; + if (!PrivateBrowsingUtils.permanentPrivateBrowsing) { + // Force the new window to load about:privatebrowsing instead of the default home page + defaultArgs = "about:privatebrowsing"; + } } else { extraFeatures = ",non-private"; }