Closed Bug 1229786 Opened 9 years ago Closed 6 years ago

[Add-ons] Consider chrome.runtime.onUninstalled

Categories

(Firefox OS Graveyard :: Runtime, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mikehenrty, Unassigned)

References

Details

Right now, in order for an add-on to "play nice" and disable itself when the user deletes/disables an add-on, it needs to inject itself into an app with the web-apps manager permission (usually the system app), listen for the all enabledstatechange events on mozApps.mgmt, and then see if the app generating that event is itself. It would be way nicer to have an event on chrome.runtime that only applies to itself.

https://developer.chrome.com/extensions/runtime#event-onInstalled
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.