From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- ...nc-unsanitized-standard-html-read-fail.tentative.https.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testing/web-platform/tests/clipboard-apis/async-unsanitized-standard-html-read-fail.tentative.https.html') diff --git a/testing/web-platform/tests/clipboard-apis/async-unsanitized-standard-html-read-fail.tentative.https.html b/testing/web-platform/tests/clipboard-apis/async-unsanitized-standard-html-read-fail.tentative.https.html index e7ddbb0cdf..f0884d6c20 100644 --- a/testing/web-platform/tests/clipboard-apis/async-unsanitized-standard-html-read-fail.tentative.https.html +++ b/testing/web-platform/tests/clipboard-apis/async-unsanitized-standard-html-read-fail.tentative.https.html @@ -12,7 +12,7 @@ 'use strict'; promise_test(async t => { - await test_driver.set_permission({name: 'clipboard-read'}, 'granted'); + await tryGrantReadPermission(); await waitForUserActivation(); await promise_rejects_dom(t, 'NotAllowedError', @@ -20,7 +20,7 @@ promise_test(async t => { }, 'navigator.clipboard.read() fails for multiple unsanitized formats requested.'); promise_test(async t => { - await test_driver.set_permission({name: 'clipboard-read'}, 'granted'); + await tryGrantReadPermission(); await waitForUserActivation(); await promise_rejects_dom(t, 'NotAllowedError', @@ -28,7 +28,7 @@ promise_test(async t => { }, 'navigator.clipboard.read() fails for unsanitized text/plain requested.'); promise_test(async t => { - await test_driver.set_permission({name: 'clipboard-read'}, 'granted'); + await tryGrantReadPermission(); await waitForUserActivation(); await promise_rejects_dom(t, 'NotAllowedError', @@ -36,11 +36,11 @@ promise_test(async t => { }, 'navigator.clipboard.read() fails for unsanitized image/png requested.'); promise_test(async t => { - await test_driver.set_permission({name: 'clipboard-read'}, 'granted'); + await tryGrantReadPermission(); await waitForUserActivation(); await promise_rejects_dom(t, 'NotAllowedError', navigator.clipboard.read({unsanitized: ['image/svg+xml']})); }, 'navigator.clipboard.read() fails for unsanitized image/svg+xml requested.'); - \ No newline at end of file + -- cgit v1.2.3