You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
www.google.com - Unable to set the Date and Time of a reminder #7294
URL: www.google.com Browser / Version: Firefox Mobile Nightly 55.0a1 (2017-06-06) - Chrome UA Operating System: Samsung Galaxy S7 Edge (Android 7.0) - 1440 x 2560 pixels (~534 ppi pixel density) Problem type: Mobile site is not usable
I think I missed the Login step (because I was already logged in for a few days).
If you login, you should be able to set a reminder from the Google Search bar.
By any chance on the device do you use Google Now?
I think so, yes. It is enabled by default. I tried disabling it, but there is no such option in Settings.
I also tried the same search string on 3 different devices, with the same result:
Samsung Galaxy S7 Edge (Android 7.0)
Google Pixel (Android 7.1.2)
Huawei P10 (Android 7.0)
This may be related to trusted/untrusted events for click(). The 'Set date...' <div> has a click() handler on it that for Android/iOS devices generates another click() event to a hidden <input type="date">. This second click() will be un-trusted, and on Firefox it appears not to trigger the native datepicker overlay for that event.
Next I plan to verify the behavior of WebKit on iOS for that test page, as well as locate the part of the spec that deals with trusted/untrusted events.
Ooo, WebKit does something different again! On WebKit, a synthesized click() event (i.e. isTrusted = false) will not trigger the native datepicker. However, a synthesized focus() event will.
Incidentally google.com has code to detect iOS and use focus() rather than click() there, so the Set Reminder feature will work on iOS.
My current understanding: the 'correct' behavior by the spec is for user agents to do nothing in this case, as input type=date has no "input activation behavior" in the HTML spec.
Chrome Desktop (both 62.0.3202.75 and 64.0.3260.2): Synthesizing a click() causes no UI or focus change.
Chrome Mobile (Android, 62.0.3202.84): Synthesizing a click() causes a datepicker widget to be shown to the user.
Firefox Desktop (Nightly 59.0a1): Synthesizing a click() causes a datepicker widget to be shown.
Firefox Mobile (Android, Nightly 59.0a1): Synthesizing a click() causes no UI or focus change.
Safari: Unknown.
Edge: Unknown.
After chatting to annevk I filed whatwg/html#3232 to clarify what the intention of the spec is.
So @domenic and I briefly chatted about this recently, and without wanting to put words in his mouth, I believe we agreed that we are all sympathetic to the use-case (opening date pickers programatically seems useful), but that the data doesn't really support doing anything other than bringing Chrome Android in-line with the rest of the web.
Activity
[-]www.google.com - mobile site is not usable[/-][+]www.google.com - Unable to set the Date and Time of a reminder[/+]softvision-sergiulogigan commentedon Jun 7, 2017
MDTsai commentedon Jun 8, 2017
Not able to reproduce using www.google.com.tw . I guess this feature is not open for some country/regions
softvision-sergiulogigan commentedon Jun 8, 2017
@MDTsai Have you tried using the Firefox Nightly with Chrome UA?
For me, the behavior is consistent on multiple devices.
karlcow commentedon Jun 12, 2017
not happening for me either on google.com (without login)
softvision-sergiulogigan commentedon Jun 12, 2017
I think I missed the Login step (because I was already logged in for a few days).
If you login, you should be able to set a reminder from the Google Search bar.
karlcow commentedon Jun 13, 2017
@softvision-sergiulogigan even logged in it doesn't change anything.
By any chance on the device do you use Google Now?
karlcow commentedon Jun 13, 2017
softvision-sergiulogigan commentedon Jun 14, 2017
I think so, yes. It is enabled by default. I tried disabling it, but there is no such option in Settings.
I also tried the same search string on 3 different devices, with the same result:
Samsung Galaxy S7 Edge (Android 7.0)
Google Pixel (Android 7.1.2)
Huawei P10 (Android 7.0)
miketaylr commentedon Jul 10, 2017
This reproduces for me, when logged in (and spoofing as Android Mobile). Clicking "Set time..." has no effect.
9 remaining items
stephenmcgruer commentedon Nov 15, 2017
This may be related to trusted/untrusted events for click(). The 'Set date...' <div> has a click() handler on it that for Android/iOS devices generates another click() event to a hidden <input type="date">. This second click() will be un-trusted, and on Firefox it appears not to trigger the native datepicker overlay for that event.
See https://output.jsbin.com/sonopow/quiet for a simple reproduction. On Chrome mobile clicking the button shows the datepicker overlay. On Firefox mobile it does not.
Next I plan to verify the behavior of WebKit on iOS for that test page, as well as locate the part of the spec that deals with trusted/untrusted events.
stephenmcgruer commentedon Nov 15, 2017
Ooo, WebKit does something different again! On WebKit, a synthesized click() event (i.e. isTrusted = false) will not trigger the native datepicker. However, a synthesized focus() event will.
Incidentally google.com has code to detect iOS and use focus() rather than click() there, so the Set Reminder feature will work on iOS.
Still working on understanding the spec.
stephenmcgruer commentedon Nov 16, 2017
My current understanding: the 'correct' behavior by the spec is for user agents to do nothing in this case, as input type=date has no "input activation behavior" in the HTML spec.
However, user agents are very inconsistent in this even just across desktop/Android (test case https://output.jsbin.com/sonopow/quiet):
Chrome Desktop (both 62.0.3202.75 and 64.0.3260.2): Synthesizing a click() causes no UI or focus change.
Chrome Mobile (Android, 62.0.3202.84): Synthesizing a click() causes a datepicker widget to be shown to the user.
Firefox Desktop (Nightly 59.0a1): Synthesizing a click() causes a datepicker widget to be shown.
Firefox Mobile (Android, Nightly 59.0a1): Synthesizing a click() causes no UI or focus change.
Safari: Unknown.
Edge: Unknown.
After chatting to annevk I filed whatwg/html#3232 to clarify what the intention of the spec is.
skyschub commentedon Nov 30, 2017
Thanks to @stephenmcgruer, there is a Chrome bug filed at https://bugs.chromium.org/p/chromium/issues/detail?id=786480 and the team is looking into what they can do. Given that, there is nothing to do here really, but I'm also not too sure if we should close this issue as a duplicate or keep it open as a tracking issue for us. @miketaylr, thoughts?
miketaylr commentedon Nov 30, 2017
Let's keep it open at least until the HTML issue is resolved. That could result in one or more Gecko issues being opened.
karlcow commentedon Jan 5, 2018
The HTML issue is at whatwg/html#3232
karlcow commentedon May 14, 2018
From whatwg/html#3232
karlcow commentedon Feb 19, 2019
I'm closing this as a duplicate of the whatwg issue.