mirror of
https://github.com/servo/servo
synced 2026-05-14 02:47:14 +02:00
When one unbinds an iframe from the tree, its browsing context is destroyed, however if script keeps a reference to the window, it can still try to open an auxiliary, resulting in a crash because the constellation has already removed the browsing context. This adds a non-intermittent test for the problem, and addresses it in a seemingly ad-hoc way by checking whether the browsing context has already been discarded, and if so doing an early return, as part of the window open steps. Testing: Added a crash test in the mozilla wpt folder. Fixes: https://github.com/servo/servo/issues/39716 --------- Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>