[Webkit-unassigned] [Bug 225639] [iOS] HTML datepicker's min-max attribute not working

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 20 16:36:05 PDT 2024


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

Darryl Pogue <dvpdiner2 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dvpdiner2 at gmail.com

--- Comment #5 from Darryl Pogue <dvpdiner2 at gmail.com> ---
This seems to be due to the iOS date picker being a custom implementation through WKContentViewInteraction rather than implementing a WebDateTimePicker through the page client. My guess is because the iOS implementation predates the refactoring done to bring this to desktop platforms like macOS and GTK.

https://github.com/WebKit/WebKit/blob/e004ae642c29d20e9684279124065f07a98883fb/Source/WebKit/UIProcess/ios/PageClientImplIOS.mm#L990-L995

WKContentViewInteraction sets up the WKDateTimeInputControl based on the focusedElementInformation, which does not contain the min/max values.

WebDateTimePicker is meant to get called with WebCore::DateTimeChooserParameters that provides all the values needed to set up the picker correctly.

To further complicate the situation, the iOS side also has some special case handling for date/time pickers on watchOS that use a different UI library.

-- 
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/20240420/bc978e0f/attachment.htm>


More information about the webkit-unassigned mailing list