gecko-dev/dom/payments/test
Eden Chuang 6b14fc7125 Bug 1403079 - Add mAllowPaymentRequest and related methods on nsIDocument to check if PaymentRequest API is allowed to use. r=smaug
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.
2017-10-19 15:56:51 +08:00
..
BasiccardChromeScript.js
browser_payment_in_different_tabs.js
browser.ini
ConstructorChromeScript.js
CurrencyAmountValidationChromeScript.js
echo_payment_request.html Bug 1403079 - Add mAllowPaymentRequest and related methods on nsIDocument to check if PaymentRequest API is allowed to use. r=smaug 2017-10-19 15:56:51 +08:00
GeneralChromeScript.js
head.js
mochitest.ini Bug 1403079 - Add mAllowPaymentRequest and related methods on nsIDocument to check if PaymentRequest API is allowed to use. r=smaug 2017-10-19 15:56:51 +08:00
PMIValidationChromeScript.js
ShowPaymentChromeScript.js
simple_payment_request.html
test_abortPayment.html
test_basiccard.html
test_block_none10s.html Bug 1408250 - Don't expose PaymentRequest API in non-e10s. r=baku 2017-10-20 00:10:25 +08:00
test_canMakePayment.html
test_constructor.html Bug 1403080 - Return null DOMString while PaymentOptions.requestShipping is false. r=baku 2017-09-28 15:20:19 +08:00
test_currency_amount_validation.html
test_payment-request-in-iframe.html Bug 1403079 - Add mAllowPaymentRequest and related methods on nsIDocument to check if PaymentRequest API is allowed to use. r=smaug 2017-10-19 15:56:51 +08:00
test_pmi_validation.html
test_showPayment.html