Closed Bug 298558 Opened 20 years ago Closed 20 years ago

InstallTrigger.getVersion("Plugins/...") returns null even if the plugin is correctly installed.

Categories

(Toolkit :: Application Update, defect)

1.7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 291178

People

(Reporter: tvs, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

I call InstallTrigger.getVersion() from page's onload handler. When I start
Firefox (by clicking Firefox shortcut) and then open the page, getVersion()
works fine and returns correct plugin version. But when I open the page by
clicking page's shortcut (Firefox starts by assosiation) then getVersion()
returns null.

Reproducible: Always

Steps to Reproduce:
1. Install Flash Player plugin into Firefox
2. Create test.html:
<HTML>
<HEAD>
<script>
alert(InstallTrigger.getVersion("Plugins/Macromedia/Shockwave Flash"));
</script>
</HEAD>
<BODY>
</BODY>
</HTML>
3. Double click test.html in order to open it with Firefox

Actual Results:  
'null' message in the alert box.

Expected Results:  
correct Flash Player plugin version in the alert box.

page reloading doesn't fix the problem.
Version: unspecified → 1.0 Branch
Summary: InstallTrigger.getVersion("Plugin/...") returns null even if the plugin is correctly installed. → InstallTrigger.getVersion("Plugins/...") returns null even if the plugin is correctly installed.
Related to/duplicate of Core bug 291178?
Yes, related. Sorry, I didn't search core bugs before reporting the bug.

*** This bug has been marked as a duplicate of 291178 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: