Bug 25666 - Assertion failure in Node::setDocument() (willMoveToNewOwnerDocumentWasCalled) when adopting a <form> element
Summary: Assertion failure in Node::setDocument() (willMoveToNewOwnerDocumentWasCalled...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-09 21:47 PDT by mitz
Modified: 2009-05-09 22:05 PDT (History)
1 user (show)

See Also:


Attachments
Test case (will ASSERT) (180 bytes, text/html)
2009-05-09 21:47 PDT, mitz
no flags Details
Make HTMLFormElement call the base class implementation of {will,did}MoveToNewOwnerDocument (3.60 KB, patch)
2009-05-09 22:00 PDT, mitz
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2009-05-09 21:47:34 PDT
The recently-added assertion in Node::setDocument(), willMoveToNewOwnerDocumentWasCalled, fails when adopting a <form> element.

To reproduce, open the attached test case.
Comment 1 mitz 2009-05-09 21:47:54 PDT
Created attachment 30159 [details]
Test case (will ASSERT)
Comment 2 mitz 2009-05-09 22:00:47 PDT
Created attachment 30160 [details]
Make HTMLFormElement call the base class implementation of {will,did}MoveToNewOwnerDocument
Comment 3 Geoffrey Garen 2009-05-09 22:03:04 PDT
Comment on attachment 30160 [details]
Make HTMLFormElement call the base class implementation of {will,did}MoveToNewOwnerDocument

r=me
Comment 4 mitz 2009-05-09 22:05:26 PDT
Fixed in <http://trac.webkit.org/projects/webkit/changeset/43451>.