fune/docshell/test/navigation/file_shiftReload_and_pushState.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

29 lines
709 B
HTML

<html>
<head>
<script>
function test() {
try {
frames[0].history.pushState({}, "state", "?pushed");
} catch (ex) {
opener.ok(false, "history.pushState shouldn't throw");
}
if (!opener.shiftReloadPushStateFirstRound) {
opener.shiftReloadPushStateFirstRound = true;
window.location.reload(true);
} else {
opener.ok(true, "Did run history.push");
opener.nextTest();
window.close();
}
}
window.addEventListener("load", function() { setTimeout(test, 0); });
</script>
</head>
<body>
<iframe src="frame0.html"></iframe>
<script>
</script>
</body>
</html>