summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/screen-wake-lock
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/meta/screen-wake-lock
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/screen-wake-lock')
-rw-r--r--testing/web-platform/meta/screen-wake-lock/__dir__.ini1
-rw-r--r--testing/web-platform/meta/screen-wake-lock/chrome-bug-1348019.https.html.ini3
-rw-r--r--testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini8
-rw-r--r--testing/web-platform/meta/screen-wake-lock/wakelock-document-hidden.https.html.ini3
-rw-r--r--testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js7
-rw-r--r--testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini3
-rw-r--r--testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini5
-rw-r--r--testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini2
-rw-r--r--testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini2
9 files changed, 34 insertions, 0 deletions
diff --git a/testing/web-platform/meta/screen-wake-lock/__dir__.ini b/testing/web-platform/meta/screen-wake-lock/__dir__.ini
new file mode 100644
index 0000000000..94ad11e4f6
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/__dir__.ini
@@ -0,0 +1 @@
+prefs: [marionette.setpermission.enabled:true, dom.screenwakelock.enabled:true]
diff --git a/testing/web-platform/meta/screen-wake-lock/chrome-bug-1348019.https.html.ini b/testing/web-platform/meta/screen-wake-lock/chrome-bug-1348019.https.html.ini
new file mode 100644
index 0000000000..f56e36246d
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/chrome-bug-1348019.https.html.ini
@@ -0,0 +1,3 @@
+[chrome-bug-1348019.https.html]
+ expected:
+ if (os == "android"): ERROR # cannot minimize window
diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini
new file mode 100644
index 0000000000..5d4aa2ed1a
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini
@@ -0,0 +1,8 @@
+[wakelock-disabled-by-permissions-policy.https.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Permissions-Policy header "screen-wake-lock=()" disallows the top-level document.]
+ expected: FAIL
+
+ [Permissions-Policy header "screen-wake-lock=()" disallows same-origin iframes.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-document-hidden.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-document-hidden.https.html.ini
new file mode 100644
index 0000000000..bd9085cb58
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/wakelock-document-hidden.https.html.ini
@@ -0,0 +1,3 @@
+[wakelock-document-hidden.https.html]
+ expected:
+ if (os == "android"): ERROR # cannot minimize window
diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js b/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js
new file mode 100644
index 0000000000..8a2879b748
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js
@@ -0,0 +1,7 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+[wakelock-type.https.any.html]
+ disabled:
+ if (os == "win" and debug and bits == "32"): https://bugzilla.mozilla.org/show_bug.cgi?id=1591125
diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini
new file mode 100644
index 0000000000..868a64272a
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini
@@ -0,0 +1,3 @@
+[wakelock-request-denied.https.html]
+ [Denied requests should abort with NotAllowedError]
+ expected: FAIL
diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini
new file mode 100644
index 0000000000..fa795ad24a
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini
@@ -0,0 +1,5 @@
+[wakelock-screen-type-on-worker.https.worker.html]
+ expected:
+ if (os == "android") and fission: [OK, TIMEOUT]
+ [Screen wake lock should not be allowed in dedicated worker]
+ expected: FAIL
diff --git a/testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini
new file mode 100644
index 0000000000..7b1582ba80
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini
@@ -0,0 +1,2 @@
+[wakelock-supported-by-permissions-policy.html]
+ prefs: [dom.security.featurePolicy.webidl.enabled:true]
diff --git a/testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini b/testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini
new file mode 100644
index 0000000000..245c9bc47e
--- /dev/null
+++ b/testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini
@@ -0,0 +1,2 @@
+[wakelockpermissiondescriptor.https.html]
+ prefs: [permissions.default.screen-wake-lock:2]