We should implement an API that allows clients to prompt the user for information. Myk, could you specify some use cases and non-use cases you had in mind?
One common use case is to enable an add-on that adds a web platform feature to prompt the user to allow the website to access the feature. An example of this is the geolocation web platform API <http://dev.w3.org/geo/api/spec-source.html>, which is implemented by core Firefox <https://developer.mozilla.org/en/using_geolocation> and subject to access control. In Firefox 3.6, the prompt takes the form of a tab-specific notification bar that appears at the top of the tab content. In Firefox 4, based on this example <http://www.thedotproduct.org/experiments/geo/>, it looks like the prompt is now a tab-specific panel anchored to an icon that appears in the location bar.
In a reply to Matej on the mailing list , you seemed to agree with his request for application-modal prompts, the ones supported by nsIPromptService. Are these tab-modal, app-modal, or both? What kinds of input should they support? The tab-modal prompts I've seen only support a dropdown (e.g., "Remember this setting once", "Remember this setting always", etc.), but some notions of prompts, like nsIPromptService, support text boxes, check boxes, and different combinations of buttons. Or should they allow arbitrary web content like panels?  http://groups.google.com/group/mozilla-labs-jetpack/msg/21c795a7137a0ad3
Hmm, great questions. When I responded to Matej, I think I misunderstood what he was saying, because I was thinking about tab-modal prompts, whereas he is clearly talking about app-modal prompts. A use case for an app-modal prompt is that you have just installed an addon that gives you access to a web service, and it prompts you for credentials for your account on that service. (Ideally, it would be able to obtain that information from the password manager automatically, but that isn't always possible.) However, let's focus on tab-modal prompts for now. And let's focus on the relatively simple functionality currently provided by the new tab-modal prompts in Firefox, which supports the use case described in comment 1. So none of the extra options provided by nsIPromptService and no support for arbitrary web content via panels.
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product. To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
Version: Trunk → unspecified
Marking anything that potentially looks like a feature request as "enhancement", sorry for the bugspam. :)
Severity: normal → enhancement
This will work better as a feature page if people still want it.
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.