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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/parser/resources/document-open-in-unload-inner.html

Issue 2691083006: The security check in document.open should test for same-origin (Closed)
Patch Set: Created 3 years, 10 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/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This test passes if it doesn't crash. 1 This test passes if it doesn't crash.
2 <iframe src="data:text/plain,Hi"></iframe> 2 <iframe srcdoc="Hi"></iframe>
Mike West 2017/02/15 11:36:15 I don't understand how this tests the change. Did
3 <script> 3 <script>
4 frames[0].onunload = function () { 4 frames[0].onunload = function () {
5 document.open(); 5 document.open();
6 document.write("PASS"); 6 document.write("PASS");
7 document.close(); 7 document.close();
8 parent.postMessage("Done", "*"); 8 parent.postMessage("Done", "*");
9 }; 9 };
10 </script> 10 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698