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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: Test. Created 4 years 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 <body> 2 <body>
3 The navigation should fail and this iframe should be blocked. This text shouldn' t appear. 3 The navigation should fail and this iframe should be blocked. This text shouldn' t appear.
4 <script> 4 <script>
5 window.onload = function() 5 window.onload = function()
6 { 6 {
7 top.location = "http://localhost:8000/security/frameNavigation/resources/nav igation-changed-iframe.html"; 7 try {
8 top.location = "http://localhost:8000/security/frameNavigation/resources /navigation-changed-iframe.html";
9 top.postMessage("FAIL", "*");
10 } catch(e) {
11 top.postMessage("PASS", "*");
12 }
8 } 13 }
9 </script> 14 </script>
10 </body> 15 </body>
11 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698