Closed Bug 62916 Opened 24 years ago Closed 23 years ago

[RFE]install needs to be able to refresh plugins

Categories

(Core Graveyard :: Installer: XPInstall Engine, enhancement, P1)

x86
All
enhancement

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: dveditz, Assigned: slogan)

References

Details

(Whiteboard: [xpiprd])

Attachments

(2 files)

Must be able to do the equivalent of "navigator.plugins.refresh(true)" from an install script after having installed a plugin.
Keywords: nsbeta1
Priority: P3 → P1
Target Milestone: --- → mozilla0.9
We need the refresh feature to work before we can support this in the install script.
Depends on: 61388
Whiteboard: [xpiprd]
navigator.plugins.refresh(true); elicites the following in install.log: ** Line: 53 navigator is not defined Install **FAILED** with error -229
We are not planning on supporting the "navigator" object in the install script (see bug 7022 for discussion). We will be implementing an "equivalent of" that, details to be determined but probably something straightforward like Install.refreshPlugins().
navigator.plugins.refresh is now supported in the plugin code. Reassigning to the owner of the selected component.
Assignee: dveditz → dbragg
Oops, sorry, I should have probably not reassigned it. Rolling back.
Assignee: dbragg → dveditz
Keywords: nsbeta1nsbeta1+
A few new files are included in the patch. Not included are the required changes to the Mac projects -- I promise I will not forget those when checking in.
Keywords: patch
Target Milestone: mozilla0.9 → mozilla0.8.1
r=ssu
ok, sr=mscott I'm going home now. If you need more super reviews tonight, aim me at home.
fix checked-in 3/13/2001
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Build: 2001-03-20-09-Mtrunk(WIN), 2001-03-20-08-trunk(MAC), 2001-03-20-13-Mtrunk(LINUX) This is working on all platforms. http://jimbob/jars/a_refreshplugins_win.xpi http://jimbob/jars/a_refreshplugins_mac.xpi http://jimbob/jars/a_refreshplugins_linux.xpi Marking Verified!
Status: RESOLVED → VERIFIED
Unfortunately, this doesn't work. Try installing any plugin and then calling navigator.plugins.refresh(1) from the XPInstall script. The plugin and the corresponding mime types array are NOT refreshed. Re-opening. Note that since this was on the 0.8.1 radar, and dveditz checked in a fix, this is clearly a regression.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
nominating mozilla0.9.2 since this appears to be a real serious regression that blocks EA. Re-assigning to syd in dveditz's absence.
Assignee: dveditz → syd
Severity: normal → major
Status: REOPENED → NEW
Keywords: mozilla0.9.2
Keywords: mozilla0.9.2
Target Milestone: mozilla0.8.1 → mozilla0.9.2
This is actually fixed as Dan and Jimmy had indicated. The function to call to refresh the plugins from within the xpinstall context is: refreshPlugins(); it'll return an error value as well (0 if successfull). I'll attach a sample .js script.
Status: NEW → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
No code changes made. This still works as verified from 3/20/2001. Marking Verified.
Status: RESOLVED → VERIFIED
[RFE] is deprecated in favor of severity: enhancement. They have the same meaning.
Severity: major → enhancement
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: