gecko-dev/dom/base/crashtests/1588259.html
Kris Maglione d70b88f5d6 Bug 1605433: Close window opened by crashtest after a brief timeout. r=smaug
Without this, the window just stays open in the background, constantly
re-submitting forms to itself.

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

--HG--
extra : moz-landing-system : lando
2019-12-20 22:50:16 +00:00

22 lines
490 B
HTML

<html class="reftest-wait">
<script>
if (location.search == "?x=") {
setTimeout(() => window.close(), 1000);
} else {
document.fonts.onloadingdone = () => {
document.forms[1].submit();
};
window.onload = () => {
document.forms[0].submit();
setTimeout(() => {
document.documentElement.removeAttribute("class");
}, 1000);
};
}
</script>
<body>
<form target="bug1588259"><input name="x"></form>
<form target="bug1588259"><input name="x"></form>
</body>
</html>