Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3ef7784b36a8d052bdb3272fd5a04c9f36b421fd
      
https://github.com/WebKit/WebKit/commit/3ef7784b36a8d052bdb3272fd5a04c9f36b421fd
  Author: Luke Warlow <[email protected]>
  Date:   2024-07-03 (Wed, 03 Jul 2024)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/content-security-policy/reporting/report-clips-sample.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/content-security-policy/reporting/report-clips-sample.https.html
    M Source/WebCore/page/csp/ContentSecurityPolicy.cpp
    M Source/WebCore/page/csp/ContentSecurityPolicy.h

  Log Message:
  -----------
  Trusted Types violation sample clips incorrectly
https://bugs.webkit.org/show_bug.cgi?id=275392

Reviewed by Darin Adler.

This patch follows the spec for sample truncation in trusted types.

Spec: 
https://w3c.github.io/trusted-types/dist/spec/#should-block-sink-type-mismatch

* 
LayoutTests/imported/w3c/web-platform-tests/content-security-policy/reporting/report-clips-sample.https-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/content-security-policy/reporting/report-clips-sample.https.html:
* Source/WebCore/page/csp/ContentSecurityPolicy.cpp:
(WebCore::ContentSecurityPolicy::allowMissingTrustedTypesForSinkGroup const):
(WebCore::ContentSecurityPolicy::reportViolation const):
* Source/WebCore/page/csp/ContentSecurityPolicy.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to