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

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

Issue 2625773002: Reenable framebusting (Closed)
Patch Set: Pass through FrameReplicationState Created 3 years, 11 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
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 The navigation should succeed. 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 try { 7 try {
8 top.location = "http://localhost:8000/security/frameNavigation/resources /navigation-changed-iframe.html"; 8 top.location = "http://localhost:8000/security/frameNavigation/resources /navigation-changed-iframe.html";
9 top.postMessage("FAIL", "*");
10 } catch(e) {
9 top.postMessage("PASS", "*"); 11 top.postMessage("PASS", "*");
10 } catch(e) {
11 top.postMessage("FAIL", "*");
12 } 12 }
13 } 13 }
14 </script> 14 </script>
15 </body> 15 </body>
16 </html> 16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698