Pier Angelo Vendrame pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
29f0e8bb by Pier Angelo Vendrame at 2024-09-04T19:18:40+02:00
fixup! Bug 4234: Use the Firefox Update Process for Base Browser.
Bug 42745: Remove our changes to tools/update-packaging/common.sh.
These changes are relevant only to extension directories, which we have
not been using for a long time (if we ever did).
So, we do not have any reason to keep carrying those changes.
- - - - -
1 changed file:
- tools/update-packaging/common.sh
Changes:
=====================================
tools/update-packaging/common.sh
=====================================
@@ -80,8 +80,17 @@ make_add_instruction() {
forced=
fi
- verbose_notice " add \"$f\"$forced"
- echo "add \"$f\"" >> "$filev3"
+ is_extension=$(echo "$f" | grep -c 'distribution/extensions/.*/')
+ if [ $is_extension = "1" ]; then
+ # Use the subdirectory of the extensions folder as the file to test
+ # before performing this add instruction.
+ testdir=$(echo "$f" | sed 's/\(.*distribution\/extensions\/[^\/]*\)\/.*/\1/')
+ verbose_notice " add-if \"$testdir\" \"$f\""
+ echo "add-if \"$testdir\" \"$f\"" >> "$filev3"
+ else
+ verbose_notice " add \"$f\"$forced"
+ echo "add \"$f\"" >> "$filev3"
+ fi
}
check_for_add_if_not_update() {
@@ -141,8 +150,17 @@ make_patch_instruction() {
f="$1"
filev3="$2"
- verbose_notice " patch \"$f.patch\" \"$f\""
- echo "patch \"$f.patch\" \"$f\"" >> "$filev3"
+ is_extension=$(echo "$f" | grep -c 'distribution/extensions/.*/')
+ if [ $is_extension = "1" ]; then
+ # Use the subdirectory of the extensions folder as the file to test
+ # before performing this add instruction.
+ testdir=$(echo "$f" | sed 's/\(.*distribution\/extensions\/[^\/]*\)\/.*/\1/')
+ verbose_notice " patch-if \"$testdir\" \"$f.patch\" \"$f\""
+ echo "patch-if \"$testdir\" \"$f.patch\" \"$f\"" >> "$filev3"
+ else
+ verbose_notice " patch \"$f.patch\" \"$f\""
+ echo "patch \"$f.patch\" \"$f\"" >> "$filev3"
+ fi
}
append_remove_instructions() {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/29f0e8b…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/29f0e8b…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
bc937da4 by cypherpunks1 at 2024-09-04T16:34:55+00:00
fixup! Bug 3455: Add DomainIsolator, for isolating circuit by domain.
Bug 43114: Fix first party detection for reader view on Android
- - - - -
1 changed file:
- toolkit/components/tor-launcher/TorDomainIsolator.sys.mjs
Changes:
=====================================
toolkit/components/tor-launcher/TorDomainIsolator.sys.mjs
=====================================
@@ -315,17 +315,23 @@ class TorDomainIsolatorImpl {
const channel = aChannel.QueryInterface(Ci.nsIChannel);
let firstPartyDomain = channel.loadInfo.originAttributes.firstPartyDomain;
const userContextId = channel.loadInfo.originAttributes.userContextId;
- const loadingPrincipalURI = channel.loadInfo.loadingPrincipal?.URI;
- if (loadingPrincipalURI?.spec.startsWith("about:reader")) {
+ const scheme = channel.loadInfo.loadingPrincipal?.URI?.scheme;
+ const filePath = channel.loadInfo.loadingPrincipal?.URI?.filePath;
+ if (
+ (scheme === "about" && filePath === "reader") ||
+ (scheme === "moz-extension" && filePath === "/readerview.html")
+ ) {
try {
- const searchParams = new URLSearchParams(loadingPrincipalURI.query);
+ const searchParams = new URLSearchParams(
+ channel.loadInfo.loadingPrincipal.URI.query
+ );
if (searchParams.has("url")) {
firstPartyDomain = Services.eTLD.getSchemelessSite(
Services.io.newURI(searchParams.get("url"))
);
}
} catch (e) {
- logger.error("Failed to get first party domain for about:reader", e);
+ logger.error("Failed to get first party domain for reader view", e);
}
}
if (!firstPartyDomain) {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/bc937da…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/bc937da…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
fc975b82 by Pier Angelo Vendrame at 2024-09-04T16:18:25+00:00
Bug 42773: Replace ~ with the original home.
In Bug 93141, Mozilla started sending users to their home when they type
~ in the URL bar.
On Linux, we change $HOME for various reason, therefore you would be
redirected to the spoofed home directory when typing ~.
So, we check if the original home directory is known, and use that,
instead.
- - - - -
1 changed file:
- docshell/base/URIFixup.sys.mjs
Changes:
=====================================
docshell/base/URIFixup.sys.mjs
=====================================
@@ -934,6 +934,10 @@ function fileURIFixup(uriString) {
} else {
// UNIX: Check if it starts with "/" or "~".
attemptFixup = /^[~/]/.test(uriString);
+ const originalHome = Services.env.get("BB_ORIGINAL_HOME");
+ if (originalHome && (uriString === "~" || uriString.startsWith("~/"))) {
+ path = originalHome + path.substring(1);
+ }
}
if (attemptFixup) {
try {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/fc9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/fc9…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
24d6492f by Pier Angelo Vendrame at 2024-09-04T16:15:43+00:00
Bug 42773: Replace ~ with the original home.
In Bug 93141, Mozilla started sending users to their home when they type
~ in the URL bar.
On Linux, we change $HOME for various reason, therefore you would be
redirected to the spoofed home directory when typing ~.
So, we check if the original home directory is known, and use that,
instead.
- - - - -
1 changed file:
- docshell/base/URIFixup.sys.mjs
Changes:
=====================================
docshell/base/URIFixup.sys.mjs
=====================================
@@ -934,6 +934,10 @@ function fileURIFixup(uriString) {
} else {
// UNIX: Check if it starts with "/" or "~".
attemptFixup = /^[~/]/.test(uriString);
+ const originalHome = Services.env.get("BB_ORIGINAL_HOME");
+ if (originalHome && (uriString === "~" || uriString.startsWith("~/"))) {
+ path = originalHome + path.substring(1);
+ }
}
if (attemptFixup) {
try {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/24d6492…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/24d6492…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
0aacf3d5 by Pier Angelo Vendrame at 2024-09-04T16:11:17+00:00
Bug 42773: Replace ~ with the original home.
In Bug 93141, Mozilla started sending users to their home when they type
~ in the URL bar.
On Linux, we change $HOME for various reason, therefore you would be
redirected to the spoofed home directory when typing ~.
So, we check if the original home directory is known, and use that,
instead.
- - - - -
1 changed file:
- docshell/base/URIFixup.sys.mjs
Changes:
=====================================
docshell/base/URIFixup.sys.mjs
=====================================
@@ -934,6 +934,10 @@ function fileURIFixup(uriString) {
} else {
// UNIX: Check if it starts with "/" or "~".
attemptFixup = /^[~/]/.test(uriString);
+ const originalHome = Services.env.get("BB_ORIGINAL_HOME");
+ if (originalHome && (uriString === "~" || uriString.startsWith("~/"))) {
+ path = originalHome + path.substring(1);
+ }
}
if (attemptFixup) {
try {
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/0aacf3d…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/0aacf3d…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch mullvad-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Mullvad Browser
Commits:
83c3b0d4 by Morgan at 2024-09-04T16:06:38+00:00
fixup! Firefox preference overrides.
Bug 41309: Re-enable screenshots component
- - - - -
1 changed file:
- browser/app/profile/001-base-profile.js
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -290,9 +290,6 @@ pref("cookiebanners.ui.desktop.enabled", false);
// Disable moreFromMozilla pane in the preferences/settings (tor-browser#41292).
pref("browser.preferences.moreFromMozilla", false);
-// Disable the screenshot menu when right-clicking (Bug #40912 and #40007)
-pref("extensions.screenshots.disabled", true);
-
// Disable webcompat reporter
pref("extensions.webcompat-reporter.enabled", false);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/83c…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/83c…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch base-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
0ad10ba1 by Morgan at 2024-09-04T16:05:25+00:00
fixup! Firefox preference overrides.
Bug 41309: Re-enable screenshots component
- - - - -
1 changed file:
- browser/app/profile/001-base-profile.js
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -290,9 +290,6 @@ pref("cookiebanners.ui.desktop.enabled", false);
// Disable moreFromMozilla pane in the preferences/settings (tor-browser#41292).
pref("browser.preferences.moreFromMozilla", false);
-// Disable the screenshot menu when right-clicking (Bug #40912 and #40007)
-pref("extensions.screenshots.disabled", true);
-
// Disable webcompat reporter
pref("extensions.webcompat-reporter.enabled", false);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/0ad10ba…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/0ad10ba…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch tor-browser-128.2.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
8dfd5e28 by Morgan at 2024-09-04T15:58:04+00:00
fixup! Firefox preference overrides.
Bug 41309: Re-enable screenshots component
- - - - -
1 changed file:
- browser/app/profile/001-base-profile.js
Changes:
=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -290,9 +290,6 @@ pref("cookiebanners.ui.desktop.enabled", false);
// Disable moreFromMozilla pane in the preferences/settings (tor-browser#41292).
pref("browser.preferences.moreFromMozilla", false);
-// Disable the screenshot menu when right-clicking (Bug #40912 and #40007)
-pref("extensions.screenshots.disabled", true);
-
// Disable webcompat reporter
pref("extensions.webcompat-reporter.enabled", false);
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8dfd5e2…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8dfd5e2…
You're receiving this email because of your account on gitlab.torproject.org.