Bug 6778

Summary: Crash if a node is removed from the DOM before being reparented due to residual style
Product: WebKit Reporter: Ian 'Hixie' Hickson <ian>
Component: DOMAssignee: Maciej Stachowiak <mjs>
Status: RESOLVED FIXED    
Severity: Normal CC: gavin.sharp, maksim
Priority: P2    
Version: 420+   
Hardware: PC   
OS: Linux   
URL: http://www.hixie.ch/tests/adhoc/html/parsing/error-handling/031-demo.html
Attachments:
Description Flags
a simple fix hyatt: review+

Description Ian 'Hixie' Hickson 2006-01-24 16:29:09 PST
The immortal words:
<hyatt> i don't see why we would have any trouble with that
<hyatt> the parser can deal with elements getting yanked away by script
Comment 1 Maciej Stachowiak 2006-01-24 17:27:36 PST
Created attachment 5932 [details]
a simple fix

This fix will avoid the crash from trying to remove a node from a null parent, but in the case where the block has been detached by script, it will also skip reattaching it in its new location.
Comment 2 Darin Adler 2006-01-24 18:14:52 PST
Comment on attachment 5932 [details]
a simple fix

Needs test case and change log.
Comment 3 Dave Hyatt 2006-01-24 18:51:52 PST
Comment on attachment 5932 [details]
a simple fix

r=me, add a comment above the decl of blockStillInTree that explains what it is and why it is needed.