Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 61a74ef

Browse files
authored
🔀 Update Firefox to 107.0 & uBlock to 1.45.2 (#155)
2 parents 43f185c + 7972a4a commit 61a74ef

18 files changed

+153
-72
lines changed

‎.github/PULL_REQUEST_TEMPLATE/ff_update.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This bumps Firefox up to `{NEW_VERSION}` for security and performance reasons. R
2222
- [ ] Tabliss is loading correctly
2323
- [ ] Tabliss does not have the webextention symbol in the title bar
2424
- [ ] uBlock origin is loading correctly
25-
- [ ] FirePicker is loading correctly
25+
- [ ] QRCode generator is loading correctly
2626

2727
- [ ] About dialog
2828

‎gluon.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"binaryName": "pulse-browser",
66
"version": {
77
"product": "firefox",
8-
"version": "106.0.5"
8+
"version": "107.0"
99
},
1010
"buildOptions": {
1111
"generateBranding": true
@@ -15,7 +15,7 @@
1515
"platform": "github",
1616
"id": "uBlock0@raymondhill.net",
1717
"repo": "gorhill/uBlock",
18-
"version": "1.44.4",
18+
"version": "1.45.2",
1919
"fileGlob": "uBlock0_*.firefox(.signed)?.xpi"
2020
},
2121
"tabliss": {

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"package": "gluon package",
2323
"ff-version": "gluon ff-version",
2424
"licenseCheck": "gluon license-check",
25-
"gluon": "gluon"
25+
"gluon": "gluon",
26+
"reset": "gluon reset"
2627
}
2728
}

‎src/browser/app/profile/firefox-js.patch‎

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
2-
index aac068a8177abe5031152e7b567b45fd2b5ef4a2..b0ed4a98f8d832b924b6b1a93eda75d746984613 100644
2+
index 14ecab77149f5645e24c8bffff57c223f64730bb..09bf8bebc166fb1e316e2c0c425f8117468281fc 100644
33
--- a/browser/app/profile/firefox.js
44
+++ b/browser/app/profile/firefox.js
55
@@ -19,6 +19,8 @@
@@ -19,32 +19,36 @@ index aac068a8177abe5031152e7b567b45fd2b5ef4a2..b0ed4a98f8d832b924b6b1a93eda75d7
1919
pref("xpinstall.signatures.devInfoURL", "https://wiki.mozilla.org/Addons/Extension_Signing");
2020

2121
// Enable extensionStorage storage actor by default
22-
@@ -773,7 +774,7 @@ pref("browser.tabs.tooltipsShowPidAndActiveness", true);
22+
@@ -774,7 +775,7 @@ pref("browser.tabs.tooltipsShowPidAndActiveness", true);
2323
pref("browser.tabs.tooltipsShowPidAndActiveness", false);
2424
#endif
2525

2626
-pref("browser.tabs.firefox-view", true);
2727
+pref("browser.tabs.firefox-view", false);
2828
pref("browser.tabs.firefox-view.logLevel", "Warn");
29+
pref("browser.tabs.firefox-view.notify-for-tabs", false);
2930

