зеркало из https://github.com/mozilla/pjs.git
Cloned script nodes should not reexecute the script. Bug 127016, r=sicking,
sr=jst, a=asa
This commit is contained in:
Родитель
44df7d9960
Коммит
6de8f0577c
|
@ -517,6 +517,12 @@ nsHTMLScriptElement::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
|||
|
||||
CopyInnerTo(it, aDeep);
|
||||
|
||||
// The clone should be marked evaluated if we are. It should also be marked
|
||||
// evaluated if we're evaluating, to handle the case when this script node's
|
||||
// script clones the node.
|
||||
it->mIsEvaluated = mIsEvaluated || mEvaluating;
|
||||
it->mLineNumber = mLineNumber;
|
||||
|
||||
*aReturn = NS_STATIC_CAST(nsIDOMNode *, it);
|
||||
|
||||
NS_ADDREF(*aReturn);
|
||||
|
|
Загрузка…
Ссылка в новой задаче