mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:57:36 +00:00
LibWeb: Don't crash when accessing property in detached Window object
After removing an iframe from the DOM, its contentWindow will be detached from its browsing context, per spec. Because the contentWindow is still accessible, we cannot assume that Window objects always have an associated browsing context. This needs to be fixed in the spec, but let's add a sensible null check in the meantime.
This commit is contained in:
parent
2e0297d703
commit
ad843b6e4a
5 changed files with 28 additions and 6 deletions
|
@ -0,0 +1,3 @@
|
|||
|
||||
null
|
||||
PASS (didn't crash)
|
Loading…
Add table
Add a link
Reference in a new issue