summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/clipboard-apis/async-unsanitized-html-formats-write-read.tentative.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/clipboard-apis/async-unsanitized-html-formats-write-read.tentative.https.html')
-rw-r--r--testing/web-platform/tests/clipboard-apis/async-unsanitized-html-formats-write-read.tentative.https.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/web-platform/tests/clipboard-apis/async-unsanitized-html-formats-write-read.tentative.https.html b/testing/web-platform/tests/clipboard-apis/async-unsanitized-html-formats-write-read.tentative.https.html
index 46e335c804..848900830f 100644
--- a/testing/web-platform/tests/clipboard-apis/async-unsanitized-html-formats-write-read.tentative.https.html
+++ b/testing/web-platform/tests/clipboard-apis/async-unsanitized-html-formats-write-read.tentative.https.html
@@ -27,8 +27,8 @@ function reformatHtml(html) {
// Writes a payload with custom content and checks to ensure the correct data
// was written successfully.
promise_test(async t => {
- await test_driver.set_permission({name: 'clipboard-read'}, 'granted');
- await test_driver.set_permission({name: 'clipboard-write'}, 'granted');
+ await tryGrantReadPermission();
+ await tryGrantWritePermission();
// Create and write unsanitized version of standard HTML and custom formats.
const format1 = 'text/html';