Bug 1527081 - don't create preloaded tabs for session-restored additional tabs, r=dao

Differential Revision: https://phabricator.services.mozilla.com/D19409

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gijs Kruitbosch 2019-02-12 09:23:45 +00:00
Родитель 2930b7b1fe
Коммит 8e0e225e22
1 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1092,8 +1092,12 @@
// overflowed.
this.arrowScrollbox._updateScrollButtonsDisabledState();
// Preload the next about:newtab if there isn't one already.
gBrowser._createPreloadBrowser();
// If this browser isn't lazy (indicating it's probably created by
// session restore), preload the next about:newtab if we don't
// already have a preloaded browser.
if (tab.linkedPanel) {
gBrowser._createPreloadBrowser();
}
]]></body>
</method>