ladybird/Tests/LibWeb/Text/input/SVG
sideshowbarker a38407d457 LibWeb: Unregister a “use” element from its document when finalized
Problem: Discarding a document that contains an SVG “use” element could
abort the process with a !is_in_list() verification failure in the
IntrusiveListNode destructor. That surfaced intermittently in our style-
invalidation stress tests, depending on GC sweep order.

Cause: A “use” element connected to a document registers itself in the
document’s list of “use” elements and unregisters during its removal
steps. A GC’ed “use” element is swept without running those removal
steps — so it stays linked. When it’s destroyed before its document,
its list node is still linked — and the destructor aborts.

Fix: Override finalize() to unregister the “use” element before
destruction. The collector finalizes every dying cell before destroying
any of them. So, the node is always unlinked in time — the same approach
DocumentObserver and NavigationObserver already use.
2026-06-18 09:39:47 +02:00
..
a-element-prototype.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
getBBox-outermost-svg-element-crash.html LibWeb: Don't crash when calling getBBox() on the outermost SVG element 2024-09-07 14:35:02 +02:00
gradient-with-reference-cycle.html LibWeb: Handle reference cycles in SVG gradient linking 2024-03-11 18:29:10 +01:00
removeChild-on-ancestor-of-use-element.html LibWeb: Don't treat SVG "use clone" removals as "use source" removals 2025-08-07 22:15:36 +02:00
script-element-dynamic-insertion.html LibWeb/SVG: Process script element when its text content changes 2025-02-26 16:08:35 +01:00
svg-circle-detached.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-className-attribute.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-element-proto.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-feGaussianBlur-stdDeviation.html LibWeb: Implement SVGAnimatedNumber 2025-07-11 11:25:59 +01:00
svg-foreignobject-abspos-outside-cb-sibling-characterdata.html LibWeb: Fix SVG partial relayout skipping abspos sibling updates 2026-02-14 03:20:34 +01:00
svg-foreignobject-abspos-outside-cb-text-change.html LibWeb: Fix partial relayout of abspos with containing block outside SVG 2026-02-13 17:47:49 +01:00
svg-foreignObject-abspos-preserved-during-partial-relayout.html LibWeb: Make foreignObject establish a containing block for abspos 2026-02-17 15:59:59 +01:00
svg-foreignObject-abspos-size-change-during-partial-relayout.html LibWeb: Make foreignObject establish a containing block for abspos 2026-02-17 15:59:59 +01:00
svg-getbbox-transform-with-no-inverse.html LibWeb/SVG: Ensure SVG transform has an inverse before using it 2024-07-22 09:13:25 +02:00
svg-href-qualified-name.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-href.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-intrinsic-size-invalidation-in-flex.html LibWeb: Stop intrinsic size cache invalidation at SVG root boundaries 2026-02-05 20:26:30 +01:00
svg-intrinsic-size-invalidation-in-grid.html LibWeb: Stop intrinsic size cache invalidation at SVG root boundaries 2026-02-05 20:26:30 +01:00
svg-nested-in-g-with-transform-relayout.html Tests: Add test for SVG relayout with ancestor graphics element 2026-02-09 03:02:49 +01:00
svg-ownerSVGElement-attribute.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-partial-relayout-does-not-leak-ancestor-paintables.html Tests: Add failing test for SVG partial relayout paintable leak 2026-02-15 17:47:30 +01:00
svg-rect-animated-length.html LibWeb: Implement SVGLength's read-only property 2025-08-27 11:50:27 +02:00
svg-script-element.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-svg-getElementById.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-viewBox-attribute.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
svg-viewbox-syntax.html LibWeb/SVG: Parse comma-separated SVG viewBox 2025-08-30 15:49:11 +02:00
svg-viewbox-zero-height.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
use-element-does-not-reclone-on-load.html LibWeb: Avoid redundant SVG use recloning 2026-05-31 15:49:58 +02:00
use-element-gc-in-discarded-document.html LibWeb: Unregister a “use” element from its document when finalized 2026-06-18 09:39:47 +02:00
use-element-inserted-together-with-referenced-element.html LibWeb: Track connected SVG use elements in a per-document list 2026-06-11 15:28:59 +02:00
use-element-moveBefore-registry.html LibWeb: Track connected SVG use elements in a per-document list 2026-06-11 15:28:59 +02:00
use-element-shadow-tree-removal.html LibWeb: Fix excessive recursion when removing SVG elements from use tree 2026-01-14 11:46:23 +01:00
use-shadowRoot-closed.html LibWeb: SVG use element shadow roots should be closed, not open 2025-08-07 22:15:36 +02:00