Bug 1453486 - Fix Fluent API use when building a dialog to disable containers. r=Gijs a=jcristau
authorZibi Braniecki <zbraniecki@mozilla.com>
Wed, 11 Apr 2018 15:41:30 -0700
changeset 463283 1210b05b97b0155850741ec4f4e8f4f19269827a
parent 463282 9f6f88626ac485719aa63e9a6b399c4a4991b5b2
child 463284 7a38d42b6b698866536c78284ff18a64f09be3fc
push id1683
push usersfraser@mozilla.com
push dateThu, 26 Apr 2018 16:43:40 +0000
treeherdermozilla-release@5af6cb21869d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, jcristau
bugs1453486
milestone60.0
Bug 1453486 - Fix Fluent API use when building a dialog to disable containers. r=Gijs a=jcristau MozReview-Commit-ID: Kfs13ugmvNr
browser/components/preferences/in-content/main.js
--- a/browser/components/preferences/in-content/main.js
+++ b/browser/components/preferences/in-content/main.js
@@ -1152,23 +1152,21 @@ var gMainPane = {
     if (count == 0) {
       Services.prefs.setBoolPref("privacy.userContext.enabled", false);
       return;
     }
 
     let [
       title, message, okButton, cancelButton
     ] = await document.l10n.formatValues([
-      "containers-disable-alert-title",
-      "containers-disable-alert-desc",
-      "containers-disable-alert-ok-button",
-      "containers-disable-alert-cancel-button"
-    ], {
-      tabCount: count
-    });
+      ["containers-disable-alert-title"],
+      ["containers-disable-alert-desc", { tabCount: count }],
+      ["containers-disable-alert-ok-button", { tabCount: count }],
+      ["containers-disable-alert-cancel-button"]
+    ]);
 
     let buttonFlags = (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_0) +
       (Ci.nsIPrompt.BUTTON_TITLE_IS_STRING * Ci.nsIPrompt.BUTTON_POS_1);
 
     let rv = Services.prompt.confirmEx(window, title, message, buttonFlags,
       okButton, cancelButton, null, null, {});
     if (rv == 0) {
       Services.prefs.setBoolPref("privacy.userContext.enabled", false);