repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
dom
/
Window
/
resources
/
window-postmessage-user-gesture-frame.html
blob
2389160ad9ac26692902ee41ef949b81106ab45a
1
<script>
2
window
.
onmessage
=
function
(
event
) {
3
var
msg
=
event
.
data
;
4
5
if
(
msg
.
consumeInFrame
&&
6
msg
.
count
>=
msg
.
consumeIndex
&&
7
window
.
open
(
"about:blank"
,
Math
.
random
()))
8
msg
.
consumeCount
++;
9
10
event
.
source
.
postMessage
(
msg
,
"*"
);
11
}
12
</script>