DescriptionDon't NFC-normalize strings during Blob/File construction
Back in the mists of time, BlobBuilder called UTF8Encoding().encode()
when appending strings, which looks correct. But then mean old
https://crbug.com/117128 came along pointing out that encode() was
actually NFC normalizing strings even when not wanted, so
https://crrev.com/19845004 cleverly renamed the function to
normalizeAndEncode() so future callers would not fall into this trap.
A few existing places such as XHR were eventually changed to just call
encode() (https://crrev.com/22875053) but no-one noticed BlobBuilder
was getting it wrong prior to this bug report.
Change the BlobData::appendText() method to just call encode(), and
add a test case for the Blob constructor.
The new behavior matches FF and IE.
BUG=427183
R=kinuko@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201497
Patch Set 1 #
Messages
Total messages: 16 (4 generated)
|