summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/navigation-api/navigation-methods/navigate-from-initial-about-blank-gc.html
blob: d35121ec819a7074ce3673a88f56e75f2007ec1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/gc.js"></script>

<iframe id="i" src="/common/blank.html"></iframe>

<!--
  Regression test for https://bugs.chromium.org/p/chromium/issues/detail?id=1289864.
-->

<script>
promise_test(t => {
  i.contentWindow.navigation.navigate("/common/blank.html?1");

  return garbageCollect();
}, `navigate() from <iframe> with src="" but still on initial about:blank doesn't cause a crash on GC`);
</script>