Bug 1463684 - Specify UTF-8 charset for policy search engines. r=Felipe
authorMichael Kaply <mozilla@kaply.com>
Wed, 10 Oct 2018 22:38:12 +0000
changeset 499080 f04a49448cf522e4157ef2468923224b79fcdb87
parent 499079 461d609b9d2dc3c889ce68e2c7011c009c4d1fb5
child 499081 f9118ebe1bf160af3b6ddf2ffee8cdbd5b3ab5dc
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe
bugs1463684
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1463684 - Specify UTF-8 charset for policy search engines. r=Felipe Differential Revision: https://phabricator.services.mozilla.com/D8144
browser/components/enterprisepolicies/Policies.jsm
--- a/browser/components/enterprisepolicies/Policies.jsm
+++ b/browser/components/enterprisepolicies/Policies.jsm
@@ -739,16 +739,17 @@ var Policies = {
               let newEngineParameters = {
                 template:    newEngine.URLTemplate,
                 iconURL:     newEngine.IconURL ? newEngine.IconURL.href : null,
                 alias:       newEngine.Alias,
                 description: newEngine.Description,
                 method:      newEngine.Method,
                 suggestURL:  newEngine.SuggestURLTemplate,
                 extensionID: "set-via-policy",
+                queryCharset: "UTF-8",
               };
               try {
                 Services.search.addEngineWithDetails(newEngine.Name,
                                                      newEngineParameters);
               } catch (ex) {
                 log.error("Unable to add search engine", ex);
               }
             }