Closed
Bug 951082
Opened 12 years ago
Closed 9 years ago
Figure out what nsReferencedElement::Reset should do if nsContentUtils::ConvertStringFromEncoding fails
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: hsivonen, Assigned: jwatt)
Details
Attachments
(1 file)
|
1.30 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
If nsContentUtils::ConvertStringFromEncoding fails, it means that fallible allocation failed. We should probably stick to something other than trying conversion from UTF-8 without handling UTF-8 errors as the fallback case.
I.e. don't do
nsresult rv = nsContentUtils::ConvertStringFromEncoding(charset,
refPart,
ref);
if (NS_FAILED(rv)) {
CopyUTF8toUTF16(refPart, ref);
}
| Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8752170 -
Flags: review?(dholbert)
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jwatt
Comment 2•9 years ago
|
||
Comment on attachment 8752170 [details] [diff] [review]
patch
Review of attachment 8752170 [details] [diff] [review]:
-----------------------------------------------------------------
Commit message nit:
> Bug 951082 - Make nsReferencedElement::Reset fail if nsContentUtils::ConvertStringFromEncoding fails. r=dholbert
Maybe "fail if" --> "fail if its call to", to make the relationship a bit clearer.
Attachment #8752170 -
Flags: review?(dholbert) → review+
Comment 4•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•