Bug 1403693 - Fix IDN conversion during theme installation. r=jwu, a=sledru
authorJan Henning <jh+bugzilla@buttercookie.de>
Wed, 27 Sep 2017 21:43:57 +0200
changeset 434374 2429ebbd68a92488797166e6e1a498f1e407a81c
parent 434373 f2db1ec2bf72db9f4d164188e6173a90412939d1
child 434375 e3eec872864d8fc717cd9dde16ae552195ae62df
push id1567
push userjlorenzo@mozilla.com
push dateThu, 02 Nov 2017 12:36:05 +0000
treeherdermozilla-release@e512c14a0406 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwu, sledru
bugs1403693
milestone57.0
Bug 1403693 - Fix IDN conversion during theme installation. r=jwu, a=sledru MozReview-Commit-ID: 9WshGSu4FQJ
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -3196,17 +3196,17 @@ var LightWeightThemeWebInstaller = {
 
     if (this._isAllowed(node)) {
       this._install(data);
       return;
     }
 
     let allowButtonText = Strings.browser.GetStringFromName("lwthemeInstallRequest.allowButton");
     let IDNService = Cc["@mozilla.org/network/idn-service;1"].getService(Ci.nsIIDNService);
-    let hostname = IDNService.convertToDisplayIDN(node.ownerDocument.location.hostname);
+    let hostname = IDNService.convertToDisplayIDN(node.ownerDocument.location.hostname, {});
     let message = Strings.browser.formatStringFromName("lwthemeInstallRequest.message", [hostname], 1);
     let buttons = [{
       label: allowButtonText,
       callback: function () {
         LightWeightThemeWebInstaller._install(data);
       },
       positive: true
     }];