Bug 1453486 - Fix Fluent API use when building a dialog to disable containers. r?gijs draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Wed, 11 Apr 2018 15:41:30 -0700
changeset 781196 93799fc6c5015fcb31a7c055b339b3b5d066f600
parent 781042 ee1d1bf1dc8a83eec16967ddb61dd5024c8d6058
child 781197 8fe2e0962a8ac687d2b2338362af8d8a4b46e170
push id106241
push userbmo:gandalf@aviary.pl
push dateThu, 12 Apr 2018 18:29:26 +0000
reviewersgijs
bugs1453486
milestone61.0a1
Bug 1453486 - Fix Fluent API use when building a dialog to disable containers. r?gijs 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
@@ -926,23 +926,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);