| OLD | NEW |
| 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 } |
| 10 |
| 9 if (window.internals) | 11 if (window.internals) |
| 10 internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true); | 12 internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture = true; |
| 13 |
| 14 window.addEventListener("message", e => { |
| 15 if (e.data == "PASS") |
| 16 testRunner.notifyDone(); |
| 17 else |
| 18 testRunner.testFailed("'top.location' didn't throw."); |
| 19 }); |
| 11 </script> | 20 </script> |
| 12 </head> | 21 </head> |
| 13 <body> | 22 <body> |
| 14 <iframe src="http://localhost:8000/security/frameNavigation/resources/iframe-tha
t-performs-top-navigation-without-user-gesture.html"></iframe> | 23 <iframe src="http://localhost:8000/security/frameNavigation/resources/iframe-tha
t-performs-top-navigation-without-user-gesture.html"></iframe> |
| 15 </body> | 24 </body> |
| 16 </html> | 25 </html> |
| OLD | NEW |