Closed Bug 304581 Opened 19 years ago Closed 19 years ago

Firefox doesn't check the minVersion field of an extension correctly

Categories

(Toolkit :: Add-ons Manager, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: brian-mozilla, Unassigned)

Details

Attachments

(1 file)

499 bytes, application/octet-stream
Details
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

I'm writing a Firefox extension and I'd like to specify version 1.0.3 in the
<em:minVersion> tag of the install.rdf file so as to require automatic
XPCNativeWrapper support.  However, when I specify a version above 1.0.0, I get
a message saying the plugin can't be installed.  I'm running 1.0.6.



Reproducible: Always

Steps to Reproduce:
1. testcase.xpi (attached) to a local directory)
2. open it in Firefox 1.0.6 on Linux
3. click "Install Now"


Actual Results:  
I get an "Incaompatible Extension" dialog saying that the plugin will only run
with Firefox versions from 1.0.6 to 1.1.
 

Expected Results:  
Since this is 1.0.6, it should have installed.
Attached file test case
The design is to check minVersion and maxVersion against the value of the
app.extensions.version pref. This value has always been in the format of x.x
with an optional + and has never supported checking a format of x.x.x.

Also, a couple of patches have landed on the trunk that would make this
possible. For example bug 300731
Severity: normal → enhancement
Thanks for the explanation.  Maybe the documentation should be updated, then?   It doesn't explain 
anything about which version number format to use:

http://www.mozilla.org/projects/firefox/extensions/packaging/extensions.html
There is documentation that is on the page that links to the page you reference
http://www.mozilla.org/projects/firefox/extensions/update.html

Not as friendly or clear as one might like but it is there
I updated docs on http://developer.mozilla.org/en/docs/Install_Manifests and
http://kb.mozillazine.org/Install.rdf to mention this. You may want to file a
bug to fix the left mozilla.org document.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: