Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 3fa5dd557fcbe80731eea7cf7d65b23ff1e5c4f8
https://github.com/WebKit/WebKit/commit/3fa5dd557fcbe80731eea7cf7d65b23ff1e5c4f8
Author: Ryosuke Niwa <[email protected]>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/adoption.window-expected.txt
M Source/WebCore/dom/Node.cpp
M Source/WebCore/dom/Node.h
Log Message:
-----------
Some tests in custom-elements/registries/adoption.window.html fail
https://bugs.webkit.org/show_bug.cgi?id=319463
Reviewed by Chris Dumez.
When a node, which uses the global registry of a document, gets adopted to
another document that
is associated with a scoped custom element registry (i.e. it didn't have a
browsing context so
there was no global registry), it must use null registry after the adoption.
Test:
imported/w3c/web-platform-tests/custom-elements/registries/adoption.window.html
*
LayoutTests/imported/w3c/web-platform-tests/custom-elements/registries/adoption.window-expected.txt:
* Source/WebCore/dom/Node.cpp:
(WebCore::Node::adoptCustomElementRegistryIntoScopedRegistryDocument): Added.
(WebCore::Node::moveNodeToNewDocumentFastCase):
(WebCore::Node::moveNodeToNewDocumentSlowCase):
* Source/WebCore/dom/Node.h:
Canonical link: https://commits.webkit.org/317251@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications