]>
Commit | Line | Data |
---|---|---|
9f488603 | 1 | diff -urN mozilla.orig/browser/confvars.sh mozilla/browser/confvars.sh |
0cd63e2a | 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 | |
c5b9be8b | 4 | @@ -36,8 +36,8 @@ |
395c4fe0 | 5 | # |
6 | # ***** END LICENSE BLOCK ***** | |
7 | ||
c5b9be8b AM |
8 | -MOZ_APP_BASENAME=Firefox |
9 | -MOZ_APP_VENDOR=Mozilla | |
10 | +MOZ_APP_BASENAME=Iceweasel | |
11 | +MOZ_APP_VENDOR= | |
395c4fe0 | 12 | MOZ_UPDATER=1 |
13 | MOZ_PHOENIX=1 | |
14 | ||
55f0784a JR |
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 | --- | |
87e6bff2 JR |
21 | modules/libpref/src/Makefile.in | 4 ++++ |
22 | modules/libpref/src/init/all.js | 4 ++++ | |
6b81c9be | 23 | 2 files changed, 8 insertions(+) |
55f0784a | 24 | |
87e6bff2 JR |
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) | |
55f0784a JR |
32 | |
33 | +ifdef MOZ_OFFICIAL_BRANDING | |
34 | +DEFINES += -DMOZ_OFFICIAL_BRANDING | |
35 | +endif | |
36 | + | |
87e6bff2 | 37 | include $(topsrcdir)/config/rules.mk |
6b81c9be | 38 | |
87e6bff2 JR |
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 | |
a1c18581 | 44 | @@ -4432,7 +4432,11 @@ pref("dom.inter-app-communication-api.en |
55f0784a | 45 | |
87e6bff2 | 46 | // The tables used for Safebrowsing phishing and malware checks. |
a1c18581 | 47 | pref("urlclassifier.malware_table", "goog-malware-shavar,test-malware-simple"); |
55f0784a | 48 | +#ifdef MOZ_OFFICIAL_BRANDING |
a1c18581 | 49 | pref("urlclassifier.phish_table", "goog-phish-shavar,test-phish-simple"); |
55f0784a | 50 | +#else |
a1c18581 | 51 | +pref("urlclassifier.phish_table", "googpub-phish-shavar,test-phish-simple"); |
55f0784a | 52 | +#endif |
a1c18581 AM |
53 | pref("urlclassifier.downloadBlockTable", ""); |
54 | pref("urlclassifier.downloadAllowTable", ""); | |
55 | pref("urlclassifier.disallow_completions", "test-malware-simple,test-phish-simple,goog-downloadwhite-digest256"); | |
55f0784a | 56 | |
55f0784a JR |
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 | --- | |
6b81c9be JR |
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(-) | |
55f0784a JR |
66 | |
67 | diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in | |
87e6bff2 | 68 | index 9b6fdee..e254d99 100644 |
55f0784a JR |
69 | --- a/browser/locales/Makefile.in |
70 | +++ b/browser/locales/Makefile.in | |
87e6bff2 | 71 | @@ -79,6 +79,8 @@ SEARCHPLUGINS_PATH := $(FINAL_TARGET)/searchplugins |
6b81c9be JR |
72 | SEARCHPLUGINS := $(addsuffix .xml,$(SEARCHPLUGINS_NAMES)) |
73 | PP_TARGETS += SEARCHPLUGINS | |
55f0784a | 74 | |
6b81c9be JR |
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 | |
55f0784a | 80 | diff --git a/browser/locales/en-US/searchplugins/answers.xml b/browser/locales/en-US/searchplugins/answers.xml |
6b81c9be | 81 | index f131ea6..357d42e 100644 |
55f0784a JR |
82 | --- a/browser/locales/en-US/searchplugins/answers.xml |
83 | +++ b/browser/locales/en-US/searchplugins/answers.xml | |
6b81c9be | 84 | @@ -12,6 +12,6 @@ |
55f0784a JR |
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&client=firefox&s={searchTerms}"/> | |
89 | +#expand template="http://www.answers.com/main/startswith?output=json&client=__MOZ_APP_NAME__&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 | |
87e6bff2 | 93 | index 668643f..cd56936 100644 |
55f0784a JR |
94 | --- a/browser/locales/en-US/searchplugins/google.xml |
95 | +++ b/browser/locales/en-US/searchplugins/google.xml | |
6b81c9be | 96 | @@ -2,6 +2,7 @@ |
09927094 JR |
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 | ||
55f0784a | 100 | +#filter substitution |
6b81c9be JR |
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}"/> | |
55f0784a JR |
108 | +#if MOZ_APP_NAME==firefox |
109 | #if MOZ_UPDATE_CHANNEL == beta | |
6b81c9be | 110 | <MozParam name="client" condition="defaultEngine" trueValue="firefox-beta" falseValue="firefox"/> |
55f0784a | 111 | #elif MOZ_UPDATE_CHANNEL == aurora |
6b81c9be | 112 | @@ -23,6 +25,9 @@ |
55f0784a | 113 | #else |
6b81c9be | 114 | <MozParam name="client" condition="defaultEngine" trueValue="firefox-a" falseValue="firefox"/> |
55f0784a JR |
115 | #endif |
116 | +#else | |
6b81c9be | 117 | + <MozParam name="client" condition="defaultEngine" trueValue="@MOZ_APP_NAME@-a" falseValue="@MOZ_APP_NAME@"/> |
55f0784a | 118 | +#endif |
6b81c9be JR |
119 | <MozParam name="channel" condition="purpose" purpose="contextmenu" value="rcs"/> |
120 | <MozParam name="channel" condition="purpose" purpose="keyword" value="fflb"/> | |
87e6bff2 | 121 | <MozParam name="channel" condition="purpose" purpose="searchbar" value="sb"/> |
55f0784a JR |
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 | --- | |
6b81c9be JR |
127 | browser/locales/Makefile.in | 2 ++ |
128 | .../en-US/chrome/overrides/appstrings.properties | 20 ++++++++++---------- | |
55f0784a JR |
129 | 2 files changed, 12 insertions(+), 10 deletions(-) |
130 | ||
131 | diff --git a/browser/locales/Makefile.in b/browser/locales/Makefile.in | |
87e6bff2 | 132 | index 570485b..9b6fdee 100644 |
55f0784a JR |
133 | --- a/browser/locales/Makefile.in |
134 | +++ b/browser/locales/Makefile.in | |
87e6bff2 | 135 | @@ -29,6 +29,8 @@ SUBMAKEFILES += \ |
55f0784a JR |
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 | |
6b81c9be | 145 | index 1de0093..8c77825 100644 |
55f0784a JR |
146 | --- a/browser/locales/en-US/chrome/overrides/appstrings.properties |
147 | +++ b/browser/locales/en-US/chrome/overrides/appstrings.properties | |
6b81c9be JR |
148 | @@ -3,24 +3,24 @@ |
149 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
395c4fe0 | 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. | |
a1c18581 | 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. |
395c4fe0 | 155 | -connectionFailure=Firefox can't establish a connection to the server at %S. |
55f0784a JR |
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. | |
a1c18581 | 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. |
55f0784a | 159 | +#expand connectionFailure=__MOZ_APP_DISPLAYNAME__ can't establish a connection to the server at %S. |
395c4fe0 | 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. | |
55f0784a | 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. |
395c4fe0 | 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. | |
55f0784a | 168 | +#expand unknownSocketType=__MOZ_APP_DISPLAYNAME__ doesn't know how to communicate with the server. |
395c4fe0 | 169 | netReset=The connection to the server was reset while the page was loading. |
40ed26b2 | 170 | notCached=This document is no longer available. |
395c4fe0 | 171 | -netOffline=Firefox is currently in offline mode and can't browse the Web. |
55f0784a | 172 | +#expand netOffline=__MOZ_APP_DISPLAYNAME__ is currently in offline mode and can't browse the Web. |
395c4fe0 | 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. | |
55f0784a JR |
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. | |
395c4fe0 | 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 | |
a1c18581 AM |
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__. |