[Webkit-unassigned] [Bug 252441] New: Always store user-exposed elements as dialog & popover previously focused elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 16 15:39:44 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=252441
Bug ID: 252441
Summary: Always store user-exposed elements as dialog & popover
previously focused elements
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ntim at apple.com
Webkit sometimes store the UA shadow DOM of <input> element as previously focused elements, which fails focus restoration if input changes type.
There should be a common method to get the "exposed" focused element, and it should be used to store the previously focused element.
It should also be used here as well (in FrameView.cpp): https://github.com/WebKit/WebKit/commit/a728674047d7d348157d6e313ddcb9d9662c48c5 (the issue was that the code was trying to get the scroll margin of the UA shadow DOM instead of the input itself)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230216/b50d8c04/attachment.htm>
More information about the webkit-unassigned
mailing list