A Document / Window should lose its browsing context as soon as its iframe is removed...
[WebKit-https.git] / LayoutTests / fast / parser / resources / set-parent-to-javascript-url.html
1 <script>
2 const parent = window.parent;
3 alert(1);
4 parent.document.getElementsByTagName('iframe')[0].src = "javascript:alert(2),'PASS<script>alert(3)<\/script>'";
5 alert(4);
6 parent.setTimeout("done()", 0);
7 </script>