Closed
Bug 428341
Opened 16 years ago
Closed 16 years ago
wrong error message displayed when installing an extension that isn't compatible with the app
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla1.9
People
(Reporter: Gavin, Assigned: mossop)
References
()
Details
Attachments
(1 file)
17.55 KB,
patch
|
robert.strong.bugs
:
review+
beltzner
:
approval1.9+
|
Details | Diff | Splinter Review |
I tried installing DOMi from AMO, using a new profile and today's nightly, on Windows. After the XPI is downloaded, I get a "unexpected installation error" dialog, with error -203 that says to check the error console. The console says: Error: installData.currentApp is null Source File: file:///C:/Users/Gavin/Desktop/firefox/components/nsExtensionManager.js Line: 4575
Flags: blocking-firefox3?
Reporter | ||
Updated•16 years ago
|
Assignee | ||
Comment 1•16 years ago
|
||
This bug will display an unexpected installation error message when you attempt to install a new extension that is not compatible with the application (i.e. trying to install a Thunderbird extension into Firefox). The fix is pretty trivial though.
Reporter | ||
Updated•16 years ago
|
Summary: error installing DOM Inspector from AMO → wrong error message displayed when installing an extension that isn't compatible with the app
Assignee | ||
Comment 2•16 years ago
|
||
This adds unit tests to ensure that installItemFromFile runs to completion for a large set of invalid xpi cases. The only case that isn't really checked is the blocklist case since that will attempt to open a window on failure. This catches this failure case and one other failure. When there is no install.rdf in the xpi an exception was being thrown trying to delete the missing extracted file. The existance of the file is checked before attempting to parse the manifest and then delete it.
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Attachment #314968 -
Flags: review?(robert.bugzilla)
Updated•16 years ago
|
Attachment #314968 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 3•16 years ago
|
||
Comment on attachment 314968 [details] [diff] [review] patch rev 1 This patch makes some trivial changes to avoid exceptions occurring when installing xpi's that are not compatible with the application in a couple of ways. The risk of regression from this is very low while it ensures that users see a more appropriate error message. It also includes a set of testcases for installing incompatible xpis.
Attachment #314968 -
Flags: approval1.9?
Comment 4•16 years ago
|
||
Comment on attachment 314968 [details] [diff] [review] patch rev 1 a1.9=beltzner
Attachment #314968 -
Flags: approval1.9? → approval1.9+
Assignee | ||
Comment 5•16 years ago
|
||
Checking in src/nsExtensionManager.js.in; /cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v <-- nsExtensionManager.js.in new revision: 1.287; previous revision: 1.286 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/test_bug428341.js,v done Checking in test/unit/test_bug428341.js; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/test_bug428341.js,v <-- test_bug428341.js initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_1/README,v done Checking in test/unit/addons/test_bug428341_1/README; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_1/README,v <-- README initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_2/install.rdf,v done Checking in test/unit/addons/test_bug428341_2/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_2/install.rdf,v <-- install.rdf initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_3/install.rdf,v done Checking in test/unit/addons/test_bug428341_3/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_3/install.rdf,v <-- install.rdf initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_4/install.rdf,v done Checking in test/unit/addons/test_bug428341_4/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_4/install.rdf,v <-- install.rdf initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_5/install.rdf,v done Checking in test/unit/addons/test_bug428341_5/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_5/install.rdf,v <-- install.rdf initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_6/install.rdf,v done Checking in test/unit/addons/test_bug428341_6/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_6/install.rdf,v <-- install.rdf initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_7/install.rdf,v done Checking in test/unit/addons/test_bug428341_7/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_7/install.rdf,v <-- install.rdf initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_8/install.rdf,v done Checking in test/unit/addons/test_bug428341_8/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_8/install.rdf,v <-- install.rdf initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_9/install.rdf,v done Checking in test/unit/addons/test_bug428341_9/install.rdf; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/addons/test_bug428341_9/install.rdf,v <-- install.rdf initial revision: 1.1 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3
Updated•16 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Updated•16 years ago
|
Product: Firefox → Toolkit
Comment 6•15 years ago
|
||
Verified fix on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3pre) Gecko/20090819 Shiretoko/3.5.3pre and Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3pre) Gecko/20090819 Shiretoko/3.5.3pre
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•