Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /html/browsers/browsing-the-web/navigating-across-documents/abort-document-window-stop.sub.window.html - WPT Dashboard Interop Dashboard
// META: title=Child that immediately stops window during loading does not crash
// META: script=../resources/helpers.js
async_test((test) => {
addIframe().then(iframe => {
iframe.contentWindow.addEventListener("unload", test.step_func_done(() => {
assert_equals(
iframe.contentWindow.location.href,
);
}));
iframe.src = "./resources/child-immediately-stops-during-loading.html";
});
});