mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
f686ff4de9
Differential Revision: https://phabricator.services.mozilla.com/D96869
29 lines
685 B
HTML
29 lines
685 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.finishTest();
|
|
}
|
|
}
|
|
|
|
window.addEventListener("load", function() { setTimeout(test, 0); });
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<iframe src="frame0.html"></iframe>
|
|
<script>
|
|
</script>
|
|
</body>
|
|
</html>
|