30-
// allow_eval_* is enabled on Firefox Desktop only at this
31-
@@ -1937,7 +1938,6 @@ pref("browser.send_to_device_locales", "de,en-GB,en-US,es-AR,es-CL,es-ES,es-MX,f
31+
@@ -1945,7 +1946,7 @@ pref("browser.send_to_device_locales", "de,en-GB,en-US,es-AR,es-CL,es-ES,es-MX,f
3232
pref("browser.vpn_promo.disallowed_regions", "ae,by,cn,cu,iq,ir,kp,om,ru,sd,sy,tm,tr,ua");
3333

3434
// Default to enabling VPN promo messages to be shown when specified and allowed
3535
-pref("browser.vpn_promo.enabled", true);
36+
+pref("browser.vpn_promo.enabled", false);
3637
// Only show vpn card to certain regions. Comma separated string of two letter ISO 3166-1 country codes.
3738
// The most recent list of supported countries can be found at https://support.mozilla.org/en-US/kb/mozilla-vpn-countries-available-subscribe
3839
// The full list of supported country codes can also be found at https://github.com/mozilla/bedrock/search?q=VPN_COUNTRY_CODES
39-
@@ -2060,7 +2060,6 @@ pref("browser.tabs.crashReporting.includeURL", false);
40+
@@ -2066,10 +2067,6 @@ pref("browser.tabs.remote.warmup.unloadDelayMs", 2000);
41+
pref("browser.tabs.crashReporting.sendReport", true);
42+
pref("browser.tabs.crashReporting.includeURL", false);
4043

41-
// If true, unprivileged extensions may use experimental APIs on
42-
// nightly and developer edition.
44+
-// If true, unprivileged extensions may use experimental APIs on
45+
-// nightly and developer edition.
4346
-pref("extensions.experiments.enabled", false);
44-
47+
-
4548
#if defined(XP_LINUX) || defined(XP_WIN)
4649
// Allows us to adjust the priority of child processes at the OS level
47-
@@ -2108,13 +2107,6 @@ pref("browser.migrate.chrome.history.limit", 2000);
50+
pref("dom.ipc.processPriorityManager.enabled", true);
51+
@@ -2116,13 +2113,6 @@ pref("browser.migrate.chrome.history.limit", 2000);
4852
pref("browser.migrate.chrome.history.maxAgeInDays", 180);
4953
pref("browser.migrate.showBookmarksToolbarAfterMigration", true);
5054

@@ -58,13 +62,17 @@ index aac068a8177abe5031152e7b567b45fd2b5ef4a2..b0ed4a98f8d832b924b6b1a93eda75d7
5862
// Enable Pocket button home panel for non link pages.
5963
pref("extensions.pocket.showHome", true);
6064

61-
@@ -2243,9 +2235,6 @@ pref("toolkit.coverage.enabled", false);
65+
@@ -2251,9 +2241,10 @@ pref("toolkit.coverage.enabled", false);
6266
pref("toolkit.coverage.endpoint.base", "https://coverage.mozilla.org");
6367

6468
// Discovery prefs
6569
-pref("browser.discovery.enabled", true);
6670
-pref("browser.discovery.containers.enabled", true);
6771
-pref("browser.discovery.sites", "addons.mozilla.org");
72+
+//
73+
+// From memory, these connect to Google Analytics, so they are a no go
74+
+pref("browser.discovery.enabled", false);
75+
+pref("browser.discovery.containers.enabled", false);
6876

6977
pref("browser.engagement.recent_visited_origins.expiry", 86400); // 24 * 60 * 60 (24 hours in seconds)
7078
pref("browser.engagement.downloads-button.has-used", false);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc
2+
index f3134d5a9a01b7965eede5695def5afef4a66d6b..626fba18a7e9341731f6b71a98197695d63d7c6c 100644
3+
--- a/browser/base/content/browser-menubar.inc
4+
+++ b/browser/base/content/browser-menubar.inc
5+
@@ -153,6 +153,9 @@
6+
type="checkbox"
7+
class="sync-ui-item"
8+
oncommand="SidebarUI.toggle('viewTabsSidebar');" data-l10n-id="menu-view-synced-tabs-sidebar"/>
9+
+ <menuitem id="menu_downloadsSidebar"
10+
+ type="checkbox"
11+
+ oncommand="SidebarUI.toggle('viewDownloadsSidebar');" data-l10n-id="navbar-downloads"/>
12+
</menupopup>
13+
</menu>
14+
<menuseparator/>

‎src/browser/base/content/browser-sidebar-js.patch‎

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/browser/base/content/browser-sidebar.js b/browser/base/content/browser-sidebar.js
2-
index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafcf1d66f5a 100644
2+
index f09e37fc42f7754f7f3687884ead25124c1b2076..e1833bbfd8a8ed7da767349f886d554f3dd795f3 100644
33
--- a/browser/base/content/browser-sidebar.js
44
+++ b/browser/base/content/browser-sidebar.js
55
@@ -11,6 +11,10 @@ var SidebarUI = {
@@ -37,11 +37,21 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
3737
}),
3838
],
3939
[
40-
@@ -47,8 +54,27 @@ var SidebarUI = {
40+
@@ -47,8 +54,37 @@ var SidebarUI = {
4141
elementId: "sidebar-switcher-tabs",
4242
url: "chrome://browser/content/syncedtabs/sidebar.xhtml",
4343
menuId: "menu_tabsSidebar",
4444
+ iconurl: "chrome://browser/skin/tab.svg",
45+
+ }),
46+
+ ],
47+
+ [
48+
+ "viewDownloadsSidebar",
49+
+ makeSidebar({
50+
+ elementId: "sidebar-switcher-downloads",
51+
+ title: "Downloads",
52+
+ url: "about:downloads",
53+
+ menuId: "menu_downloadsSidebar",
54+
+ iconurl: "chrome://browser/skin/downloads/downloads.svg"
4555
}),
4656
],
4757
+ [
@@ -65,7 +75,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
6575
]));
6676
},
6777

