ma1 pushed to branch tor-browser-115.14.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
6f5ad1e3 by hackademix at 2024-08-22T00:37:28+02:00
fixup! Bug 42835: Create an actor to filter file data transfers
Bug 43064: Make file filtering more specific
- - - - -
1 changed file:
- toolkit/actors/FilesFilterChild.sys.mjs
Changes:
=====================================
toolkit/actors/FilesFilterChild.sys.mjs
=====================================
@@ -12,11 +12,14 @@ ChromeUtils.defineLazyGetter(lazy, "console", () => {
export class FilesFilterChild extends JSWindowActorChild {
handleEvent(event) {
+ if (!Services.prefs.getBoolPref("browser.filesfilter.enabled", true)) {
+ return;
+ }
// drop or paste
const { composedTarget } = event;
const dt = event.clipboardData || event.dataTransfer;
- if (dt.files.length) {
+ if ([...dt.files].some(f => f.mozFullPath)) {
if (
["HTMLInputElement", "HTMLTextAreaElement"].includes(
ChromeUtils.getClassName(composedTarget)
@@ -25,7 +28,7 @@ export class FilesFilterChild extends JSWindowActorChild {
event.preventDefault();
lazy.console.log(
`Preventing path leak on ${event.type} for ${[...dt.files]
- .map(f => f.name)
+ .map(f => `${f.name} (${f.mozFullPath})`)
.join(", ")}.`
);
}
@@ -33,7 +36,7 @@ export class FilesFilterChild extends JSWindowActorChild {
}
// "Paste Without Formatting" (ctrl+shift+V) in HTML editors coerces files into paths
- if (!(event.clipboardData && dt.getData("text"))) {
+ if (!(event.clipboardData && /[\/\\]/.test(dt.getData("text")))) {
return;
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/6f5ad1e…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/6f5ad1e…
You're receiving this email because of your account on gitlab.torproject.org.
ma1 pushed to branch base-browser-128.1.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
6abbbf97 by hackademix at 2024-08-22T00:37:03+02:00
fixup! Bug 42835: Create an actor to filter file data transfers
Bug 43064: Make file filtering more specific
- - - - -
1 changed file:
- toolkit/actors/FilesFilterChild.sys.mjs
Changes:
=====================================
toolkit/actors/FilesFilterChild.sys.mjs
=====================================
@@ -12,11 +12,14 @@ ChromeUtils.defineLazyGetter(lazy, "console", () => {
export class FilesFilterChild extends JSWindowActorChild {
handleEvent(event) {
+ if (!Services.prefs.getBoolPref("browser.filesfilter.enabled", true)) {
+ return;
+ }
// drop or paste
const { composedTarget } = event;
const dt = event.clipboardData || event.dataTransfer;
- if (dt.files.length) {
+ if ([...dt.files].some(f => f.mozFullPath)) {
if (
["HTMLInputElement", "HTMLTextAreaElement"].includes(
ChromeUtils.getClassName(composedTarget)
@@ -25,7 +28,7 @@ export class FilesFilterChild extends JSWindowActorChild {
event.preventDefault();
lazy.console.log(
`Preventing path leak on ${event.type} for ${[...dt.files]
- .map(f => f.name)
+ .map(f => `${f.name} (${f.mozFullPath})`)
.join(", ")}.`
);
}
@@ -33,7 +36,7 @@ export class FilesFilterChild extends JSWindowActorChild {
}
// "Paste Without Formatting" (ctrl+shift+V) in HTML editors coerces files into paths
- if (!(event.clipboardData && dt.getData("text"))) {
+ if (!(event.clipboardData && /[\/\\]/.test(dt.getData("text")))) {
return;
}
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/6abbbf9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/6abbbf9…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch main at The Tor Project / Applications / tor-browser-build
Commits:
9f4afa27 by Cecylia Bocovich at 2024-08-21T12:04:24-04:00
Bug 41221: Use Go build tags to reduce PT binary sizes
- - - - -
2 changed files:
- projects/conjure/build
- projects/snowflake/build
Changes:
=====================================
projects/conjure/build
=====================================
@@ -18,7 +18,7 @@ cd /var/tmp/build/[% project %]-[% c('version') %]
tar -xf $rootdir/[% c('input_files_by_name/go_vendor') %]
cd client
-go build -ldflags '-s'
+go build -ldflags '-s' -tags 'protoreflect,nacl'
cp -a client[% IF c("var/windows") %].exe[% END %] $distdir/conjure-client[% IF c("var/windows") %].exe[% END %]
cd ..
=====================================
projects/snowflake/build
=====================================
@@ -18,7 +18,7 @@ cd /var/tmp/build/[% project %]-[% c('version') %]
tar -xf $rootdir/[% c('input_files_by_name/go_vendor') %]
cd client
-go build -ldflags '-s'
+go build -ldflags '-s' -tags 'nopshufb,noasm,packetioSizeHardlimit,purego,safe,appengine,disableunsafe'
cp -a client[% IF c("var/windows") %].exe[% END %] $distdir/snowflake-client[% IF c("var/windows") %].exe[% END %]
cd ..
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9…
You're receiving this email because of your account on gitlab.torproject.org.
morgan pushed to branch tor-browser-115.14.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
f3b141db by Henry Wilkes at 2024-08-21T18:14:24+00:00
fixup! Bug 40701: Add security warning when downloading a file
Bug 42642: Focus the "Got it" button when opening the downloads panel.
This should ensure that the alert is read aloud by Orca screen reader.
- - - - -
1 changed file:
- browser/components/downloads/content/downloads.js
Changes:
=====================================
browser/components/downloads/content/downloads.js
=====================================
@@ -128,11 +128,12 @@ var DownloadsPanel = {
if (Services.prefs.getBoolPref(PREF_SHOW_DOWNLOAD_WARNING)) {
torWarningMessage.hidden = false;
} else {
- // Re-assign focus if it is about to be lost.
- if (torWarningMessage.contains(document.activeElement)) {
+ const hadFocus = torWarningMessage.contains(document.activeElement);
+ torWarningMessage.hidden = true;
+ // Re-assign focus that was lost.
+ if (hadFocus) {
this._focusPanel(true);
}
- torWarningMessage.hidden = true;
}
};
Services.prefs.addObserver(
@@ -597,6 +598,20 @@ var DownloadsPanel = {
if (this._preventFocusRing) {
focusOptions.focusVisible = false;
}
+
+ // Focus the "Got it" button if it is visible.
+ // This should ensure that the alert is read aloud by Orca when the
+ // downloads panel is opened. See tor-browser#42642.
+ const torWarningMessage = document.getElementById(
+ "downloadsPanelTorWarning"
+ );
+ if (!torWarningMessage.hidden) {
+ torWarningMessage
+ .querySelector(".downloads-tor-warning-dismiss-button")
+ .focus(focusOptions);
+ return;
+ }
+
if (DownloadsView.richListBox.itemCount > 0) {
if (DownloadsView.canChangeSelectedItem) {
DownloadsView.richListBox.selectedIndex = 0;
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/f3b141d…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/f3b141d…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-128.1.0esr-14.0-1 at The Tor Project / Applications / Tor Browser
Commits:
f650dacf by Henry Wilkes at 2024-08-21T13:41:55+01:00
fixup! Add CI for Tor Browser
Bug 42480: Add android torbrowser_strings.xml to our translation CI.
- - - - -
1 changed file:
- .gitlab/ci/update-translations.yml
Changes:
=====================================
.gitlab/ci/update-translations.yml
=====================================
@@ -26,6 +26,7 @@ combine-en-US-translations:
tor-browser:torConnect.properties
tor-browser:torlauncher.properties
base-browser:base-browser.ftl
+ fenix-torbrowserstringsxml:torbrowser_strings.xml
'
cache:
paths:
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/f650dac…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/f650dac…
You're receiving this email because of your account on gitlab.torproject.org.
Pier Angelo Vendrame pushed to branch tor-browser-115.14.0esr-13.5-1 at The Tor Project / Applications / Tor Browser
Commits:
ba841d9b by Henry Wilkes at 2024-08-21T14:24:18+01:00
TEMPORARY: Copy torbrowser_strings.xml to the 13.5 branch.
NOTE: Only needed for the `tor-browser` `13.5` branches.
Bug 42480: Make sure the torbrowser_strings.xml file is in the 13.5
branch for the tor-browser `update-translations` CI.
The file should otherwise remain unused for the 13.5 branch.
File was copied from https://gitlab.torproject.org/tpo/translation/-/blob/f27eda6d10a4585a8402c5…
- - - - -
1 changed file:
- + mobile/android/fenix/app/src/main/res/values/torbrowser_strings.xml
Changes:
=====================================
mobile/android/fenix/app/src/main/res/values/torbrowser_strings.xml
=====================================
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<resources>
+ <!-- About content. The first parameter is the name of the application. (For example: Fenix) -->
+ <string name="tor_about_content">%1$s is produced by the Tor Project, a U.S.-based 501(c)(3) nonprofit.</string>
+
+ <!-- Preference for enabling non-Private Browsing Mode-->
+ <string name="preferences_disable_normal_mode">Allow Only Private Browsing Mode</string>
+ <!-- Preference link to donate to The Tor Project-->
+ <string name="preferences_donate">Donate to The Tor Project</string>
+ <!-- Preference for allowing screenshots to be taken in the app-->
+ <string name="preferences_allow_screenshots">Allow screenshots</string>
+
+ <string name="tor_bootstrap_connect">Connect</string>
+ <string name="tor_bootstrap_connecting">Connecting</string>
+ <string name="tor_bootstrap_connecting_failed">Connecting Failed</string>
+ <string name="tor_bootstrap_quick_start_label">Quick Start</string>
+ <string name="tor_bootstrap_quick_start_disabled">Enable Quick Start to connect automatically in the future</string>
+ <string name="tor_bootstrap_quick_start_enabled">%s will connect automatically to the Tor Network in the future</string>
+ <string name="tor_bootstrap_swipe_for_logs">Swipe to the left to see Tor logs</string>
+ <string name="tor_initializing_log">Initializing Tor Log</string>
+
+ <string name="tor_onboarding_security_level">Set your Security Level</string>
+ <string name="tor_onboarding_security_level_description">Disable certain web features that can be used to attack you, and harm your security, anonymity, and privacy.</string>
+ <string name="tor_onboarding_chosen_security_level_label">Current Security Level: %s</string>
+ <string name="tor_onboarding_security_settings_button">Open Security Settings</string>
+ <string name="tor_onboarding_donate_header">Donate and keep Tor safe</string>
+ <string name="tor_onboarding_donate_description">Tor is free to use because of donations from people like you.</string>
+ <string name="tor_onboarding_donate_button">Donate Now</string>
+
+ <string name="tor_explore_privately">Explore. Privately.</string>
+
+ <string name="preferences_tor_network_settings">Tor Network</string>
+ <string name="preferences_tor_network_settings_explanation">Tor Browser routes your traffic over the Tor Network, run by thousands of volunteers around the world.</string>
+ <string name="preferences_tor_network_settings_bridge_config">Config Bridge</string>
+ <string name="preferences_tor_network_settings_bridge_config_description">Use a Bridge to connect to Tor</string>
+ <string name="preferences_tor_network_settings_bridge_config_description_builtin_transport_enabled">You’re using a built-in bridge to connect to Tor</string>
+ <string name="preferences_tor_network_settings_bridge_config_description_user_provided_enabled">You provided a bridge to connect to Tor</string>
+ <string name="preferences_tor_network_settings_bridge_config_explanation">Bridges are unlisted relays that make it more difficult to block connections to the Tor Network. Because of how certain countries try to block Tor, certain bridges work in certain countries but not others.</string>
+ <string name="preferences_tor_network_settings_bridge_config_toggle">Use a Bridge</string>
+ <string name="preferences_tor_network_settings_bridge_config_toggle_description">Config a bridge to connect to Tor</string>
+ <string name="preferences_tor_network_settings_bridge_config_builtin_bridge_obfs4">obfs4</string>
+ <string name="preferences_tor_network_settings_bridge_config_builtin_bridge_meek_azure">meek-azure</string>
+ <string name="preferences_tor_network_settings_bridge_config_builtin_bridge_snowflake">snowflake</string>
+ <string name="preferences_tor_network_settings_bridge_config_user_provided_bridge">Provide a Bridge I know</string>
+ <string name="preferences_tor_network_settings_bridge_config_user_provided_bridge_description">Enter bridge information from a trusted source</string>
+ <string name="preferences_tor_network_settings_bridge_config_current_bridge">Current Configured Bridge: %s</string>
+ <string name="tor_network_settings_bridge_not_configured">Not Configured</string>
+ <string name="preferences_tor_network_settings_status">Current Status</string>
+ <string name="preferences_tor_network_settings_tor_ready">Is Tor Ready: %s</string>
+ <string name="preferences_tor_network_settings_state">State: %s</string>
+ <string name="preferences_tor_network_settings_yes">Yes</string>
+ <string name="preferences_tor_network_settings_no">No</string>
+ <string name="preferences_tor_network_settings_disconnected">Disconnected</string>
+ <string name="preferences_tor_network_settings_connecting">Connecting</string>
+ <string name="preferences_tor_network_settings_connected">Connected</string>
+ <string name="preferences_tor_network_settings_restarting">Restarting</string>
+ <string name="preferences_tor_network_settings_bridges_enabled">Bridges are enabled: %s</string>
+
+ <!-- Preference title for security level settings -->
+ <string name="preferences_tor_security_level_settings">Security Settings</string>
+ <string name="preferences_tor_security_level_options">Security Level</string>
+
+ <!-- Description of security levels -->
+ <string name="tor_security_level_standard_option">Standard</string>
+ <string name="tor_security_level_standard_description">All Tor Browser and website features are enabled.</string>
+ <string name="tor_security_level_safer_option">Safer</string>
+ <string name="tor_security_level_safer_description">Disable website features that are often dangerous, causing some sites to lose functionality.</string>
+ <string name="tor_security_level_safest_option">Safest</string>
+ <string name="tor_security_level_safest_description">Only allow website features required for static sites and basic services. These changes affect images, media, and scripts.</string>
+
+ <!-- Spoof locale to English -->
+ <string name="tor_spoof_english">Request English versions of web pages for enhanced privacy</string>
+ <!-- Onion location -->
+ <string name="preferences_tor_prioritize_onions">Prioritize .onion sites</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_tor_connect_title">Connect to Tor</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_always_connect_automatically_toggle_description">Always connect automatically</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_configure_connection_button">Configure connection…</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_connecting_title">Establishing a connection…</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_internet_error_title">We can’t reach the internet</string>
+ <!-- Connection assist. %1$s is connection_assist_internet_error_learn_more-->
+ <string name="connection_assist_internet_error_description">This could be due to a connection issue rather than Tor being blocked. Check your internet connection, proxy, and firewall settings before trying again. %1$s</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_internet_error_learn_more">Learn more</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_internet_error_try_again">Try again</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_trying_again_waiting_title">Trying again…</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_cant_connect_to_tor_title">We can’t connect to Tor directly</string>
+ <!-- Connection assist. %1$s is connection_assist_try_a_bridge_learn_more-->
+ <string name="connection_assist_try_a_bridge_description">Try connecting via a bridge instead. By providing your location, we can look up the bridge that’s most likely to unblock the internet in your country or region. %1$s</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_unblock_the_internet_in_country_or_region">Unblock the internet in:</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_share_my_location_country_or_region">Share my location</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_try_a_bridge_button">Try a bridge</string>
+
+ <!-- Connection assist. %1$s is connection_assist_choose_a_bridge_manually_link-->
+ <string name="connection_assist_try_a_bridge_learn_more_description1">Tor Browser will need to establish a brief non-Tor connection to determine your location and look up a bridge. If you don’t want to do that, you can %1$s instead.</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_choose_a_bridge_manually_link">choose a bridge manually</string>
+ <!-- Connection assist. %s is the error code-->
+ <string name="connection_assist_try_a_bridge_learn_more_error_code">Error code: %s</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_trying_a_bridge_title">Trying a bridge…</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_location_error_title">We couldn’t find your location</string>
+ <!-- Connection assist. %1$s is connection_assist_find_bridge_location_description, %2$s is connection_assist_select_country_try_again, %3$s is connection_assist_location_error_learn_more_link-->
+ <string name="connection_assist_location_error_description" translatable="false">%1$s %2$s %3$s</string>
+ <string name="connection_assist_find_bridge_location_description">To find a bridge that can unblock your internet, we need to know where you’re connecting from.</string>
+ <string name="connection_assist_select_country_try_again">Select your country or region and try again.</string>
+ <!-- Connection assist. %1$s is connection_assist_find_bridge_location_description, %2$s is connection_assist_check_location_settings_try_again. %3$s is connection_assist_location_error_learn_more_link-->
+ <string name="connection_assist_location_error_last_try_description">%1$s %2$s %3$s</string>
+ <string name="connection_assist_check_location_settings_try_again">Please check your location settings are correct and try again.</string>
+
+ <string name="connection_assist_location_error_learn_more_link">Learn more</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_location_check_title">We’re still having trouble connecting</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_last_try_title">Trying one more time…</string>
+
+ <!-- Connection assist. -->
+ <string name="connection_assist_final_error_title">We weren’t able to connect automatically</string>
+ <!-- Connection assist. %1$s is connection_assist_final_error_troubleshoot_connection_link. %2$s is connection_assist_final_error_learn_more_link-->
+ <string name="connection_assist_final_error_description1">Despite our best efforts, we weren’t able to connect to Tor. We recommend %1$s and adding a bridge manually instead. %2$s</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_final_error_troubleshoot_connection_link">troubleshooting your connection</string>
+ <!-- Connection assist. -->
+ <string name="connection_assist_final_error_learn_more_link">Learn more</string>
+</resources>
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ba841d9…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/ba841d9…
You're receiving this email because of your account on gitlab.torproject.org.
boklm pushed to branch maint-13.5 at The Tor Project / Applications / tor-browser-build
Commits:
3f16675b by Nicolas Vigier at 2024-08-21T13:08:19+02:00
Bug 41218: Use new Tor Browser gpg subkey for signing stable releases
With #40964 we started using a new subkey for signing alpha releases.
We now start using the new subkey for signing stable releases too.
- - - - -
3 changed files:
- tools/signing/linux-signer-gpg-sign
- tools/signing/machines-setup/sudoers.d/sign-gpg
- tools/signing/wrappers/sign-gpg
Changes:
=====================================
tools/signing/linux-signer-gpg-sign
=====================================
@@ -4,8 +4,6 @@ set -e
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source "$script_dir/functions"
-test "$tbb_version_type" = "alpha" && export GPG_NEWSUBKEY=1
-
cd ~/"$SIGNING_PROJECTNAME-$tbb_version"
test -n "$GPG_PASS" || read -sp "Enter gpg passphrase: " GPG_PASS
=====================================
tools/signing/machines-setup/sudoers.d/sign-gpg
=====================================
@@ -1,2 +1,2 @@
-Defaults>signing-gpg env_keep += "SIGNING_PROJECTNAME GPG_NEWSUBKEY"
+Defaults>signing-gpg env_keep += SIGNING_PROJECTNAME
%signing ALL = (signing-gpg) NOPASSWD: /signing/tor-browser-build/tools/signing/wrappers/sign-gpg
=====================================
tools/signing/wrappers/sign-gpg
=====================================
@@ -11,6 +11,5 @@ if test $(whoami) != 'signing-gpg'; then
exit 1
fi
-gpg_subkey='0xe53d989a9e2d47bf!'
-test -n "$GPG_NEWSUBKEY" && gpg_subkey='0x157432CF78A65729!'
+gpg_subkey='0x157432CF78A65729!'
exec gpg --homedir /home/signing-gpg/.gnupg -absu "$gpg_subkey" --batch --no-tty -o- --passphrase-fd 0 -- "$1"
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/3…
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/3…
You're receiving this email because of your account on gitlab.torproject.org.