New issue
Advanced search Search tips

Issue 671554 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 25
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

touchstart / pointerdown - Element.requestFullscreen() interaction

Reported by martin.l...@gmail.com, Dec 6 2016

Issue description

UserAgent: 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
 

Comment 1 by e...@chromium.org, Dec 6 2016

Cc: foolip@chromium.org
Status: Available (was: Unconfirmed)
Cc: dtapu...@chromium.org
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?
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!
Labels: UserActivation
Cc: mustaq@chromium.org
Status: WontFix (was: Available)
Closing as working as spec'd. touchstart/pointerdown aren't user gestures.

Sign in to add a comment