<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe id="i" src="/common/blank.html"></iframe>
<script>
promise_test(async t => {
  await new Promise(resolve => i.onload = resolve);
  let iframe_constructor = i.contentWindow.DOMException;
  let iframe_typeerror = i.contentWindow.TypeError;
  let abort_signal;
  let onabort_called = false;
  i.contentWindow.navigation.onnavigate = t.step_func(e => {
    abort_signal = e.signal;
    