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 250736 6a0c6253edc08b4a4d3d23c3f48f3b37462b66d5
parent 250735 565bb767379d31037693c39519b46ca9409cb5fc
child 250737 3b9be17895cbc294896b2fb83a239e30aad1dcc6
push id61643
push userbirunthan@mohanathas.com
push dateTue, 30 Jun 2015 18:16:26 +0000
treeherdermozilla-inbound@37bee149c935 [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});
             }