diff options
Diffstat (limited to 'testing/web-platform/tests/clipboard-apis/detached-iframe/write-read-on-detached-iframe.https.html')
-rw-r--r-- | testing/web-platform/tests/clipboard-apis/detached-iframe/write-read-on-detached-iframe.https.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/web-platform/tests/clipboard-apis/detached-iframe/write-read-on-detached-iframe.https.html b/testing/web-platform/tests/clipboard-apis/detached-iframe/write-read-on-detached-iframe.https.html index b21e6b20bc..155f9d004a 100644 --- a/testing/web-platform/tests/clipboard-apis/detached-iframe/write-read-on-detached-iframe.https.html +++ b/testing/web-platform/tests/clipboard-apis/detached-iframe/write-read-on-detached-iframe.https.html @@ -15,8 +15,8 @@ promise_test(async t => { // This tests proper behavior on a detaching iframe. text/plain is chosen for // simplicity, and the test should fail the same way no matter what the input // type is. - 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'); const iframeClipboard = iframe.contentWindow.navigator.clipboard; |