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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: frameNavigation test. Created 4 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpChildFramesAsText(); 6 testRunner.dumpChildFramesAsText();
7 testRunner.setDumpConsoleMessages(false); 7 testRunner.setDumpConsoleMessages(true);
8 testRunner.waitUntilDone();
8 } 9 }
9 if (window.internals) 10 //if (window.internals)
10 internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true); 11 // internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true);
Mike West 2016/10/24 11:46:18 TODO(me): Delete these lines (oops). The timing o
12 window.addEventListener("message", e => {
13 if (e.data == "PASS")
14 testRunner.notifyDone();
15 else
16 testRunner.testFailed("'top.location' didn't throw.");
17 });
11 </script> 18 </script>
12 </head> 19 </head>
13 <body> 20 <body>
14 <iframe src="http://localhost:8000/security/frameNavigation/resources/iframe-tha t-performs-top-navigation-without-user-gesture.html"></iframe> 21 <iframe src="http://localhost:8000/security/frameNavigation/resources/iframe-tha t-performs-top-navigation-without-user-gesture.html"></iframe>
15 </body> 22 </body>
16 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698