ladybird/Tests/LibWeb/Text/input/HTML/document-close-iframe-load-event.html
Tim Ledbetter e1eeb93cc6 LibWeb: Fire iframe load event on document close
This matches the behavior of other browsers.
2024-10-08 06:55:01 +02:00

15 lines
419 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest(done => {
const iframe = document.createElement('iframe');
document.body.appendChild(iframe);
iframe.contentDocument.open();
iframe.onload = () => {
println("Onload event fired");
iframe.remove();
done();
};
iframe.contentDocument.close();
});
</script>