touchstart / pointerdown - Element.requestFullscreen() interaction
Reported by
martin.l...@gmail.com,
Dec 6 2016
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36 Steps to reproduce the problem: 1. Go to: http://codepen.io/sdrab0/pen/womRpE 2. Enable touch via dev tools or use touch device 3. Hit touchstart / pointerup What is the expected behavior? Error message in console says: Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture. In my understanding touchstart and pointerdown are user gestures, so the fullscreen behavior should be consistent amongst all buttons. What went wrong? Trying to trigger element.requestFullscreen() via touchstart / pointerdown seems to be not working / being blocked. Did this work before? No Does this work in other browsers? Yes Chrome version: 55.0.2883.75 Channel: stable OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 23.0 r0
,
Dec 6 2016
Element#requestFullscreen() uses UserGestureIndicator internally, which is also used for popup blocking, whether to play media elements, and other things. The spec for this is https://html.spec.whatwg.org/multipage/interaction.html#triggered-by-user-activation That definition includes pointerup and touchend, but not touchstart. dtapuska@, where is it decided in Blink what things are user gestures and not?
,
Dec 6 2016
Primarily these two sites: https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/input/PointerEventManager.cpp?q=PointerEventManager%5C&sq=package:chromium&l=304 https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/input/GestureManager.cpp?q=UserGestureIndicator+file:%5Esrc/third_party/WebKit/Source/core/input/&sq=package:chromium&l=185
,
Jan 4 2017
Thanks Dave! Since this isn't a regression, I will not prioritize it at this time, so if anyone wants to take a look, feel free!
,
Nov 1 2017
,
Nov 1 2017
,
Jul 25
Closing as working as spec'd. touchstart/pointerdown aren't user gestures. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by e...@chromium.org
, Dec 6 2016Status: Available (was: Unconfirmed)