Install.refreshPlugins should autoregister XPCOM components

RESOLVED INCOMPLETE

Status

Core Graveyard
Installer: XPInstall Engine
RESOLVED INCOMPLETE
14 years ago
2 years ago

People

(Reporter: Ilya Konstantinov, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
Install.refreshPlugins method should autoregister XPCOM components before
refreshing plugin info, just like PluginArray.refresh (navigator.plugins.refresh
from JS) does.

You can see the PluginArray.refresh implementation at:
http://lxr.mozilla.org/mozilla/dom/src/base/nsPluginArray.cpp#183
and our current implementation in XPInstall at:
http://lxr.mozilla.org/mozilla/xpinstall/src/nsXPIProxy.cpp#47

Basically, we're missing the call to AutoRegister() on the XPCOM component manager.

Fixing this bug would allow us to XPInstall XPCOM components and make them
available right away, without requiring a restart, by simply calling
RefreshPlugins after installation.

(And have I mentioned I made it trivial to fix? :)
(Reporter)

Comment 1

12 years ago
This bug is only relevant for Seamonkey now, as FF/TB installations are done without JS code now. What should I assign it to?
Assignee: xpi-engine → nobody
QA Contact: xpi-engine
This code is dead.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → INCOMPLETE
(Assignee)

Updated

2 years ago
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.