andreasgal/gaia — pull request #942 by davidflanagan (2012-03-23 20:22:42+00:00)
Title: use mozApps launch method and convert manifests to launch apps from the web

This is a fresh version of my app launching patch.

It modifes app_manager.js, homescreen.js and window_manager.js to use the mozApps app.launch() method to request application launch.

It modifes apps/webapps.json to actually launch apps from the web.

Doing that means that the homescreen can't read icons from the web, though. There's a timing issue, since the network is down when the homescreen is launched, so the icons aren't loaded in and cached. This will be fixed by a preloaded appcache, I think.

This patch also changes homescreen.html to use the local webapi.js instead of loading that from gaiamobile.org for the same reason that it can't display icons.