[tbb-commits] [Git][tpo/applications/tor-browser][base-browser-102.7.0esr-12.5-1] fixup! Bug 18905: Hide unwanted items from help menu
Pier Angelo Vendrame (@pierov)
git at gitlab.torproject.org
Thu Feb 2 14:27:22 UTC 2023
Pier Angelo Vendrame pushed to branch base-browser-102.7.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits:
5bece552 by Pier Angelo Vendrame at 2023-02-02T15:27:17+01:00
fixup! Bug 18905: Hide unwanted items from help menu
- - - - -
1 changed file:
- browser/base/content/browser-safebrowsing.js
Changes:
=====================================
browser/base/content/browser-safebrowsing.js
=====================================
@@ -7,9 +7,12 @@
var gSafeBrowsing = {
setReportPhishingMenu() {
- // tor-browser#18905: disable these menu entries
- /* eslint-disable no-unreachable */
- return;
+ // tor-browser#18905: hide these menu entries
+ if (
+ !Services.prefs.getBoolPref("browser.safebrowsing.phishing.enabled", true)
+ ) {
+ return;
+ }
// In order to detect whether or not we're at the phishing warning
// page, we have to check the documentURI instead of the currentURI.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5bece552327685feb9ca8bd3041532973b7185fa
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/5bece552327685feb9ca8bd3041532973b7185fa
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230202/4a0019dd/attachment.htm>
More information about the tbb-commits
mailing list