Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: LayoutTests/fast/parser/x-frame-options-detached-document-crash.html

Issue 3394006: Merge 67627 - 2010-09-16 Tony Gentilcore <tonyg@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW
« no previous file with comments | « LayoutTests/ChangeLog ('k') | LayoutTests/fast/parser/x-frame-options-detached-document-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698