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

Clean up popover focusing steps #8998

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

nt1m
Copy link
Member

@nt1m nt1m commented Mar 8, 2023

Fixes #8994

(See WHATWG Working Mode: Changes for more details.)


/interaction.html ( diff )
/popover.html ( diff )

source Outdated Show resolved Hide resolved
webkit-commit-queue pushed a commit to nt1m/WebKit that referenced this pull request Mar 9, 2023
https://bugs.webkit.org/show_bug.cgi?id=253231
rdar://106132025

Reviewed by Ryosuke Niwa.

https://html.spec.whatwg.org/#popover-focusing-steps

PR open here to update the popover focusing steps: whatwg/html#8998

The remaining failures are due to new dialog focusing steps being not implemented yet (TBD in https://bugs.webkit.org/show_bug.cgi?id=250795)

* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-focus-2-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-focus-child-dialog-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/semantics/popovers/popover-focus-expected.txt:
* Source/WebCore/dom/Element.cpp:
(WebCore::autoFocusDelegate):
(WebCore::Element::findFocusDelegateForTarget):
(WebCore::Element::findAutofocusDelegate):
* Source/WebCore/dom/Element.h:
* Source/WebCore/html/HTMLElement.cpp:
(WebCore::runPopoverFocusingSteps):
(WebCore::HTMLElement::showPopover):

Canonical link: https://commits.webkit.org/261400@main
@nt1m nt1m force-pushed the cleanup-popover-focusing-steps branch from cc031fd to 3f306b4 Compare March 14, 2023 00:37
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 14, 2023
This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with additional code in GetAutofocusDelegate.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
@annevk annevk added the topic: popover The popover attribute and friends label Mar 16, 2023
@nt1m nt1m force-pushed the cleanup-popover-focusing-steps branch from 3f306b4 to 3cb3aca Compare June 7, 2023 05:11
@nt1m nt1m force-pushed the cleanup-popover-focusing-steps branch from 3cb3aca to ef727d8 Compare June 7, 2023 20:15
@annevk annevk merged commit bf2655b into whatwg:main Jun 8, 2023
@nt1m nt1m deleted the cleanup-popover-focusing-steps branch June 8, 2023 05:52
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 21, 2023
This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with additional code in GetAutofocusDelegate.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 22, 2023
This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with a call to GetAutofocusDelegate. This removes
support for a use case where the popover is a shadow host with
delegatesFocus, but after discussing this doesn't seem like an important
use case.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
aarongable pushed a commit to chromium/chromium that referenced this pull request Jun 22, 2023
This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with a call to GetAutofocusDelegate. This removes
support for a use case where the popover is a shadow host with
delegatesFocus, but after discussing this doesn't seem like an important
use case.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4336167
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1161492}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 22, 2023
This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with a call to GetAutofocusDelegate. This removes
support for a use case where the popover is a shadow host with
delegatesFocus, but after discussing this doesn't seem like an important
use case.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4336167
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1161492}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Jun 22, 2023
This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with a call to GetAutofocusDelegate. This removes
support for a use case where the popover is a shadow host with
delegatesFocus, but after discussing this doesn't seem like an important
use case.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4336167
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1161492}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jul 6, 2023
Automatic update from web-platform-tests
Refactor popover initial focus

This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with a call to GetAutofocusDelegate. This removes
support for a use case where the popover is a shadow host with
delegatesFocus, but after discussing this doesn't seem like an important
use case.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4336167
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1161492}

--

wpt-commits: 9aa7d07db6ed3423e1df099a7f7e048b59549b82
wpt-pr: 38994
ErichDonGubler pushed a commit to erichdongubler-mozilla/firefox that referenced this pull request Jul 7, 2023
Automatic update from web-platform-tests
Refactor popover initial focus

This patch removes the autofocus_only parameter from GetFocusDelegate
and replaces it with a call to GetAutofocusDelegate. This removes
support for a use case where the popover is a shadow host with
delegatesFocus, but after discussing this doesn't seem like an important
use case.

This is being changed in the spec here:
whatwg/html#8998

Bug: 1307772
Change-Id: Id7b92d467492030f4a9226ad3f5ae0a10f1896e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4336167
Auto-Submit: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1161492}

--

wpt-commits: 9aa7d07db6ed3423e1df099a7f7e048b59549b82
wpt-pr: 38994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: popover The popover attribute and friends
Development

Successfully merging this pull request may close these issues.

WPT testing non-standard behavior for popover focusing steps
4 participants