зеркало из https://github.com/mozilla/gecko-dev.git
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. |
||
---|---|---|
.. | ||
PPaymentRequest.ipdl | ||
PaymentRequestChild.cpp | ||
PaymentRequestChild.h | ||
PaymentRequestParent.cpp | ||
PaymentRequestParent.h | ||
moz.build |