| Index: Source/core/dom/ContainerNode.cpp
|
| diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
|
| index 366598a9ce6a8220762d91d88a5d7cfb667cfcad..a42f5775c2d55400b137343c0ea468ae6f8227d0 100644
|
| --- a/Source/core/dom/ContainerNode.cpp
|
| +++ b/Source/core/dom/ContainerNode.cpp
|
| @@ -250,6 +250,7 @@ void ContainerNode::insertBefore(PassRefPtr<Node> newChild, Node* refChild, Exce
|
| void ContainerNode::insertBeforeCommon(Node& nextChild, Node& newChild)
|
| {
|
| NoEventDispatchAssertion assertNoEventDispatch;
|
| + ScriptForbiddenScope forbidScript;
|
|
|
| ASSERT(!newChild.parentNode()); // Use insertBefore if you need to handle reparenting (and want DOM mutation events).
|
| ASSERT(!newChild.nextSibling());
|
|
|