bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

requestPresent not allowed inside a callback function from user gesture

UNCONFIRMED
Unassigned

Status

()

Core
WebVR
P2
normal
UNCONFIRMED
a year ago
8 months ago

People

(Reporter: Jonas Jongejan, Unassigned)

Tracking

55 Branch
mozilla58
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Steps to reproduce:

Wrapping the requestPresent into a callback function or promise chain starting from a user action (clicking a button) wont allow the presentation to start. It has to be called directly from the function called from the button click, even though there is no delay added. 
In chrome this is allowed, since all callbacks called within a short amount of time are still considered user actions. 


Actual results:

Presentation denied


Expected results:

It should have allowed presentation to start since I would still consider it a user action, just wrapped differently.
Thanks for reporting.

Please note that we handle the VR-to-VR link traversal case more permissively than when requiring user gestures.

We may need to do some further refinement here for the button click case here.
Priority: -- → P2
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.