Bug 216004

Summary: [macOS] Update date picker when the inner control is edited
Product: WebKit Reporter: Aditya Keerthi <akeerthi>
Component: FormsAssignee: Aditya Keerthi <akeerthi>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, changseok, esprehn+autocc, ews-watchlist, gyuyoung.kim, hi, mifenton, m.kurz+webkitbugs, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: Unspecified   
Bug Depends on: 215938    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Patch for landing
ews-feeder: commit-queue-
Patch for landing none

Aditya Keerthi
Reported 2020-08-31 08:29:40 PDT
The value of the attached date picker and the value of the inner control should match.
Attachments
Patch (4.44 KB, patch)
2020-09-01 09:35 PDT, Aditya Keerthi
no flags
Patch (16.47 KB, patch)
2020-09-01 15:45 PDT, Aditya Keerthi
no flags
Patch for landing (16.46 KB, patch)
2020-09-01 16:00 PDT, Aditya Keerthi
ews-feeder: commit-queue-
Patch for landing (16.46 KB, patch)
2020-09-02 07:50 PDT, Aditya Keerthi
no flags
Aditya Keerthi
Comment 1 2020-09-01 09:35:40 PDT
Wenson Hsieh
Comment 2 2020-09-01 09:39:53 PDT
Comment on attachment 407687 [details] Patch It would be nice to have a test for this that sets the value in script and verifies that the UI updates to reflect the new value. Perhaps as a followup, though.
Aditya Keerthi
Comment 3 2020-09-01 15:45:39 PDT
Wenson Hsieh
Comment 4 2020-09-01 15:55:38 PDT
Comment on attachment 407714 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407714&action=review r=mews > Tools/TestRunnerShared/UIScriptContext/UIScriptController.h:220 > + virtual double dateTimePickerValue() const { notImplemented(); return false; } Perhaps return 0; instead of false? > Tools/WebKitTestRunner/mac/UIScriptControllerMac.mm:115 > + return [[(NSDatePicker*)subview dateValue] timeIntervalSince1970] * 1000; Nit - space before the * in NSDatePicker* > LayoutTests/fast/forms/date/date-editable-components/date-picker-update-on-edit.html:35 > + UIHelper.keyDown("3"); It seems like this test may need to be skipped on iOS, where we don’t use editable date fields.
Wenson Hsieh
Comment 5 2020-09-01 15:57:07 PDT
Comment on attachment 407714 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407714&action=review >> LayoutTests/fast/forms/date/date-editable-components/date-picker-update-on-edit.html:35 >> + UIHelper.keyDown("3"); > > It seems like this test may need to be skipped on iOS, where we don’t use editable date fields. (Ah, never mind — this directory is skipped on iOS)
Aditya Keerthi
Comment 6 2020-09-01 16:00:28 PDT
Created attachment 407716 [details] Patch for landing
EWS
Comment 7 2020-09-02 07:47:05 PDT
ChangeLog entry in LayoutTests/ChangeLog contains OOPS!.
Aditya Keerthi
Comment 8 2020-09-02 07:50:34 PDT
Created attachment 407766 [details] Patch for landing
EWS
Comment 9 2020-09-02 08:36:02 PDT
Committed r266461: <https://trac.webkit.org/changeset/266461> All reviewed patches have been landed. Closing bug and clearing flags on attachment 407766 [details].
Radar WebKit Bug Importer
Comment 10 2020-09-02 08:37:24 PDT
Note You need to log in before you can comment on or make changes to this bug.