From ee6ba055873b263aa2fcb597e18e4331cb5fcb9e Mon Sep 17 00:00:00 2001 From: Stephen McGruer Date: Sat, 10 Jun 2023 10:36:53 +0000 Subject: [PATCH] Bug 1835436 [wpt PR 40256] - [PaymentRequest] Only allow show() to be called in a foreground tab, a=testonly Automatic update from web-platform-tests [PaymentRequest] Only allow show() to be called in a foreground tab (#40256) See https://github.com/w3c/payment-request/pull/1005 -- wpt-commits: ce9e78b850380c6bc782efeae6faaded29d0228e wpt-pr: 40256 --- ...-request-disallowed-when-hidden.https.html | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testing/web-platform/tests/payment-request/payment-request-disallowed-when-hidden.https.html diff --git a/testing/web-platform/tests/payment-request/payment-request-disallowed-when-hidden.https.html b/testing/web-platform/tests/payment-request/payment-request-disallowed-when-hidden.https.html new file mode 100644 index 0000000000000..aa59cde2ef0d5 --- /dev/null +++ b/testing/web-platform/tests/payment-request/payment-request-disallowed-when-hidden.https.html @@ -0,0 +1,46 @@ + + +Test for PaymentRequest.show() method - should fail when tab is not visible + + + + + + + +