summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/navigation-api/navigation-history-entry/sameDocument-after-navigate.html
blob: bfcb7c6599729c551bc447cde058b4477570e043 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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(() => {
    let i_entry = i.contentWindow.navigation.currentEntry;
    assert_true(i_entry.sameDocument);
    i.onload = t.step_func_done(() => assert_false(i_entry.sameDocument));
    i.contentWindow.location = "about:blank";
  });
}, "entry.sameDocument after cross-document navigation");
</script>