[Webkit-unassigned] [Bug 255479] New: Combine Base64DecodeOptions and Base64DecodeMode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 15 00:25:56 PDT 2023


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

            Bug ID: 255479
           Summary: Combine Base64DecodeOptions and Base64DecodeMode
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: annevk at annevk.nl
                CC: webkit-bug-importer at group.apple.com

Based on analyzing the code and knowledge of the web platform I want to see if we can trim these down to three modes:

* Default, which uses the normal map, validates padding, and is strict on whitespace.
* DefaultIgnoreWhitespace, like Default, but ignores ASCII whitespace. It notably does not ignore U+000B. WebKit used to ignore U+000B in some cases, but that was more an historical accident of using isASCIISpace where isHTMLSpace was warranted. See also bug 255467.
* URL, which uses the URL map, does not validate padding, but is strict on whitespace. It's common for the URL case to not validate padding as including = in URLs can sometimes be involved. Also none of the existing WebKit code would validate padding or be loose on whitespace.

I plan to put up a draft PR to see if there is any bot fallout.

-- 
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/20230415/380266c7/attachment.htm>


More information about the webkit-unassigned mailing list