Closed Bug 302224 Opened 19 years ago Closed 19 years ago

InstallTrigger.getVersion always returns null for already installed extension in firefox

Categories

(Firefox :: Installer, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 302222

People

(Reporter: maheshpisal, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

When you try to call InstallTrigger.getVersion(<extn. name>) in javascript from
a webpage to check if a specified extension is installed, the function always
returns null even if the exnteion is properly installed. The installed extension
is displayed by extension manager and works as expected. 

Reproducible: Always

Steps to Reproduce:
1.Install an extension (xyz.xpi) which has install.rdf and all relevent files.
2.Verify that the extension is installed using exntesion manager and is
functioning as expected.
3.Now from a test html page, in javacript code, try to see if the extension
version by calling InstallTrigger.getVersion(). InstallTrigger.getVersion()
returns null.

Actual Results:  
InstallTrigger.getVersion() returns null.

Expected Results:  
InstallTrigger.getVersion() should have returned the version which I specified
in install.rdf.

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