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
/
frames
/
resources
/
sandboxed-iframe-close-top-does-close.html
blob
052194a8aef42c95e003f6340068e6b2679286aa
1
<script>
2
var
haveCalledDone
=
false
;
3
window
.
addEventListener
(
'beforeunload'
,
function
() {
4
if
(!
haveCalledDone
) {
5
haveCalledDone
=
true
;
6
opener
.
done
();
7
}
8
},
false
);
9
</script>
10
<iframe
sandbox
=
"allow-scripts allow-top-navigation"
11
src
=
"close-top.html"
>
12
</iframe>