Closed Bug 554265 Opened 16 years ago Closed 15 years ago

Search engine icons are not downloaded if searchplugin is readonly

Categories

(Firefox :: Search, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.7a5

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file, 2 obsolete files)

Attached patch Patch (obsolete) — Splinter Review
As per the comment in _setIcon: // No use downloading the icon if the engine file is read-only My guess is this comment predates the search.json cache, and nowadays, downloading the icon works even if you can't overwrite the searchplugin file.
Attachment #434191 - Attachment is patch: true
Attachment #434191 - Attachment mime type: application/octet-stream → text/plain
Attachment #434191 - Flags: review?(benjamin)
Assignee: nobody → mh+mozilla
Benjamin really isn't the right reviewer for that. Looks good to me, but I'll defer r+ to Ryan (rflint@mozilla).
Attachment #434191 - Flags: review?(benjamin) → review?(rflint)
Comment on attachment 434191 [details] [diff] [review] Patch >diff --git a/toolkit/components/search/nsSearchService.js b/toolkit/components/search/nsSearchService.js >@@ -1453,47 +1453,44 @@ Engine.prototype = { >- // No use downloading the icon if the engine file is read-only >- if (!this._readOnly) { The cache can be disabled, so leave a conditional here and make it return early if (this._readOnly && !getBoolPref(BROWSER_SEARCH_PREF + "cache.enabled", true)). Thanks for the patch!
Attachment #434191 - Flags: review?(rflint) → review+
Attached patch Patch v2Splinter Review
How about this ?
Attachment #434191 - Attachment is obsolete: true
Attachment #434192 - Attachment is obsolete: true
Attachment #434496 - Flags: review?
Attachment #434496 - Flags: review? → review?(rflint)
Attachment #434496 - Flags: review?(rflint) → review+
Keywords: checkin-needed
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: