Closed Bug 846041 Opened 10 years ago Closed 5 years ago

fullscreen API exitFullscreen not implemented

Categories

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

22 Branch
x86_64
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 743198

People

(Reporter: benjamin.bernard, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20130227 Firefox/22.0
Build ID: 20130227030925

Steps to reproduce:

According to the fullscreen API specifications the document.exitFullscreen() should exit fullscreen mode, so we (web dev) can provide a clear and visible exit button.

For sure it's not an important feature, but I just wanted to report it.

Specifications : https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-exitfullscreen


Actual results:

document.exitFullscreen is not defined/implemented


Expected results:

document.exitFullscreen should exist.
Severity: normal → minor
Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Chris?
Flags: needinfo?(cpearce)
Yes. It's called Document.mozCancelFullScreen() in our implementation.

We haven't updated our implementation to reflect the recent changes in the spec. One of the changes is the spelling of the function to exit fullscreen. We implemented it when it was called Document.cancelFullScreen() and haven't changed the name yet.

I was planning to change our function names when we unprefixed, not sure on the ETA on that.

In the meantime, for convenience I recommend webdevs use Toji game shim JS library [1] to use the fullscreen API, as that handles the differences between browsers pretty well, and allows webdevs to use the unprefixed API as it's spec'd.

[1] https://github.com/toji/game-shim
Flags: needinfo?(cpearce)
Thanks, I will use game-shim.
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.