Timothy Flynn
18a4455d43
LibWeb: Do not assume a shadow root has a host
...
After commit ff48b7333c , we remove shadow
roots from elements that are removed from the DOM. Setting a node's
shadow root to null also sets that shadow root's host to null. Thus, the
comment in Node::is_shadow_including_descendant_of that assumes the host
is always non-null is not true.
The test added here would previously crash when interacting with a node
that is a descendant of a removed shadow root.
2023-12-04 01:33:57 +01:00
..
2023-11-28 17:15:27 -05:00
2023-11-20 15:00:19 +01:00
2023-12-03 20:46:55 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-12-03 20:29:14 +01:00
2023-12-04 01:33:57 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-12-03 20:28:10 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-12-04 01:33:57 +01:00
2023-12-04 00:04:04 +01:00
2023-12-04 01:33:57 +01:00
2023-11-28 17:15:27 -05:00
2023-12-02 22:06:11 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-12-04 01:33:57 +01:00
2023-12-03 23:16:17 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-12-03 20:26:14 +01:00
2023-12-02 22:54:53 +01:00
2023-12-02 10:34:22 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-11-29 09:48:18 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-12-02 22:54:53 +01:00
2023-11-28 17:15:27 -05:00
2023-11-28 17:15:27 -05:00
2023-12-02 22:54:53 +01:00
2023-11-30 08:49:15 +00:00
2023-11-28 17:15:27 -05:00
2023-11-24 08:43:35 +01:00
2023-11-24 08:37:19 +01:00
2023-11-24 08:42:18 +01:00