summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/scripting-1/the-script-element/resources/promise-reject-and-remove-iframe.html
blob: 6da274469f87f5f1391fe221daefcb9db76be62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<script>
const promise = Promise.reject();

window.onload = () => {
  promise.catch(() => parent.document.querySelector('iframe').remove());
};
</script>

<!-- Load a slow script to delay window.onload for a while.
     Without this, crashes are flaky. -->
<script src="/common/slow.py"></script>