Skip to content

Commit 1713c04

Browse files
committed
chore: Started updating for firefox 138.0 beta 9, b=(no-bug), c=common
1 parent ad0485d commit 1713c04

File tree

8 files changed

+58
-83
lines changed

8 files changed

+58
-83
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
## 🖥️ Compatibility
3030

31-
Zen is currently built using Firefox version `137.0.2`! 🚀
31+
Zen is currently built using Firefox version `138.0b9`! 🚀
3232

3333
- [`Zen Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 137.0.2`!
3434
- Check out the latest [release notes](https://zen-browser.app/release-notes)!

src/Cargo-toml.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
diff --git a/Cargo.toml b/Cargo.toml
2-
index a99b447250d36dd0146e031fa22503bc88eeae39..86829fc7075054f832a04825c98325a925cf5b0f 100644
2+
index d3d529b487f80d4b4f3bfa13cdd3f62946352db8..b35a9e0e3339d48d1cd0cab7b22d030f330e40d1 100644
33
--- a/Cargo.toml
44
+++ b/Cargo.toml
5-
@@ -205,6 +205,9 @@ rure = { path = "third_party/rust/rure" }
5+
@@ -217,6 +217,9 @@ rure = { path = "third_party/rust/rure" }
66
# Patch `plist` to work with `indexmap` 2.*
77
plist = { path = "third_party/rust/plist" }
88

99
+# Patch mime_guess to add missing mime types
1010
+mime_guess = { path = "third_party/rust/mime_guess" }
1111
+
12-
# To-be-published changes.
13-
unicode-bidi = { git = "https://github.com/servo/unicode-bidi", rev = "ca612daf1c08c53abe07327cb3e6ef6e0a760f0c" }
14-
nss-gk-api = { git = "https://github.com/beurdouche/nss-gk-api", rev = "e48a946811ffd64abc78de3ee284957d8d1c0d63" }
12+
# Patch `unicode-width` 0.1.* to 0.2.
13+
unicode-width = { path = "build/rust/unicode-width" }
14+

src/browser/base/content/browser-box-inc-xhtml.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
diff --git a/browser/base/content/browser-box.inc.xhtml b/browser/base/content/browser-box.inc.xhtml
2-
index 2ca8bdd2674fb4addf3bbf94ff17abc5c93c6293..dd965d8d190e8cdacbeb3d80995ad1a906e64079 100644
2+
index 7d7e8697f02f90d4f336c9ab0a73a89848e0c21c..d113b439888d26629ce5f6b5d35f8fa12249774b 100644
33
--- a/browser/base/content/browser-box.inc.xhtml
44
+++ b/browser/base/content/browser-box.inc.xhtml
5-
@@ -26,7 +26,13 @@
6-
<splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" resizebefore="sibling" resizeafter="none" hidden="true"/>
7-
<box id="after-splitter"></box>
8-
</div>
5+
@@ -23,7 +23,13 @@
6+
<browser id="sidebar" autoscroll="false" disablehistory="true" disablefullscreen="true" tooltip="aHTMLTooltip"/>
7+
</vbox>
8+
<splitter id="sidebar-splitter" class="chromeclass-extrachrome sidebar-splitter" resizebefore="sibling" resizeafter="none" hidden="true"/>
99
+<vbox flex="1" id="zen-appcontent-wrapper">
10-
+<html:div id="zen-appcontent-navbar-container"></html:div>
11-
+<hbox id="zen-tabbox-wrapper" flex="1">
10+
+ <html:div id="zen-appcontent-navbar-container"></html:div>
11+
+ <hbox id="zen-tabbox-wrapper" flex="1">
1212
<tabbox id="tabbrowser-tabbox" flex="1" tabcontainer="tabbrowser-tabs">
1313
+#include zen-tabbrowser-elements.inc.xhtml
1414
<tabpanels id="tabbrowser-tabpanels" flex="1" selectedIndex="0"/>
Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/base/content/browser.xhtml b/browser/base/content/browser.xhtml
2-
index 0d0a559a6473149b50f4bf18d059e86907c4acd3..25ad798eb26f04262d069fdaf1f3fb00adec9807 100644
2+
index 51a25aaa5558e6e17246d54a7ed95d5ddf3ecdab..b49984c8711fc9f5f19f0cf6ecca07a8cca0d125 100644
33
--- a/browser/base/content/browser.xhtml
44
+++ b/browser/base/content/browser.xhtml
55
@@ -26,6 +26,7 @@
@@ -10,35 +10,28 @@ index 0d0a559a6473149b50f4bf18d059e86907c4acd3..25ad798eb26f04262d069fdaf1f3fb00
1010
persist="screenX screenY width height sizemode"
1111
data-l10n-sync="true">
1212
<head>
13-
@@ -104,6 +105,8 @@
13+
@@ -104,8 +105,11 @@
1414

1515
<title data-l10n-id="browser-main-window-default-title"></title>
1616

1717
+#include zen-preloaded.inc.xhtml
1818
+
19-
# All JS files which are needed by browser.xhtml and other top level windows to
20-
# support MacOS specific features *must* go into the global-scripts.inc file so
21-
# that they can be shared with macWindow.inc.xhtml.
22-
@@ -148,6 +151,7 @@
23-
window.addEventListener("DOMContentLoaded",
24-
gBrowserInit.onDOMContentLoaded.bind(gBrowserInit), { once: true });
25-
</script>
19+
<script src="chrome://browser/content/global-scripts.js"></script>
20+
<script src="chrome://browser/content/browser-main.js"></script>
2621
+#include zen-assets.inc.xhtml
2722
</head>
2823
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
2924
# All sets except for popupsets (commands, keys, and stringbundles)
30-
@@ -169,9 +173,11 @@
25+
@@ -127,9 +131,12 @@
3126
</vbox>
3227
</html:template>
3328

34-
-#include navigator-toolbox.inc.xhtml
35-
-
36-
-#include browser-box.inc.xhtml
37-
+ <hbox id="zen-main-app-wrapper" flex="1" persist="zen-compact-mode">
38-
+ <vbox id="zen-toast-container"></vbox>
39-
+ #include navigator-toolbox.inc.xhtml
40-
+ #include browser-box.inc.xhtml
41-
+ </hbox>
29+
+<hbox id="zen-main-app-wrapper" flex="1" persist="zen-compact-mode">
30+
+ <vbox id="zen-toast-container"></vbox>
31+
#include navigator-toolbox.inc.xhtml
32+
33+
#include browser-box.inc.xhtml
34+
+</hbox>
4235

4336
<html:template id="customizationPanel">
4437
<box id="customization-container" flex="1" hidden="true"><![CDATA[
Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/base/content/navigator-toolbox.inc.xhtml b/browser/base/content/navigator-toolbox.inc.xhtml
2-
index feb9e4ef7e872b4cfbf0d55f24a34db275951c66..3ce9b9919ff736885b8aa8943bbbce3c5d0f33a6 100644
2+
index 00c8976d3e258c0875d7da2f3ec823d8907a84c9..3ce6fea52f8170f6cd821a66684248b4c0a765c6 100644
33
--- a/browser/base/content/navigator-toolbox.inc.xhtml
44
+++ b/browser/base/content/navigator-toolbox.inc.xhtml
55
@@ -2,7 +2,7 @@
@@ -11,46 +11,29 @@ index feb9e4ef7e872b4cfbf0d55f24a34db275951c66..3ce9b9919ff736885b8aa8943bbbce3c
1111
<script src="chrome://browser/content/navigator-toolbox.js" />
1212

1313
<!-- Menu -->
14-
@@ -17,9 +17,8 @@
14+
@@ -17,9 +17,9 @@
1515
#include browser-menubar.inc
1616
</toolbaritem>
1717
<spacer flex="1" skipintoolbarset="true" style="order: 1000;"/>
1818
-#include titlebar-items.inc.xhtml
1919
</toolbar>
20-
-
20+
2121
+<hbox id="titlebar">
2222
<toolbar id="TabsToolbar"
2323
class="browser-toolbar browser-titlebar"
2424
fullscreentoolbar="true"
25-
@@ -32,7 +31,7 @@
26-
27-
<hbox class="titlebar-spacer" type="pre-tabs"/>
28-
29-
- <hbox flex="1" align="end" class="toolbar-items">
30-
+ <hbox flex="1" align="start" class="toolbar-items">
31-
<toolbartabstop/>
32-
<hbox id="TabsToolbar-customization-target" flex="1">
33-
<toolbarbutton id="firefox-view-button"
34-
@@ -40,6 +39,7 @@
35-
data-l10n-id="toolbar-button-firefox-view-2"
36-
role="button"
37-
aria-pressed="false"
38-
+ hidden="true"
39-
cui-areatype="toolbar"
40-
removable="true"/>
41-
4225
@@ -50,6 +50,10 @@
4326
tooltip="tabbrowser-tab-tooltip"
4427
orient="horizontal"
45-
stopwatchid="FX_TAB_CLICK_MS">
28+
stopwatchid="tabClick">
4629
+<html:div id="zen-essentials-container" skipintoolbarset="true"></html:div>
4730
+<hbox id="zen-current-workspace-indicator-container"></hbox>
4831
+<html:div id="zen-tabs-wrapper">
4932
+<html:div id="zen-browser-tabs-container">
5033
<hbox class="tab-drop-indicator" hidden="true"/>
34+
<html:span id="tab-drag-empty-feedback" role="presentation"/>
5135
# If the name (tabbrowser-arrowscrollbox) or structure of this changes
52-
# significantly, there is an optimization in
53-
@@ -75,6 +79,8 @@
36+
@@ -76,6 +80,8 @@
5437
tooltip="dynamic-shortcut-tooltip"
5538
data-l10n-id="tabs-toolbar-new-tab"/>
5639
<html:span id="tabbrowser-tab-a11y-desc" hidden="true"/>
@@ -59,28 +42,15 @@ index feb9e4ef7e872b4cfbf0d55f24a34db275951c66..3ce9b9919ff736885b8aa8943bbbce3c
5942
</tabs>
6043

6144
<toolbarbutton id="new-tab-button"
62-
@@ -100,10 +106,10 @@
45+
@@ -101,9 +107,10 @@
6346
#include private-browsing-indicator.inc.xhtml
6447
<toolbarbutton class="content-analysis-indicator toolbarbutton-1 content-analysis-indicator-icon"/>
6548

6649
-#include titlebar-items.inc.xhtml
6750
+#include zen-sidebar-icons.inc.xhtml
6851

6952
</toolbar>
70-
-
7153
+</hbox>
54+
7255
<toolbar id="nav-bar"
7356
class="browser-toolbar chromeclass-location"
74-
data-l10n-id="navbar-accessible"
75-
@@ -489,10 +495,10 @@
76-
consumeanchor="PanelUI-button"
77-
data-l10n-id="appmenu-menu-button-closed2"/>
78-
</toolbaritem>
79-
+#include titlebar-items.inc.xhtml
80-
<hbox class="titlebar-spacer" type="post-tabs"/>
81-
#include private-browsing-indicator.inc.xhtml
82-
<toolbarbutton class="content-analysis-indicator toolbarbutton-1 content-analysis-indicator-icon"/>
83-
-#include titlebar-items.inc.xhtml
84-
</toolbar>
85-
86-
<toolbar id="PersonalToolbar"

src/browser/components/BrowserGlue-sys-mjs.patch

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
diff --git a/browser/components/BrowserGlue.sys.mjs b/browser/components/BrowserGlue.sys.mjs
2-
index b8b6d30f0b3c968a8615ca601e06e50261d0dae6..5c2b718b902aed2ef8d7a4b622ba882ee937c655 100644
2+
index a6a7f9165aece774c3f1c15f7e352b11a4bf90f4..a4b6124b85f099c6f12d297fc26f2040370c337c 100644
33
--- a/browser/components/BrowserGlue.sys.mjs
44
+++ b/browser/components/BrowserGlue.sys.mjs
5-
@@ -106,6 +106,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
6-
WindowsGPOParser: "resource://gre/modules/policies/WindowsGPOParser.sys.mjs",
7-
clearTimeout: "resource://gre/modules/Timer.sys.mjs",
8-
setTimeout: "resource://gre/modules/Timer.sys.mjs",
9-
+ gZenUIMigration: "chrome://browser/content/zen-components/ZenUIMigration.mjs",
10-
});
5+
@@ -8,6 +8,7 @@ import { XPCOMUtils } from "resource://gre/modules/XPCOMUtils.sys.mjs";
6+
const lazy = {};
117

12-
XPCOMUtils.defineLazyServiceGetters(lazy, {
13-
@@ -1896,7 +1897,7 @@ BrowserGlue.prototype = {
14-
lazy.TabCrashHandler.init();
8+
ChromeUtils.defineESModuleGetters(lazy, {
9+
+ gZenUIMigration: "chrome://browser/content/zen-components/ZenUIMigration.mjs",
10+
AboutHomeStartupCache: "resource:///modules/AboutHomeStartupCache.sys.mjs",
11+
AboutNewTab: "resource:///modules/AboutNewTab.sys.mjs",
12+
AWToolbarButton: "resource:///modules/aboutwelcome/AWToolbarUtils.sys.mjs",
13+
@@ -1886,6 +1887,7 @@ BrowserGlue.prototype = {
1514

1615
lazy.ProcessHangMonitor.init();
17-
-
16+
1817
+ lazy.gZenUIMigration.init(this._isNewProfile, aWindow);
1918
// A channel for "remote troubleshooting" code...
2019
let channel = new lazy.WebChannel(

src/zen/common/ZenStartup.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
}
3030

3131
this._initSidebarScrolling();
32+
this._hideUnusedElements();
3233

3334
ZenWorkspaces.init();
3435
gZenVerticalTabsManager.init();
@@ -128,6 +129,18 @@
128129
}
129130
},
130131

132+
_hideUnusedElements() {
133+
const kElements = [
134+
'firefox-view-button',
135+
];
136+
for (let id of kElements) {
137+
const elem = document.getElementById(id);
138+
if (elem) {
139+
elem.setAttribute('hidden', 'true');
140+
}
141+
}
142+
},
143+
131144
_initSidebarScrolling() {
132145
// Disable smooth scroll
133146
const canSmoothScroll = Services.prefs.getBoolPref('zen.startup.smooth-scroll-in-tabs', false);

surfer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"appId": "zen",
55
"binaryName": "zen",
66
"version": {
7-
"product": "firefox",
8-
"version": "137.0.2",
7+
"product": "firefox-beta",
8+
"version": "138.0b9",
99
"candidate": "137.0.2"
1010
},
1111
"buildOptions": {
@@ -53,4 +53,4 @@
5353
"licenseType": "MPL-2.0"
5454
},
5555
"updateHostname": "updates.zen-browser.app"
56-
}
56+
}

0 commit comments

Comments
 (0)