ladybird/Tests/LibWeb/Crash
sideshowbarker 4af1b9357b LibWeb: Don't crash when evaluating XPath against a rootless document
Problem: Crash when evaluating an XPath expression against a document
that has no root element.

Cause: mirror_node()’s DOCUMENT_NODE branch unconditionally mirrored
document.document_element(). But a document may lack a root element —
in which case, document_element() returns null.

Fix: Return null from mirror_node() when the document has no root
element. (The caller already maps a null mirror result to a failed
evaluation, and raises an error in that case.)

Fixes https://github.com/LadybirdBrowser/ladybird/issues/10004
2026-06-23 08:59:01 +02:00
..
Cookie LibWeb: Decode Set-Cookie response headers before parsing 2026-02-03 07:20:41 -05:00
CSS LibWeb: Bail on unresolved percentages in resolve_value 2026-06-21 08:18:50 +01:00
DOM LibWeb: Don't crash when evaluating XPath against a rootless document 2026-06-23 08:59:01 +02:00
Editing LibWeb: Resolve editing background colors without layout 2026-06-08 01:04:08 +02:00
Fetch LibURL: Strip trailing dot before running the PSL algorithm 2026-02-22 12:07:43 +01:00
HTML LibWeb: Keep child navigable history updates coherent 2026-06-15 01:15:09 +02:00
IndexedDB LibWeb: Add incremental HTML parsing 2026-04-29 04:12:44 +02:00
Internals LibWeb+Tests: Update layout before accessibility tree dumps 2026-06-01 08:28:45 +01:00
JS LibWeb: Use GetFunctionRealm for FinalizationRegistry cleanup callbacks 2026-05-26 01:27:55 +02:00
Layout LibGfx: Clamp HarfBuzz font scaling 2026-06-08 01:04:08 +02:00
Selection LibWeb: Avoid cross-root Selection extend comparisons 2026-06-08 01:04:08 +02:00
SVG LibWeb: Fix crash from SVG resource boxes outliving removed element 2026-06-18 13:35:32 +02:00
UIEvents LibWeb: Resolve selection from retained hit-test data 2026-05-30 13:50:48 +02:00
Wasm LibWasm: Validate a tag's type index before dereferencing it 2026-06-04 13:54:58 +02:00
WebAudio LibWeb: Populate AudioTimestamp dictionaries 2026-05-23 11:36:45 +02:00
wpt-import LibWeb: Consider Size::is_none() in FFC as an unresolvable size 2026-04-01 19:41:46 +01:00