mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
6b14fc7125
Add a new member mAllowPaymentRequest on nsIDocument and following related methods, bool AllowPaymentRequest() const void SetAllowPaymentRequest(bool aAllowPaymentRequest) mAllowPaymentRequest is used to check if PaymentRequest is allowed to use on the document. According to the spec https://html.spec.whatwg.org/multipage/iframe-embed-object.html#allowed-to-use the mAllowPaymentRequest should be true under following situations 1. The document is the top level content document. 2. The document is the same origin with its parent document and its parent document's mAllowPaymentRequest is true. 3. The document is different origin with its parent document but its parent node is an iframe with allowpaymentrequest flag and the parent document's mAllowPaymentRquest is true. This patch also include following mochitests 1. test for allowpaymentrequest flag changing. The flag change effect should not be applied to the document immediately, it should be updated while the browsing context is updated. 2. test for effect propagation in the nested iframe. |
||
---|---|---|
.. | ||
ipc | ||
test | ||
BasicCardPayment.cpp | ||
BasicCardPayment.h | ||
moz.build | ||
PaymentActionRequest.cpp | ||
PaymentActionRequest.h | ||
PaymentActionResponse.cpp | ||
PaymentActionResponse.h | ||
PaymentAddress.cpp | ||
PaymentAddress.h | ||
PaymentRequest.cpp | ||
PaymentRequest.h | ||
PaymentRequestData.cpp | ||
PaymentRequestData.h | ||
PaymentRequestManager.cpp | ||
PaymentRequestManager.h | ||
PaymentRequestModule.cpp | ||
PaymentRequestService.cpp | ||
PaymentRequestService.h | ||
PaymentRequestUpdateEvent.cpp | ||
PaymentRequestUpdateEvent.h | ||
PaymentRequestUtils.cpp | ||
PaymentRequestUtils.h | ||
PaymentResponse.cpp | ||
PaymentResponse.h |