[webkit-changes] [WebKit/WebKit] 552bfd: [Reporting API] Use WTFString instead of AtomStrin...

Brent Fulgham noreply at github.com
Tue Sep 20 09:56:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 552bfd33df1642d5d889a7d649cb7b91eafb27b7
      https://github.com/WebKit/WebKit/commit/552bfd33df1642d5d889a7d649cb7b91eafb27b7
  Author: Brent Fulgham <bfulgham at apple.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M Source/WebCore/Modules/reporting/DeprecationReportBody.cpp
    M Source/WebCore/Modules/reporting/DeprecationReportBody.h
    M Source/WebCore/Modules/reporting/Report.cpp
    M Source/WebCore/Modules/reporting/Report.h
    M Source/WebCore/Modules/reporting/ReportBody.h
    M Source/WebCore/Modules/reporting/ReportingObserver.cpp
    M Source/WebCore/Modules/reporting/ReportingScope.cpp
    M Source/WebCore/Modules/reporting/TestReportBody.cpp
    M Source/WebCore/Modules/reporting/TestReportBody.h
    M Source/WebCore/loader/COEPInheritenceViolationReportBody.cpp
    M Source/WebCore/loader/COEPInheritenceViolationReportBody.h
    M Source/WebCore/loader/CORPViolationReportBody.cpp
    M Source/WebCore/loader/CORPViolationReportBody.h
    M Source/WebCore/page/csp/CSPViolationReportBody.cpp
    M Source/WebCore/page/csp/CSPViolationReportBody.h
    M Source/WebCore/page/csp/ContentSecurityPolicy.cpp

  Log Message:
  -----------
  [Reporting API] Use WTFString instead of AtomString for report types
https://bugs.webkit.org/show_bug.cgi?id=245368
<rdar://problem/100130509>

Reviewed by Chris Dumez.

Since we want most reports to be usable from Workers, we should use a
thread-safe string, instead of the more efficient AtomString.

* Source/WebCore/Modules/reporting/DeprecationReportBody.cpp:
(WebCore::DeprecationReportBody::deprecationReportType): Deleted.
* Source/WebCore/Modules/reporting/DeprecationReportBody.h:
* Source/WebCore/Modules/reporting/TestReportBody.cpp:
(WebCore::TestReportBody::testReportType): Deleted.
* Source/WebCore/Modules/reporting/TestReportBody.h:
* Source/WebCore/loader/COEPInheritenceViolationReportBody.cpp:
(WebCore::COEPInheritenceViolationReportBody::create):
(WebCore::COEPInheritenceViolationReportBody::COEPInheritenceViolationReportBody):
* Source/WebCore/loader/COEPInheritenceViolationReportBody.h:
(WebCore::COEPInheritenceViolationReportBody::decode):
* Source/WebCore/loader/CORPViolationReportBody.cpp:
(WebCore::CORPViolationReportBody::type const):
* Source/WebCore/loader/CORPViolationReportBody.h:
* Source/WebCore/page/csp/CSPViolationReportBody.cpp:
* Source/WebCore/page/csp/CSPViolationReportBody.cpp:
(WebCore::CSPViolationReportBody::cspReportType):
* Source/WebCore/page/csp/CSPViolationReportBody.h:

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




More information about the webkit-changes mailing list