RESOLVED FIXED 101038
BaseChooserOnlyDateAndTimeInputType should implement DateTimeChooserClient
https://bugs.webkit.org/show_bug.cgi?id=101038
Summary BaseChooserOnlyDateAndTimeInputType should implement DateTimeChooserClient
Kent Tamura
Reported 2012-11-02 03:25:15 PDT
BaseChooserOnlyDateAndTimeInputType should implement DateTimeChooserClient
Attachments
Patch (12.39 KB, patch)
2012-11-04 20:11 PST, Kent Tamura
no flags
Patch 2 (12.43 KB, patch)
2012-11-04 20:40 PST, Kent Tamura
morrita: review+
Kent Tamura
Comment 1 2012-11-04 20:11:33 PST
Peter Beverloo (cr-android ews)
Comment 2 2012-11-04 20:38:06 PST
Comment on attachment 172259 [details] Patch Attachment 172259 [details] did not pass cr-android-ews (chromium-android): Output: http://queues.webkit.org/results/14731445
Kent Tamura
Comment 3 2012-11-04 20:40:39 PST
Created attachment 172262 [details] Patch 2 Chromium-Android build fix
Hajime Morrita
Comment 4 2012-11-04 23:25:37 PST
Comment on attachment 172262 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=172262&action=review > Source/WebCore/ChangeLog:15 > + elements. Is there any bug for this? Seems worth mentioning here. > Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.cpp:44 > { Can we ASSERT() that this is attached()? Just for curious, what happens if a DOMActivate event is sent to the element through JS?
Kent Tamura
Comment 5 2012-11-04 23:31:57 PST
Comment on attachment 172262 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=172262&action=review >> Source/WebCore/ChangeLog:15 >> + elements. > > Is there any bug for this? Seems worth mentioning here. will do. >> Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.cpp:44 >> { > > Can we ASSERT() that this is attached()? > Just for curious, what happens if a DOMActivate event is sent to the element through JS? I don't think ASSERT(element()->attached()) is correct because, as you know, we can dispatch an event to a non-rendered element. In such case, the ScriptController::processingUserGesture() check below rejects opening a DateTimeChooser.
Hajime Morrita
Comment 6 2012-11-04 23:44:32 PST
Comment on attachment 172262 [details] Patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=172262&action=review >>> Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.cpp:44 >>> { >> >> Can we ASSERT() that this is attached()? >> Just for curious, what happens if a DOMActivate event is sent to the element through JS? > > I don't think ASSERT(element()->attached()) is correct because, as you know, we can dispatch an event to a non-rendered element. > In such case, the ScriptController::processingUserGesture() check below rejects opening a DateTimeChooser. OK, thanks for the explanation.
Kent Tamura
Comment 7 2012-11-05 00:22:27 PST
Note You need to log in before you can comment on or make changes to this bug.