Index: Source/WebCore/dom/Node.cpp |
=================================================================== |
--- Source/WebCore/dom/Node.cpp (revision 128789) |
+++ Source/WebCore/dom/Node.cpp (working copy) |
@@ -40,6 +40,7 @@ |
#include "CSSStyleSheet.h" |
#include "ChildNodeList.h" |
#include "ClassNodeList.h" |
+#include "ContainerNodeAlgorithms.h" |
#include "ContextMenuController.h" |
#include "DOMImplementation.h" |
#include "DOMSettableTokenList.h" |
@@ -1199,6 +1200,11 @@ |
ec = HIERARCHY_REQUEST_ERR; |
return; |
} |
+ |
+ if (newParent->inDocument() && ChildFrameDisconnector::nodeHasDisconnector(newParent)) { |
+ ec = NO_MODIFICATION_ALLOWED_ERR; |
+ return; |
+ } |
} |
void Node::checkReplaceChild(Node* newChild, Node* oldChild, ExceptionCode& ec) |