Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 02f7a612039f3c91d767af54ee0212db38436c19
https://github.com/WebKit/WebKit/commit/02f7a612039f3c91d767af54ee0212db38436c19
Author: Aditya Keerthi <[email protected]>
Date: 2025-09-29 (Mon, 29 Sep 2025)
Changed paths:
A
LayoutTests/fast/forms/ios/select-change-focus-to-another-select-expected.txt
A LayoutTests/fast/forms/ios/select-change-focus-to-another-select.html
M Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm
Log Message:
-----------
[iOS] <select> element menu may dismiss early
https://bugs.webkit.org/show_bug.cgi?id=299822
rdar://147261775
Reviewed by Wenson Hsieh and Abrar Rahman Protyasha.
When presenting a context menu after dismissing another one, the first menu's
dismissal animation may complete while the second menu is being presented. This
scenario is not accounted for in `WKSelectPicker`, which calls
`-[WKContentView accessoryDone]` whenever a dismissal animation is completed.
Consequently, the completion of the dismissal of the first menu can trigger the
dismissal of the second menu.
Fix by only calling `accessoryDone` after dismissal if the focused element is
still the same. If the focused element changes for any other reason, the menu
would already be dismissed.
*
LayoutTests/fast/forms/ios/select-change-focus-to-another-select-expected.txt:
Added.
* LayoutTests/fast/forms/ios/select-change-focus-to-another-select.html: Added.
* Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm:
(-[WKSelectPicker contextMenuInteraction:willEndForConfiguration:animator:]):
Canonical link: https://commits.webkit.org/300720@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes