[webkit-changes] [WebKit/WebKit] 2e4614: [WTF] Tweak JSON whitespaces in JSON::Value

Yusuke Suzuki noreply at github.com
Fri Jul 21 17:19:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2e4614241a7b2477c80f144d86fd6d0b8865a3d7
      https://github.com/WebKit/WebKit/commit/2e4614241a7b2477c80f144d86fd6d0b8865a3d7
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2023-07-21 (Fri, 21 Jul 2023)

  Changed paths:
    M Source/WTF/wtf/ASCIICType.h
    M Source/WTF/wtf/JSONValues.cpp
    M Source/WTF/wtf/text/StringToIntegerConversion.h
    M Source/WebCore/Modules/cache/DOMCache.cpp
    M Source/WebCore/Modules/cache/DOMCacheEngine.cpp
    M Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
    M Source/WebCore/Modules/fetch/FetchHeaders.cpp
    M Source/WebCore/mathml/MathMLPresentationElement.cpp
    M Source/WebCore/mathml/MathMLTokenElement.cpp
    M Source/WebCore/page/csp/ContentSecurityPolicyDirectiveList.cpp
    M Source/WebCore/platform/ReferrerPolicy.cpp
    M Source/WebCore/platform/network/DataURLDecoder.cpp
    M Source/WebCore/platform/network/HTTPParsers.cpp
    M Source/WebCore/platform/network/HTTPParsers.h
    M Source/WebCore/platform/network/ParsedContentType.cpp
    M Source/WebCore/platform/network/ResourceResponseBase.cpp
    M Source/WebCore/platform/network/TimingAllowOrigin.cpp
    M Source/WebCore/xml/XMLHttpRequest.cpp
    M Source/WebKit/NetworkProcess/cache/CacheStorageEngineCache.cpp
    M Source/WebKit/NetworkProcess/soup/WebSocketTaskSoup.cpp
    M Source/WebKit/NetworkProcess/storage/CacheStorageRecord.h
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Tools/TestWebKitAPI/Tests/WTF/JSONValue.cpp

  Log Message:
  -----------
  [WTF] Tweak JSON whitespaces in JSON::Value
https://bugs.webkit.org/show_bug.cgi?id=259410
rdar://112683422

Reviewed by Devin Rousso and Darin Adler.

WTF::JSON::Value is not following to what ECMA-404 (JSON spec) specifies about whitespaces.
This patch fixes it.

* Source/WTF/wtf/JSONValues.cpp:
(WTF::JSONImpl::Value::parseJSON):
* Tools/TestWebKitAPI/Tests/WTF/JSONValue.cpp:
(TestWebKitAPI::TEST):

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




More information about the webkit-changes mailing list