<?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>107801</bug_id>
          
          <creation_ts>2013-01-24 01:03:51 -0800</creation_ts>
          <short_desc>The deleting Node should be detached.</short_desc>
          <delta_ts>2023-01-03 13:06:30 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>107640</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hajime Morrita">morrita</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>815214</commentid>
    <comment_count>0</comment_count>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2013-01-24 01:03:51 -0800</bug_when>
    <thetext>A tracking bug which comes from Bug 107640.
In some case, Node::attached() is true even the node is deleted. 

We should be able to put ASSERT(!attached()) in ContainerNode::removeDetachedNode() but
that makes some tests fail. It should be fixed to discipline the Node lifecycle.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922692</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-03 13:04:42 -0800</bug_when>
    <thetext>Blink fixed this in following commit - https://chromium.googlesource.com/chromium/blink/+/7977c3ddb18c061e3fe161c7823c78416693580d%5E%21/#F0

Rather than asserting &quot;attached&quot;, they did &quot;connectedSubframeCount&quot;.

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/dom/ContainerNode.cpp#321</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1922693</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-01-03 13:06:30 -0800</bug_when>
    <thetext>(In reply to Ahmad Saleem from comment #1)
&gt; Blink fixed this in following commit -
&gt; https://chromium.googlesource.com/chromium/blink/+/
&gt; 7977c3ddb18c061e3fe161c7823c78416693580d%5E%21/#F0
&gt; 
&gt; Rather than asserting &quot;attached&quot;, they did &quot;connectedSubframeCount&quot;.
&gt; 
&gt; WebKit Source -
&gt; https://searchfox.org/wubkat/source/Source/WebCore/dom/ContainerNode.cpp#321

Ignore me - they have another ASSERT with &apos;needsAttach&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>