summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/secure-payment-confirmation
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/meta/secure-payment-confirmation
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/secure-payment-confirmation')
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-accepted.https.html.ini3
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-cannot-bypass-spc.https.html.ini3
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-cross-origin.sub.https.html.ini3
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-icon-data-url.https.html.ini3
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-in-iframe.sub.https.html.ini8
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-invalid-icon.https.html.ini8
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-optout.https.html.ini5
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-rejected.https.html.ini5
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/authentication-requires-user-activation.https.html.ini3
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/constructor-validate-payment-method-data.https.html.ini53
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/constructor.https.html.ini32
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/enrollment-in-iframe.sub.https.html.ini11
-rw-r--r--testing/web-platform/meta/secure-payment-confirmation/enrollment.https.html.ini60
13 files changed, 197 insertions, 0 deletions
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-accepted.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-accepted.https.html.ini
new file mode 100644
index 0000000000..92eb2958ab
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-accepted.https.html.ini
@@ -0,0 +1,3 @@
+[authentication-accepted.https.html]
+ [Successful SPC authentication]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-cannot-bypass-spc.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-cannot-bypass-spc.https.html.ini
new file mode 100644
index 0000000000..214a206c1b
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-cannot-bypass-spc.https.html.ini
@@ -0,0 +1,3 @@
+[authentication-cannot-bypass-spc.https.html]
+ [Cannot bypass SPC authentication UI via navigator.credentials.get]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-cross-origin.sub.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-cross-origin.sub.https.html.ini
new file mode 100644
index 0000000000..a70bcae0a4
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-cross-origin.sub.https.html.ini
@@ -0,0 +1,3 @@
+[authentication-cross-origin.sub.https.html]
+ [Cross-origin SPC authentication ceremony]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-icon-data-url.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-icon-data-url.https.html.ini
new file mode 100644
index 0000000000..411abd8b2f
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-icon-data-url.https.html.ini
@@ -0,0 +1,3 @@
+[authentication-icon-data-url.https.html]
+ [SPC authentication with data URL instrument icon]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-in-iframe.sub.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-in-iframe.sub.https.html.ini
new file mode 100644
index 0000000000..c90c84974e
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-in-iframe.sub.https.html.ini
@@ -0,0 +1,8 @@
+[authentication-in-iframe.sub.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [SPC authentication ceremony in cross-origin iframe]
+ expected: FAIL
+
+ [SPC authentication ceremony in cross-origin iframe without payment permission]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-invalid-icon.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-invalid-icon.https.html.ini
new file mode 100644
index 0000000000..977e2b1887
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-invalid-icon.https.html.ini
@@ -0,0 +1,8 @@
+[authentication-invalid-icon.https.html]
+ expected:
+ if (os == "android") and fission: [TIMEOUT, OK]
+ [SPC authentication with an invalid icon]
+ expected: FAIL
+
+ [SPC authentication allowing an invalid icon with iconMustBeShown option.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-optout.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-optout.https.html.ini
new file mode 100644
index 0000000000..d8d8cd9e89
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-optout.https.html.ini
@@ -0,0 +1,5 @@
+[authentication-optout.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [SPC opt-out returns OptOutError]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-rejected.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-rejected.https.html.ini
new file mode 100644
index 0000000000..828dea8cfd
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-rejected.https.html.ini
@@ -0,0 +1,5 @@
+[authentication-rejected.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Rejected SPC authentication]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/authentication-requires-user-activation.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/authentication-requires-user-activation.https.html.ini
new file mode 100644
index 0000000000..e5e61b4f93
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/authentication-requires-user-activation.https.html.ini
@@ -0,0 +1,3 @@
+[authentication-requires-user-activation.https.html]
+ [SPC authentication not allowed without a user activation]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/constructor-validate-payment-method-data.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/constructor-validate-payment-method-data.https.html.ini
new file mode 100644
index 0000000000..278a53eaac
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/constructor-validate-payment-method-data.https.html.ini
@@ -0,0 +1,53 @@
+[constructor-validate-payment-method-data.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Empty credentialIds field throws exception.]
+ expected: FAIL
+
+ [Empty ID within credentialIds field throws exception.]
+ expected: FAIL
+
+ [Multiple IDs in credentialIds is valid.]
+ expected: FAIL
+
+ [Large credentialIds value throws exception.]
+ expected: FAIL
+
+ [Null challenge field throws exception.]
+ expected: FAIL
+
+ [Empty challenge field throws exception.]
+ expected: FAIL
+
+ [Large challenge value throws exception.]
+ expected: FAIL
+
+ [Empty instrument.displayName field throws exception.]
+ expected: FAIL
+
+ [Empty instrument.icon field throws exception.]
+ expected: FAIL
+
+ [Invalid instrument.icon URL throws exception.]
+ expected: FAIL
+
+ [Invalid rpId field throws exception.]
+ expected: FAIL
+
+ [Omitting both payee origin and payee name throws exception.]
+ expected: FAIL
+
+ [Payee name without payee origin is valid.]
+ expected: FAIL
+
+ [Providing both payee name and payee origin is valid.]
+ expected: FAIL
+
+ [Empty payee name throws exception.]
+ expected: FAIL
+
+ [Empty payee origin throws exception.]
+ expected: FAIL
+
+ [Non-HTTPS payee origin throws exception.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/constructor.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/constructor.https.html.ini
new file mode 100644
index 0000000000..59e9eb0639
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/constructor.https.html.ini
@@ -0,0 +1,32 @@
+[constructor.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Valid payment method data does not throw exceptions.]
+ expected: FAIL
+
+ [The timeout field is optional.]
+ expected: FAIL
+
+ [Extra payment method not allowed afterward.]
+ expected: FAIL
+
+ [Extra payment method not allowed beforehand.]
+ expected: FAIL
+
+ [The credentialIds field is required.]
+ expected: FAIL
+
+ [The challenge field is required.]
+ expected: FAIL
+
+ [Instrument field is required.]
+ expected: FAIL
+
+ [Instrument display name is required.]
+ expected: FAIL
+
+ [Instrument icon is required.]
+ expected: FAIL
+
+ [rpId is required.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/enrollment-in-iframe.sub.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/enrollment-in-iframe.sub.https.html.ini
new file mode 100644
index 0000000000..15aa6f665b
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/enrollment-in-iframe.sub.https.html.ini
@@ -0,0 +1,11 @@
+[enrollment-in-iframe.sub.https.html]
+ expected:
+ if (os == "android") and fission: [TIMEOUT, OK]
+ [SPC enrollment in cross-origin iframe]
+ expected: FAIL
+
+ [SPC enrollment in cross-origin iframe without payment permission]
+ expected: FAIL
+
+ [SPC enrollment in cross-origin iframe fails without user activation]
+ expected: FAIL
diff --git a/testing/web-platform/meta/secure-payment-confirmation/enrollment.https.html.ini b/testing/web-platform/meta/secure-payment-confirmation/enrollment.https.html.ini
new file mode 100644
index 0000000000..882097fd99
--- /dev/null
+++ b/testing/web-platform/meta/secure-payment-confirmation/enrollment.https.html.ini
@@ -0,0 +1,60 @@
+[enrollment.https.html]
+ expected:
+ if os == "android": OK
+ TIMEOUT
+ [Payment credential is created successfully.]
+ expected:
+ if (os == "linux") and not debug and (processor == "x86_64") and fission: [FAIL, TIMEOUT]
+ if (os == "linux") and not debug and (processor == "x86_64") and not fission: [FAIL, TIMEOUT]
+ if (os == "linux") and not debug and (processor == "x86"): [TIMEOUT, FAIL]
+ if (os == "mac") and not debug: [TIMEOUT, FAIL]
+ if (os == "mac") and debug: [FAIL, TIMEOUT]
+ if (os == "linux") and debug: [FAIL, TIMEOUT]
+ FAIL
+
+ [Payment credential requires userVerification to be "required", not "preferred".]
+ expected:
+ if (os == "linux") and ccov: [TIMEOUT, NOTRUN, FAIL]
+ if (os == "linux") and not debug and (processor == "x86_64") and not fission: [TIMEOUT, NOTRUN, FAIL]
+ if (os == "linux") and not debug and (processor == "x86_64") and fission: [TIMEOUT, NOTRUN, FAIL]
+ if (os == "linux") and not debug and (processor == "x86"): [NOTRUN, FAIL, TIMEOUT]
+ if (os == "linux") and debug: [TIMEOUT, FAIL, NOTRUN]
+ if (os == "mac") and debug: [TIMEOUT, FAIL, NOTRUN]
+ if (os == "mac") and not debug: [NOTRUN, FAIL, TIMEOUT]
+ FAIL
+
+ [Payment credential requires userVerification to be "required", not "discouraged".]
+ expected:
+ if os == "mac": [NOTRUN, FAIL, TIMEOUT]
+ if os == "linux": [NOTRUN, TIMEOUT]
+ FAIL
+
+ [Payment credential requires authenticatorAttachment to be "platform", not "cross-platform".]
+ expected:
+ if os == "win": TIMEOUT
+ if os == "android": FAIL
+ NOTRUN
+
+ [Payment credential allows residentKey to be "preferred".]
+ expected:
+ if (os == "linux") and not debug and fission and (processor == "x86"): [NOTRUN, FAIL, TIMEOUT]
+ if (os == "linux") and not debug and fission and (processor == "x86_64"): [FAIL, NOTRUN, TIMEOUT]
+ if (os == "linux") and not debug and not fission: [FAIL, NOTRUN]
+ if (os == "mac") and not debug: [NOTRUN, TIMEOUT]
+ FAIL
+
+ [Payment credential does not allow residentKey to be "discouraged".]
+ expected:
+ if os == "win": FAIL
+ if os == "android": FAIL
+ NOTRUN
+
+ [Payment credential abort without reason]
+ expected:
+ if os == "android": PASS
+ NOTRUN
+
+ [Payment credential abort reason with Error]
+ expected:
+ if os == "android": FAIL
+ NOTRUN