<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>260128</bug_id>
          
          <creation_ts>2023-08-13 13:06:29 -0700</creation_ts>
          <short_desc>ASSERTION FAILED: isAllowedByContentSecurityPolicy(request.url(), ContentSecurityPolicy::RedirectResponseReceived::No) for http/wpt/workers/modules/shared-worker-import-csp.html</short_desc>
          <delta_ts>2023-08-13 13:09:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>260107</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1970972</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-08-13 13:06:29 -0700</bug_when>
    <thetext>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&amp;suite=layout-tests&amp;test=http%2Fwpt%2Fworkers%2Fmodules%2Fshared-worker-import-csp.html&amp;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 &amp;, WebCore::ThreadableLoaderClient &amp;, WebCore::DocumentThreadableLoader::BlockingBehavior, WebCore::ResourceRequest &amp;&amp;, const WebCore::ThreadableLoaderOptions &amp;, RefPtr&lt;WebCore::SecurityOrigin&gt; &amp;&amp;, std::unique_ptr&lt;ContentSecurityPolicy&gt; &amp;&amp;, std::optional&lt;CrossOriginEmbedderPolicy&gt; &amp;&amp;, WTF::String &amp;&amp;, WebCore::DocumentThreadableLoader::ShouldLogError)
1   0x13471c2d8 WTFCrash
2   0x13471c2f4 WTFIsDebuggerAttached
3   0x14f7321c0 WebCore::DocumentThreadableLoader::DocumentThreadableLoader(WebCore::Document&amp;, WebCore::ThreadableLoaderClient&amp;, WebCore::DocumentThreadableLoader::BlockingBehavior, WebCore::ResourceRequest&amp;&amp;, WebCore::ThreadableLoaderOptions const&amp;, WTF::RefPtr&lt;WebCore::SecurityOrigin, WTF::RawPtrTraits&lt;WebCore::SecurityOrigin&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SecurityOrigin&gt;&gt;&amp;&amp;, std::__1::unique_ptr&lt;WebCore::ContentSecurityPolicy, std::__1::default_delete&lt;WebCore::ContentSecurityPolicy&gt;&gt;&amp;&amp;, std::__1::optional&lt;WebCore::CrossOriginEmbedderPolicy&gt;&amp;&amp;, WTF::String&amp;&amp;, WebCore::DocumentThreadableLoader::ShouldLogError)
4   0x14f7317a8 WebCore::DocumentThreadableLoader::DocumentThreadableLoader(WebCore::Document&amp;, WebCore::ThreadableLoaderClient&amp;, WebCore::DocumentThreadableLoader::BlockingBehavior, WebCore::ResourceRequest&amp;&amp;, WebCore::ThreadableLoaderOptions const&amp;, WTF::RefPtr&lt;WebCore::SecurityOrigin, WTF::RawPtrTraits&lt;WebCore::SecurityOrigin&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SecurityOrigin&gt;&gt;&amp;&amp;, std::__1::unique_ptr&lt;WebCore::ContentSecurityPolicy, std::__1::default_delete&lt;WebCore::ContentSecurityPolicy&gt;&gt;&amp;&amp;, std::__1::optional&lt;WebCore::CrossOriginEmbedderPolicy&gt;&amp;&amp;, WTF::String&amp;&amp;, WebCore::DocumentThreadableLoader::ShouldLogError)
5   0x14f731a04 WebCore::DocumentThreadableLoader::create(WebCore::Document&amp;, WebCore::ThreadableLoaderClient&amp;, WebCore::ResourceRequest&amp;&amp;, WebCore::ThreadableLoaderOptions const&amp;, WTF::RefPtr&lt;WebCore::SecurityOrigin, WTF::RawPtrTraits&lt;WebCore::SecurityOrigin&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::SecurityOrigin&gt;&gt;&amp;&amp;, std::__1::unique_ptr&lt;WebCore::ContentSecurityPolicy, std::__1::default_delete&lt;WebCore::ContentSecurityPolicy&gt;&gt;&amp;&amp;, std::__1::optional&lt;WebCore::CrossOriginEmbedderPolicy&gt;&amp;&amp;, WTF::String&amp;&amp;, WebCore::DocumentThreadableLoader::ShouldLogError)
6   0x14f85d7e0 WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge(WebCore::ThreadableLoaderClientWrapper&amp;, WebCore::WorkerLoaderProxy&amp;, WebCore::ProcessQualified&lt;WTF::UUID&gt;, WTF::String const&amp;, WebCore::ResourceRequest&amp;&amp;, WebCore::ThreadableLoaderOptions const&amp;, WTF::String const&amp;, WebCore::WorkerOrWorkletGlobalScope&amp;)::$_9::operator()(WebCore::ScriptExecutionContext&amp;)
7   0x14f85d5e0 WTF::Detail::CallableWrapper&lt;WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge(WebCore::ThreadableLoaderClientWrapper&amp;, WebCore::WorkerLoaderProxy&amp;, WebCore::ProcessQualified&lt;WTF::UUID&gt;, WTF::String const&amp;, WebCore::ResourceRequest&amp;&amp;, WebCore::ThreadableLoaderOptions const&amp;, WTF::String const&amp;, WebCore::WorkerOrWorkletGlobalScope&amp;)::$_9, void, WebCore::ScriptExecutionContext&amp;&gt;::call(WebCore::ScriptExecutionContext&amp;)
8   0x14df90ac0 WTF::Function&lt;void (WebCore::ScriptExecutionContext&amp;)&gt;::operator()(WebCore::ScriptExecutionContext&amp;) const
9   0x14df7fe20 WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&amp;)
10  0x14ebce1fc WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&amp;&amp;)::$_28::operator()()
11  0x14ebce008 WTF::Detail::CallableWrapper&lt;WebCore::Document::postTask(WebCore::ScriptExecutionContext::Task&amp;&amp;)::$_28, void&gt;::call()
12  0x1347446bc WTF::Function&lt;void ()&gt;::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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1970974</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2023-08-13 13:09:14 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 260107 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>