<?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>193937</bug_id>
          
          <creation_ts>2019-01-28 16:34:45 -0800</creation_ts>
          <short_desc>compositing/iframes/remove-reinsert-webview-with-iframe.html crashes under ScrollingTree::updateTreeFromStateNode()</short_desc>
          <delta_ts>2019-01-28 20:53:16 -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>DUPLICATE</resolution>
          <dup_id>193907</dup_id>
          
          <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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fred.wang</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1499266</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-01-28 16:34:45 -0800</bug_when>
    <thetext>3   0x56001dae2 WTF::RefCountedBase::ref() const
4   0x562f4d7f5 void WTF::refIfNotNull&lt;WebCore::ScrollingTreeNode&gt;(WebCore::ScrollingTreeNode*)
5   0x562f4d7b4 WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt;::RefPtr(WebCore::ScrollingTreeNode*)
6   0x562f4d74d WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt;::RefPtr(WebCore::ScrollingTreeNode*)
7   0x562f40ef3 WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt;::operator=(WebCore::ScrollingTreeNode*)
8   0x562f407a8 WebCore::ScrollingTree::updateTreeFromStateNode(WebCore::ScrollingStateNode const*, WTF::HashMap&lt;unsigned long long, WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt;, WTF::IntHash&lt;unsigned long long&gt;, WTF::HashTraits&lt;unsigned long long&gt;, WTF::HashTraits&lt;WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt; &gt; &gt;&amp;)
9   0x562f40c83 WebCore::ScrollingTree::updateTreeFromStateNode(WebCore::ScrollingStateNode const*, WTF::HashMap&lt;unsigned long long, WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt;, WTF::IntHash&lt;unsigned long long&gt;, WTF::HashTraits&lt;unsigned long long&gt;, WTF::HashTraits&lt;WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt; &gt; &gt;&amp;)
10  0x562f40c83 WebCore::ScrollingTree::updateTreeFromStateNode(WebCore::ScrollingStateNode const*, WTF::HashMap&lt;unsigned long long, WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt;, WTF::IntHash&lt;unsigned long long&gt;, WTF::HashTraits&lt;unsigned long long&gt;, WTF::HashTraits&lt;WTF::RefPtr&lt;WebCore::ScrollingTreeNode, WTF::DumbPtrTraits&lt;WebCore::ScrollingTreeNode&gt; &gt; &gt; &gt;&amp;)
11  0x562f40471 WebCore::ScrollingTree::commitTreeState(std::__1::unique_ptr&lt;WebCore::ScrollingStateTree, std::__1::default_delete&lt;WebCore::ScrollingStateTree&gt; &gt;)
12  0x562f529da WebCore::ThreadedScrollingTree::commitTreeState(std::__1::unique_ptr&lt;WebCore::ScrollingStateTree, std::__1::default_delete&lt;WebCore::ScrollingStateTree&gt; &gt;)
13  0x5605cfd7b WebCore::ScrollingCoordinatorMac::commitTreeState()::$_2::operator()() const
14  0x5605cfc59 WTF::Function&lt;void ()&gt;::CallableWrapper&lt;WebCore::ScrollingCoordinatorMac::commitTreeState()::$_2&gt;::call()
15  0x56000f6ca WTF::Function&lt;void ()&gt;::operator()() const
16  0x562f3f70b WebCore::ScrollingThread::dispatchFunctionsFromScrollingThread()
17  0x5605c4876 WebCore::ScrollingThread::threadRunLoopSourceCallback()
18  0x5605c46b5 WebCore::ScrollingThread::threadRunLoopSourceCallback(void*)

This is about unparented subtrees. We&apos;ve unparented a subframe node, so its scrolling tree node gets deleted (but not removed from the node map). We then re-parent it, try to look up the node in m_nodeMap and get a deleted pointer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1499267</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-28 16:35:06 -0800</bug_when>
    <thetext>&lt;rdar://problem/47616226&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1499352</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-01-28 19:03:43 -0800</bug_when>
    <thetext>We also need to make sure that if we unparent a subtree, then add it back, that subsequent commits get a full set of changes for the re-added nodes, so that all the state for those nodes is sent to the UI process and set in the scrolling tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1499391</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-01-28 20:53:16 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>