Talk:Security/Reviews/Firefox10/CodeEditor/FullScreenAPI

From MozillaWiki
Revision as of 17:17, 14 November 2011 by Jimrandomh (talk | contribs) (Should allow typing in fullscreen mode)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Should allow typing in fullscreen mode

I like most of this, but preventing all use of letter keys will be a serious problem for games. As a test case, ask: with fullscreen mode plus WebGL, could you implement Quake, with the standard controls? As it happens, the standard controls include letter keys, most notably WASD for movement and occasional bits of text for in-game chat. And Quake can't work at all without full-screen mode, because it requires full control over the mouse cursor. For a game like that, exiting full-screen mode is very disruptive. There is a phishing problem with just dropping this restriction, though - a user could start a video, walk away, and come back to something that looks like a login prompt but isn't. To address that case, how about mixing in some sort of inactivity timeout? When a user presses a letter key, display a warning if it's been 5 minutes since they last pressed a letter key. -- jimrandomh