ladybird/Tests/LibWeb
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
..
Assets LibWeb: Verify whitespace font has the glyph in font_for_space() 2026-04-22 20:27:41 +02:00
Crash LibWeb: Don't crash when evaluating XPath against a rootless document 2026-06-23 08:59:01 +02:00
CSSTokenizer LibWeb: Clamp CSS numeric token values to float range 2026-04-22 14:24:12 +01:00
Fixtures Tests: Configure WPT server substitutions for local hosts 2026-06-11 17:01:48 +02:00
Layout LibWeb: Use resolved subgrid inline size for row contributions 2026-06-22 18:27:22 +02:00
Ref LibWeb: Use computed display value for ::first-letter layout wrappers 2026-06-22 09:43:07 +02:00
Screenshot LibGfx+LibWeb: Preserve text color for selections 2026-06-18 22:43:26 +02:00
test-web test-web: Don't include skipped tests in --dry-run output 2026-06-19 09:47:55 +02:00
Text LibWeb: Define name and length properties on exported wasm functions 2026-06-23 08:57:08 +02:00
Tokenizer LibWeb: Add HTML tokenizer dump tests 2026-05-15 21:01:40 +02:00
add_libweb_test.py LibWeb: Compare Screenshot tests directly against expected PNGs 2026-02-24 09:55:14 +01:00
CMakeLists.txt LibWeb: Preserve compatible visual context tree versions 2026-06-18 00:12:42 +02:00
css-tokenizer.cpp LibWeb: Honor requested CSS tokenizer encoding 2026-05-18 14:08:22 +02:00
test-css-tokenizer.py LibWeb/CSS: Port the CSS Tokenizer to Rust 2026-05-03 09:49:00 +02:00
TestAccumulatedVisualContext.cpp LibWeb: Skip repaint for visual context-only style changes 2026-06-18 00:12:42 +02:00
TestConfig.ini LibWeb: Reject canvas toDataURL()/toBlob() when not origin-clean 2026-06-18 10:52:42 +02:00
TestContentBlocker.cpp LibWeb: Use adblock-rust in ContentBlocker 2026-05-24 08:16:46 +02:00
TestControlMessageQueue.cpp LibWeb/WebAudio: Add stable IDs to AudioNodes 2026-01-23 15:03:43 +01:00
TestCSSIDSpeed.cpp LibWeb: Rename "identifier" and "ValueID" to "Keyword" where correct 2024-08-15 13:58:38 +01:00
TestCSSInheritedProperty.cpp LibWeb/CSS: Remove PropertyID::Invalid 2025-09-30 15:21:09 +02:00
TestCSSPixels.cpp LibWeb: Saturate CSSPixels::abs() at the i32 minimum 2026-06-22 17:00:14 +02:00
TestCSSStyleSheetInvalidation.cpp LibWeb: Split shadow stylesheet host-side invalidation reach 2026-05-05 18:36:34 +02:00
TestCSSSyntaxParser.cpp LibWeb/CSS: Parse the CSS <syntax> type into a tree 2025-07-16 14:47:45 +01:00
TestCSSTokenizer.cpp LibWeb: Honor requested CSS tokenizer encoding 2026-05-18 14:08:22 +02:00
TestCSSTokenStream.cpp LibWeb/CSS: Bring TokenStream in line with spec 2024-10-09 17:29:29 +01:00
TestFetchResponse.cpp LibWeb: Preserve JS bytecode in memory cache 2026-06-06 09:15:09 +02:00
TestFetchURL.cpp Everywhere: Remove some use of the URL constructors 2025-02-19 08:01:35 -05:00
TestHTMLTokenizer.cpp LibWeb: Replace the HTML tokenizer with Rust 2026-05-15 21:01:40 +02:00
TestMicrosyntax.cpp LibWeb: Add test for week_number_of_the_last_day microsyntax 2023-12-11 14:04:27 -07:00
TestMimeSniff.cpp LibWeb/MimeSniff: Update Rar signature to match spec 2025-07-31 16:21:20 +02:00
TestNumbers.cpp LibWeb: Add “valid floating-point number” for HTMLInputElement.value 2024-08-28 07:49:17 -04:00
TestPage.cpp LibWeb+WebContent+WebWorker: Drop display list player type selection 2026-06-18 10:25:44 +02:00
TestRefCountedTreeNode.cpp LibWeb: Add RefCountedTreeNode 2026-05-07 15:03:44 +02:00
TestSecureContexts.cpp LibWeb/SecureContexts: Correct the 127.0.0.0/8 trustworthiness check 2026-05-31 21:56:18 +02:00
TestSessionHistoryEntry.cpp LibWeb: Let newer navigations win history races 2026-06-16 00:00:38 +02:00
TestSourceHighlighter.cpp LibSyntax+LibJS+LibWebView: Port the syntax highlighter to UTF-8 2026-06-06 18:42:18 +02:00
TestStrings.cpp LibWeb: Only use code unit length for is_code_unit_prefix 2025-05-12 11:20:32 +02:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00