<?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>268194</bug_id>
          
          <creation_ts>2024-01-26 14:19:54 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: m_suspendIfNeededWasCalled</short_desc>
          <delta_ts>2024-01-28 19:09:36 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</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="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Chris Dumez">cdumez</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2008033</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2024-01-26 14:19:54 -0800</bug_when>
    <thetext>Seen during a test:

imported/w3c/web-platform-tests/web-locks/acquire.tentative.https.any.serviceworker

```
No crash log found for com.apple.WebKit.WebContent.Development:8818.

stdout:

stderr:
Failed to call suspendIfNeeded() for ServiceWorkerContainer
ASSERTION FAILED: m_suspendIfNeededWasCalled
/Volumes/Data/worker/macOS-AppleSilicon-Sonoma-Debug-Build-EWS/build/Source/WebCore/dom/ActiveDOMObject.cpp(109) : void WebCore::ActiveDOMObject::assertSuspendIfNeededWasCalled() const
1   0x138f89020 WTFCrash
2   0x2844c3f90 WebCore::NetworkResourcesData::ResourceData::hasContent() const
3   0x283a3413c WebCore::ActiveDOMObject::assertSuspendIfNeededWasCalled() const
4   0x283d40810 WebCore::ScriptExecutionContext::checkConsistency() const
5   0x283d42684 WebCore::ScriptExecutionContext::stopActiveDOMObjects()
6   0x283ad9a00 WebCore::Document::stopActiveDOMObjects()
7   0x283ad9480 WebCore::Document::commonTeardown()
8   0x283ad9098 WebCore::Document::removedLastRef()
9   0x283ce2820 WebCore::Node::removedLastRef()
10  0x282d01558 WebCore::Node::deref() const
11  0x282d0130c WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt;::derefIfNotNull(WebCore::Document*)
12  0x2833ebc78 WTF::RefPtr&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt;&gt;::~RefPtr()
13  0x2832f53ec WTF::RefPtr&lt;WebCore::Document, WTF::RawPtrTraits&lt;WebCore::Document&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Document&gt;&gt;::~RefPtr()
14  0x285ef3cc4 WebCore::ServiceWorkerContainer::ServiceWorkerContainer(WebCore::ScriptExecutionContext*, WebCore::NavigatorBase&amp;)
15  0x285ef3ab0 WebCore::ServiceWorkerContainer::ServiceWorkerContainer(WebCore::ScriptExecutionContext*, WebCore::NavigatorBase&amp;)
16  0x285ef3a34 WebCore::ServiceWorkerContainer::create(WebCore::ScriptExecutionContext*, WebCore::NavigatorBase&amp;)
17  0x284affccc WebCore::NavigatorBase::serviceWorker()
18  0x283d44f60 WebCore::ScriptExecutionContext::serviceWorkerContainer()
19  0x285eef994 WebCore::SWClientConnection::updateRegistrationState(WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;)
20  0x121350aa8 auto void IPC::callMemberFunction&lt;WebKit::WebSWClientConnection, WebCore::SWClientConnection, void (WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&gt;(WebKit::WebSWClientConnection*, void (WebCore::SWClientConnection::*)(WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...)::operator()&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;(auto&amp;&amp;...) const
21  0x1213509dc decltype(std::declval&lt;WebKit::WebSWClientConnection&gt;()(std::declval&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;&gt;(), std::declval&lt;WebCore::ServiceWorkerRegistrationState&gt;(), std::declval&lt;std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;())) std::__1::__invoke[abi:v160006]&lt;void IPC::callMemberFunction&lt;WebKit::WebSWClientConnection, WebCore::SWClientConnection, void (WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&gt;(WebKit::WebSWClientConnection*, void (WebCore::SWClientConnection::*)(WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...), WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;(WebKit::WebSWClientConnection&amp;&amp;, WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;&amp;&amp;, WebCore::ServiceWorkerRegistrationState&amp;&amp;, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&amp;&amp;)
22  0x1213509a0 decltype(auto) std::__1::__apply_tuple_impl[abi:v160006]&lt;void IPC::callMemberFunction&lt;WebKit::WebSWClientConnection, WebCore::SWClientConnection, void (WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&gt;(WebKit::WebSWClientConnection*, void (WebCore::SWClientConnection::*)(WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;, 0ul, 1ul, 2ul&gt;(WebKit::WebSWClientConnection&amp;&amp;, WebCore::SWClientConnection&amp;&amp;, std::__1::__tuple_indices&lt;0ul, 1ul, 2ul&gt;)
23  0x121350944 decltype(auto) std::__1::apply[abi:v160006]&lt;void IPC::callMemberFunction&lt;WebKit::WebSWClientConnection, WebCore::SWClientConnection, void (WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&gt;(WebKit::WebSWClientConnection*, void (WebCore::SWClientConnection::*)(WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&amp;&amp;)::&apos;lambda&apos;(auto&amp;&amp;...), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&gt;(WebKit::WebSWClientConnection&amp;&amp;, WebCore::SWClientConnection&amp;&amp;)
24  0x12134f800 void IPC::callMemberFunction&lt;WebKit::WebSWClientConnection, WebCore::SWClientConnection, void (WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&gt;(WebKit::WebSWClientConnection*, void (WebCore::SWClientConnection::*)(WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;), std::__1::tuple&lt;WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt;&gt;&amp;&amp;)
25  0x121347ebc void IPC::handleMessage&lt;Messages::WebSWClientConnection::UpdateRegistrationState, WebKit::WebSWClientConnection, WebCore::SWClientConnection, void (WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;)&gt;(IPC::Connection&amp;, IPC::Decoder&amp;, WebKit::WebSWClientConnection*, void (WebCore::SWClientConnection::*)(WTF::ObjectIdentifierGeneric&lt;WebCore::ServiceWorkerRegistrationIdentifierType, WTF::ObjectIdentifierThreadSafeAccessTraits&gt;, WebCore::ServiceWorkerRegistrationState, std::__1::optional&lt;WebCore::ServiceWorkerData&gt; const&amp;))
26  0x12134750c WebKit::WebSWClientConnection::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
27  0x12068ff74 WebKit::NetworkProcessConnection::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
28  0x12149fff0 IPC::Connection::dispatchMessage(IPC::Decoder&amp;)
29  0x1214a0424 IPC::Connection::dispatchMessage(WTF::UniqueRef&lt;IPC::Decoder&gt;)
30  0x1214a074c IPC::Connection::dispatchOneIncomingMessage()
31  0x1214be068 IPC::Connection::enqueueIncomingMessage(WTF::UniqueRef&lt;IPC::Decoder&gt;)::$_17::operator()() const
com.apple.WebKit.WebContent.Development terminated (pid 8818) for reason: crash
LEAK: 1 WebPageProxy
```

From https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Sonoma-Debug-WK2-Tests-EWS/24f7c679-8975/imported/w3c/web-platform-tests/web-locks/acquire.tentative.https.any.serviceworker-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008034</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-01-26 14:20:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/121689893&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008325</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2024-01-28 11:53:39 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/23392</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2008364</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-28 19:09:34 -0800</bug_when>
    <thetext>Committed 273637@main (23ed729b1703): &lt;https://commits.webkit.org/273637@main&gt;

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

    </bug>

</bugzilla>