Closed Bug 692434 Opened 13 years ago Closed 13 years ago

== instead of = when trying to assign a new encoding name in XHR

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla10
Tracking Status
firefox9 --- fixed
firefox10 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

()

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Bug 687087 introduced this: if (mResponseCharset != document->GetDocumentCharacterSet()) { mResponseCharset == document->GetDocumentCharacterSet(); Should be if (mResponseCharset != document->GetDocumentCharacterSet()) { mResponseCharset = document->GetDocumentCharacterSet(); (== vs. =)
Need to fix this asap, since Bug 687087 is in Aurora.
Assignee: nobody → jonas
Summary: == instead of = when trying to assign a new encoding converter in XHR → == instead of = when trying to assign a new encoding name in XHR
Blocks: 651072
Taking. I need this fixed for bug 651072.
Assignee: jonas → hsivonen
Status: NEW → ASSIGNED
Attachment #565480 - Flags: review?(Olli.Pettay)
Attachment #565480 - Flags: review?(Olli.Pettay) → review+
Flags: in-testsuite+
Whiteboard: [inbound]
Target Milestone: --- → mozilla10
Comment on attachment 565480 [details] [diff] [review] Use = instead of ==, with a test Requesting approval for Aurora. The code that has the extra equals sign was recently introduced but has made it to Aurora already. Letting it get to release could at least in theory break cases where XHR is used for reading non-UTF-8 XML as text.
Attachment #565480 - Flags: approval-mozilla-aurora?
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
I wonder if we can make the compiler error here. On Windows we're already erroring for "lvalue == rvalue;" for primitive types.
Attachment #565480 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
[qa-] because of code related issue.
Whiteboard: [qa-]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: