Closed
Bug 285504
Opened 20 years ago
Closed 19 years ago
XPCOM components in global extension aren't registered correctly [need to touch .autoreg]
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: alex, Assigned: bugs)
Details
If an extension installed with -install-global-extension flag has some XPCOM components, the components are placed along with the extension under the application directory as expected, but are registered in the xpti.dat and compreg.dat files in the current user profile. As a result, the extension will only be registered correctly for the current user. Example - install FoxyTunes (http://www.iosart.com/foxytunes/firefox/FoxyTunes_1.1.1.xpi) using -install-global-extension under one user, then login as another user. The extension components aren't available.
Comment 1•20 years ago
|
||
Try touching "C:\Program Files\Mozilla Firefox\.autoreg" after running that command. Ideally, that command would do this for you, but give it a try yourself. It is meant as an indicator to all of the user profiles that their compreg.dat and xpti.dat may be out of date. This is actually a toolkit bug (since EM is part of toolkit), but we don't have a bugzilla component over there for it.
| Reporter | ||
Comment 2•20 years ago
|
||
(In reply to comment #1) > Try touching "C:\Program Files\Mozilla Firefox\.autoreg" after running that > command. Ideally, that command would do this for you, but give it a try > yourself. It is meant as an indicator to all of the user profiles that their > compreg.dat and xpti.dat may be out of date. As far as I can see, this just causes the component registry to be rebuilt on the next browser startup in any profile. So, if I just restart Firefox twice in the same profile this file will be gone. Or if I don't run Firefox under the same user, and only run it the next time under another user, that user will get the components, but the third one won't. There seems to be a bigger problem here.
Comment 3•20 years ago
|
||
No, I believe that .autoreg is not deleted after being read once. That was the case in older versions of XPCOM, but the version that ships with Firefox only tests the last-modified timestamp on .autoreg.
| Reporter | ||
Comment 4•20 years ago
|
||
Sorry, you are right. It appeared that the .autoreg file was removed, when in fact it wasn't.
Updated•20 years ago
|
Summary: XPCOM components in global extension aren't registered correctly → XPCOM components in global extension aren't registered correctly [need to touch .autoreg]
Comment 5•19 years ago
|
||
This is WFM on the current trunk and MOZILLA_1_8_BRANCH. Note: there is bug 305361 for a problem with the -install-global commands on branch. Alex, can you confirm that the components do get registered properly for all profiles (e.g. when the profile is next used) after installing an extension in the app's extensions dir?
Comment 6•19 years ago
|
||
Resolving -> WFM
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•