This is an automated email from the git hooks/post-receive script.
pierov pushed a change to branch tor-browser-102.4.0esr-12.0-1 in repository tor-browser.
from 5aff5d2b553b Bug 41371: Temporary hack to fix language selector popup position new d2946e519187 Bug 41117: using MOZ_PROXY_BYPASS_PROTECTION disable share menu on mac and windows, and restpre email link on mac new d176550c5c6e fixup! Firefox preference overrides.
The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
Summary of changes: browser/app/profile/001-base-profile.js | 3 +++ browser/base/content/browser-menubar.inc | 3 ++- browser/base/content/browser.js | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-)
This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch tor-browser-102.4.0esr-12.0-1 in repository tor-browser.
commit d2946e5191873073c74c7644ae6ef7458ae9fea7 Author: Dan Ballard dan@mindstab.net AuthorDate: Wed Oct 12 12:54:59 2022 -0700
Bug 41117: using MOZ_PROXY_BYPASS_PROTECTION disable share menu on mac and windows, and restpre email link on mac --- browser/base/content/browser-menubar.inc | 3 ++- browser/base/content/browser.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/browser/base/content/browser-menubar.inc b/browser/base/content/browser-menubar.inc index a86d5fe8b900..dad713362661 100644 --- a/browser/base/content/browser-menubar.inc +++ b/browser/base/content/browser-menubar.inc @@ -57,7 +57,8 @@ <menuitem id="menu_savePage" key="key_savePage" command="Browser:SavePage" data-l10n-id="menu-file-save-page"/> -#ifndef XP_MACOSX +# bug 41117 - don't allow sharing as there is a proxy bypass theoretical risk, so restore send link in that case +#if !defined(XP_MACOSX) || defined(MOZ_PROXY_BYPASS_PROTECTION) <menuitem id="menu_sendLink" command="Browser:SendLink" data-l10n-id="menu-file-email-link"/> #endif diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 8ed725e04b4b..24c5939750ee 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -4865,6 +4865,10 @@ let gShareUtils = { * Updates a sharing item in a given menu, creating it if necessary. */ updateShareURLMenuItem(browser, insertAfterEl) { + if (!Services.prefs.getBoolPref("browser.share_menu.allow", false)) { + return false; + } + // We only support "share URL" on macOS and on Windows 10: if ( AppConstants.platform != "macosx" &&
This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch tor-browser-102.4.0esr-12.0-1 in repository tor-browser.
commit d176550c5c6e9a3ea48ab0285f58d4f30f385bfa Author: Dan Ballard dan@mindstab.net AuthorDate: Wed Oct 26 10:01:33 2022 -0700
fixup! Firefox preference overrides.
bug 41117: disable share menu on mac and windows --- browser/app/profile/001-base-profile.js | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/browser/app/profile/001-base-profile.js b/browser/app/profile/001-base-profile.js index 3be1024d8a34..e0634b5aac6c 100644 --- a/browser/app/profile/001-base-profile.js +++ b/browser/app/profile/001-base-profile.js @@ -381,6 +381,9 @@ pref("security.certerrors.mitm.auto_enable_enterprise_roots", false); pref("gfx.offscreencanvas.domain-enabled", false); pref("gfx.offscreencanvas.domain-allowlist", "");
+// Disable share menus on Mac and Windows tor-browser#41117 +pref("browser.share_menu.allow", false, locked); + // Disable special URL bar behaviors pref("browser.urlbar.suggest.topsites", false); pref("browser.urlbar.update1.interventions", false);
tor-commits@lists.torproject.org