mirror of
https://github.com/zen-browser/desktop
synced 2026-04-25 17:15:00 +02:00
* chore: Sync upstream to `Firefox 147.0` * chore: Continued migration, b=no-bug, c=tests * chore: Finish migration without testing, b=no-bug, c=scripts, tabs, media, common, split-view * feat: Finish migration, b=no-bug, c=common, compact-mode, split-view, workspaces * feat: Finish basic migration, b=no-bug, c=kbs, common, folders * feat: Update surfer, b=no-bug, c=scripts
31 lines
1.3 KiB
C++
31 lines
1.3 KiB
C++
diff --git a/browser/components/BrowserGlue.sys.mjs b/browser/components/BrowserGlue.sys.mjs
|
|
index 8acc1e5a97f769dc76d30ca0534f28b0a4511ab5..bd54169f976d3abe7d122b0efc0fa0d0626179eb 100644
|
|
--- a/browser/components/BrowserGlue.sys.mjs
|
|
+++ b/browser/components/BrowserGlue.sys.mjs
|
|
@@ -8,6 +8,7 @@ import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";
|
|
const lazy = {};
|
|
|
|
ChromeUtils.defineESModuleGetters(lazy, {
|
|
+ gZenUIMigration: "resource:///modules/ZenUIMigration.sys.mjs",
|
|
AboutHomeStartupCache: "resource:///modules/AboutHomeStartupCache.sys.mjs",
|
|
AWToolbarButton: "resource:///modules/aboutwelcome/AWToolbarUtils.sys.mjs",
|
|
ASRouter: "resource:///modules/asrouter/ASRouter.sys.mjs",
|
|
@@ -1452,7 +1453,7 @@ BrowserGlue.prototype = {
|
|
windowcount++;
|
|
let tabbrowser = win.gBrowser;
|
|
if (tabbrowser) {
|
|
- pagecount += tabbrowser.visibleTabs.length - tabbrowser.pinnedTabCount;
|
|
+ pagecount += tabbrowser.visibleTabs.filter(t => t.getAttribute("pending")!=="true").length;
|
|
}
|
|
}
|
|
|
|
@@ -1617,6 +1618,8 @@ BrowserGlue.prototype = {
|
|
} else if (profileDataVersion < APP_DATA_VERSION) {
|
|
lazy.ProfileDataUpgrader.upgrade(profileDataVersion, APP_DATA_VERSION);
|
|
}
|
|
+
|
|
+ lazy.gZenUIMigration.init(this._isNewProfile);
|
|
},
|
|
|
|
async _showUpgradeDialog() {
|