<?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>251015</bug_id>
          
          <creation_ts>2023-01-23 09:06:43 -0800</creation_ts>
          <short_desc>[ResizeObserver] ASSERT(m_callback-&gt;hasCallback()) under ResizeObserver::deliverObservations</short_desc>
          <delta_ts>2023-06-14 00:38:07 -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>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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=231235</see_also>
          <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>
          
          <blocked>250836</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="cathiechen">cathiechen</reporter>
          <assigned_to name="cathiechen">cathiechen</assigned_to>
          <cc>daxpedda</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1927470</commentid>
    <comment_count>0</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2023-01-23 09:06:43 -0800</bug_when>
    <thetext>There is a ASSERTION FAILED if we set the initial last reported size of ResizeObservation to -1 x -1, which is updated in the speciation, see  https://github.com/WebKit/WebKit/pull/8839

If the initial size is 0x0, even ResizeObserver observe a disconnected target, it won&apos;t trigger ResizeObserver::deliverObservations.
If the initial size is -1x-1, observing a disconnected target would trigger ResizeObserver::deliverObservations, then there we meet a ASSERTION FAILED.
ResizeObserver needs a fix similar to https://bugs.webkit.org/show_bug.cgi?id=231235 


stderr:
ASSERTION FAILED: m_callback-&gt;hasCallback()
page/ResizeObserver.cpp(145) : void WebCore::ResizeObserver::deliverObservations()
1   0x13a15a5e4 WTFCrash
2   0x2808333e0 WTFCrashWithInfo(int, char const*, char const*, int)
3   0x284c63440 WebCore::ResizeObserver::deliverObservations()
4   0x283aa9074 WebCore::Document::deliverResizeObservations()
5   0x283aa937c WebCore::Document::updateResizeObservations(WebCore::Page&amp;)
6   0x284bd6850 WebCore::Page::updateRendering()::$_29::operator()(WebCore::Document&amp;) const
7   0x284bd67cc WTF::Detail::CallableWrapper&lt;WebCore::Page::updateRendering()::$_29, void, WebCore::Document&amp;&gt;::call(WebCore::Document&amp;)
8   0x283cc64b0 WTF::Function&lt;void (WebCore::Document&amp;)&gt;::operator()(WebCore::Document&amp;) const
9   0x284b90688 WebCore::Page::forEachDocumentFromMainFrame(WebCore::Frame const&amp;, WTF::Function&lt;void (WebCore::Document&amp;)&gt; const&amp;)
10  0x284b80840 WebCore::Page::forEachDocument(WTF::Function&lt;void (WebCore::Document&amp;)&gt; const&amp;) const
11  0x284b88468 WebCore::Page::updateRendering()::$_20::operator()(WebCore::RenderingUpdateStep, WTF::Function&lt;void (WebCore::Document&amp;)&gt; const&amp;) const
12  0x284b88134 WebCore::Page::updateRendering()
13  0x11d05eb10 WebKit::WebPage::updateRendering()
14  0x11c1d7b94 WebKit::TiledCoreAnimationDrawingArea::updateRendering(WebKit::TiledCoreAnimationDrawingArea::UpdateRenderingType)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928132</commentid>
    <comment_count>1</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2023-01-25 07:35:24 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9112</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1929437</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-30 09:07:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/104822969&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930037</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-01 02:51:24 -0800</bug_when>
    <thetext>Committed 259673@main (2861d8c4e29c): &lt;https://commits.webkit.org/259673@main&gt;

Reviewed commits have been landed. Closing PR #9112 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1930039</commentid>
    <comment_count>4</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2023-02-01 02:54:45 -0800</bug_when>
    <thetext>*** Bug 250836 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>