From f62c0a27d574bd775b47c6edc524e6293f480afc Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Mon, 15 Jun 2026 18:37:39 +0200 Subject: [PATCH] gh-14208: Sync upstream Firefox to version `152.0` (gh-14112) --- .rust-toolchain | 2 +- README.md | 2 +- build/firefox-cache/l10n-last-commit-hash | 2 +- src/-prettierignore.patch | 4 +- .../actors/EncryptedMediaParent-sys-mjs.patch | 2 +- src/browser/actors/WebRTCParent-sys-mjs.patch | 6 +- .../base/content/aboutDialog-xhtml.patch | 2 +- .../base/content/browser-addons-js.patch | 18 +- .../base/content/browser-box-inc-xhtml.patch | 6 +- .../base/content/browser-commands-js.patch | 8 +- .../browser-fullScreenAndPointerLock-js.patch | 8 +- .../content/browser-gestureSupport-js.patch | 4 +- .../base/content/browser-init-js.patch | 6 +- src/browser/base/content/browser-js.patch | 25 +- .../base/content/browser-places-js.patch | 8 +- .../base/content/browser-profiles-js.patch | 2 +- .../base/content/browser-sets-inc-xhtml.patch | 4 +- .../content/browser-siteIdentity-js.patch | 6 +- .../content/main-popupset-inc-xhtml.patch | 8 +- .../content/navigator-toolbox-inc-xhtml.patch | 6 +- .../base/content/nsContextMenu-sys-mjs.patch | 4 +- .../content/zen-panels/folders-search.inc | 2 +- src/browser/base/jar-mn.patch | 4 +- src/browser/base/moz-build.patch | 4 +- .../BrowserContentHandler-sys-mjs.patch | 2 +- .../components/BrowserGlue-sys-mjs.patch | 2 +- .../content/aboutLogins-html.patch | 2 +- .../content/aboutwelcome-css.patch | 14 +- .../ui/modules/AIWindow-sys-mjs.patch | 4 +- .../modules/FeatureCallout-sys-mjs.patch | 2 +- .../CustomizableUI-sys-mjs.patch | 8 +- .../CustomizeMode-sys-mjs.patch | 2 +- .../ToolbarContextMenu-sys-mjs.patch | 2 +- .../content/panelUI-inc-xhtml.patch | 2 +- .../customizableui/content/panelUI-js.patch | 2 +- .../extensions/parent/ext-browser-js.patch | 6 +- .../extensions/parent/ext-tabs-js.patch | 2 +- .../places/PlacesUIUtils-sys-mjs.patch | 2 +- .../content/browserPlacesViews-js.patch | 16 +- .../places/content/editBookmark-js.patch | 12 +- .../content/editBookmarkPanel-inc-xhtml.patch | 4 +- .../components/preferences/jar-mn.patch | 10 +- .../preferences/main-inc-xhtml.patch | 4 +- .../components/preferences/main-js.patch | 14 +- .../preferences/preferences-js.patch | 10 +- .../preferences/preferences-xhtml.patch | 14 +- .../search/SearchOneOffs-sys-mjs.patch | 4 +- .../sessionstore/SessionStore-sys-mjs.patch | 68 +- .../sessionstore/TabState-sys-mjs.patch | 11 +- .../sidebar/browser-sidebar-js.patch | 4 +- .../tabbrowser/AsyncTabSwitcher-sys-mjs.patch | 2 +- .../tabbrowser/TabsList-sys-mjs.patch | 2 +- .../tabbrowser/content/drag-and-drop-js.patch | 26 +- .../tabbrowser/content/tab-js.patch | 42 +- .../tabbrowser/content/tabbrowser-js.patch | 192 ++--- .../tabbrowser/content/tabgroup-js.patch | 20 +- .../tabbrowser/content/tabs-js.patch | 36 +- .../urlbar/UrlbarController-sys-mjs.patch | 4 +- .../UrlbarProvidersManager-sys-mjs.patch | 2 +- .../urlbar/UrlbarUtils-sys-mjs.patch | 2 +- .../urlbar/UrlbarValueFormatter-sys-mjs.patch | 6 +- .../urlbar/content/UrlbarInput-mjs.patch | 69 +- .../newtab/lib/ActivityStream-sys-mjs.patch | 4 +- .../installer/package-manifest-in.patch | 4 +- .../windows/nsis/installer-nsi.patch | 2 +- .../windows/nsis/uninstaller-nsi.patch | 2 +- .../BrowserWindowTracker-sys-mjs.patch | 2 +- .../modules/ExtensionsUI-sys-mjs.patch | 4 +- .../modules/URILoadingHelper-sys-mjs.patch | 12 +- src/browser/themes/linux/browser-css.patch | 2 +- src/browser/themes/osx/browser-css.patch | 2 +- .../themes/shared/browser-shared-css.patch | 4 +- .../identity-block/identity-block-css.patch | 2 +- src/browser/themes/shared/jar-inc-mn.patch | 4 +- .../shared/tabbrowser/content-area-css.patch | 10 +- .../shared/tabbrowser/ctrlTab-css.patch | 2 +- .../themes/shared/tabbrowser/tabs-css.patch | 42 +- .../themes/shared/toolbarbuttons-css.patch | 38 +- .../themes/shared/urlbar-searchbar-css.patch | 34 +- .../themes/shared/urlbar/variables-css.patch | 2 +- .../shared/urlbar/view-proton-css.patch | 10 +- src/browser/themes/windows/browser-css.patch | 4 +- .../startup/DevToolsStartup-sys-mjs.patch | 4 +- src/docshell/base/BrowsingContext-h.patch | 6 +- src/dom/base/Document-cpp.patch | 6 +- .../canvas/CanvasRenderingContext2D-cpp.patch | 4 +- .../BrowsingContext-webidl.patch | 2 +- .../MediaController-webidl.patch | 2 +- src/dom/html/HTMLInputElement-cpp.patch | 2 +- .../mediacontrol/MediaController-cpp.patch | 4 +- .../mediacontrol/MediaController-h.patch | 4 +- .../mediacontrol/MediaStatusManager-cpp.patch | 4 +- .../mediaelement/HTMLMediaElement-cpp.patch | 4 +- src/eslint-file-globals-config-mjs.patch | 4 +- src/eslint-test-paths-config-mjs.patch | 4 +- ...low_backdrop_to_work_on_transparency.patch | 9 +- ...low_stacking_contexts_to_be_promoted.patch | 104 --- .../native_macos_popovers/D284084.patch | 669 ------------------ ....patch => native_macos_popovers_fix.patch} | 17 +- .../session_store_use_size_hint/D247215.patch | 251 ------- .../session_store_use_size_hint/D298708.patch | 254 ------- src/external-patches/manifest.json | 39 +- src/gfx/layers/AnimationInfo-cpp.patch | 2 +- src/layout/base/PresShell-cpp.patch | 6 +- src/layout/generic/nsContainerFrame-cpp.patch | 10 +- src/layout/generic/nsIFrame-h.patch | 4 +- src/layout/generic/nsImageFrame-cpp.patch | 4 +- src/layout/generic/nsTextFrame-cpp.patch | 4 +- src/layout/painting/nsImageRenderer-cpp.patch | 16 +- src/layout/style/GeckoBindings-cpp.patch | 4 +- src/layout/style/nsStyleStruct-cpp.patch | 4 +- src/layout/svg/SVGContextPaint-cpp.patch | 2 +- src/layout/svg/SVGGradientFrame-cpp.patch | 8 +- src/layout/svg/SVGTextFrame-cpp.patch | 6 +- src/layout/svg/SVGUtils-cpp.patch | 10 +- src/layout/svg/SVGUtils-h.patch | 4 +- src/layout/tables/nsTableFrame-cpp.patch | 4 +- src/layout/xul/tree/nsTreeBodyFrame-cpp.patch | 2 +- .../libpref/init/StaticPrefList-yaml.patch | 4 +- src/modules/libpref/moz-build.patch | 2 +- .../production/firefox-browser-xml.patch | 2 +- .../style/queries/feature_expression-rs.patch | 22 +- src/servo/ports/geckolib/cbindgen-toml.patch | 6 +- src/testing/mochitest/browser-test-js.patch | 4 +- .../PictureInPictureChild-sys-mjs.patch | 4 +- .../extensions/parent/ext-runtime-js.patch | 4 +- .../extensions/parent/ext-tabs-base-js.patch | 2 +- .../PictureInPicture-sys-mjs.patch | 8 +- .../widgets/browser-custom-element-mjs.patch | 2 +- src/toolkit/content/widgets/findbar-js.patch | 2 +- .../moz-toggle/moz-toggle-tokens-css.patch | 2 +- src/toolkit/content/widgets/panel-js.patch | 6 +- src/toolkit/content/widgets/tabbox-js.patch | 12 +- .../modules/AppConstants-sys-mjs.patch | 2 +- .../LightweightThemeConsumer-sys-mjs.patch | 2 +- .../modules/PopupNotifications-sys-mjs.patch | 6 +- src/toolkit/modules/moz-build.patch | 4 +- src/toolkit/moz-configure.patch | 21 +- .../extensions/AddonManager-sys-mjs.patch | 2 +- .../profile/nsToolkitProfileService-cpp.patch | 8 +- .../dist/tokens-shared-css.patch | 15 +- .../shared/design-system/src/panel-css.patch | 15 - .../design-system/src/toolbar-css.patch | 14 +- .../shared/in-content/common-shared-css.patch | 2 +- src/toolkit/xre/nsXREDirProvider-cpp.patch | 8 +- src/tools/lint/rejected-words-yml.patch | 6 +- .../signing/macos/mach_commands-py.patch | 4 +- src/widget/cocoa/VibrancyManager-mm.patch | 2 +- src/widget/cocoa/nsCocoaUtils-mm.patch | 4 +- src/widget/cocoa/nsDragService-mm.patch | 6 +- src/xpfe/appshell/AppWindow-cpp.patch | 2 +- src/zen/boosts/ZenSelectorComponent.sys.mjs | 2 +- src/zen/boosts/ZenZapDissolve.sys.mjs | 2 +- src/zen/boosts/ZenZapOverlayChild.sys.mjs | 2 +- src/zen/common/modules/ZenUIManager.mjs | 13 +- src/zen/common/styles/zen-omnibox.css | 2 +- src/zen/common/styles/zen-panel-ui.css | 8 +- src/zen/common/styles/zen-popup.css | 2 +- .../common/styles/zen-single-components.css | 6 +- src/zen/common/styles/zen-theme.css | 4 +- src/zen/compact-mode/ZenCompactMode.mjs | 2 +- src/zen/compact-mode/sidebar.inc.css | 2 +- src/zen/drag-and-drop/ZenDragAndDrop.js | 15 +- src/zen/glance/actors/ZenGlanceChild.sys.mjs | 5 +- src/zen/live-folders/ZenLiveFolder.sys.mjs | 2 +- .../ZenLiveFoldersManager.sys.mjs | 4 +- src/zen/media/zen-media-controls.css | 4 +- src/zen/sessionstore/ZenWindowSync.sys.mjs | 49 +- src/zen/spaces/ZenSpaceManager.mjs | 8 +- src/zen/spaces/zen-workspaces.css | 4 +- src/zen/split-view/ZenViewSplitter.mjs | 4 +- src/zen/tabs/ZenPinnedTabManager.mjs | 13 +- src/zen/tabs/zen-tabs/vertical-tabs.css | 20 +- .../safebrowsing/browser_whitelisted.js | 4 +- src/zen/tests/mochitests/shell/browser.toml | 7 +- .../tests/mochitests/shell/browser_1119088.js | 19 +- .../tests/mochitests/shell/browser_420786.js | 4 +- .../shell/browser_setDefaultPDFHandler.js | 196 +++-- .../browser_setDesktopBackgroundPreview.js | 2 +- .../gtest/SetDefaultBrowserButtonTests.cpp | 1 - src/zen/tests/mochitests/shell/large.png | Bin 0 -> 21237 bytes .../shell/unit/test_desktopEntryStatus.js | 131 ++++ ...test_maybeCreateLaunchOnLoginOnFirstRun.js | 109 +++ .../tests/mochitests/shell/unit/xpcshell.toml | 10 + .../browser_input_file_tooltips.js | 2 +- src/zen/tests/popover/browser.toml | 3 +- src/zen/tests/spaces/head.js | 6 +- src/zen/tests/tabs/head.js | 2 +- src/zen/tests/urlbar/head.js | 8 +- src/zen/urlbar/ZenUBActionsProvider.sys.mjs | 2 +- src/zen/welcome/ZenWelcome.mjs | 4 +- surfer.json | 2 +- 192 files changed, 1184 insertions(+), 2144 deletions(-) delete mode 100644 src/external-patches/firefox/bug_2013682_allow_stacking_contexts_to_be_promoted.patch delete mode 100644 src/external-patches/firefox/native_macos_popovers/D284084.patch rename src/external-patches/firefox/{native_macos_popovers/D299584.patch => native_macos_popovers_fix.patch} (78%) delete mode 100644 src/external-patches/firefox/session_store_use_size_hint/D247215.patch delete mode 100644 src/external-patches/firefox/session_store_use_size_hint/D298708.patch delete mode 100644 src/toolkit/themes/shared/design-system/src/panel-css.patch create mode 100644 src/zen/tests/mochitests/shell/large.png create mode 100644 src/zen/tests/mochitests/shell/unit/test_desktopEntryStatus.js create mode 100644 src/zen/tests/mochitests/shell/unit/test_maybeCreateLaunchOnLoginOnFirstRun.js diff --git a/.rust-toolchain b/.rust-toolchain index 88310d7db..bfda7af0b 100644 --- a/.rust-toolchain +++ b/.rust-toolchain @@ -1 +1 @@ -1.90 \ No newline at end of file +1.95 \ No newline at end of file diff --git a/README.md b/README.md index af0a6a3ca..0fb827b34 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Zen is a firefox-based browser with the aim of pushing your productivity to a ne ### Firefox Versions - [`Release`](https://zen-browser.app/download) - Is currently built using Firefox version `151.0.4`! 🚀 -- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 151.0.4`! +- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 152.0`! ### Contributing diff --git a/build/firefox-cache/l10n-last-commit-hash b/build/firefox-cache/l10n-last-commit-hash index f138bc25d..3d6223d5d 100644 --- a/build/firefox-cache/l10n-last-commit-hash +++ b/build/firefox-cache/l10n-last-commit-hash @@ -1 +1 @@ -9a6aa4c359d1fb6ac60decc82402f82d49a17cea \ No newline at end of file +a58ad2d2952face15859068dd4421cf68d6a9dda \ No newline at end of file diff --git a/src/-prettierignore.patch b/src/-prettierignore.patch index d844969ee..ed444531d 100644 --- a/src/-prettierignore.patch +++ b/src/-prettierignore.patch @@ -1,8 +1,8 @@ diff --git a/.prettierignore b/.prettierignore -index de2efe413e5696a3b8d0467a3a9e668dfadd8a1a..01c76d8e639d5630fca9cccb55d415fc4e903e91 100644 +index 949896ff064ae0b54b6a657ea074bc88e12820f7..5249f420972667bece4d85fe8d35073afaebeb8a 100644 --- a/.prettierignore +++ b/.prettierignore -@@ -1805,3 +1805,12 @@ tools/ts/test/baselines/ +@@ -1803,3 +1803,12 @@ tools/ts/test/baselines/ try_task_config.json xpcom/idl-parser/xpidl/fixtures/xpctest.d.json **/package-lock.json diff --git a/src/browser/actors/EncryptedMediaParent-sys-mjs.patch b/src/browser/actors/EncryptedMediaParent-sys-mjs.patch index 74f9f5d19..36ac8cdeb 100644 --- a/src/browser/actors/EncryptedMediaParent-sys-mjs.patch +++ b/src/browser/actors/EncryptedMediaParent-sys-mjs.patch @@ -1,5 +1,5 @@ diff --git a/browser/actors/EncryptedMediaParent.sys.mjs b/browser/actors/EncryptedMediaParent.sys.mjs -index 492dce93d3cc7c6ec16db047c9e47b175ef3a0fe..757e5543e0e6900c414db6d7a96d511608c1e50a 100644 +index 8bdeba9b8803354e23a3881147fee6a6af94a63b..61c8407df1fbebcc36481ad2169a9c103b4faed5 100644 --- a/browser/actors/EncryptedMediaParent.sys.mjs +++ b/browser/actors/EncryptedMediaParent.sys.mjs @@ -199,6 +199,7 @@ export class EncryptedMediaParent extends JSWindowActorParent { diff --git a/src/browser/actors/WebRTCParent-sys-mjs.patch b/src/browser/actors/WebRTCParent-sys-mjs.patch index 46e7f96b7..08d42ab63 100644 --- a/src/browser/actors/WebRTCParent-sys-mjs.patch +++ b/src/browser/actors/WebRTCParent-sys-mjs.patch @@ -1,12 +1,12 @@ diff --git a/browser/actors/WebRTCParent.sys.mjs b/browser/actors/WebRTCParent.sys.mjs -index b743bd83529c4cd01a6bc820967186dbe41b6144..e24c48bac0f4ae3d4b26087b7e0cac7910019d0e 100644 +index 98b10b1d789c20b3463de4f703af102f6908318b..29534480fbeda6d66cb9dab81afdaed8d8a5c565 100644 --- a/browser/actors/WebRTCParent.sys.mjs +++ b/browser/actors/WebRTCParent.sys.mjs @@ -152,6 +152,7 @@ export class WebRTCParent extends JSWindowActorParent { - let tabbrowser = browser.ownerGlobal.gBrowser; + let tabbrowser = browser.documentGlobal.gBrowser; if (tabbrowser) { -+ browser.ownerGlobal.gZenMediaController.updateMediaSharing(state); ++ browser.documentGlobal.gZenMediaController.updateMediaSharing(state); tabbrowser.updateBrowserSharing(browser, { webRTC: state, }); diff --git a/src/browser/base/content/aboutDialog-xhtml.patch b/src/browser/base/content/aboutDialog-xhtml.patch index 1145f64d5..333a28ed3 100644 --- a/src/browser/base/content/aboutDialog-xhtml.patch +++ b/src/browser/base/content/aboutDialog-xhtml.patch @@ -1,5 +1,5 @@ diff --git a/browser/base/content/aboutDialog.xhtml b/browser/base/content/aboutDialog.xhtml -index c64980810570fcea84e33fdc2d66ac42a79f4e46..aa629ebb38a9aa74048fe3fc759f716fad57d6f3 100644 +index 3ffd464b960a4299a7dd0cd87e4fc2f781b9d593..ef9f42d1f0196902b4af31f4496891fcd6319831 100644 --- a/browser/base/content/aboutDialog.xhtml +++ b/browser/base/content/aboutDialog.xhtml @@ -102,10 +102,6 @@ diff --git a/src/browser/base/content/browser-addons-js.patch b/src/browser/base/content/browser-addons-js.patch index 8ab878b64..92d2ed624 100644 --- a/src/browser/base/content/browser-addons-js.patch +++ b/src/browser/base/content/browser-addons-js.patch @@ -1,5 +1,5 @@ diff --git a/browser/base/content/browser-addons.js b/browser/base/content/browser-addons.js -index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05f45bce08 100644 +index 56acad9b7c21c07842f901d24525a97a0ba20217..829054218dc6fbb14fe034546e8da62b12516eae 100644 --- a/browser/base/content/browser-addons.js +++ b/browser/base/content/browser-addons.js @@ -1060,7 +1060,7 @@ var gXPInstallObserver = { @@ -20,7 +20,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 }, }; -@@ -2209,7 +2209,7 @@ var gUnifiedExtensions = { +@@ -2214,7 +2214,7 @@ var gUnifiedExtensions = { // If the new ID is not added in NOTIFICATION_IDS, consider handling the case // in the "PopupNotificationsBeforeAnchor" handler elsewhere in this file. getPopupAnchorID(aBrowser, aWindow) { @@ -29,7 +29,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 const attr = anchorID + "popupnotificationanchor"; if (!aBrowser[attr]) { -@@ -2220,7 +2220,7 @@ var gUnifiedExtensions = { +@@ -2225,7 +2225,7 @@ var gUnifiedExtensions = { anchorID // Anchor on the toolbar icon to position the popup right below the // button. @@ -38,7 +38,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 } return anchorID; -@@ -2545,7 +2545,7 @@ var gUnifiedExtensions = { +@@ -2550,7 +2550,7 @@ var gUnifiedExtensions = { requestAnimationFrame(() => this.updateAttention()); }, @@ -47,7 +47,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 // A list of extension widget IDs (possibly empty). let widgetIDs; -@@ -2559,7 +2559,7 @@ var gUnifiedExtensions = { +@@ -2564,7 +2564,7 @@ var gUnifiedExtensions = { } // The list of overflowed extensions in the extensions panel. @@ -56,7 +56,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 "#overflowed-extensions-list" ); -@@ -2660,37 +2660,41 @@ var gUnifiedExtensions = { +@@ -2665,37 +2665,41 @@ var gUnifiedExtensions = { ); template.replaceWith(template.content); this._panel = document.getElementById("unified-extensions-panel"); @@ -123,7 +123,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 if (!CustomizationHandler.isCustomizing()) { if (aEvent) { if ( -@@ -2712,6 +2716,7 @@ var gUnifiedExtensions = { +@@ -2717,6 +2721,7 @@ var gUnifiedExtensions = { // and no alternative content is available for display in the panel. const policies = this.getActivePolicies(); if ( @@ -131,7 +131,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 policies.length && !this.hasExtensionsInPanel(policies) && !this.isPrivateWindowMissingExtensionsWithoutPBMAccess() && -@@ -2727,32 +2732,30 @@ var gUnifiedExtensions = { +@@ -2732,32 +2737,30 @@ var gUnifiedExtensions = { this.blocklistAttentionInfo = await AddonManager.getBlocklistAttentionInfo(); @@ -170,7 +170,7 @@ index 853d3c9dd9dd806d49a3c5a44304dd7370f0c90e..ea927b05213981fbfa5494d8d22bce05 triggerEvent: aEvent, }); } -@@ -2947,18 +2950,20 @@ var gUnifiedExtensions = { +@@ -2952,18 +2955,20 @@ var gUnifiedExtensions = { this._maybeMoveWidgetNodeBack(widgetId); } diff --git a/src/browser/base/content/browser-box-inc-xhtml.patch b/src/browser/base/content/browser-box-inc-xhtml.patch index 6f5f7ee91..e807e8553 100644 --- a/src/browser/base/content/browser-box-inc-xhtml.patch +++ b/src/browser/base/content/browser-box-inc-xhtml.patch @@ -1,5 +1,5 @@ diff --git a/browser/base/content/browser-box.inc.xhtml b/browser/base/content/browser-box.inc.xhtml -index d58fcdf99843d110b708f3fbf9fb317787fadfcf..cfc2aad902641609c3804e615c4cb66ce65299b7 100644 +index 31cd4f927c273573b38021f84417101c57377902..f293e1c61d3b7a80b7dc472d927893f0439d6af9 100644 --- a/browser/base/content/browser-box.inc.xhtml +++ b/browser/base/content/browser-box.inc.xhtml @@ -3,12 +3,22 @@ @@ -10,7 +10,7 @@ index d58fcdf99843d110b708f3fbf9fb317787fadfcf..cfc2aad902641609c3804e615c4cb66c + + + - + + -