Closed Bug 1237328 Opened 9 years ago Closed 8 years ago

[webvr] Enter VR fullscreen mode without user input

Categories

(Core :: DOM: Core & HTML, defect)

46 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox46 --- affected

People

(Reporter: daoshengmu, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

We would like to make VR display can enter to fullscreen without userinput. Currently, we will get nsContentUtils::IsRequestFullScreenAllowed false while it doesn't use userInput to enter the fullscreen mode.
Summary: [webvr] Enter fullscreen mode without user input → [webvr] Enter VR fullscreen mode without user input
Checking if it is vrDisplay first and then checking fullscreen error. If it has a fullscreen error and it is not vrDisplay, it will not enter fullscreen. So vrDisplay can enter fullscreen directly.
In next update, I need to check WebVR API whether it's enabled. If it is enabled, allowing elements to enter fullscreen.
<iframe> does not work for this patch now. I need to fix it as well.
V2: Renaming variable and making sure this patch works for iframe as well. For now, we needn't check gfxPrefs::VREnabled() because fsOptions.mVrDisplay is only assigned after dom.vr.enable is true.
Attachment #8704702 - Attachment is obsolete: true
We no longer use the full screen API to enter VR mode with the landing on WebVR 1.0.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
See Also: → 1254776
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: