mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1265742 - Update Google search plugin; r=margaret, a=lizzard
This commit is contained in:
parent
fe9f1a2d22
commit
bb7ca40347
@ -574,11 +574,15 @@ public class SearchEngineManager implements SharedPreferences.OnSharedPreference
|
||||
String identifier;
|
||||
while ((identifier = br.readLine()) != null) {
|
||||
final InputStream pluginIn = getInputStreamFromSearchPluginsJar(identifier + ".xml");
|
||||
// pluginIn can be null if the xml file doesn't exist which
|
||||
// can happen with :hidden plugins
|
||||
if (pluginIn != null) {
|
||||
final SearchEngine engine = createEngineFromInputStream(identifier, pluginIn);
|
||||
if (engine != null && engine.getName().equals(name)) {
|
||||
return engine;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (IOException e) {
|
||||
Log.e(LOG_TAG, "Error creating shipped search engine from name: " + name, e);
|
||||
} finally {
|
||||
|
@ -81,6 +81,7 @@ GARBAGE += $(search-jar) $(search-jar-ts) $(search-jar-common)
|
||||
# search-jar contains a list of providers for the search plugin
|
||||
###########################################################################
|
||||
SEARCH_PLUGINS = $(shell cat $(plugin_file))
|
||||
SEARCH_PLUGINS := $(subst :hidden,,$(SEARCH_PLUGINS))
|
||||
$(call errorIfEmpty,SEARCH_PLUGINS)
|
||||
|
||||
search-jar-preqs = \
|
||||
|
16
mobile/locales/en-US/searchplugins/google-nocodes.xml
Normal file
16
mobile/locales/en-US/searchplugins/google-nocodes.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
|
||||
<ShortName>Google</ShortName>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
<Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimH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grtW07+GzZtu3RMeBOGp85HmdXNa8Mm/U3IeFKINlEjhYS/sfggvMyrP3zem/ZRLz8+Y5kw4D+MHIaUx3mtZ9fEQF2IuJuMzjHjuMKfnLWSJo58t63kKVr9PHojAp9EjQgr+BnZa3G56pbcOTcgq9uGM7djMTRlrm7QaWZO85Kbz+7xj1nkzbvvvHiIHZeO0xIDQVM926U0Y76biArnU/E37xZt+3qbx4H8sos4eM2MubmbMDZ9SaMxM2nth+DizXP9qYiiQ/QYMgzTs9dgffEBnL0dh6tVt+lWp/jb14tugjzAQUqeISMNEDAdyWOs5EFu8ihDrvBlDZBFWB5nKw90lgc6yyPNVYjjof5SxJ4MOG/8K8qYn43YKzU1NWOFDLQVfCZirwD4UqMTGfyDb10XATEn9mQA6adhM0EqAP+nxJ7gB/QlGhKUl0QrzIwxw6c5YkpsiTGxDnD/GwMDxywT49owAAAAAElFTkSuQmCC</Image>
|
||||
<Url type="application/x-suggestions+json" method="GET" template="https://www.google.com/complete/search?client=firefox&q={searchTerms}"/>
|
||||
<Url type="text/html" method="GET" template="https://www.google.com/search">
|
||||
<Param name="q" value="{searchTerms}"/>
|
||||
<Param name="ie" value="utf-8"/>
|
||||
<Param name="oe" value="utf-8"/>
|
||||
</Url>
|
||||
<SearchForm>https://www.google.com</SearchForm>
|
||||
</SearchPlugin>
|
@ -11,6 +11,7 @@
|
||||
<Param name="q" value="{searchTerms}"/>
|
||||
<Param name="ie" value="utf-8"/>
|
||||
<Param name="oe" value="utf-8"/>
|
||||
<Param name="client" value="firefox-b"/>
|
||||
</Url>
|
||||
<SearchForm>https://www.google.com</SearchForm>
|
||||
</SearchPlugin>
|
||||
|
@ -1,7 +1,8 @@
|
||||
amazondotcom
|
||||
google
|
||||
google:hidden
|
||||
twitter
|
||||
wikipedia
|
||||
yahoo
|
||||
bing
|
||||
duckduckgo
|
||||
google-nocodes
|
||||
|
Loading…
Reference in New Issue
Block a user