mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Fire iframe load event on document close
This matches the behavior of other browsers.
This commit is contained in:
committed by
Andreas Kling
parent
00487a7b25
commit
e1eeb93cc6
Notes:
github-actions[bot]
2024-10-08 04:55:47 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e1eeb93cc60 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1673
@@ -0,0 +1,15 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user