Bug 107801

Summary: The deleting Node should be detached.
Product: WebKit Reporter: Hajime Morrita <morrita>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 107640    
Bug Blocks:    

Description Hajime Morrita 2013-01-24 01:03:51 PST
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.
Comment 1 Ahmad Saleem 2023-01-03 13:04:42 PST
Blink fixed this in following commit - https://chromium.googlesource.com/chromium/blink/+/7977c3ddb18c061e3fe161c7823c78416693580d%5E%21/#F0

Rather than asserting "attached", they did "connectedSubframeCount".

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/dom/ContainerNode.cpp#321
Comment 2 Ahmad Saleem 2023-01-03 13:06:30 PST
(In reply to Ahmad Saleem from comment #1)
> Blink fixed this in following commit -
> https://chromium.googlesource.com/chromium/blink/+/
> 7977c3ddb18c061e3fe161c7823c78416693580d%5E%21/#F0
> 
> Rather than asserting "attached", they did "connectedSubframeCount".
> 
> WebKit Source -
> https://searchfox.org/wubkat/source/Source/WebCore/dom/ContainerNode.cpp#321

Ignore me - they have another ASSERT with 'needsAttach'.