News for hackers. Stuff that matters.
Re:Full-screen API available in Firefox nightly by pixelcort on Monday November 14, 2011 @11:52AM (#3234654)
Now all we need is a mouse capture API to make first person games.
Re:Full-screen API available in Firefox nightly by kinetik on Monday November 14, 2011 @02:32PM (#3235314)
It's coming. There's a spec here: http://dvcs.w3.org/hg/webevents/raw-file/default/mouse-lock....

Implementations for Chrome and Firefox are bug 72754 and bug 633602, respectively.

Re:Full-screen API available in Firefox nightly by jimrandomh on Monday November 14, 2011 @12:06PM (#3234727)
There is a serious problem in this proposal: they want to disallow all keys not on a whitelist, and that whitelist does not include letters. Which would mean no WASD movement. While the intent is good (prevent phishing), I think a better solution is still needed.
Re:Full-screen API available in Firefox nightly by jimrandomh on Monday November 14, 2011 @12:24PM (#3234799)
Actually, scratch that - there's a way for apps to request letter keys in full-screen mode, which just imposes additional confirmation.
Re:Full-screen API available in Firefox nightly by archivator on Monday November 14, 2011 @01:45PM (#3235122)
Chrome has this and I truly and completely hate the way Youtube uses it. The only reason I switched to HTML5 video on YT was the fact that it resized to the browser window, therefore not wasting massive amounts of screen estate on my 24" monitor. The way I'd use it was to have the video on 2/3 of the screen and Vim on the other 1/3.

Alas, those days are gone, unless I figure out a way to override requestFullscreen to always return false.

Re:Full-screen API available in Firefox nightly by msujaws on Monday November 14, 2011 @02:49PM (#3235395)
If you want to disable it in Firefox, you can go to about:config and set the pref for full-screen-api.enabled to false.

I'm not sure if Chrome has a similar way to disable the feature.

Re:Full-screen API available in Firefox nightly by vog on Monday November 14, 2011 @12:13PM (#3234755)
What's wrong with asking the user to press F11? After all, the browser should be under the control of the user, instead of the other way around.
Re:Full-screen API available in Firefox nightly by eCa on Monday November 14, 2011 @12:49PM (#3234894)
> A Web application can’t arbitrarily make an element fullscreen without user intervention—the operation has to be initiated by a user action.

As the article says, the intent is mostly to offer similar functionality as e.g. Youtube's fullscreen mode. It's much simpler/cleaner to ask ordinary users to click a button on the screen (that is a part of your own interface) than to ask them to press F11. Also, F11-fullscreen doesn't stretch elements as this does:

> It allows Web applications to toggle the browser into full-screen mode and stretch a single page element so that it fills the user’s display.

Re:Full-screen API available in Firefox nightly by firefoxman1 on Monday November 14, 2011 @02:19PM (#3235259)
Another reason might be that some browsers, for example the Firefox I'm running right now on linux, don't go into 100% fullscreen like chrome does. In my browser, it just removes all of the browser's interface except the URL bar and tabs.
Re:Full-screen API available in Firefox nightly by tommi on Monday November 14, 2011 @12:58PM (#3234926)
> Also, F11-fullscreen doesn't stretch elements as this does

Which begs the question, why not?

Re:Full-screen API available in Firefox nightly by tbassetto on Monday November 14, 2011 @01:02PM (#3234951)
F11-fullscreen stretches the browser window.

Using the fullscreen API, you can put in fullscreen some specific parts of your website (a specific div, a specific menu, etc.).

Re:Full-screen API available in Firefox nightly by trafficlight on Monday November 14, 2011 @12:17PM (#3234766)
I've been working on a digital signage project and I'm using Chrome's fullscreen kiosk mode for the actual presentation.
Re:Full-screen API available in Firefox nightly by brlewis on Monday November 14, 2011 @01:50PM (#3235144)
When will Mobile Safari support it?
Re:Full-screen API available in Firefox nightly by drivebyacct2 on Monday November 14, 2011 @01:44PM (#3235116)
I hate that Chrome has modified the fullscreen support so that it is no longer possible to have "fullscreen", mean "fullwindow" mode. It was my absolute favorite. Tiling WM or even manual, along with "fullwindow" mode was the best of all worlds. You were an F11 away from fullscreen, but had the flexibility of having just the video in a window to do with what you pleased.
Re:Full-screen API available in Firefox nightly by colanderman on Monday November 14, 2011 @05:10PM (#3235916)
Opera still has this feature. I use it all the time with wmii.