Closed
Bug 632945
Opened 15 years ago
Closed 14 years ago
Allow bootstrapped (restartless) add-ons to have XPCOM components with chrome.manifest
Categories
(Toolkit :: Add-ons Manager, enhancement)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: dev+mozilla, Unassigned)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
This is an enhancement request to add support in Mozilla for restartless add-ons with both binary and JS XPCOM components, preferably based on chrome.manifest. It is related to "Catch 1" in Wladimir Palant's blog post: <http://adblockplus.org/blog/how-many-hacks-does-it-take-to-make-your-extension-install-without-a-restart>.
The main issues are:
- lifetime/lifecycle issues, especially around cached .getService() XPCOM components.
- loading and unloading a binary component safely (not safe to unload if there are outstanding reference counts)
- loading custom XPT interfaces (no obvious way to do this)
It is theoretically possible to do most of these (except, perhaps, XPT interfaces) with clever calls to nsIComponentRegistrar registerFactory and js-ctypes, but it will be very fragile and is at best undocumented.
Reproducible: Always
This bug should probably be dependent on bug 564667 (Allow bootstrapped add-ons to have chrome). While this bug could be implemented without bug 564667, it would be easier for everyone if chrome.manifest is simply parsed (or if there is a way for bootstrap.js to cause the manifest to be parsed at startup and "unparsed" at shutdown).
![]() |
||
Updated•15 years ago
|
OS: Windows 7 → All
Hardware: x86 → All
Updated•15 years ago
|
Component: Add-ons Manager → General
Product: Toolkit → Add-on SDK
QA Contact: add-ons.manager → general
Updated•15 years ago
|
Component: General → Add-ons Manager
Product: Add-on SDK → Toolkit
QA Contact: general → add-ons.manager
Version: unspecified → Trunk
Updated•14 years ago
|
Comment 1•14 years ago
|
||
This isn't something we are going to work to support. JS XPCOM components can already be registered manually and we really want to deprecate binary component usage with js-ctypes picking up the slack.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•