[webkit-changes] [WebKit/WebKit] 829ee3: Trusted types allows duplicate default policies wi...

Luke Warlow noreply at github.com
Thu Feb 8 10:32:11 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 829ee3dbf2a771f11bd4e9f7251d6a626ad98093
      https://github.com/WebKit/WebKit/commit/829ee3dbf2a771f11bd4e9f7251d6a626ad98093
  Author: Luke Warlow <lwarlow at igalia.com>
  Date:   2024-02-08 (Thu, 08 Feb 2024)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/trusted-types/trusted-types-duplicate-names-without-enforcement-expected.txt
    M Source/WebCore/page/csp/ContentSecurityPolicy.cpp

  Log Message:
  -----------
  Trusted types allows duplicate default policies without CSP enforcement
https://bugs.webkit.org/show_bug.cgi?id=268989

Reviewed by Tim Nguyen.

This patch disallows duplicate default policies even without CSP enforcement.

This follows step 3 from https://w3c.github.io/trusted-types/dist/spec/#create-trusted-type-policy-algorithm

* LayoutTests/imported/w3c/web-platform-tests/trusted-types/trusted-types-duplicate-names-without-enforcement-expected.txt:
* Source/WebCore/page/csp/ContentSecurityPolicy.cpp:
(WebCore::ContentSecurityPolicy::allowTrustedTypesPolicy const):

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




More information about the webkit-changes mailing list