| Index: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-WARN-top-navigation-without-user-gesture.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-WARN-top-navigation-without-user-gesture.html b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-WARN-top-navigation-without-user-gesture.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8498dc9155425cf2056760673ce625192be393d3
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/sandbox-WARN-top-navigation-without-user-gesture.html
|
| @@ -0,0 +1,25 @@
|
| +<html>
|
| +<head>
|
| +<script>
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.dumpChildFramesAsText();
|
| + testRunner.setDumpConsoleMessages(true);
|
| + testRunner.waitUntilDone();
|
| +}
|
| +
|
| +if (window.internals)
|
| + internals.runtimeFlags.setFramebustingNeedsSameOriginOrUserGesture = true;
|
| +
|
| +window.addEventListener("message", e => {
|
| + if (e.data == "PASS")
|
| + testRunner.notifyDone();
|
| + else
|
| + testRunner.testFailed("'top.location' didn't throw.");
|
| +});
|
| +</script>
|
| +</head>
|
| +<body>
|
| +<iframe sandbox='allow-top-navigation allow-scripts' src="http://localhost:8000/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html"></iframe>
|
| +</body>
|
| +</html>
|
|
|