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

Side by Side Diff: LayoutTests/http/tests/security/xssAuditor/window-open-block-mode.html

Issue 414223004: Implement NavigationScheduler::schedulePageBlock() as a redirect to empty substitute data. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.setXSSAuditorEnabled(true);
8 testRunner.setCanOpenWindows();
9 testRunner.setCloseRemainingWindowsWhenComplete(true);
10 testRunner.dumpBackForwardList();
11 testRunner.waitUntilDone();
12 }
13 </script>
14 </head>
15 <body>
16 <p>Test that under x-xss-protection mode=block that the block page URL is added on top of the existing page
17 instead of replacing it. Test passes if the second window has a two-item back-fo rward list.</p>
18 <div id="console"></div>
19 <script>
20 var w = window.open("/security/xssAuditor/resources/echo-intertag.pl?q=<scr" + " ipt>alert(/xss/)</scr" + "ipt>&enable-full-block=1");
21 if (!w) {
22 document.getElementById("console").textContent = "Failed to open window. Ch eck for popup blocking.";
23 }
24 if (window.testRunner) {
25 setInterval(function () { try { w.contentDocument } catch (e) { testRunner.n otifyDone(); }}, 20);
26 }
27 </script>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698