mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 23:12:21 +00:00
af95d86b7f
1. Create a new action response status PAYMENT_NOTSUPPORTED and get rid of unnecessary method isAccpeted() from nsIPaymentActionResponse.idl. 2. Create canMakePayment() in PaymentRequestService and run it before launching UI. If canMakePayment() returns false, send PAYMENT_NOTSUPPORTED back to content process. 3. If chrome process returns PAYMENT_NOTSUPPORTED when calling showPayment(), throw NotSupportedError DOMException to merchant side.