| Index: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/top-navigate-in-onmessage.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/top-navigate-in-onmessage.html b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/top-navigate-in-onmessage.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0e4cfaf00183ff1a19d05041474b152d2bfe0074
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/top-navigate-in-onmessage.html
|
| @@ -0,0 +1,15 @@
|
| +<body>
|
| +<script>
|
| +function navigate(e) {
|
| + // double-nested setTimeout() to ensure that the UserGesturToken
|
| + // isn't active when the navigation is triggered.
|
| + setTimeout(function() {
|
| + setTimeout(function() {
|
| + top.location = "http://127.0.0.1:8000/navigation/resources/pass-and-notify-done.html";
|
| + }, 0);
|
| + }, 0);
|
| +}
|
| +
|
| +window.addEventListener("message", navigate, false);
|
| +</script>
|
| +</body>
|
|
|