summaryrefslogtreecommitdiff
path: root/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch
blob: 451054a56c0b8f2cb00ea7967cb9f9934f590c49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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