-
rniwa@webkit.org authored
Reviewed by Adam Barth. XMLDocumentParser::notifyFinished calls ScriptController's executeScript without updating isEvaluated flag https://bugs.webkit.org/show_bug.cgi?id=49701 Fixed the bug by calling ScriptElement's executeScript, which sets isEvaluated flag to true. Test: fast/dom/script-clone-rerun-src.xhtml * dom/XMLDocumentParser.cpp: (WebCore::XMLDocumentParser::notifyFinished): 2010-11-23 Ryosuke Niwa <rniwa@webkit.org> Reviewed by Adam Barth. XMLDocumentParser::notifyFinished calls ScriptController's executeScript without updating isEvaluated flag https://bugs.webkit.org/show_bug.cgi?id=49701 Added a test to ensure WebKit doesn't run the script twice when a script element with an external script file is cloned in a XML document. * fast/dom/resources/script-clone-rerun-src.js: Added. * fast/dom/script-clone-rerun-src.xhtml: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
db5604ca