gecko-dev/docshell/test/navigation/file_bug1375833.html
Toby Ward 75e6200c17 Bug 1496082: Enable ESLint for docshell/test/navigation and docshell/test/unit (automatic fixes only). r=bzbarsky
Enabled ESLint for:

* docshell/test/navigation/**
* docshell/test/unit/**
* docshell/test/unit_ipc/**

Changed .eslintignore to allow for this and ran ./mach eslint --fix on the above directories and checked automatic fixes

Differential Revision: https://phabricator.services.mozilla.com/D9430

--HG--
extra : moz-landing-system : lando
2018-11-07 13:55:47 +00:00

23 lines
704 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test for bug 1375833</title>
</head>
<body onload="test();">
<iframe id="testFrame" src="file_bug1375833-frame1.html"></iframe>
<script type="application/javascript">
function test() {
let iframe = document.querySelector("#testFrame");
setTimeout(function() { iframe.src = "file_bug1375833-frame1.html"; }, 0);
iframe.onload = function(e) {
setTimeout(function() { iframe.src = "file_bug1375833-frame2.html"; }, 0);
iframe.onload = function() {
opener.postMessage(iframe.contentWindow.location.href, "*");
};
};
}
</script>
</body>
</html>