From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- testing/web-platform/meta/screen-wake-lock/__dir__.ini | 1 + .../meta/screen-wake-lock/chrome-bug-1348019.https.html.ini | 3 +++ .../wakelock-disabled-by-permissions-policy.https.html.ini | 8 ++++++++ .../meta/screen-wake-lock/wakelock-document-hidden.https.html.ini | 3 +++ .../meta/screen-wake-lock/wakelock-insecure-context.any.js | 7 +++++++ .../meta/screen-wake-lock/wakelock-request-denied.https.html.ini | 3 +++ .../wakelock-screen-type-on-worker.https.worker.js.ini | 5 +++++ .../wakelock-supported-by-permissions-policy.html.ini | 2 ++ .../screen-wake-lock/wakelockpermissiondescriptor.https.html.ini | 2 ++ 9 files changed, 34 insertions(+) create mode 100644 testing/web-platform/meta/screen-wake-lock/__dir__.ini create mode 100644 testing/web-platform/meta/screen-wake-lock/chrome-bug-1348019.https.html.ini create mode 100644 testing/web-platform/meta/screen-wake-lock/wakelock-disabled-by-permissions-policy.https.html.ini create mode 100644 testing/web-platform/meta/screen-wake-lock/wakelock-document-hidden.https.html.ini create mode 100644 testing/web-platform/meta/screen-wake-lock/wakelock-insecure-context.any.js create mode 100644 testing/web-platform/meta/screen-wake-lock/wakelock-request-denied.https.html.ini create mode 100644 testing/web-platform/meta/screen-wake-lock/wakelock-screen-type-on-worker.https.worker.js.ini create mode 100644 testing/web-platform/meta/screen-wake-lock/wakelock-supported-by-permissions-policy.html.ini create mode 100644 testing/web-platform/meta/screen-wake-lock/wakelockpermissiondescriptor.https.html.ini (limited to 'testing/web-platform/meta/screen-wake-lock') 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] -- cgit v1.2.3