summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/web-share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/meta/web-share
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/web-share')
-rw-r--r--testing/web-platform/meta/web-share/__dir__.ini1
-rw-r--r--testing/web-platform/meta/web-share/canShare-files.https.html.ini12
-rw-r--r--testing/web-platform/meta/web-share/canShare.https.html.ini6
-rw-r--r--testing/web-platform/meta/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html.ini44
-rw-r--r--testing/web-platform/meta/web-share/disabled-by-permissions-policy.https.sub.html.ini6
-rw-r--r--testing/web-platform/meta/web-share/feature-policy-listed.tentative.html.ini12
-rw-r--r--testing/web-platform/meta/web-share/idlharness.https.window.js.ini3
-rw-r--r--testing/web-platform/meta/web-share/share-consume-activation.https.html.ini3
-rw-r--r--testing/web-platform/meta/web-share/share-empty.https.html.ini3
-rw-r--r--testing/web-platform/meta/web-share/share-securecontext.http.html.ini3
-rw-r--r--testing/web-platform/meta/web-share/share-sharePromise-internal-slot.https.html.ini3
-rw-r--r--testing/web-platform/meta/web-share/share-url-invalid.https.html.ini3
-rw-r--r--testing/web-platform/meta/web-share/share-without-user-gesture.https.html.ini3
-rw-r--r--testing/web-platform/meta/web-share/test-fully-active.https.html.ini3
14 files changed, 105 insertions, 0 deletions
diff --git a/testing/web-platform/meta/web-share/__dir__.ini b/testing/web-platform/meta/web-share/__dir__.ini
new file mode 100644
index 0000000000..d968208d88
--- /dev/null
+++ b/testing/web-platform/meta/web-share/__dir__.ini
@@ -0,0 +1 @@
+prefs: [dom.webshare.enabled:true, dom.reporting.featurePolicy.enabled:true, dom.security.featurePolicy.header.enabled:true]
diff --git a/testing/web-platform/meta/web-share/canShare-files.https.html.ini b/testing/web-platform/meta/web-share/canShare-files.https.html.ini
new file mode 100644
index 0000000000..412bc3bb43
--- /dev/null
+++ b/testing/web-platform/meta/web-share/canShare-files.https.html.ini
@@ -0,0 +1,12 @@
+[canShare-files.https.html]
+ [canShare with single file list]
+ expected: FAIL
+
+ [canShare with file list]
+ expected: FAIL
+
+ [canShare with repeated file]
+ expected: FAIL
+
+ [canShare with file list and url]
+ expected: FAIL
diff --git a/testing/web-platform/meta/web-share/canShare.https.html.ini b/testing/web-platform/meta/web-share/canShare.https.html.ini
new file mode 100644
index 0000000000..9e8de687e7
--- /dev/null
+++ b/testing/web-platform/meta/web-share/canShare.https.html.ini
@@ -0,0 +1,6 @@
+[canShare.https.html]
+ [canShare() multiple members]
+ expected: FAIL
+
+ [canShare() files member]
+ expected: FAIL
diff --git a/testing/web-platform/meta/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html.ini b/testing/web-platform/meta/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html.ini
new file mode 100644
index 0000000000..f8b46a2f04
--- /dev/null
+++ b/testing/web-platform/meta/web-share/disabled-by-permissions-policy-cross-origin.https.sub.html.ini
@@ -0,0 +1,44 @@
+[disabled-by-permissions-policy-cross-origin.https.sub.html]
+ expected:
+ if (os == "win") and not debug and (processor == "x86"): [TIMEOUT, OK]
+ if (os == "linux") and fission: [TIMEOUT, OK]
+ [OK, TIMEOUT]
+ [share() is disabled by default 'self' by permissions policy for cross-origin iframes]
+ expected:
+ if (os == "linux") and fission: [FAIL, TIMEOUT]
+ if (os == "mac") and not debug: [FAIL, TIMEOUT]
+ FAIL
+
+ [share() is disabled explicitly by permissions policy for cross-origin iframe]
+ expected:
+ if (os == "linux") and fission and not debug and (processor == "x86"): [TIMEOUT, FAIL, NOTRUN]
+ if (os == "linux") and fission and not debug and (processor == "x86_64"): [TIMEOUT, FAIL, NOTRUN]
+ if (os == "linux") and fission and debug and swgl: [TIMEOUT, FAIL, NOTRUN]
+ if (os == "linux") and fission and debug and not swgl: [TIMEOUT, FAIL, NOTRUN]
+ [FAIL, TIMEOUT, NOTRUN]
+
+ [share() not allowed, as only allowed to share with self]
+ expected:
+ if (os == "linux") and fission and debug and swgl: [NOTRUN, FAIL, TIMEOUT]
+ if (os == "linux") and fission and debug and not swgl: [NOTRUN, FAIL, TIMEOUT]
+ if (os == "linux") and fission and not debug and (processor == "x86"): [NOTRUN, FAIL, TIMEOUT]
+ if (os == "linux") and fission and not debug and (processor == "x86_64"): [NOTRUN, TIMEOUT, FAIL]
+ [FAIL, TIMEOUT, NOTRUN]
+
+ [canShare() not allowed to share by default permissions policy cross-origin]
+ expected:
+ if (os == "linux") and fission: [NOTRUN, PASS, TIMEOUT]
+ [PASS, TIMEOUT, NOTRUN]
+
+ [canShare() is allowed by permissions policy to share cross-origin on a particular origin]
+ expected:
+ if (os == "win") and (processor == "x86") and not debug: [TIMEOUT, PASS, FAIL, NOTRUN]
+ if (os == "linux") and fission: [NOTRUN, PASS, FAIL, TIMEOUT]
+ if (os == "mac") and not debug: [PASS, TIMEOUT, FAIL, NOTRUN]
+ [PASS, FAIL, TIMEOUT, NOTRUN]
+
+ [canShare() with self]
+ expected:
+ if (os == "win") and not debug and (processor == "x86"): [NOTRUN, PASS]
+ if (os == "linux") and fission: [NOTRUN, PASS]
+ [PASS, NOTRUN]
diff --git a/testing/web-platform/meta/web-share/disabled-by-permissions-policy.https.sub.html.ini b/testing/web-platform/meta/web-share/disabled-by-permissions-policy.https.sub.html.ini
new file mode 100644
index 0000000000..3937078285
--- /dev/null
+++ b/testing/web-platform/meta/web-share/disabled-by-permissions-policy.https.sub.html.ini
@@ -0,0 +1,6 @@
+[disabled-by-permissions-policy.https.sub.html]
+ [share() can be disabled by permissions policy]
+ expected: FAIL
+
+ [canShare() can be disabled by permissions policy]
+ expected: FAIL
diff --git a/testing/web-platform/meta/web-share/feature-policy-listed.tentative.html.ini b/testing/web-platform/meta/web-share/feature-policy-listed.tentative.html.ini
new file mode 100644
index 0000000000..04e127ce3c
--- /dev/null
+++ b/testing/web-platform/meta/web-share/feature-policy-listed.tentative.html.ini
@@ -0,0 +1,12 @@
+[feature-policy-listed.tentative.html]
+ [allowsFeature() returns true for web-share]
+ expected: FAIL
+
+ [features() includes web-share]
+ expected: FAIL
+
+ [allowedFeatures() includes web-share]
+ expected: FAIL
+
+ [allowsFeature() returns a single entry for web-share]
+ expected: FAIL
diff --git a/testing/web-platform/meta/web-share/idlharness.https.window.js.ini b/testing/web-platform/meta/web-share/idlharness.https.window.js.ini
new file mode 100644
index 0000000000..8e35006d6d
--- /dev/null
+++ b/testing/web-platform/meta/web-share/idlharness.https.window.js.ini
@@ -0,0 +1,3 @@
+[idlharness.https.window.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/web-share/share-consume-activation.https.html.ini b/testing/web-platform/meta/web-share/share-consume-activation.https.html.ini
new file mode 100644
index 0000000000..23d371483f
--- /dev/null
+++ b/testing/web-platform/meta/web-share/share-consume-activation.https.html.ini
@@ -0,0 +1,3 @@
+[share-consume-activation.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/web-share/share-empty.https.html.ini b/testing/web-platform/meta/web-share/share-empty.https.html.ini
new file mode 100644
index 0000000000..fb475d4933
--- /dev/null
+++ b/testing/web-platform/meta/web-share/share-empty.https.html.ini
@@ -0,0 +1,3 @@
+[share-empty.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/web-share/share-securecontext.http.html.ini b/testing/web-platform/meta/web-share/share-securecontext.http.html.ini
new file mode 100644
index 0000000000..992ca653d1
--- /dev/null
+++ b/testing/web-platform/meta/web-share/share-securecontext.http.html.ini
@@ -0,0 +1,3 @@
+[share-securecontext.http.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/web-share/share-sharePromise-internal-slot.https.html.ini b/testing/web-platform/meta/web-share/share-sharePromise-internal-slot.https.html.ini
new file mode 100644
index 0000000000..dc9a163732
--- /dev/null
+++ b/testing/web-platform/meta/web-share/share-sharePromise-internal-slot.https.html.ini
@@ -0,0 +1,3 @@
+[share-sharePromise-internal-slot.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/web-share/share-url-invalid.https.html.ini b/testing/web-platform/meta/web-share/share-url-invalid.https.html.ini
new file mode 100644
index 0000000000..2047057fa2
--- /dev/null
+++ b/testing/web-platform/meta/web-share/share-url-invalid.https.html.ini
@@ -0,0 +1,3 @@
+[share-url-invalid.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/web-share/share-without-user-gesture.https.html.ini b/testing/web-platform/meta/web-share/share-without-user-gesture.https.html.ini
new file mode 100644
index 0000000000..6a2f4eef6f
--- /dev/null
+++ b/testing/web-platform/meta/web-share/share-without-user-gesture.https.html.ini
@@ -0,0 +1,3 @@
+[share-without-user-gesture.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
diff --git a/testing/web-platform/meta/web-share/test-fully-active.https.html.ini b/testing/web-platform/meta/web-share/test-fully-active.https.html.ini
new file mode 100644
index 0000000000..5e97680183
--- /dev/null
+++ b/testing/web-platform/meta/web-share/test-fully-active.https.html.ini
@@ -0,0 +1,3 @@
+[test-fully-active.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]