We want built-in support for the Marketplace webapp. Users should not need to go and install it themselves. The webapp is hosted, so we only need a minimal set of things to happen to pre-install it, mainly include a manifest in the APK. I don't know if we can do everything needed to pre-install the Marketplace app without running Firefox first. If we can't, we could add a simple "installMarketplace" function for new non-webapp profiles. This might be a good thing to do anyway, if users will be able to create multiple browsing profiles.
We need to determine if we want a specific WebApp# set aside for the Marketplace, maybe WebAppMarketplace ? Also, maybe we can "install on demand" if we can cover the entry points: marketplace URL intent, about:home snippet, etc. If we could "install on demand" it would remove some code from our startup path.
Created attachment 648175 [details] [diff] [review] Part 1 This installs the marketplace webapp the first time you visit about apps. The install prompt can take its time to show up because its hitting the network. We might be better showing a doorhanger and then (somehow) suppressing the normal prompt later? How do you feel about just pulling this from the server?
Comment on attachment 648175 [details] [diff] [review] Part 1 Removing feedback. I'm putting in some better infrastructure in the "Open market links in the market" bug.
I think what we really want here is what I have in bug 741621. There we have code to show the Marketplace in the list of registered apps when the user visits a marketplace url (i.e. even if you open one in the stock browser, the user will see a "Open in" prompt with the marketplace listed. Selecting it will install and launch it with no prompting). If the user visits the marketplace in Fennec, we show a doorhanger offering to use the webapp which also does a silent install and launch. From the users perspective it is "installed" without us throwing icons on their launch screen without asking.