Closed Bug 338252 Opened 18 years ago Closed 18 years ago

sourceTextEncoding attribute isn't parsed correctly in all cases (certain Sherlock plugins don't display correctly)

Categories

(Firefox :: Search, defect, P1)

2.0 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 2 beta1

People

(Reporter: Gavin, Assigned: Gavin)

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

If the sourceTextEncoding attribute in a Sherlock file has a space after the equals sign, it fails to parse and the file's encoding isn't recognized.

We should keep the byte array around until we start the actual parsing, and then re-convert later if we see a sourceTextEncoding attribute. That way we can avoid regex hacks and just use the normal Sherlock attribute parser to parse sourceTextEncoding.
Status: NEW → ASSIGNED
Flags: blocking-firefox2?
Priority: -- → P1
Target Milestone: --- → Firefox 2 alpha3
Attached patch patchSplinter Review
I've tested it with the plugins from bug 335878 comment 14, and from bug 335878 comment 0, but more extensive testing is always appreciated. I want to double check a few things before asking for review.
(In reply to comment #1)
> Created an attachment (id=222579) [edit]
> patch
> 
> I've tested it with the plugins from bug 335878 comment 14, and from bug 335878
> comment 0, but more extensive testing is always appreciated. I want to double
> check a few things before asking for review.
> 

I tried this patch.
The problem of bug 335878 comment 14 is solved, too. 
There seems to be no problem though other search plugin was tried. 
Please go ahead.
Comment on attachment 222579 [details] [diff] [review]
patch

Thanks again for the testing Hiro!
Attachment #222579 - Flags: review?(mconnor)
Attachment #222579 - Flags: approval-branch-1.8.1?(mconnor)
--> beta1
Target Milestone: Firefox 2 alpha3 → Firefox 2 beta1
Whiteboard: [patch-r?]
Comment on attachment 222579 [details] [diff] [review]
patch

} else

should be

}
else

otherwise, r+a=me
Attachment #222579 - Flags: review?(mconnor)
Attachment #222579 - Flags: review+
Attachment #222579 - Flags: approval-branch-1.8.1?(mconnor)
Attachment #222579 - Flags: approval-branch-1.8.1+
mozilla/browser/components/search/nsSearchService.js 	1.1.2.24
mozilla/browser/components/search/nsSearchService.js 	1.28
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: blocking-firefox2?
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: [patch-r?]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: