Bug 106983 - INPUT_MULTIPLE_FIELDS_UI: Unable to edit a time field with step=86400, and confusing appearance
Summary: INPUT_MULTIPLE_FIELDS_UI: Unable to edit a time field with step=86400, and co...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kent Tamura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-16 00:00 PST by Kent Tamura
Modified: 2013-01-16 20:23 PST (History)
5 users (show)

See Also:


Attachments
Patch (18.16 KB, patch)
2013-01-16 00:22 PST, Kent Tamura
no flags Details | Formatted Diff | Diff
Patch 2 (168.58 KB, patch)
2013-01-16 01:58 PST, Kent Tamura
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Tamura 2013-01-16 00:00:42 PST
http://code.google.com/p/chromium/issues/detail?id=168979

What steps will reproduce the problem?
1. Open data:text/html,<input type=time min="17:00" step=86400 id=time1><script>alert("Value: "+time1.value)</script>

What is the expected output? What do you see instead?
Expected:
 - Users can clear the initial value because the time field has no "required" attribute
 - HTMLInputElement::value should return what we see. In this case, "17:00" should be returned.

Actual:
 - There are no ways to clear the initial value
 - HTMLInputElement::value is empty
Comment 1 Kent Tamura 2013-01-16 00:22:40 PST
Created attachment 182928 [details]
Patch
Comment 2 Kentaro Hara 2013-01-16 01:41:46 PST
Comment on attachment 182928 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=182928&action=review

> Source/WebCore/ChangeLog:14
> +        - We don't make hour fields read-only for input[type=time].

Shall we add a test case for input[type=time] too? BTW, what about input[type=datetime]?

> Source/WebCore/ChangeLog:36
> +        are read-only. Note that we don't need to check read-only status of year
> +        and month fields explicitly here because a day field can be read-only

Shall we add an ASSERT() to check this?
Comment 3 WebKit Review Bot 2013-01-16 01:48:46 PST
Comment on attachment 182928 [details]
Patch

Attachment 182928 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/15905302

New failing tests:
fast/forms/time/time-appearance-basic.html
Comment 4 Kent Tamura 2013-01-16 01:50:36 PST
Comment on attachment 182928 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=182928&action=review

>> Source/WebCore/ChangeLog:14
>> +        - We don't make hour fields read-only for input[type=time].
> 
> Shall we add a test case for input[type=time] too? BTW, what about input[type=datetime]?

Yes, I already added tests for input[type=time] and added a reason of no input[type=datetime] tests to LayoutTests/ChangeLog.

>> Source/WebCore/ChangeLog:36
>> +        and month fields explicitly here because a day field can be read-only
> 
> Shall we add an ASSERT() to check this?

will do.
Comment 5 Kentaro Hara 2013-01-16 01:52:37 PST
Comment on attachment 182928 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=182928&action=review

Looks good to me.

>>> Source/WebCore/ChangeLog:14
>>> +        - We don't make hour fields read-only for input[type=time].
>> 
>> Shall we add a test case for input[type=time] too? BTW, what about input[type=datetime]?
> 
> Yes, I already added tests for input[type=time] and added a reason of no input[type=datetime] tests to LayoutTests/ChangeLog.

Sorry, I missed that.
Comment 6 Kent Tamura 2013-01-16 01:58:08 PST
Created attachment 182937 [details]
Patch 2

Add assertions, handle time-appearance-basic.html
Comment 7 WebKit Review Bot 2013-01-16 03:06:02 PST
Comment on attachment 182937 [details]
Patch 2

Clearing flags on attachment: 182937

Committed r139865: <http://trac.webkit.org/changeset/139865>
Comment 8 WebKit Review Bot 2013-01-16 03:06:07 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Levi Weintraub 2013-01-16 10:24:52 PST
Comment on attachment 182937 [details]
Patch 2

View in context: https://bugs.webkit.org/attachment.cgi?id=182937&action=review

> LayoutTests/platform/chromium/TestExpectations:4094
> +# Need rebaseline
> +webkit.org/b/106983 fast/forms/time/time-appearance-basic.html [ Failure ]

For future reference, "Failure" sadly doesn't encompass "ImageOnlyFailure", so this actually made the bots red :( I rebaselined in r139892.
Comment 10 Kent Tamura 2013-01-16 20:23:35 PST
(In reply to comment #9)
> > +webkit.org/b/106983 fast/forms/time/time-appearance-basic.html [ Failure ]
> 
> For future reference, "Failure" sadly doesn't encompass "ImageOnlyFailure", so this actually made the bots red :( I rebaselined in r139892.

oh, I'm sorry for that, and thank you!