Skip to content
Snippets Groups Projects
Verified Commit 39eb835a authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Bug 18905: Hide unwanted items from help menu

parent aaa2f0dc
No related branches found
No related tags found
1 merge request!537Bug 41606: Move the changes to the hamburger menu out of the Torbutton commit
......@@ -7,9 +7,12 @@
var gSafeBrowsing = {
setReportPhishingMenu() {
// tor-browser#18905: disable these menu entries
/* eslint-disable no-unreachable */
// 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment