Bug 1451685 - Pass element as the first argument to DOMLocalization.setAttributes in updateWeavePrefs. r?gijs
MozReview-Commit-ID: 9okSh01qykH
--- 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;
}