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

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

Issue 1889433003: Ignore 'X-Frame-Options' inside '<meta>' tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more. Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/parser/x-frame-options-detached-document-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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);
11
12 fooDoc.write('<meta http-equiv="X-Frame-Options" content="deny"/>');
13 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/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