<?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>296237</bug_id>
          
          <creation_ts>2025-07-19 16:47:50 -0700</creation_ts>
          <short_desc>Crash under SWServer::forEachClientForOrigin()</short_desc>
          <delta_ts>2025-07-19 19:46:38 -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>Service Workers</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2131422</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-07-19 16:47:50 -0700</bug_when>
    <thetext>Crash under SWServer::forEachClientForOrigin():
```
==&gt; 4 WTF::Detail::CallableWrapper&lt;WebCore::SWServer::advancedPrivacyProtectionsFromClient(WebCore::ClientOrigin const&amp;) const::$_0, void, WebCore::ServiceWorkerClientData const&amp;&gt;::call(WebCore::ServiceWorkerClientData const&amp;) (WebCore) &lt;==
          4 WTF::Function&lt;void (WebCore::ServiceWorkerClientData const&amp;)&gt;::operator()(WebCore::ServiceWorkerClientData const&amp;) const (WebCore)
            4 void WebCore::forEachClientForOriginImpl&lt;WebCore::ServiceWorkerClientData const, WTF::HashMap&lt;WebCore::ProcessQualified&lt;WTF::UUID&gt;, WTF::UniqueRef&lt;WebCore::ServiceWorkerClientData&gt;, WTF::DefaultHash&lt;WebCore::ProcessQualified&lt;WTF::UUID&gt;&gt;, WTF::HashTraits&lt;WebCore::ProcessQualified&lt;WTF::UUID&gt;&gt;, WTF::HashTraits&lt;WTF::UniqueRef&lt;WebCore::ServiceWorkerClientData&gt;&gt;, WTF::HashTableTraits, (WTF::ShouldValidateKey)1, WTF::FastMalloc&gt; const&gt;(WTF::Vector&lt;WebCore::ProcessQualified&lt;WTF::UUID&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; const&amp;, WTF::HashMap&lt;WebCore::ProcessQualified&lt;WTF::UUID&gt;, WTF::UniqueRef&lt;WebCore::ServiceWorkerClientData&gt;, WTF::DefaultHash&lt;WebCore::ProcessQualified&lt;WTF::UUID&gt;&gt;, WTF::HashTraits&lt;WebCore::ProcessQualified&lt;WTF::UUID&gt;&gt;, WTF::HashTraits&lt;WTF::UniqueRef&lt;WebCore::ServiceWorkerClientData&gt;&gt;, WTF::HashTableTraits, (WTF::ShouldValidateKey)1, WTF::FastMalloc&gt; const&amp;, WTF::Function&lt;void (WebCore::ServiceWorkerClientData const&amp;)&gt; const&amp;) (WebCore)
              4 WebCore::SWServer::forEachClientForOrigin(WebCore::ClientOrigin const&amp;, WTF::Function&lt;void (WebCore::ServiceWorkerClientData const&amp;)&gt; const&amp;) const (WebCore)
                4 WebCore::SWServer::advancedPrivacyProtectionsFromClient(WebCore::ClientOrigin const&amp;) const (WebCore)
                  4 WebKit::WebSWServerConnection::controlClient(WebKit::NetworkResourceLoadParameters const&amp;, WebCore::SWServerRegistration&amp;, WebCore::ResourceRequest const&amp;, WTF::ObjectIdentifierGeneric&lt;WebCore::ProcessIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits&lt;unsigned long long&gt;, unsigned long long&gt;) (WebKit)
                    4 WebKit::WebSWServerConnection::createFetchTask(WebKit::NetworkResourceLoader&amp;, WebCore::ResourceRequest const&amp;) (WebKit)
                      4 WebKit::NetworkConnectionToWebProcess::createFetchTask(WebKit::NetworkResourceLoader&amp;, WebCore::ResourceRequest const&amp;) (WebKit)
                        4 WebKit::NetworkResourceLoader::startWithServiceWorker() (WebKit)
                          4 WebKit::NetworkConnectionToWebProcess::scheduleResourceLoad(WebKit::NetworkResourceLoadParameters&amp;&amp;, std::__1::optional&lt;WTF::ObjectIdentifierGeneric&lt;WebKit::NetworkResourceLoadIdentifierType, WTF::ObjectIdentifierMainThreadAccessTraits&lt;unsigned long long&gt;, unsigned long long&gt;&gt;) (WebKit)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131423</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-07-19 16:47:58 -0700</bug_when>
    <thetext>&lt;rdar://155902432&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131424</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-07-19 16:50:33 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/48294</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2131439</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-07-19 19:46:35 -0700</bug_when>
    <thetext>Committed 297657@main (f766bb18d13a): &lt;https://commits.webkit.org/297657@main&gt;

Reviewed commits have been landed. Closing PR #48294 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>