Closed
Bug 825195
Opened 12 years ago
Closed 12 years ago
Update method signatures of TextDecoder and TextEncoder per the latest spec
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: emk, Assigned: emk)
References
()
Details
Attachments
(1 file)
7.93 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Updated•12 years ago
|
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=6de426832156
Comment on attachment 696300 [details] [diff] [review] patch Review of attachment 696300 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/encoding/TextDecoder.h @@ +58,5 @@ > > + void Decode(nsAString& aOutDecodedString, > + ErrorResult& aRv) { > + TextDecoderBase::Decode(EmptyCString().BeginReading(), > + EmptyCString().Length(), false, You should be able to just pass nullptr and 0 here. The callee should never dereference any of the data anyway since any dereferences would be past the end of the data. ::: dom/workers/TextDecoder.h @@ +40,5 @@ > void > + Decode(nsAString& aOutDecodedString, > + ErrorResult& aRv) { > + TextDecoderBase::Decode(EmptyCString().BeginReading(), > + EmptyCString().Length(), false, Same here
Attachment #696300 -
Flags: review?(jonas) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #3) > You should be able to just pass nullptr and 0 here. The callee should never > dereference any of the data anyway since any dereferences would be past the > end of the data. Sure. Landed with the fix. https://hg.mozilla.org/integration/mozilla-inbound/rev/abfe3957551b
Flags: in-testsuite+
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/abfe3957551b
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•