Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / x-frame-options-detached-document-crash.html
blob086c1b7b629cb1a81b762b5b151dbe78200caf76
1 This checks that writing an X-Frame-Options meta tag to a detached document does not crash.
2 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
5 </script>
6 <iframe id=foo></iframe>
7 <script>
8 var fooFrame = document.getElementById('foo');
9 var fooDoc = fooFrame.contentWindow.document;
10 fooFrame.parentNode.removeChild(fooFrame);
12 fooDoc.write('<meta http-equiv="X-Frame-Options" content="deny"/>');
13 </script>