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" &&