Bug 599588 - Make scripts created by createContextualFragment() executable. r=jonas, a=blocking2.0-final.

This commit is contained in:
Henri Sivonen
2010-11-01 11:50:01 +01:00
parent 738dc53862
commit 8743dcf063
14 changed files with 86 additions and 16 deletions

View File

@@ -696,9 +696,9 @@ nsHtml5TreeOpExecutor::RunScript(nsIContent* aScriptElement)
}
if (mFragmentMode) {
// ending the doc update called nsIParser::Terminate or we are in the
// fragment mode
sele->PreventExecution();
if (mPreventScriptExecution) {
sele->PreventExecution();
}
return;
}