Closed
Bug 709875
Opened 13 years ago
Closed 13 years ago
add enumerateAll to navigator.mozApps API
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: fabrice, Assigned: fabrice)
References
Details
Attachments
(2 files)
5.63 KB,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
807 bytes,
patch
|
Details | Diff | Splinter Review |
The current API only has an |enumerate()| call that sends different results based on calling context. This can be confusing, so we split it into two parts :
- non privileged callers can use enumerate() to get themselves (apps) or apps installed from their origin (stores)
- privileged callers (eg. dashboards) can use enumerateAll() to get the full list of installed apps.
Assignee | ||
Comment 1•13 years ago
|
||
Exposes enumerateAll(), which was already used internally for the privileged case.
Also add documentation in the IDL and fixes a bug in enumerate()
Attachment #580990 -
Flags: review?(gal)
Comment 2•13 years ago
|
||
Fabrice, I think we should request privilege if the app does enumerateAll(). That way even if the app is not installed we can pick up the privilege (the dashboard thing the webapps guys are doing will want this I think).
Assignee | ||
Comment 3•13 years ago
|
||
My plan for the "official dashboard" issue was to use a whitelist pref initially, until we get UX sorted on what they want. This is what the add-on manager is doing to whitelist installs from addons.mozilla.org for instance.
Assignee | ||
Comment 4•13 years ago
|
||
Adding whitelist support.
Comment 5•13 years ago
|
||
Comment on attachment 580990 [details] [diff] [review]
patch
track errors -> report errors
Attachment #580990 -
Flags: review?(gal) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla11
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•