mozilla-b2g/gaia — pull request #3541 by cpearce (2012-08-17 05:27:49+00:00)
Title: Don't show fullscreen permission warning for system app

This should fix issue 3515: https://github.com/mozilla-b2g/gaia/issues/3515

With this change we don't show the permission UI if the app going fullscreen is the system app.

I got the system app getting code from apps/dialer/index.html, which apparently got it from the "WebAPI shim from webapi.js". There may be a better way to get the origin of the system app, but I don't know it.

The weekend starts tomorrow where I am, so if you want this fixed more urgently then Monday NZST and require changes, please feel free to take my changes and alter them to suite your requirements so that this can land sooner.