Bug 260128 - ASSERTION FAILED: isAllowedByContentSecurityPolicy(request.url(), ContentSecurityPolicy::RedirectResponseReceived::No) for http/wpt/workers/modules/shared-worker-import-csp.html
Summary: ASSERTION FAILED: isAllowedByContentSecurityPolicy(request.url(), ContentSecu...
Status: RESOLVED DUPLICATE of bug 260107
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-13 13:06 PDT by Fujii Hironori
Modified: 2023-08-13 13:09 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fujii Hironori 2023-08-13 13:06:29 PDT
After 266801@main (bug#260005) added the following tests, the tests are failing an assertion

  http/wpt/workers/modules/dedicated-worker-import-csp.html
  http/wpt/workers/modules/shared-worker-import-csp.html

https://results.webkit.org/?suite=layout-tests&suite=layout-tests&test=http%2Fwpt%2Fworkers%2Fmodules%2Fshared-worker-import-csp.html&test=http%2Fwpt%2Fworkers%2Fmodules%2Fdedicated-worker-import-csp.html

ASSERTION FAILED: isAllowedByContentSecurityPolicy(request.url(), ContentSecurityPolicy::RedirectResponseReceived::No)
/Volumes/Data/worker/macOS-AppleSilicon-Ventura-Debug-Build-EWS/build/Source/WebCore/loader/DocumentThreadableLoader.cpp(148) : WebCore::DocumentThreadableLoader::DocumentThreadableLoader(WebCore::Document &, WebCore::ThreadableLoaderClient &, WebCore::DocumentThreadableLoader::BlockingBehavior, WebCore::ResourceRequest &&, const WebCore::ThreadableLoaderOptions &, RefPtr<WebCore::SecurityOrigin> &&, std::unique_ptr<ContentSecurityPolicy> &&, std::optional<CrossOriginEmbedderPolicy> &&, WTF::String &&, WebCore::DocumentThreadableLoader::ShouldLogError)
1   0x13471c2d8 WTFCrash
2   0x13471c2f4 WTFIsDebuggerAttached
3   0x14f7321c0 WebCore::DocumentThreadableLoader::DocumentThreadableLoader(WebCore::Document&, WebCore::ThreadableLoaderClient&, WebCore::DocumentThreadableLoader::BlockingBehavior, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::RefPtr<WebCore::SecurityOrigin, WTF::RawPtrTraits<WebCore::SecurityOrigin>, WTF::DefaultRefDerefTraits<WebCore::SecurityOrigin>>&&, std::__1::unique_ptr<WebCore::ContentSecurityPolicy, std::__1::default_delete<WebCore::ContentSecurityPolicy>>&&, std::__1::optional<WebCore::CrossOriginEmbedderPolicy>&&, WTF::String&&, WebCore::DocumentThreadableLoader::ShouldLogError)
4   0x14f7317a8 WebCore::DocumentThreadableLoader::DocumentThreadableLoader(WebCore::Document&, WebCore::ThreadableLoaderClient&, WebCore::DocumentThreadableLoader::BlockingBehavior, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::RefPtr<WebCore::SecurityOrigin, WTF::RawPtrTraits<WebCore::SecurityOrigin>, WTF::DefaultRefDerefTraits<WebCore::SecurityOrigin>>&&, std::__1::unique_ptr<WebCore::ContentSecurityPolicy, std::__1::default_delete<WebCore::ContentSecurityPolicy>>&&, std::__1::optional<WebCore::CrossOriginEmbedderPolicy>&&, WTF::String&&, WebCore::DocumentThreadableLoader::ShouldLogError)
5   0x14f731a04 WebCore::DocumentThreadableLoader::create(WebCore::Document&, WebCore::ThreadableLoaderClient&, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::RefPtr<WebCore::SecurityOrigin, WTF::RawPtrTraits<WebCore::SecurityOrigin>, WTF::DefaultRefDerefTraits<WebCore::SecurityOrigin>>&&, std::__1::unique_ptr<WebCore::ContentSecurityPolicy, std::__1::default_delete<WebCore::ContentSecurityPolicy>>&&, std::__1::optional<WebCore::CrossOriginEmbedderPolicy>&&, WTF::String&&, WebCore::DocumentThreadableLoader::ShouldLogError)
6   0x14f85d7e0 WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge(WebCore::ThreadableLoaderClientWrapper&, WebCore::WorkerLoaderProxy&, WebCore::ProcessQualified<WTF::UUID>, WTF::String const&, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::String const&, WebCore::WorkerOrWorkletGlobalScope&)::$_9::operator()(WebCore::ScriptExecutionContext&)
7   0x14f85d5e0 WTF::Detail::CallableWrapper<WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge(WebCore::ThreadableLoaderClientWrapper&, WebCore::WorkerLoaderProxy&, WebCore::ProcessQualified<WTF::UUID>, WTF::String const&, WebCore::ResourceRequest&&, WebCore::ThreadableLoaderOptions const&, WTF::String const&, WebCore::WorkerOrWorkletGlobalScope&)::$_9, void, WebCore::ScriptExecutionContext&>::call(WebCore::ScriptExecutionContext&)
8   0x14df90ac0 WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const
9   0x14df7fe20 WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&)
10  0x14ebce1fc WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&&)::$_28::operator()()
11  0x14ebce008 WTF::Detail::CallableWrapper<WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&&)::$_28, void>::call()
12  0x1347446bc WTF::Function<void ()>::operator()() const
13  0x1347d7d7c WTF::RunLoop::performWork()
14  0x1347dc31c WTF::RunLoop::performWork(void*)
15  0x198e6663c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
16  0x198e665d0 __CFRunLoopDoSource0
17  0x198e66340 __CFRunLoopDoSources0
18  0x198e64f48 __CFRunLoopRun
19  0x198e644b8 CFRunLoopRunSpecific
20  0x199dddfcc -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
21  0x199e56ccc -[NSRunLoop(NSRunLoop) run]
22  0x198ad6594 _xpc_objc_main
23  0x198ad5eb4 xpc_main
24  0x116d284cc WebKit::XPCServiceMain(int, char const**)
25  0x118d0edc4 WKXPCServiceMain
26  0x1007fbfa0 main
27  0x198a2ff28 start
com.apple.WebKit.WebContent.Development terminated (pid 6862) for reason: crash
LEAK: 2 WebPageProxy
Comment 1 Fujii Hironori 2023-08-13 13:09:14 PDT

*** This bug has been marked as a duplicate of bug 260107 ***