summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/clipboard-apis/detached-iframe/writeText-readText-on-detached-iframe.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/clipboard-apis/detached-iframe/writeText-readText-on-detached-iframe.https.html')
-rw-r--r--testing/web-platform/tests/clipboard-apis/detached-iframe/writeText-readText-on-detached-iframe.https.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/web-platform/tests/clipboard-apis/detached-iframe/writeText-readText-on-detached-iframe.https.html b/testing/web-platform/tests/clipboard-apis/detached-iframe/writeText-readText-on-detached-iframe.https.html
index 24fa586fc7..8c6448d5cc 100644
--- a/testing/web-platform/tests/clipboard-apis/detached-iframe/writeText-readText-on-detached-iframe.https.html
+++ b/testing/web-platform/tests/clipboard-apis/detached-iframe/writeText-readText-on-detached-iframe.https.html
@@ -12,8 +12,8 @@
'use strict';
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();
const iframe = document.getElementById('iframe');
await waitForUserActivation();