]> git.pld-linux.org Git - packages/iceweasel.git/blob - iceweasel-branding.patch
- up to 33.0
[packages/iceweasel.git] / iceweasel-branding.patch
1 diff -urN mozilla.orig/browser/confvars.sh mozilla/browser/confvars.sh
2 --- mozilla.orig/browser/confvars.sh    2010-02-04 15:47:13.000000000 +0100
3 +++ mozilla/browser/confvars.sh 2010-02-04 15:48:50.000000000 +0100
4 @@ -36,8 +36,8 @@
5  #
6  # ***** END LICENSE BLOCK *****
7  
8 -MOZ_APP_BASENAME=Firefox
9 -MOZ_APP_VENDOR=Mozilla
10 +MOZ_APP_BASENAME=Iceweasel
11 +MOZ_APP_VENDOR=
12  MOZ_UPDATER=1
13  MOZ_PHOENIX=1
14  
15 From: Mike Hommey <mh@glandium.org>
16 Date: Thu, 1 Apr 2010 15:34:59 +0200
17 Subject: Determine which phishing shavar to use depending on
18  MOZ_OFFICIAL_BRANDING
19
20 ---
21  modules/libpref/src/Makefile.in | 4 ++++
22  modules/libpref/src/init/all.js | 4 ++++
23  2 files changed, 8 insertions(+)
24
25 diff --git a/modules/libpref/src/Makefile.in b/modules/libpref/src/Makefile.in
26 index 31333bc..e833ecd 100644
27 --- a/modules/libpref/src/Makefile.in
28 +++ b/modules/libpref/src/Makefile.in
29 @@ -7,6 +7,10 @@ DEFINES += -DOS_ARCH=$(OS_ARCH) \
30             -DMOZ_WIDGET_TOOLKIT=$(MOZ_WIDGET_TOOLKIT) \
31             $(NULL)
32  
33 +ifdef MOZ_OFFICIAL_BRANDING
34 +DEFINES += -DMOZ_OFFICIAL_BRANDING
35 +endif
36 +
37  include $(topsrcdir)/config/rules.mk
38  
39  GARBAGE                += $(addprefix $(DIST)/bin/defaults/pref/, \
40 diff --git a/modules/libpref/src/init/all.js b/modules/libpref/src/init/all.js
41 index 24f1574..9c98f3e 100644
42 --- a/modules/libpref/src/init/all.js
43 +++ b/modules/libpref/src/init/all.js
44 @@ -4432,7 +4432,11 @@ pref("dom.inter-app-communication-api.en
45  
46  // The tables used for Safebrowsing phishing and malware checks.
47  pref("urlclassifier.malwareTable", "goog-malware-shavar,test-malware-simple");
48 +#ifdef MOZ_OFFICIAL_BRANDING
49  pref("urlclassifier.phishTable", "goog-phish-shavar,test-phish-simple");
50 +#else
51 +pref("urlclassifier.phishTable", "googpub-phish-shavar,test-phish-simple");
52 +#endif
53  pref("urlclassifier.downloadBlockTable", "");
54  pref("urlclassifier.downloadAllowTable", "");
55  pref("urlclassifier.disallow_completions", "test-malware-simple,test-phish-simple,goog-downloadwhite-digest256");
56  
57 From: Mike Hommey <mh@glandium.org>
58 Date: Sat, 19 Feb 2011 11:04:53 +0100
59 Subject: Modify search plugins depending on MOZ_APP_NAME
60
61 ---
62  browser/locales/Makefile.in                     | 2 ++
63  browser/locales/en-US/searchplugins/answers.xml | 2 +-
64  browser/locales/en-US/searchplugins/google.xml  | 5 +++++
65  3 files changed, 8 insertions(+), 1 deletion(-)
66
67 diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in
68 index 9b6fdee..e254d99 100644
69 --- a/browser/locales/Makefile.in
70 +++ b/browser/locales/Makefile.in
71 @@ -79,6 +79,8 @@ SEARCHPLUGINS_PATH := $(FINAL_TARGET)/searchplugins
72  SEARCHPLUGINS := $(addsuffix .xml,$(SEARCHPLUGINS_NAMES))
73  PP_TARGETS += SEARCHPLUGINS
74  
75 +DEFINES += -DMOZ_APP_NAME=$(MOZ_APP_NAME)
76 +
77  # Required for l10n.mk - defines a list of app sub dirs that should
78  # be included in langpack xpis.
79  ifdef MOZ_METRO
80 diff --git a/browser/locales/en-US/searchplugins/answers.xml b/browser/locales/en-US/searchplugins/answers.xml
81 index f131ea6..357d42e 100644
82 --- a/browser/locales/en-US/searchplugins/answers.xml
83 +++ b/browser/locales/en-US/searchplugins/answers.xml
84 @@ -12,6 +12,6 @@
85    <Param name="gwp" value="13"/>
86  </Url>
87  <Url type="application/x-suggestions+json" method="GET"
88 -     template="http://www.answers.com/main/startswith?output=json&amp;client=firefox&amp;s={searchTerms}"/>
89 +#expand     template="http://www.answers.com/main/startswith?output=json&amp;client=__MOZ_APP_NAME__&amp;s={searchTerms}"/>
90  <SearchForm>http://www.answers.com/</SearchForm>
91  </SearchPlugin>
92 diff --git a/browser/locales/en-US/searchplugins/google.xml b/browser/locales/en-US/searchplugins/google.xml
93 index 668643f..cd56936 100644
94 --- a/browser/locales/en-US/searchplugins/google.xml
95 +++ b/browser/locales/en-US/searchplugins/google.xml
96 @@ -2,6 +2,7 @@
97     - License, v. 2.0. If a copy of the MPL was not distributed with this
98     - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
99  
100 +#filter substitution
101  <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
102  <ShortName>Google</ShortName>
103  <Description>Google Search</Description>
104 @@ -14,6 +15,7 @@
105    <Param name="oe" value="utf-8"/>
106    <Param name="aq" value="t"/>
107    <Param name="rls" value="{moz:distributionID}:{moz:locale}:{moz:official}"/>
108 +#if MOZ_APP_NAME==firefox
109  #if MOZ_UPDATE_CHANNEL == beta
110    <MozParam name="client" condition="defaultEngine" trueValue="firefox-beta" falseValue="firefox"/>
111  #elif MOZ_UPDATE_CHANNEL == aurora
112 @@ -23,6 +25,9 @@
113  #else
114    <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/>
115  #endif
116 +#else
117 +  <MozParam name="client" condition="defaultEngine" trueValue="@MOZ_APP_NAME@-a" falseValue="@MOZ_APP_NAME@"/>
118 +#endif
119    <MozParam name="channel" condition="purpose" purpose="contextmenu" value="rcs"/>
120    <MozParam name="channel" condition="purpose" purpose="keyword" value="fflb"/>
121    <MozParam name="channel" condition="purpose" purpose="searchbar" value="sb"/>
122 From: Mike Hommey <mh@glandium.org>
123 Date: Sat, 19 Feb 2011 11:02:30 +0100
124 Subject: Use MOZ_APP_DISPLAYNAME to fill appstrings.properties
125
126 ---
127  browser/locales/Makefile.in                          |  2 ++
128  .../en-US/chrome/overrides/appstrings.properties     | 20 ++++++++++----------
129  2 files changed, 12 insertions(+), 10 deletions(-)
130
131 diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in
132 index 570485b..9b6fdee 100644
133 --- a/browser/locales/Makefile.in
134 +++ b/browser/locales/Makefile.in
135 @@ -29,6 +29,8 @@ SUBMAKEFILES += \
136         $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \
137         $(NULL)
138  
139 +DEFINES += -DMOZ_APP_DISPLAYNAME=$(MOZ_APP_DISPLAYNAME)
140 +
141  # This makefile uses variable overrides from the libs-% target to
142  # build non-default locales to non-default dist/ locations. Be aware!
143  
144 diff --git a/browser/locales/en-US/chrome/overrides/appstrings.properties b/browser/locales/en-US/chrome/overrides/appstrings.properties
145 index 1de0093..8c77825 100644
146 --- a/browser/locales/en-US/chrome/overrides/appstrings.properties
147 +++ b/browser/locales/en-US/chrome/overrides/appstrings.properties
148 @@ -3,24 +3,24 @@
149  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
150  
151  malformedURI=The URL is not valid and cannot be loaded.
152 -fileNotFound=Firefox can't find the file at %S.
153 -dnsNotFound=Firefox can't find the server at %S.
154 -unknownProtocolFound=Firefox doesn't know how to open this address, because one of the following protocols (%S) isn't associated with any program or is not allowed in this context.
155 -connectionFailure=Firefox can't establish a connection to the server at %S.
156 +#expand fileNotFound=__MOZ_APP_DISPLAYNAME__ can't find the file at %S.
157 +#expand dnsNotFound=__MOZ_APP_DISPLAYNAME__ can't find the server at %S.
158 +#expand unknownProtocolFound=__MOZ_APP_DISPLAYNAME__ doesn't know how to open this address, because one of the following protocols (%S) isn't associated with any program or is not allowed in this context.
159 +#expand connectionFailure=__MOZ_APP_DISPLAYNAME__ can't establish a connection to the server at %S.
160  netInterrupt=The connection to %S was interrupted while the page was loading.
161  netTimeout=The server at %S is taking too long to respond.
162 -redirectLoop=Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
163 +#expand redirectLoop=__MOZ_APP_DISPLAYNAME__ has detected that the server is redirecting the request for this address in a way that will never complete.
164  ## LOCALIZATION NOTE (confirmRepostPrompt): In this item, don't translate "%S"
165  confirmRepostPrompt=To display this page, %S must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.
166  resendButton.label=Resend
167 -unknownSocketType=Firefox doesn't know how to communicate with the server.
168 +#expand unknownSocketType=__MOZ_APP_DISPLAYNAME__ doesn't know how to communicate with the server.
169  netReset=The connection to the server was reset while the page was loading.
170  notCached=This document is no longer available.
171 -netOffline=Firefox is currently in offline mode and can't browse the Web.
172 +#expand netOffline=__MOZ_APP_DISPLAYNAME__ is currently in offline mode and can't browse the Web.
173  isprinting=The document cannot change while Printing or in Print Preview.
174 -deniedPortAccess=This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.
175 -proxyResolveFailure=Firefox is configured to use a proxy server that can't be found.
176 -proxyConnectFailure=Firefox is configured to use a proxy server that is refusing connections.
177 +#expand deniedPortAccess=This address uses a network port which is normally used for purposes other than Web browsing. __MOZ_APP_DISPLAYNAME__ has canceled the request for your protection.
178 +#expand proxyResolveFailure=__MOZ_APP_DISPLAYNAME__ is configured to use a proxy server that can't be found.
179 +#expand proxyConnectFailure=__MOZ_APP_DISPLAYNAME__ is configured to use a proxy server that is refusing connections.
180  contentEncodingError=The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
181  unsafeContentType=The page you are trying to view cannot be shown because it is contained in a file type that may not be safe to open. Please contact the website owners to inform them of this problem.
182  externalProtocolTitle=External Protocol Request
183 @@ -33,4 +33,4 @@
184  phishingBlocked=The website at %S has been reported as a web forgery designed to trick users into sharing personal or financial information.
185  cspFrameAncestorBlocked=This page has a content security policy that prevents it from being embedded in this way.
186  corruptedContentError=The page you are trying to view cannot be shown because an error in the data transmission was detected.
187 -remoteXUL=This page uses an unsupported technology that is no longer available by default in Firefox.
188 +#expand remoteXUL=This page uses an unsupported technology that is no longer available by default in __MOZ_APP_DISPLAYNAME__.
This page took 0.076764 seconds and 3 git commands to generate.