Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / resources / window-postmessage-user-gesture-frame.html
blob2389160ad9ac26692902ee41ef949b81106ab45a
1 <script>
2 window.onmessage = function (event) {
3 var msg = event.data;
5 if (msg.consumeInFrame &&
6 msg.count >= msg.consumeIndex &&
7 window.open("about:blank", Math.random()))
8 msg.consumeCount++;
10 event.source.postMessage(msg, "*");
12 </script>