[webkit-changes] [WebKit/WebKit] 049544: ASSERTION FAILED: isAllowedByContentSecurityPolicy...

youennf noreply at github.com
Wed Aug 23 10:03:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0495446c22a5e5e8b5615363f9a6c100ec00f3ff
      https://github.com/WebKit/WebKit/commit/0495446c22a5e5e8b5615363f9a6c100ec00f3ff
  Author: Youenn Fablet <youennf at gmail.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M LayoutTests/http/wpt/workers/modules/dedicated-worker-import-csp-expected.txt
    M LayoutTests/http/wpt/workers/modules/shared-worker-import-csp-expected.txt
    M LayoutTests/platform/wk2/TestExpectations
    M Source/WebCore/bindings/js/WorkerModuleScriptLoader.cpp
    M Source/WebCore/bindings/js/WorkerModuleScriptLoader.h

  Log Message:
  -----------
  ASSERTION FAILED: isAllowedByContentSecurityPolicy(request.url(), ContentSecurityPolicy::RedirectResponseReceived::No) seen with multiple tests under http/wpt/workers/modules/
https://bugs.webkit.org/show_bug.cgi?id=260107
rdar://113777310

Reviewed by Chris Dumez.

CSP initial checks are done by each fetch client currently.
WorkerModuleScriptLoader needs to add the same checks as other clients.

* LayoutTests/http/wpt/workers/modules/dedicated-worker-import-csp-expected.txt:
* LayoutTests/http/wpt/workers/modules/shared-worker-import-csp-expected.txt:
* LayoutTests/platform/wk2/TestExpectations:
* Source/WebCore/bindings/js/WorkerModuleScriptLoader.cpp:
(WebCore::WorkerModuleScriptLoader::load):
* Source/WebCore/bindings/js/WorkerModuleScriptLoader.h:
* Source/WebKit/NetworkProcess/NetworkLoadChecker.cpp:
(WebKit::NetworkLoadChecker::isAllowedByContentSecurityPolicy):

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




More information about the webkit-changes mailing list