Closed Bug 255617 Opened 21 years ago Closed 21 years ago

Custom update.rdf ignored at installation of incompatible extension

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: bugzilla-mozilla, Assigned: bugs)

References

()

Details

(Keywords: fixed-aviary1.0, Whiteboard: [have patch] need review - ben)

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7) Gecko/20040803 Firefox/0.9.3 Build Identifier: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.7.2) Gecko/20040814 Firefox/0.9.1+ I hope I got this right... If a user tries to install an extension which is incompatible with the current version, nsExtensionManager__getItemForID is called to generate an item (line 2273) which is later passed to nsExtensionItemUpdater_checkForUpdates (from 2287 to 2557; from 2571 to 2910;) to check for compatibility updates. The problem is that this item is missing an updateRDF which causes Firefox to fall back to the updateService (line 2936) instead of using the provided update.rdf. Reproducible: Always Steps to Reproduce: 1. Try to install an incompatible extension with a custom update.rdf. Actual Results: Firefox tries to contact the updateService proxy (which isn't online yet) and the "Incompatible Extension" dialog appears after the timeout. Expected Results: The "Incompatible Extension" dialog should appear almost immediately or the extension should install (if compatibility updates are available). Patch follows
Attached patch Proposed fixSplinter Review
Flags: blocking-aviary1.0PR?
Ben, can you take a look at this?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [have patch]
Attachment #156104 - Flags: review?(bugs)
Whiteboard: [have patch] → [have patch] need review - ben
Thanks. checked in.
Attached patch follow-up patchSplinter Review
So this actually works (the patch was bitrotten)...
Attachment #158231 - Flags: review?(bugs)
Keywords: fixed-aviary1.0
Keywords: fixed-aviary1.0
Let's get this reviewed quick.
Flags: blocking-aviary1.0PR? → blocking-aviary1.0PR+
Comment on attachment 158231 [details] [diff] [review] follow-up patch r+a=ben@mozilla.org... landing this with my patch to 258123
Attachment #158231 - Flags: review?(bugs)
Attachment #158231 - Flags: review+
Attachment #158231 - Flags: approval-aviary+
Patch checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Keywords: fixed-aviary1.0
Attachment #156104 - Flags: review?(bugs)
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: