Skip to content

Commit

Permalink
issue #53: debugger statement is ignored in detached iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy committed Jan 10, 2020
1 parent 7ed0513 commit 1acbe49
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bugs/chrome-detached-iframe.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<body>
<script>
const sourceText = `
debugger;
console.log('worked!');
`;
const iframe = document.createElement('iframe');
iframe.setAttribute('sandbox', 'allow-same-origin allow-scripts');
document.body.appendChild(iframe);
const { contentWindow: { eval: iframeEval } } = iframe;
iframeEval(sourceText);
iframe.remove();
iframeEval(sourceText);
</script>
</body>

0 comments on commit 1acbe49

Please sign in to comment.