blob: 1c7c6ce29759dc13c7c9a83b0e22b930f4e5c386 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Test window for top navigation by location tests</title>
<script>
function onBlock() {
opener.postMessage({ name: window.name, blocked: true }, '*');
}
function onNav() {
opener.postMessage({ name: window.name, blocked: false }, '*');
}
function setOwnHref() {
location.href = location.href;
}
window.onload = onNav;
</script>
</head>
<body>
<iframe name="if1" sandbox="allow-scripts allow-same-origin"></iframe>
<iframe name="if2" sandbox="allow-scripts allow-same-origin allow-top-navigation"></iframe>
</body>
</html>
|