Bug 1362583 - [Form Autofill] Move autofill preferences before master password ones. r=scottwu
MozReview-Commit-ID: 9sLFeAgXmpT
--- a/browser/extensions/formautofill/FormAutofillParent.jsm
+++ b/browser/extensions/formautofill/FormAutofillParent.jsm
@@ -99,17 +99,17 @@ FormAutofillParent.prototype = {
let formAutofillPreferences = new FormAutofillPreferences({useOldOrganization});
let document = subject.document;
let prefGroup = formAutofillPreferences.init(document);
let parentNode = useOldOrganization ?
document.getElementById("mainPrefPane") :
document.getElementById("passwordsGroup");
let insertBeforeNode = useOldOrganization ?
document.getElementById("locationBarGroup") :
- null;
+ document.getElementById("masterPasswordRow");
parentNode.insertBefore(prefGroup, insertBeforeNode);
break;
}
case "nsPref:changed": {
// Observe pref changes and update _enabled cache if status is changed.
let currentStatus = this._getStatus();
if (currentStatus !== this._enabled) {
--- a/browser/extensions/formautofill/FormAutofillPreferences.jsm
+++ b/browser/extensions/formautofill/FormAutofillPreferences.jsm
@@ -79,16 +79,17 @@ FormAutofillPreferences.prototype = {
formAutofillGroup.hidden = document.location.href != "about:preferences#privacy";
// Use .setAttribute because HTMLElement.dataset is not available on XUL elements
formAutofillGroup.setAttribute("data-category", "panePrivacy");
formAutofillGroup.appendChild(caption);
caption.appendChild(captionLabel);
captionLabel.textContent = this.bundle.GetStringFromName("preferenceGroupTitle");
} else {
formAutofillGroup = document.createElementNS(XUL_NS, "vbox");
+ savedProfilesBtn.className = "accessory-button";
}
this.refs = {
formAutofillGroup,
profileAutofillCheckbox,
savedProfilesBtn,
};