From ed5bc8ff9ddcf2a391e89bc2b2e0dd6b295e7913 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 20 Feb 2024 08:58:57 +1100 Subject: [PATCH 1/4] FF124 Screen Wakelock API shipped --- api/Navigator.json | 2 +- api/WakeLock.json | 4 ++-- api/WakeLockSentinel.json | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/Navigator.json b/api/Navigator.json index a815ed0792813f..ddecfdd193200d 100644 --- a/api/Navigator.json +++ b/api/Navigator.json @@ -4902,7 +4902,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { diff --git a/api/WakeLock.json b/api/WakeLock.json index 1c89186acb91c8..8003b6d79b27a8 100644 --- a/api/WakeLock.json +++ b/api/WakeLock.json @@ -14,7 +14,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { @@ -54,7 +54,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { diff --git a/api/WakeLockSentinel.json b/api/WakeLockSentinel.json index 03f6ddec67d84d..5b2b29f98e9454 100644 --- a/api/WakeLockSentinel.json +++ b/api/WakeLockSentinel.json @@ -14,7 +14,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { @@ -54,7 +54,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { @@ -96,7 +96,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { @@ -137,7 +137,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { @@ -178,7 +178,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { From c7b6a374d45c8e1413fba953a54e1427c269ea22 Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 20 Feb 2024 10:36:57 +1100 Subject: [PATCH 2/4] Add permission policy screen-wake-lock --- http/headers/Permissions-Policy.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/headers/Permissions-Policy.json b/http/headers/Permissions-Policy.json index 27ddf4cc9a36d0..e7a2dc26bbe8c9 100644 --- a/http/headers/Permissions-Policy.json +++ b/http/headers/Permissions-Policy.json @@ -1252,7 +1252,7 @@ "chrome_android": "mirror", "edge": "mirror", "firefox": { - "version_added": "preview" + "version_added": "124" }, "firefox_android": "mirror", "ie": { @@ -1269,7 +1269,7 @@ "webview_android": "mirror" }, "status": { - "experimental": true, + "experimental": false, "standard_track": true, "deprecated": false } From c8209e8d2a62cd99ab0faa6d844352c4213608fd Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 20 Feb 2024 11:51:39 +1100 Subject: [PATCH 3/4] Add Permissions API for screen-wake-lock --- api/Permissions.json | 39 ++++++++++++++++++++++++++++ http/headers/Permissions-Policy.json | 4 +-- 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/api/Permissions.json b/api/Permissions.json index cc7c195ffc7a91..8ef431e48f7677 100644 --- a/api/Permissions.json +++ b/api/Permissions.json @@ -637,6 +637,45 @@ } } }, + "permission_screen-wake-lock": { + "__compat": { + "description": "screen-wake-lock permission", + "spec_url": "https://w3c.github.io/screen-wake-lock/#the-screen-wake-lock-powerful-feature", + "tags": [ + "web-features:screen-wake-lock" + ], + "support": { + "chrome": { + "version_added": "84" + }, + "chrome_android": "mirror", + "edge": "mirror", + "firefox": { + "version_added": "124" + }, + "firefox_android": "mirror", + "ie": { + "version_added": false + }, + "oculus": "mirror", + "opera": "mirror", + "opera_android": "mirror", + "safari": { + "version_added": false + }, + "safari_ios": "mirror", + "samsunginternet_android": "mirror", + "webview_android": { + "version_added": false + } + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, "permission_storage-access": { "__compat": { "description": "storage-access permission", diff --git a/http/headers/Permissions-Policy.json b/http/headers/Permissions-Policy.json index e7a2dc26bbe8c9..d160db1ce2efb2 100644 --- a/http/headers/Permissions-Policy.json +++ b/http/headers/Permissions-Policy.json @@ -1262,14 +1262,14 @@ "opera": "mirror", "opera_android": "mirror", "safari": { - "version_added": false + "version_added": "16.4" }, "safari_ios": "mirror", "samsunginternet_android": "mirror", "webview_android": "mirror" }, "status": { - "experimental": false, + "experimental": true, "standard_track": true, "deprecated": false } From 7099736f535d42fbba90a8ce52ce255b7b1af06a Mon Sep 17 00:00:00 2001 From: Hamish Willee Date: Tue, 20 Feb 2024 14:06:13 +1100 Subject: [PATCH 4/4] Npm fix --- http/headers/Permissions-Policy.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/headers/Permissions-Policy.json b/http/headers/Permissions-Policy.json index d160db1ce2efb2..6f0ce92bae117a 100644 --- a/http/headers/Permissions-Policy.json +++ b/http/headers/Permissions-Policy.json @@ -1269,7 +1269,7 @@ "webview_android": "mirror" }, "status": { - "experimental": true, + "experimental": false, "standard_track": true, "deprecated": false }