Bug 1477102 - Add third-party payment card logos, enable their use in official, branded builds. r=MattN

Depends on D7025

Differential Revision: https://phabricator.services.mozilla.com/D7026
This commit is contained in:
Sam Foster
2018-09-28 16:53:49 +00:00
parent fef72bdc39
commit 15802ea6e0
14 changed files with 60 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ ChromeUtils.defineModuleGetter(this, "FormAutofill",
"resource://formautofill/FormAutofill.jsm");
ChromeUtils.defineModuleGetter(this, "FormAutofillUtils",
"resource://formautofill/FormAutofillUtils.jsm");
ChromeUtils.defineModuleGetter(this, "AppConstants",
"resource://gre/modules/AppConstants.jsm");
const SAVE_CREDITCARD_DEFAULT_PREF = "dom.payments.defaults.saveCreditCard";
const SAVE_ADDRESS_DEFAULT_PREF = "dom.payments.defaults.saveAddress";
@@ -105,8 +107,7 @@ let PaymentFrameScript = {
},
isOfficialBranding() {
// XXX: stub, will reflect AppConstants.MOZILLA_OFFICIAL when we have real logos
return false;
return AppConstants.MOZILLA_OFFICIAL;
},
};
waivedContent.PaymentDialogUtils = Cu.cloneInto(PaymentDialogUtils, waivedContent, {