Bug 1429119 - Revert 1422246 Special handling of about:newtab on session restore r=Mardak
authorAndrei Oprea <andrei.br92@gmail.com>
Tue, 09 Jan 2018 18:05:13 +0100
changeset 453125 1bf85357ae3a3a7363a5ae1eb07b76650a545089
parent 453124 ba4ce1d35c2d5aee17412c113473b6673b2b9a7d
child 453126 e08ec3e15b9bd4353441a572ac9da3a02bf322e6
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMardak
bugs1429119, 1422246
milestone59.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 1429119 - Revert 1422246 Special handling of about:newtab on session restore r=Mardak MozReview-Commit-ID: 3wvfWcIpiv3
browser/components/sessionstore/SessionStore.jsm
--- a/browser/components/sessionstore/SessionStore.jsm
+++ b/browser/components/sessionstore/SessionStore.jsm
@@ -2709,18 +2709,17 @@ var SessionStoreInternal = {
 
     let activePageData = tabData.entries[tabData.index - 1] || null;
 
     // If the page has a title, set it.
     if (activePageData) {
       if (activePageData.title &&
           activePageData.title != activePageData.url) {
         win.gBrowser.setInitialTabTitle(tab, activePageData.title, { isContentTitle: true });
-      } else if (activePageData.url != "about:blank" &&
-                 activePageData.url != "about:newtab") {
+      } else if (activePageData.url != "about:blank") {
         win.gBrowser.setInitialTabTitle(tab, activePageData.url);
       }
     }
 
     // Restore the tab icon.
     if ("image" in tabData) {
       // Use the serialized contentPrincipal with the new icon load.
       let loadingPrincipal = Utils.deserializePrincipal(tabData.iconLoadingPrincipal);