Chromium Code Reviews| OLD | NEW |
|---|---|
| 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. |
|
Rick Byers
2017/01/05 21:48:33
fix the description
Nate Chapin
2017/01/06 19:56:09
Done.
| |
| 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("PASS", "*"); | |
| 10 } catch(e) { | |
| 9 top.postMessage("FAIL", "*"); | 11 top.postMessage("FAIL", "*"); |
| 10 } catch(e) { | |
| 11 top.postMessage("PASS", "*"); | |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 </body> | 15 </body> |
| 16 </html> | 16 </html> |
| OLD | NEW |