blob: 5e80410206d0d2fe7cbe5faef206c9a930a5a8ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!doctype html>
<meta charset="utf-8">
<title>iframe.focus() with different-site intermediate frame outer</title>
<script>
let log = "";
function getLog() {
return log;
}
window.onmessage = function(e) {
log += e.data;
};
window.onload = function() {
log += "outeronload;";
log += "outeractivelement:" + document.activeElement.localName + ";";
document.getElementsByTagName("iframe")[0].contentWindow.postMessage("starttest;", "*");
setTimeout(function() {
log += "outeractivelement:" + document.activeElement.localName + ";";
opener.postMessage(getLog(), "*");
}, 3000);
}
</script>
<iframe src="http://{{hosts[alt][www]}}:{{ports[http][0]}}/focus/support/iframe-focus-with-different-site-intermediate-frame-middle.sub.html"></iframe>
|