mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +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. |
||
---|---|---|
.. | ||
BasiccardChromeScript.js | ||
browser_payment_in_different_tabs.js | ||
browser.ini | ||
ConstructorChromeScript.js | ||
CurrencyAmountValidationChromeScript.js | ||
echo_payment_request.html | ||
GeneralChromeScript.js | ||
head.js | ||
mochitest.ini | ||
PMIValidationChromeScript.js | ||
ShowPaymentChromeScript.js | ||
simple_payment_request.html | ||
test_abortPayment.html | ||
test_basiccard.html | ||
test_block_none10s.html | ||
test_canMakePayment.html | ||
test_constructor.html | ||
test_currency_amount_validation.html | ||
test_payment-request-in-iframe.html | ||
test_pmi_validation.html | ||
test_showPayment.html |