Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html |
| index a2cdc9496450a459d055e4355f2145b35765ef50..2b49cd26f1d44f68314b1a749bc0fb7806e918fc 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html |
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html |
| @@ -4,10 +4,17 @@ |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.dumpChildFramesAsText(); |
| - testRunner.setDumpConsoleMessages(false); |
| + testRunner.setDumpConsoleMessages(true); |
| + testRunner.waitUntilDone(); |
| } |
| -if (window.internals) |
| - internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true); |
| +//if (window.internals) |
| +// internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture(true); |
|
Mike West
2016/10/24 11:46:18
TODO(me): Delete these lines (oops).
The timing o
|
| +window.addEventListener("message", e => { |
| + if (e.data == "PASS") |
| + testRunner.notifyDone(); |
| + else |
| + testRunner.testFailed("'top.location' didn't throw."); |
| +}); |
| </script> |
| </head> |
| <body> |