Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixing manual and named slot assignments causes slotchange event to be not dispatched #3258

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

rniwa
Copy link
Member

@rniwa rniwa commented Aug 12, 2022

00898fe

Mixing manual and named slot assignments causes slotchange event to be not dispatched
https://bugs.webkit.org/show_bug.cgi?id=243869

Reviewed by Antti Koivisto.

Fixed the bug that manually assigning a node to a slot inside a shadow tree
in the named slot assignment mode does not enqueue slotchange as expected.

* LayoutTests/fast/shadow-dom/imperative-named-slot-mixture-expected.txt: Added.
* LayoutTests/fast/shadow-dom/imperative-named-slot-mixture.html: Added.
* LayoutTests/platform/win/TestExpectations:

* Source/WebCore/html/HTMLSlotElement.cpp:
(WebCore::HTMLSlotElement::assign):

Canonical link: https://commits.webkit.org/253392@main

@rniwa rniwa requested a review from cdumez as a code owner August 12, 2022 04:20
@rniwa rniwa self-assigned this Aug 12, 2022
@rniwa rniwa added DOM For bugs specific to XML/HTML DOM elements (including parsing). WebKit Nightly Build labels Aug 12, 2022
@rniwa rniwa requested a review from anttijk August 12, 2022 04:26
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Aug 12, 2022
@rniwa rniwa removed the merging-blocked Applied to prevent a change from being merged label Aug 12, 2022
@rniwa rniwa added the merge-queue Applied to send a pull request to merge-queue label Aug 12, 2022
…e not dispatched

https://bugs.webkit.org/show_bug.cgi?id=243869

Reviewed by Antti Koivisto.

Fixed the bug that manually assigning a node to a slot inside a shadow tree
in the named slot assignment mode does not enqueue slotchange as expected.

* LayoutTests/fast/shadow-dom/imperative-named-slot-mixture-expected.txt: Added.
* LayoutTests/fast/shadow-dom/imperative-named-slot-mixture.html: Added.
* LayoutTests/platform/win/TestExpectations:

* Source/WebCore/html/HTMLSlotElement.cpp:
(WebCore::HTMLSlotElement::assign):

Canonical link: https://commits.webkit.org/253392@main
@webkit-commit-queue
Copy link
Collaborator

Committed 253392@main (00898fe): https://commits.webkit.org/253392@main

Reviewed commits have been landed. Closing PR #3258 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 00898fe into WebKit:main Aug 12, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Aug 12, 2022
@rniwa rniwa deleted the fix243869 branch September 21, 2022 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DOM For bugs specific to XML/HTML DOM elements (including parsing).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants