XHR should use the charset it will send for serializing documents

RESOLVED FIXED in mozilla1.9.1b2

Status

()

Core
DOM
P2
normal
RESOLVED FIXED
9 years ago
9 years ago

People

(Reporter: bz, Assigned: bz)

Tracking

({fixed1.9.1})

Trunk
mozilla1.9.1b2
x86
Mac OS X
fixed1.9.1
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

Created attachment 348696 [details] [diff] [review]
Fix like so

Realized this is a problem when working on bug 464958.

Not sure how to test this: would need a document with no inputEncoding whose document charset isn't UTF-8.  I guess I could createInstance one or something, but I don't want to depend on that.
Attachment #348696 - Flags: superreview?(jonas)
Attachment #348696 - Flags: review?(jonas)
Attachment #348696 - Flags: superreview?(jonas)
Attachment #348696 - Flags: superreview+
Attachment #348696 - Flags: review?(jonas)
Attachment #348696 - Flags: review+
Comment on attachment 348696 [details] [diff] [review]
Fix like so

We should take this for 1.9.1 too, to be safe.
Attachment #348696 - Flags: approval1.9.1?
Priority: -- → P2
Attachment #348696 - Flags: approval1.9.1? → approval1.9.1+
Comment on attachment 348696 [details] [diff] [review]
Fix like so

a191=beltzner
Created attachment 350263 [details] [diff] [review]
mq patch
Assignee: nobody → bzbarsky
Attachment #348696 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Pushed http://hg.mozilla.org/mozilla-central/rev/db3ad9fd7b65
Status: ASSIGNED → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
Keywords: fixed1.9.1
Target Milestone: --- → mozilla1.9.1b2
You need to log in before you can comment on or make changes to this bug.