Use the runtime folder to get a reference to webapprt-stub instead of process folder, which is one level too deep from the runtime. Handle webapps install requests by showing a prompt like the geolocation prompt.
Switch browser type to content-primary so the frame loader triggers the right behavior for adding a content shell.
Also fixes Bug 746217 - Cannot open windows even from the same domain
Import Webapps.jsm to initialize DOMApplicationRegistry, which handles Webapps:GetSelf, etc. messages.
--HG--
extra : rebase_source : 429c9c48e54e39ff0c403d926c5ac35c49b28c3f