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

Side by Side Diff: LayoutTests/http/tests/security/xss-DENIED-contentWindow-eval.html

Issue 7058060: Merge 88071 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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 | LayoutTests/http/tests/security/xss-DENIED-contentWindow-eval-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
1 <body> 1 <body>
2 This test passes if alert() is not called. 2 This test passes if alert() is not called.
3 <script> 3 <script>
4 if (window.layoutTestController) { 4 if (window.layoutTestController) {
5 layoutTestController.dumpAsText(); 5 layoutTestController.dumpAsText();
6 layoutTestController.waitUntilDone(); 6 layoutTestController.waitUntilDone();
7 } 7 }
8 8
9 i = document.body.appendChild(document.createElement("iframe")); 9 i = document.body.appendChild(document.createElement("iframe"));
10 f = frames[0].eval('(function(){location="javascript:alert(location)"})'); 10 f = frames[0].eval('(function(){location="javascript:alert(location)"})');
11 i.src = "http://localhost:8000/security/resources/innocent-victim.html"; 11 i.src = "http://localhost:8000/security/resources/innocent-victim.html";
12 i.addEventListener("load", f); 12 i.addEventListener("load", f);
13 i.addEventListener("load", function() { 13 i.addEventListener("load", function() {
14 if (window.layoutTestController) 14 if (window.layoutTestController)
15 layoutTestController.notifyDone(); 15 layoutTestController.notifyDone();
16 }); 16 });
17 </script> 17 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/xss-DENIED-contentWindow-eval-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698