summaryrefslogtreecommitdiff
path: root/patches/iceweasel-branding/Determine-which-phishing-shavar-to-use-depending-on-.patch
blob: 3fb154f3d8750c34b0b1fbd596d0d96611c45459 (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: 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