Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8beb78405804b3d60c4a04c38ba550e3c73e8978
https://github.com/WebKit/WebKit/commit/8beb78405804b3d60c4a04c38ba550e3c73e8978
Author: Ryosuke Niwa <[email protected]>
Date: 2026-03-18 (Wed, 18 Mar 2026)
Changed paths:
M Source/WebCore/dom/ContainerNode.cpp
M Source/WebCore/html/HTMLAnchorElement.cpp
M Source/WebCore/html/HTMLSlotElement.cpp
Log Message:
-----------
didFinishInsertingNode should only be called for connected nodes
https://bugs.webkit.org/show_bug.cgi?id=310171
Reviewed by Anne van Kesteren.
This PR aligns the semantics of didFinishInsertingNode with "post-connection
steps" [1]
by avoid calling it on a disconnected node.
No new tests since there should be no behavioral changes.
[1] https://dom.spec.whatwg.org/#concept-node-post-connection-ext
* Source/WebCore/dom/ContainerNode.cpp:
(WebCore::executeNodeInsertionWithScriptAssertion):
* Source/WebCore/html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::insertedIntoAncestor):
* Source/WebCore/html/HTMLSlotElement.cpp:
(WebCore::HTMLSlotElement::insertedIntoAncestor):
Canonical link: https://commits.webkit.org/309482@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications