blob: e97b72b15717325b49594382931635574c76f65c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!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>
|