Verified Commit 5bece552 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! Bug 18905: Hide unwanted items from help menu

parent 83880497
Loading
Loading
Loading
Loading
+5 −2
Changes for browser/base/content/browser-safebrowsing.js: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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.