Bug 1175812 - Use preloaded about:privatebrowsing page for private new tab pages. r=dao
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Tue, 30 Jun 2015 11:16:03 -0700
changeset 250746 6a0c6253edc08b4a4d3d23c3f48f3b37462b66d5
parent 250745 565bb767379d31037693c39519b46ca9409cb5fc
child 250747 3b9be17895cbc294896b2fb83a239e30aad1dcc6
push id28968
push userkwierso@gmail.com
push dateTue, 30 Jun 2015 23:40:44 +0000
treeherdermozilla-central@e5ef71b73fec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1175812
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1175812 - Use preloaded about:privatebrowsing page for private new tab pages. r=dao This fixes the flicker when opening a new tab in a private window.
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -1781,21 +1781,20 @@
             this.tabContainer.appendChild(t);
 
             // If this new tab is owned by another, assert that relationship
             if (aOwner)
               t.owner = aOwner;
 
             let b;
             let usingPreloadedContent = false;
-            let isPrivateWindow = PrivateBrowsingUtils.isWindowPrivate(window);
 
             // If we open a new tab with the newtab URL,
             // check if there is a preloaded browser ready.
-            if (aURI == BROWSER_NEW_TAB_URL && !isPrivateWindow) {
+            if (aURI == BROWSER_NEW_TAB_URL) {
               b = this._getPreloadedBrowser();
               usingPreloadedContent = !!b;
             }
 
             if (!b) {
               // No preloaded browser found, create one.
               b = this._createBrowser({remote, uriIsAboutBlank});
             }