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
1 changed file:
Changes:
| ... | ... | @@ -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.
|