ladybird/Tests/LibWeb/Text/input/ResizeObserver
Andreas Kling a36f8aa36d LibWeb: Keep ResizeObserver targets weakly
Store ResizeObservation targets weakly, matching Blink and WebKit. A
ResizeObserver can be kept alive by the document while it has observed
targets, but the observation itself should not keep a removed target and
its subtree alive forever.

Prune dead observations before gathering active resize observations.
Snapshot the document observer list before pruning so unregistering an
observer cannot mutate the intrusive list being iterated. Keep gathered
active targets rooted while broadcasting callbacks, since an earlier
callback can remove a later target and trigger GC before delivery.

Expose an internals helper to force environment-bound test objects to be
treated as garbage. Add text coverage for both pruning a dead observer
during gather and GC during an earlier resize observer callback.
2026-05-16 18:48:52 +02:00
..
active-target-survives-earlier-callback-gc.html LibWeb: Keep ResizeObserver targets weakly 2026-05-16 18:48:52 +02:00
dead-observer-does-not-skip-active-observer.html LibWeb: Keep ResizeObserver targets weakly 2026-05-16 18:48:52 +02:00
disconnect.html LibWeb: Implement ResizeObserver::disconnect() 2024-02-20 10:55:10 +01:00
notify-if-node-is-removed.html LibWeb: Null layout and paintable pointers of removed DOM::Node 2024-02-20 10:55:10 +01:00
notify-if-parent-is-removed.html LibWeb: Null layout and paintable pointers of removed DOM::Node 2024-02-20 10:55:10 +01:00
observe-after-load-fires-initial-callback.html LibWeb: Schedule a frame when ResizeObserver starts observing 2026-04-30 21:14:03 +02:00
observe-border-box.html
observe.html LibWeb: Pass ResizeObserver instance as a second argument to callback 2025-09-08 18:39:54 +02:00
unobserve.html LibWeb: Implement ResizeObserver::unobserve() 2024-02-20 10:55:10 +01:00