OLD | NEW |
1 This checks that writing an X-Frame-Options meta tag to a detached document does
not crash. | 1 This checks that writing an X-Frame-Options meta tag to a detached document does
not crash. |
2 <script> | 2 <script> |
3 if (window.layoutTestController) | 3 if (window.layoutTestController) |
4 layoutTestController.dumpAsText(); | 4 layoutTestController.dumpAsText(); |
5 </script> | 5 </script> |
6 <iframe id=foo></iframe> | 6 <iframe id=foo></iframe> |
7 <script> | 7 <script> |
8 var fooFrame = document.getElementById('foo'); | 8 var fooFrame = document.getElementById('foo'); |
9 var fooDoc = fooFrame.contentWindow.document; | 9 var fooDoc = fooFrame.contentWindow.document; |
10 fooFrame.parentNode.removeChild(fooFrame); | 10 fooFrame.parentNode.removeChild(fooFrame); |
11 | 11 |
12 fooDoc.write('<meta http-equiv="X-Frame-Options" content="deny"/>'); | 12 fooDoc.write('<meta http-equiv="X-Frame-Options" content="deny"/>'); |
13 </script> | 13 </script> |
OLD | NEW |