[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][base-browser-102.7.0esr-12.5-1] fixup! Bug 18905: Hide unwanted items from help menu



Title: GitLab

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:

Changes:

  • browser/base/content/browser-safebrowsing.js
    ... ... @@ -7,9 +7,12 @@
    7 7
     
    
    8 8
     var gSafeBrowsing = {
    
    9 9
       setReportPhishingMenu() {
    
    10
    -    // tor-browser#18905: disable these menu entries
    
    11
    -    /* eslint-disable no-unreachable */
    
    12
    -    return;
    
    10
    +    // tor-browser#18905: hide these menu entries
    
    11
    +    if (
    
    12
    +      !Services.prefs.getBoolPref("browser.safebrowsing.phishing.enabled", true)
    
    13
    +    ) {
    
    14
    +      return;
    
    15
    +    }
    
    13 16
     
    
    14 17
         // In order to detect whether or not we're at the phishing warning
    
    15 18
         // page, we have to check the documentURI instead of the currentURI.
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits