Bug 1399065 - [Form Autofill] - Hide autofill doorhanger close button. r=lchang
MozReview-Commit-ID: 59UUfnkfRO
--- a/browser/extensions/formautofill/FormAutofillDoorhanger.jsm
+++ b/browser/extensions/formautofill/FormAutofillDoorhanger.jsm
@@ -62,16 +62,17 @@ const CONTENT = {
GetStringFromName("addressesSyncCheckbox") : null;
},
callback(event) {
let checked = event.target.checked;
Services.prefs.setBoolPref("services.sync.engine.addresses", checked);
log.debug("Set addresses sync to", checked);
},
},
+ hideClose: true,
},
},
update: {
notificationId: "autofill-address",
message: GetStringFromName("updateAddressMessage"),
linkMessage: GetStringFromName(autofillOptsKey),
anchor: {
id: "autofill-address-notification-icon",
@@ -86,16 +87,17 @@ const CONTENT = {
secondaryActions: [{
label: GetStringFromName("createAddressLabel"),
accessKey: "C",
callbackState: "create",
}],
options: {
persistWhileVisible: true,
popupIconURL: "chrome://formautofill/content/icon-address-update.svg",
+ hideClose: true,
},
},
creditCard: {
notificationId: "autofill-credit-card",
message: GetStringFromName("saveCreditCardMessage"),
linkMessage: GetStringFromName(autofillSecurityOptionsKey),
anchor: {
id: "autofill-credit-card-notification-icon",
@@ -114,16 +116,17 @@ const CONTENT = {
}, {
label: GetStringFromName("neverSaveCreditCardLabel"),
accessKey: "N",
callbackState: "disable",
}],
options: {
persistWhileVisible: true,
popupIconURL: "chrome://formautofill/content/icon-credit-card.svg",
+ hideClose: true,
},
},
};
let FormAutofillDoorhanger = {
/**
* Generate the main action and secondary actions from content parameters and
* promise resolve.