LibWeb: Don't crash on getClientRects() in document without navigable

I previously believed there was no way a detached document should have
layout information, but it turns out there is a way: getComputedStyle().

So we need to account for cases where we have a layout node, but no
navigable, since that is a state we can get into at this moment.

Fixes #354
This commit is contained in:
Andreas Kling 2024-08-05 11:28:42 +02:00 committed by Andreas Kling
commit 1e7b17f150
Notes: github-actions[bot] 2024-08-05 12:56:54 +00:00
3 changed files with 24 additions and 5 deletions

View file

@ -0,0 +1,3 @@
[object CSSStyleDeclaration]
[object DOMRectList]
PASS (didn't crash)