<?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>302197</bug_id>
          
          <creation_ts>2025-11-07 22:48:19 -0800</creation_ts>
          <short_desc>Potential null dereference of m_target in ResizeObservation::computeTargetLocation()</short_desc>
          <delta_ts>2025-11-08 05:34:23 -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>WebCore Misc.</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>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2157433</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-11-07 22:48:19 -0800</bug_when>
    <thetext>Potential null dereference of m_target in ResizeObservation::computeTargetLocation():
```
Thread 0 Crashed::  Dispatch queue: com.apple.main-thread:
0   WebCore                       	       0x1b33a46a4 WTFCrashWithInfo(int, char const*, char const*, int) + 24
1   WebCore                       	       0x1b33a46a4 WTF::WeakPtr&lt;WebCore::Element, WebCore::WeakPtrImplWithEventTargetData, WTF::RawPtrTraits&lt;WebCore::WeakPtrImplWithEventTargetData&gt;&gt;::operator-&gt;() const + 24
2   WebCore                       	       0x1b33a46a4 WebCore::ResizeObservation::computeTargetLocation() const + 24
3   WebCore                       	       0x1b33a46a4 WebCore::ResizeObservation::computeContentRect() const + 24
4   WebCore                       	       0x1b33a46a4 _ZZN7WebCore14ResizeObserver19deliverObservationsEvENK3$_0clIKN3WTF3RefINS_17ResizeObservationENS3_12RawPtrTraitsIS5_EENS3_21DefaultRefDerefTraitsIS5_EEEEEEDaRT_ + 24
5   WebCore                       	       0x1b33a46a4 WTF::Vector&lt;WTF::Ref&lt;WebCore::ResizeObserverEntry, WTF::RawPtrTraits&lt;WebCore::ResizeObserverEntry&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::ResizeObserverEntry&gt;&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; WTF::Vector&lt;WTF::Ref&lt;WebCore::ResizeObservation, WTF::RawPtrTraits&lt;WebCore::ResizeObservation&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::ResizeObservation&gt;&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;::map&lt;WTF::Vector&lt;WTF::Ref&lt;WebCore::ResizeObserverEntry, WTF::RawPtrTraits&lt;WebCore::ResizeObserverEntry&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::ResizeObserverEntry&gt;&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;, WebCore::ResizeObserver::deliverObservations()::$_0&gt;(WebCore::ResizeObserver::deliverObservations()::$_0 const&amp;) const + 24
6   WebCore                       	       0x1b33a46a4 WTF::Vector&lt;std::__1::invoke_result&lt;WebCore::ResizeObserver::deliverObservations()::$_0, WTF::Ref&lt;WebCore::ResizeObservation, WTF::RawPtrTraits&lt;WebCore::ResizeObservation&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::ResizeObservation&gt;&gt; const&amp;&gt;::type, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt; WTF::Vector&lt;WTF::Ref&lt;WebCore::ResizeObservation, WTF::RawPtrTraits&lt;WebCore::ResizeObservation&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::ResizeObservation&gt;&gt;, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;::map&lt;WebCore::ResizeObserver::deliverObservations()::$_0&gt;(WebCore::ResizeObserver::deliverObservations()::$_0 const&amp;) const + 24
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157434</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-11-07 22:48:28 -0800</bug_when>
    <thetext>&lt;rdar://164271295&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157435</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2025-11-07 22:51:17 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/53625</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2157452</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-11-08 05:34:20 -0800</bug_when>
    <thetext>Committed 302765@main (a1c0f13ff6a0): &lt;https://commits.webkit.org/302765@main&gt;

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

    </bug>

</bugzilla>