mirror of
https://github.com/servo/servo.git
synced 2025-10-09 21:10:19 +01:00
16 lines
581 B
HTML
16 lines
581 B
HTML
<!doctype html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<iframe id="i" src="/common/blank.html"></iframe>
|
|
<script>
|
|
async_test(t => {
|
|
window.onload = t.step_func(() => {
|
|
i.contentWindow.onunload = t.step_func(() => {
|
|
i.contentWindow.history.replaceState(null, "", "#");
|
|
i.remove();
|
|
t.step_timeout(t.step_func_done(), 0);
|
|
});
|
|
i.contentWindow.location = "/common/blank.html?1";
|
|
});
|
|
}, "reacting to the navigate event doesn't crash when replaceState is called in onunload");
|
|
</script>
|