Skip to content

Update shadow DOM and dialog element focusing to latest spec - #2828

Merged
webkit-early-warning-system merged 1 commit into
WebKit:mainfrom
nt1m:focus-delegate-for-dialog
Jul 29, 2022
Merged

webkit-early-warning-system merged 1 commit into
WebKit:mainfrom
nt1m:focus-delegate-for-dialog

Conversation

@nt1m

@nt1m nt1m commented Jul 28, 2022 •

Copy link
Copy Markdown
Member

696e8c1

Update shadow DOM and dialog element focusing to latest spec
https://bugs.webkit.org/show_bug.cgi?id=233320
<rdar://85753180>

Reviewed by Ryosuke Niwa.

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-focus-shadow-double-nested-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-focus-shadow-expected.txt:
* Source/WebCore/dom/Element.cpp:
(WebCore::autoFocusDelegate):
(WebCore::findFocusDelegateInternal):
(WebCore::Element::findFocusDelegate):
(WebCore::Element::focus):
(WebCore::focusDelegateFromShadowHost): Deleted.
* Source/WebCore/dom/Element.h:
* Source/WebCore/html/HTMLDialogElement.cpp:
(WebCore::HTMLDialogElement::runFocusingSteps):

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

@nt1m
nt1m requested review from cdumez and rniwa as code owners July 28, 2022 22:33
@nt1m nt1m self-assigned this Jul 28, 2022
@nt1m nt1m added DOM For bugs specific to XML/HTML DOM elements (including parsing). WebKit Nightly Build labels Jul 28, 2022
@nt1m
nt1m requested a review from whsieh July 28, 2022 22:33
@nt1m
nt1m force-pushed the focus-delegate-for-dialog branch from 83412a8 to 490bb82 Compare July 28, 2022 22:40
Comment thread Source/WebCore/dom/Element.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread Source/WebCore/dom/Element.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not calling this function findFocusDelegateInternal or findFocusDelegateRecursively.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with these two failures?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll followup with Domenic to figure out if this test needs fixing.

@rniwa rniwa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me. It's unclear whether we have a bug or the test is wrong with the failing test cases.

@nt1m
nt1m force-pushed the focus-delegate-for-dialog branch from 490bb82 to 1d6cd03 Compare July 29, 2022 18:37
@nt1m nt1m added the merge-queue Applied to send a pull request to merge-queue label Jul 29, 2022
https://bugs.webkit.org/show_bug.cgi?id=233320
<rdar://85753180>

Reviewed by Ryosuke Niwa.

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-focus-shadow-double-nested-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/dialog-focus-shadow-expected.txt:
* Source/WebCore/dom/Element.cpp:
(WebCore::autoFocusDelegate):
(WebCore::findFocusDelegateInternal):
(WebCore::Element::findFocusDelegate):
(WebCore::Element::focus):
(WebCore::focusDelegateFromShadowHost): Deleted.
* Source/WebCore/dom/Element.h:
* Source/WebCore/html/HTMLDialogElement.cpp:
(WebCore::HTMLDialogElement::runFocusingSteps):

Canonical link: https://commits.webkit.org/252959@main
@webkit-commit-queue

Copy link
Copy Markdown
Collaborator

Committed 252959@main (696e8c1): https://commits.webkit.org/252959@main

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

@webkit-early-warning-system
webkit-early-warning-system merged commit 696e8c1 into WebKit:main Jul 29, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Jul 29, 2022
@nt1m
nt1m deleted the focus-delegate-for-dialog branch July 29, 2022 20:11
@nt1m nt1m mentioned this pull request Aug 10, 2022
3 tasks done
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.

4 participants