Bug 1360239 - Explicitly make pinned tabs nonlazy. r=dao

MozReview-Commit-ID: 7fOboqJamqE
This commit is contained in:
Kevin Jones 2017-04-28 09:08:38 +02:00
Родитель d1cd3855d6
Коммит fe32690b63
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -3296,13 +3296,14 @@ var SessionStoreInternal = {
let numVisibleTabs = 0;
let createLazyBrowser = this._prefBranch.getBoolPref("sessionstore.restore_tabs_lazily") &&
let restoreTabsLazily = this._prefBranch.getBoolPref("sessionstore.restore_tabs_lazily") &&
this._prefBranch.getBoolPref("sessionstore.restore_on_demand");
for (var t = 0; t < newTabCount; t++) {
// When trying to restore into existing tab, we also take the userContextId
// into account if present.
let userContextId = winData.tabs[t].userContextId;
let createLazyBrowser = restoreTabsLazily && !winData.tabs[t].pinned;
let reuseExisting = t < openTabCount &&
(tabbrowser.tabs[t].getAttribute("usercontextid") == (userContextId || ""));
let tab = reuseExisting ? this._maybeUpdateBrowserRemoteness(tabbrowser.tabs[t])