On that note, kudos to Dave Humphries, Rob Hawkes and Chris Pearce for their recent blog posts on these brand new APIs. And so, by way of a rehash…
Fullscreen, Gamepad and Mouse Lock APIs are available in a single experimental desktop build of Firefox. There are also builds that support these features here.
These APIs are estimated to land soon in the nightly builds.
The Fullscreen API:
Scheduled to ship in firefox 10 by the end of January, you can still try out some of the examples in the latest nightly builds.
Based on the W3C’s draft spec, this API enables any HTML element to be made “fullscreen”, which hides the browsers UI and stretches the element to cover the entire screen area.
To use it, the developer calls void mozRequestFullScreen(), which, if the request is granted (there are security implications here) gets a mozfullscreenchange event back to the specifying element; otherwise a mozfullscreenerror is dispatched.
The user can ESC or F11 to exit full screen mode. As with YouTube or other fullscreen videos, navigating (ALT+TAB) will cause fullscreen mode to exit.