[Webkit-unassigned] [Bug 175568] data: URL base64 handling different from atob()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 16 15:17:23 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=175568
--- Comment #3 from Chris Dumez <cdumez at apple.com> ---
Looking at DataURLDecoder, I see the following logic:
// First try base64url.
if (!base64URLDecode(task.encodedData.toStringWithoutCopying(), buffer)) {
// Didn't work, try unescaping and decoding as base64.
auto unescapedString = decodeURLEscapeSequences(task.encodedData.toStringWithoutCopying());
if (!base64Decode(unescapedString, buffer, Base64IgnoreSpacesAndNewLines))
return;
}
--
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/20170816/c534ee09/attachment.html>
More information about the webkit-unassigned
mailing list