tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 554bf7f7d2ee2cc8f335353833d879de2b3d55fc
parent c52fb22b4ba7996de0445d2ccdab2c6b6ad466cf
Author: Tim Huang <tihuang@mozilla.com>
Date:   Thu, 16 Oct 2025 21:38:56 +0000

Bug 1992978 - Add download protection lists to google5 provider. r=dimi

Differential Revision: https://phabricator.services.mozilla.com/D268697

Diffstat:
Mmodules/libpref/init/all.js | 2+-
Mtoolkit/components/url-classifier/nsUrlClassifierUtils.cpp | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js @@ -3410,7 +3410,7 @@ pref("browser.safebrowsing.provider.google5.enabled", true); #else pref("browser.safebrowsing.provider.google5.enabled", false); #endif -pref("browser.safebrowsing.provider.google5.lists", "goog-phish-proto,googpub-phish-proto,goog-malware-proto,goog-unwanted-proto,goog-harmful-proto"); +pref("browser.safebrowsing.provider.google5.lists", "goog-badbinurl-proto,goog-downloadwhite-proto,goog-phish-proto,googpub-phish-proto,goog-malware-proto,goog-unwanted-proto,goog-harmful-proto"); pref("browser.safebrowsing.provider.google5.updateURL", "https://safebrowsing.googleapis.com/v5/hashLists:batchGet?key=%GOOGLE_SAFEBROWSING_API_KEY%"); pref("browser.safebrowsing.provider.google5.gethashURL", "https://safebrowsing.googleapis.com/v5/hashes:search?key=%GOOGLE_SAFEBROWSING_API_KEY%"); pref("browser.safebrowsing.provider.google5.reportURL", "https://safebrowsing.google.com/safebrowsing/diagnostic?site="); diff --git a/toolkit/components/url-classifier/nsUrlClassifierUtils.cpp b/toolkit/components/url-classifier/nsUrlClassifierUtils.cpp @@ -361,6 +361,8 @@ static const struct { {"goog-unwanted-proto", "uwsa-4b"}, #endif {"goog-harmful-proto", "pha-4b"}, + {"goog-badbinurl-proto", "mwb-4b"}, + {"goog-downloadwhite-proto", "csdda-32b"}, {"test-google5-malware-proto", "test-4b"}, };