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 77a286768b7f2a4e534a7e78dfc4eaf3342b743b
parent 793213 1d73e7eb2647bf912dfd0c59868895b417d9a457
child 793215 762a89c240aa9533f822633cdb85509deea32e09
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