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 Bug 1382092 - Mochitest for supporting default payment UI in DOM code. r=baku 2017-07-24 17:18:27 +08:00
ConstructorChromeScript.js Bug 1398991 - Mochitest for spec change on PaymentRequest.shippingOption. r=baku 2017-09-15 14:20:05 +08:00
CurrencyAmountValidationChromeScript.js Bug 1388661 - Mochitest for PaymentRequest API currency amount validation. r=baku 2017-09-06 14:38:33 +08:00
GeneralChromeScript.js Bug 1382092 - Mochitest for supporting default payment UI in DOM code. r=baku 2017-07-24 17:18:27 +08:00
PMIValidationChromeScript.js Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
ShowPaymentChromeScript.js Bug 1388661 - Mochitest for PaymentRequest API currency amount validation. r=baku 2017-09-06 14:38:33 +08:00
browser.ini Bug 1383293 - Mochitest for testing the new readonly attribute topLevelPrincipal in nsIPaymentRequest. r=baku 2017-08-23 15:23:18 +08:00
browser_payment_in_different_tabs.js Bug 1374282 - script generated patch to remove Task.jsm calls, r=Mossop. 2017-06-22 12:51:42 +02:00
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
head.js Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
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
simple_payment_request.html Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
test_abortPayment.html Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
test_basiccard.html Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
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 Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
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 Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
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 Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00
test_showPayment.html Bug 1389418 - Mochitest for payment method identifier validation support in PaymentRequest API. r=baku 2017-09-11 11:10:10 +08:00