mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 22:52:52 +00:00
Fixes crashing when "unload" event handler tries to access active document that has already been destroyed.
10 lines
239 B
HTML
10 lines
239 B
HTML
<!DOCTYPE html>
|
|
<iframe
|
|
name="test"
|
|
srcdoc="<script>window.addEventListener('unload', () => { window['test']; })</script>"
|
|
></iframe>
|
|
<script>
|
|
window.addEventListener("unload", () => {
|
|
window["test"];
|
|
});
|
|
</script>
|