Bug 1463684 - Specify UTF-8 charset for policy search engines. r=Felipe, a=pascalc
authorMichael Kaply <mozilla@kaply.com>
Wed, 10 Oct 2018 22:38:12 +0000
changeset 490270 dc0694bc87c1
parent 490269 f439e5f9e3d3
child 490271 818b81b2177e
push id9970
push userryanvm@gmail.com
push date2018-10-11 18:08 +0000
treeherdermozilla-beta@491779804da9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersFelipe, pascalc
bugs1463684
milestone63.0
Bug 1463684 - Specify UTF-8 charset for policy search engines. r=Felipe, a=pascalc 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
@@ -732,16 +732,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);
               }
             }