Closed Bug 347457 Opened 18 years ago Closed 18 years ago

If a readonly engine has updates, and the icon load callback runs first, an exception is thrown

Categories

(Firefox :: Search, defect)

2.0 Branch
defect
Not set
major

Tracking

()

RESOLVED FIXED
Firefox 2 beta2

People

(Reporter: Gavin, Assigned: Gavin)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

This is the cause of http://forums.mozillazine.org/viewtopic.php?p=2412032#2412032 . We should not even try to update read-only engines.
Attached patch patchSplinter Review
The problem is that we're starting an update load for a readonly engine, and the icon load callback doesn't check whether the engine is readonly before trying to write to the file, but the file load callback does. Instead of checking in both callbacks, this just refuses to start an engine update load if the engine is readonly.
Assignee: nobody → gavin.sharp
Status: NEW → ASSIGNED
Attachment #232228 - Flags: review?(mconnor)
Flags: blocking-firefox2?
Target Milestone: --- → Firefox 2 beta2
Summary: If a readonly engine has updates, and the icon load callback loads first, an exception is thrown → If a readonly engine has updates, and the icon load callback runs first, an exception is thrown
Attachment #232228 - Flags: review?(mconnor) → review+
Attachment #232228 - Flags: approval1.8.1+
Flags: blocking-firefox2? → blocking-firefox2+
mozilla/browser/components/search/nsSearchService.js 	1.1.2.57
mozilla/browser/components/search/nsSearchService.js 	1.69
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: