Nothing Special   »   [go: up one dir, main page]

Skip to content

Commit

Permalink
Add async clipboard API test for nested iframes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketj committed Nov 9, 2023
1 parent 4731072 commit 839104c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions clipboard/async-clipboard-nested-iframe-write-inner-frame.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<body>
<script>
window.setTimeout(() => {
navigator.clipboard.writeText("Some text");
}, 3000);
</script>
</body>
</html>
8 changes: 8 additions & 0 deletions clipboard/async-clipboard-nested-iframe-write.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<body>
<iframe src="http://sanketj.github.io/web-dev-samples/async-clipboard-nested-iframe-write-inner-frame.html" width="500px" height="500px"></iframe>
<script>
</script>
</body>
</html>

0 comments on commit 839104c

Please sign in to comment.