зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1500741 - Support encoding for WebExtension engines. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D10941 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
666f758a38
Коммит
3a96af1460
|
@ -101,6 +101,11 @@
|
|||
"optional": true,
|
||||
"deprecated": "Unsupported on Firefox."
|
||||
},
|
||||
"encoding": {
|
||||
"type": "string",
|
||||
"optional": true,
|
||||
"description": "Encoding of the search term."
|
||||
},
|
||||
"is_default": {
|
||||
"type": "boolean",
|
||||
"optional": true,
|
||||
|
|
|
@ -4004,7 +4004,7 @@ SearchService.prototype = {
|
|||
isBuiltIn: extension.isPrivileged,
|
||||
suggestURL: searchProvider.suggest_url,
|
||||
suggestPostParams: searchProvider.suggest_url_post_params,
|
||||
queryCharset: "UTF-8",
|
||||
queryCharset: searchProvider.encoding || "UTF-8",
|
||||
mozParams: searchProvider.params,
|
||||
};
|
||||
this.addEngineWithDetails(searchProvider.name.trim(), params);
|
||||
|
|
Загрузка…
Ссылка в новой задаче