Contact emails
Summary
The long-press gesture should be considered a user activation because it is a strong signal that the user is interacting with the page.
Motivation
Currently it is impossible for a web app to match the native Android/iOS behavior of vibrating the device on long-press. This is because in Chromium a long-press gesture is not considered a user activation, so calls to restricted APIs like navigator.vibrate() are blocked.
Demos
With vibration: output.jsbin.com/bonadab
With popup: output.jsbin.com/peruju
Risks
Interoperability and Compatibility
Very low compat risk since major browsers are split in behavior today, see below. There is no interop today, and we would match Firefox through this feature.
Edge: Partial support (only the popup demo works on Win10, none work on Android).
Firefox: Shipped (both demos work on mobile).
Safari: No signal (no event expose long-press)
Web developers: Positive
Ergonomics
All user-activation gated APIs (popups, vibration, fullscreen, autoplay, and more) will be allowed through long-press gesture.
Activation
The feature should be easy to use as-is.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
Is this feature fully tested by web-platform-tests?
We have no web-platform-tests now perhaps each major browser has its own unique behavior.
We would upstream the Chromium tests we are planning to add---Firefox already shows the proposed behavior so upstreaming web-platform tests shouldn’t be a problem.
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5726389672083456
Requesting approval to ship?
Yes, in M68.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO7d6D_d35zzT7DQtpzAJnj-Wbat370R%3D%2BX91Qb%3DmSoJbg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO5pr2dPazz6NGWVQ4nPBj2aSSMZ%2B2Yp5biKEGJ5wteBaw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO7d6D_d35zzT7DQtpzAJnj-Wbat370R%3D%2BX91Qb%3DmSoJbg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO5pr2dPazz6NGWVQ4nPBj2aSSMZ%2B2Yp5biKEGJ5wteBaw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO7qGHTokC7LNP7VguEh3qqFRpLF%2BWeCJ_3mrhaJ6MGmUg%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO7d6D_d35zzT7DQtpzAJnj-Wbat370R%3D%2BX91Qb%3DmSoJbg%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO5pr2dPazz6NGWVQ4nPBj2aSSMZ%2B2Yp5biKEGJ5wteBaw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAB0cuO5qH3Cs_6m9uv%2B5S8zJFY1ktGW1f47bATsm4dtEFLAp9w%40mail.gmail.com.