Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/resources/top-navigate-in-onmessage.html

Issue 2467993002: Document user gesture state should be able to propagate over postMessage (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <body>
2 <script>
3 function navigate(e) {
4 // double-nested setTimeout() to ensure that the UserGesturToken
5 // isn't active when the navigation is triggered.
6 setTimeout(function() {
7 setTimeout(function() {
8 top.location = "http://127.0.0.1:8000/navigation/resources/pass-and-notify -done.html";
9 }, 0);
10 }, 0);
11 }
12
13 window.addEventListener("message", navigate, false);
14 </script>
15 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-ALLOWED-top-navigation-after-postMessage.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698