summaryrefslogtreecommitdiff
path: root/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch')
-rw-r--r--patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch b/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch
new file mode 100644
index 0000000..3fb154f
--- /dev/null
+++ b/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch
@@ -0,0 +1,37 @@
+From: Mike Hommey <mh@glandium.org>
+Date: Thu, 1 Apr 2010 15:34:59 +0200
+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 a0a9b18..6e7f443 100644
+--- a/modules/libpref/init/all.js
++++ b/modules/libpref/init/all.js
+@@ -4834,7 +4834,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
+ pref("urlclassifier.downloadBlockTable", "");
+ pref("urlclassifier.downloadAllowTable", "");
+ pref("urlclassifier.disallow_completions", "test-malware-simple,test-phish-simple,test-unwanted-simple,test-track-simple,test-trackwhite-simple,test-forbid-simple,goog-downloadwhite-digest256,mozstd-track-digest256,mozstd-trackwhite-digest256,mozfull-track-digest256");
+diff --git a/modules/libpref/moz.build b/modules/libpref/moz.build
+index 8d3a49d..702fcbf 100644
+--- a/modules/libpref/moz.build
++++ b/modules/libpref/moz.build
+@@ -49,3 +49,6 @@ if CONFIG['GNU_CXX']:
+ FINAL_TARGET_PP_FILES += [
+ 'greprefs.js',
+ ]
++
++if CONFIG['MOZ_OFFICIAL_BRANDING']:
++ DEFINES['MOZ_OFFICIAL_BRANDING'] = True