Bug 1457021 - Fix a mangled message ID order in a Preferences::Permissions JS dialog. r=Gijs
authorZibi Braniecki <zbraniecki@mozilla.com>
Fri, 27 Apr 2018 15:38:22 -0700
changeset 417608 34bc72be5d28
parent 417607 3beeaf20f46a
child 417609 af2f85201ec2
push id33974
push userncsoregi@mozilla.com
push dateThu, 10 May 2018 09:47:43 +0000
treeherdermozilla-central@b52b2eb81d1e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1457021
milestone62.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 1457021 - Fix a mangled message ID order in a Preferences::Permissions JS dialog. r=Gijs MozReview-Commit-ID: JeAxaSTWllA
browser/components/preferences/permissions.js
--- a/browser/components/preferences/permissions.js
+++ b/browser/components/preferences/permissions.js
@@ -125,17 +125,17 @@ var gPermissionManager = {
         principal = Services.scriptSecurityManager.createCodebasePrincipal(uri, {});
         // If we have ended up with an unknown scheme, the following will throw.
         principal.origin;
       }
     } catch (ex) {
       document.l10n.formatValues([
         ["permissions-invalid-uri-title"],
         ["permissions-invalid-uri-label"]
-      ]).then(([message, title]) => {
+      ]).then(([title, message]) => {
         Services.prompt.alert(window, title, message);
       });
       return;
     }
 
     var capabilityString = this._getCapabilityString(aCapability);
 
     // check whether the permission already exists, if not, add it