mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
Fixes crashing when "unload" event handler tries to access active document that has already been destroyed.
11 lines
239 B
HTML
11 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>
|