зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1360239 - Explicitly make pinned tabs nonlazy. r=dao
MozReview-Commit-ID: 7fOboqJamqE
This commit is contained in:
Родитель
d1cd3855d6
Коммит
fe32690b63
|
@ -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])
|
||||
|
|
Загрузка…
Ссылка в новой задаче