Bug 1451685 - Pass element as the first argument to DOMLocalization.setAttributes in updateWeavePrefs. r?gijs draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Thu, 05 Apr 2018 12:56:00 +0200
changeset 777833 6b878b96f7e2ec84d8ea83993568d02a9ca9a5c9
parent 777562 071ee904485e21e19ca08456d32bce6825b77a26
push id105299
push userbmo:gandalf@aviary.pl
push dateThu, 05 Apr 2018 10:56:38 +0000
reviewersgijs
bugs1451685
milestone61.0a1
Bug 1451685 - Pass element as the first argument to DOMLocalization.setAttributes in updateWeavePrefs. r?gijs MozReview-Commit-ID: 9okSh01qykH
browser/components/preferences/in-content/sync.js
--- a/browser/components/preferences/in-content/sync.js
+++ b/browser/components/preferences/in-content/sync.js
@@ -284,17 +284,17 @@ var gSyncPane = {
     } else {
       // We must be golden (or in an error state we expect to magically
       // resolve itself)
       fxaLoginStatus.selectedIndex = FXA_LOGIN_VERIFIED;
       syncReady = true;
     }
     fxaEmailAddressLabels.forEach((label) => {
       let l10nAttrs = document.l10n.getAttributes(label);
-      document.l10n.setAttributes(l10nAttrs.id, {email: state.email});
+      document.l10n.setAttributes(label, l10nAttrs.id, {email: state.email});
     });
     document.getElementById("fxaEmailAddress").textContent = state.email;
 
     this._populateComputerName(Weave.Service.clientsEngine.localName);
     let engines = document.getElementById("fxaSyncEngines");
     for (let checkbox of engines.querySelectorAll("checkbox")) {
       checkbox.disabled = !syncReady;
     }