[Webkit-unassigned] [Bug 213253] Fix the case about NFC normalization in wpt/FileAPI/unicode.html

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 17 18:12:03 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=213253

--- Comment #2 from Alexey Proskuryakov <ap at webkit.org> ---
Comment on attachment 402016
  --> https://bugs.webkit.org/attachment.cgi?id=402016
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=402016&action=review

> Source/WebCore/fileapi/BlobBuilder.cpp:74
> -    auto bytes = UTF8Encoding().encodeWithNormalization(text, UnencodableHandling::Entities);
> +    auto bytes = UTF8Encoding().encode(text, UnencodableHandling::Entities);

While this is correct in abstract, I don't think that we can do this before the normalization is performed in all code paths where decomposed text from macOS can enter WebKit. And once we do that, encode can stop normalizing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200618/093d2a99/attachment-0001.htm>


More information about the webkit-unassigned mailing list