Bug 1457021 - Fix a mangled message ID order in a Preferences::Permissions JS dialog. r?gijs draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Fri, 27 Apr 2018 15:38:22 -0700
changeset 793214 77a286768b7f
parent 793213 1d73e7eb2647
child 793215 762a89c240aa
push id109319
push userbmo:gandalf@aviary.pl
push dateWed, 09 May 2018 19:05:09 +0000
reviewersgijs
bugs1457021
milestone62.0a1
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