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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-window-open-javascript-url-leading-format-char.html

Issue 858001: Merge WebKit r55822:... (Closed) Base URL: svn://chrome-svn/chrome/branches/249/src/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.layoutTestController) {
6 layoutTestController.dumpAsText();
7 layoutTestController.waitUntilDone();
8 }
9 function runTest() {
10 // Schedule a return to the main event loop so that the javascript: URL
11 // has a chance to run.
12 setTimeout(done, 0);
13 window.open("\u0000javascript:alert('FAIL')", "tg");
14 }
15 function done() {
16 if (window.layoutTestController)
17 layoutTestController.notifyDone();
18 }
19 </script>
20 </head>
21 <body>
22 This test passes if there is no alert dialog and the iframe contains a broken
23 link.<br />
24 <iframe onload="runTest()" name="tg"
25 src="http://localhost:8080/security/resources/innocent-victim.html"
26 ></iframe>
27 </body>
28 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/xss-DENIED-window-open-javascript-url-leading-format-char-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698