[webkit-changes] [WebKit/WebKit] 7e4ae6: The encoding argument to PAL::decodeURLEscapeSeque...

Anne van Kesteren noreply at github.com
Tue Jan 2 08:54:04 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7e4ae6913e3e45bd2a6016d165b9fa73af23e9e2
      https://github.com/WebKit/WebKit/commit/7e4ae6913e3e45bd2a6016d165b9fa73af23e9e2
  Author: Anne van Kesteren <annevk at annevk.nl>
  Date:   2024-01-02 (Tue, 02 Jan 2024)

  Changed paths:
    M Source/WebCore/PAL/pal/text/DecodeEscapeSequences.h
    M Source/WebCore/platform/network/DataURLDecoder.cpp

  Log Message:
  -----------
  The encoding argument to PAL::decodeURLEscapeSequencesAsData is unnecessary
https://bugs.webkit.org/show_bug.cgi?id=235308
rdar://88000173

Reviewed by Alex Christensen.

As the input is a serialized URL, it cannot contain non-ASCII. This
does not remove result.charset as that appears bound to
ResourceResponse.

* Source/WebCore/PAL/pal/text/DecodeEscapeSequences.h:
(PAL::decodeURLEscapeSequencesAsData):
* Source/WebCore/platform/network/DataURLDecoder.cpp:
(WebCore::DataURLDecoder::decodeSynchronously):
(WebCore::DataURLDecoder::decodeEscaped): Deleted.

Canonical link: https://commits.webkit.org/272569@main




More information about the webkit-changes mailing list