68-
@@ -61,6 +87,8 @@ var SidebarUI = {
78+
@@ -61,6 +97,8 @@ var SidebarUI = {
6979
return (this._browser = document.getElementById("sidebar"));
7080
},
7181
POSITION_START_PREF: "sidebar.position_start",
@@ -74,7 +84,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
7484
DEFAULT_SIDEBAR_ID: "viewBookmarksSidebar",
7585

7686
// lastOpenedId is set in show() but unlike currentID it's not cleared out on hide
77-
@@ -78,6 +106,8 @@ var SidebarUI = {
87+
@@ -78,6 +116,8 @@ var SidebarUI = {
7888
},
7989
_splitter: null,
8090
_icon: null,
@@ -83,7 +93,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
8393
_reversePositionButton: null,
8494
_switcherPanel: null,
8595
_switcherTarget: null,
86-
@@ -110,10 +140,40 @@ var SidebarUI = {
96+
@@ -110,10 +150,40 @@ var SidebarUI = {
8797
this._switcherTarget = document.getElementById("sidebar-switcher-target");
8898
this._switcherArrow = document.getElementById("sidebar-switcher-arrow");
8999

@@ -124,7 +134,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
124134
this._inited = true;
125135

126136
Services.obs.addObserver(this, "intl:app-locales-changed");
127-
@@ -159,17 +219,26 @@ var SidebarUI = {
137+
@@ -159,17 +229,26 @@ var SidebarUI = {
128138
/**
129139
* The handler for Services.obs.addObserver.
130140
**/
@@ -155,7 +165,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
155165
}
156166
}
157167
},
158-
@@ -573,6 +642,10 @@ var SidebarUI = {
168+
@@ -573,6 +652,10 @@ var SidebarUI = {
159169
this._box.setAttribute("sidebarcommand", commandID);
160170
this.lastOpenedId = commandID;
161171

@@ -166,7 +176,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
166176
let { url, title, sourceL10nEl } = this.sidebars.get(commandID);
167177
this.title = title;
168178
// Keep the title element in sync with any l10n changes.
169-
@@ -618,6 +691,26 @@ var SidebarUI = {
179+
@@ -618,6 +701,26 @@ var SidebarUI = {
170180

171181
this.selectMenuItem("");
172182

@@ -193,7 +203,7 @@ index f09e37fc42f7754f7f3687884ead25124c1b2076..3148bad1c6c65207064bd650eef9bafc
193203
// Replace the document currently displayed in the sidebar with about:blank
194204
// so that we can free memory by unloading the page. We need to explicitly
195205
// create a new content viewer because the old one doesn't get destroyed
196-
@@ -641,25 +734,112 @@ var SidebarUI = {
206+
@@ -641,25 +744,112 @@ var SidebarUI = {
197207
* none if the argument is an empty string.
198208
*/
199209
selectMenuItem(commandID) {

‎src/browser/themes/BuiltInThemeConfig-jsm.patch‎ renamed to ‎src/browser/themes/BuiltInThemeConfig-sys-mjs.patch‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
diff --git a/browser/themes/BuiltInThemeConfig.jsm b/browser/themes/BuiltInThemeConfig.jsm
2-
index 05bc07ac54fa43dd6bcce1f4ab619bc054cb8084..8ace74cac976889ca0e92910388fb5128436d013 100644
3-
--- a/browser/themes/BuiltInThemeConfig.jsm
4-
+++ b/browser/themes/BuiltInThemeConfig.jsm
5-
@@ -32,6 +32,20 @@ const BuiltInThemeConfig = new Map([
1+
diff --git a/browser/themes/BuiltInThemeConfig.sys.mjs b/browser/themes/BuiltInThemeConfig.sys.mjs
2+
index 9c93c0d39ad11d95ecb4ad119d3c21da2528af23..e00efac497130363a41c0ecdbe07df761076b368 100644
3+
--- a/browser/themes/BuiltInThemeConfig.sys.mjs
4+
+++ b/browser/themes/BuiltInThemeConfig.sys.mjs
5+
@@ -32,6 +32,20 @@ export const BuiltInThemeConfig = new Map([
66
path: "resource://builtin-themes/dark/",
77
},
88
],

‎src/browser/themes/ThemeVariableMap-jsm.patch‎

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/browser/themes/ThemeVariableMap.sys.mjs b/browser/themes/ThemeVariableMap.sys.mjs
2+
index f2fd99193ddd0c24b7ad3ec953216973b162aaed..2d07c599152d8b0329f84a6cb626a1a40fdd241d 100644
3+
--- a/browser/themes/ThemeVariableMap.sys.mjs
4+
+++ b/browser/themes/ThemeVariableMap.sys.mjs
5+
@@ -126,7 +126,9 @@ export const ThemeVariableMap = [
6+
"--sidebar-background-color",
7+
{
8+
lwtProperty: "sidebar",
9+
- optionalElementID: "sidebar-box",
10+
+ // Pulse: we want to use the sidebar color in the sidebar tabs, which are
11+
+ // under the `browser` parent rather than the `sidebar-box` parent
12+
+ optionalElementID: "browser",
13+
processColor(rgbaChannels, element) {
14+
if (!rgbaChannels) {
15+
element.removeAttribute("lwt-sidebar");
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
/* ========================================================================== */
6+
/* about:downloads */
7+
8+
#contentAreaDownloadsView {
9+
background: var(--tab-selected-bgcolor, var(--toolbar-bgcolor));
10+
}
11+
12+
#downloadsListBox {
13+
border: none;
14+
border-radius: 0;
15+
background: none;
16+
}
17+
18+
#downloadsListBox > richlistitem {
19+
border-radius: 4px;
20+
transition: background-color 0.2s ease-in-out;
21+
22+
margin-bottom: 8px;
23+
}
24+
25+
#downloadsListBox > richlistitem:not([selected]):hover {
26+
background-color: var(--in-content-box-background);
27+
}
28+
29+
@media (prefers-reduced-motion) {
30+
#downloadsListBox > richlistitem {
31+
transition: none;
32+
}
33+
}

0 commit comments

Comments
 (0)