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)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: hsivonen, Assigned: hsivonen)
References
()
Details
(Whiteboard: [qa-])
Attachments
(1 file)
3.42 KB,
patch
|
smaug
:
review+
asa
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Bug 687087 introduced this:
if (mResponseCharset != document->GetDocumentCharacterSet()) {
mResponseCharset == document->GetDocumentCharacterSet();
Should be
if (mResponseCharset != document->GetDocumentCharacterSet()) {
mResponseCharset = document->GetDocumentCharacterSet();
(== vs. =)
Comment 1•13 years ago
|
||
Need to fix this asap, since Bug 687087 is in Aurora.
Assignee: nobody → jonas
Assignee | ||
Updated•13 years ago
|
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
Assignee | ||
Comment 2•13 years ago
|
||
Taking. I need this fixed for bug 651072.
Updated•13 years ago
|
Attachment #565480 -
Flags: review?(Olli.Pettay) → review+
Assignee | ||
Comment 3•13 years ago
|
||
Flags: in-testsuite+
Whiteboard: [inbound]
Target Milestone: --- → mozilla10
Assignee | ||
Comment 4•13 years ago
|
||
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?
Comment 5•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
status-firefox10:
--- → fixed
status-firefox9:
--- → affected
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.
Updated•13 years ago
|
Attachment #565480 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 7•13 years ago
|
||
tracking-firefox9:
? → ---
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•