commit 5252da15f62ee9d5090a38271761a2cc73aecc9b
parent c19f89a688f26eda050435caee37976aad454b4d
Author: Tim Nguyen <nt1m@users.noreply.github.com>
Date: Thu, 9 Oct 2025 20:38:21 +0000
Bug 1992489 [wpt PR 55237] - Extend permission-helper.js to cover "Unknown permission name" error message, a=testonly
Automatic update from web-platform-tests
Extend permission-helper.js to cover "Unknown permission name" error message (#55237)
Since Safari partially implemented `test_driver.set_permission()`, the error message has changed.
--
wpt-commits: 72ae6dcb9e23ab6a9893ee317ffb4121e7eb654f
wpt-pr: 55237
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testing/web-platform/tests/mediacapture-streams/permission-helper.js b/testing/web-platform/tests/mediacapture-streams/permission-helper.js
@@ -7,7 +7,7 @@ async function setMediaPermission(status="granted", scope=["camera", "microphone
await test_driver.set_permission({ name: s }, status);
}
} catch (e) {
- const noSetPermissionSupport = typeof e === "string" && e.match(/set_permission not implemented/);
+ const noSetPermissionSupport = typeof e === "string" && (e.match(/set_permission not implemented/) || e.match(/Unknown permission name/));
if (!(noSetPermissionSupport ||
(e instanceof Error && e.message.match("unimplemented")) )) {
throw e;