mozilla-b2g/gaia — pull request #3200 by cpearce (2012-08-06 22:09:30+00:00)
Title: UI changes required to approve fullscreen requests

This changeset adds the approval UI for the fullscreen API which is being implemented in Mozilla bug 684620.

These changes are based on my changeset from pull request #2890, but are rewritten to use the permissionmanager.js code rather than having another permission dialog in window_manager.js.

When a document enters fullscreen, a mozChromeEvent is dispatched to the parent process' document with the origin of the document which is fullscreen. We then show the approval UI to ensure the user is aware of what origin is fullscreen so that they are less likely to fall victim to spoofing/phishing attacks.

I had to change the permission manager so that requests can be canceled, since we need to hide the permission UI when we the user presses the HOME key. I also changed some style rules so that the keyboard displays over fullscreen content.