diff options
Diffstat (limited to 'src/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch')
-rw-r--r-- | src/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch b/src/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch new file mode 100644 index 0000000..451054a --- /dev/null +++ b/src/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch @@ -0,0 +1,37 @@ +From: André Silva <emulatorman@parabola.nu> +Date: Wed, 21 Sep 2016 23:28:27 -0300 +Subject: Determine which phishing shavar to use depending on + MOZ_OFFICIAL_BRANDING + +--- + modules/libpref/init/all.js | 4 ++++ + modules/libpref/moz.build | 3 +++ + 2 files changed, 7 insertions(+) + +diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js +index 284f464..3fbd83b 100644 +--- a/modules/libpref/init/all.js ++++ b/modules/libpref/init/all.js +@@ -5028,7 +5028,11 @@ pref("dom.mapped_arraybuffer.enabled", false); + + // The tables used for Safebrowsing phishing and malware checks. + pref("urlclassifier.malwareTable", "goog-malware-shavar,goog-unwanted-shavar,test-malware-simple,test-unwanted-simple"); ++#ifdef MOZ_OFFICIAL_BRANDING + pref("urlclassifier.phishTable", "goog-phish-shavar,test-phish-simple"); ++#else ++pref("urlclassifier.phishTable", "googpub-phish-shavar,test-phish-simple"); ++#endif + + // Tables for application reputation. + pref("urlclassifier.downloadBlockTable", "goog-badbinurl-shavar"); +diff --git a/modules/libpref/moz.build b/modules/libpref/moz.build +index 650d1a8..2db2fdb 100644 +--- a/modules/libpref/moz.build ++++ b/modules/libpref/moz.build +@@ -46,3 +46,6 @@ DEFINES['MOZ_WIDGET_TOOLKIT'] = CONFIG['MOZ_WIDGET_TOOLKIT'] + FINAL_TARGET_PP_FILES += [ + 'greprefs.js', + ] ++ ++if CONFIG['MOZ_OFFICIAL_BRANDING']: ++ DEFINES['MOZ_OFFICIAL_BRANDING'] = True |