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 417619 34bc72be5d28
parent 417618 3beeaf20f46a
child 417620 af2f85201ec2
push id63776
push userzbraniecki@mozilla.com
push dateWed, 09 May 2018 20:03:09 +0000
treeherderautoland@af2f85201ec2 [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