Bug 1457021 - Fix a mangled message ID order in a Preferences::Permissions JS dialog. r?gijs
MozReview-Commit-ID: JeAxaSTWllA
--- 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