Commit ba521ffc authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't check if script element was already parsed in doc_insert_script.

parent 022d02cc
...@@ -341,7 +341,8 @@ static nsresult run_insert_script(HTMLDocumentNode *doc, nsISupports *script_ifa ...@@ -341,7 +341,8 @@ static nsresult run_insert_script(HTMLDocumentNode *doc, nsISupports *script_ifa
while(!list_empty(&window->script_queue)) { while(!list_empty(&window->script_queue)) {
iter = LIST_ENTRY(list_head(&window->script_queue), script_queue_entry_t, entry); iter = LIST_ENTRY(list_head(&window->script_queue), script_queue_entry_t, entry);
list_remove(&iter->entry); list_remove(&iter->entry);
doc_insert_script(window, iter->script); if(!iter->script->parsed)
doc_insert_script(window, iter->script);
IHTMLScriptElement_Release(&iter->script->IHTMLScriptElement_iface); IHTMLScriptElement_Release(&iter->script->IHTMLScriptElement_iface);
heap_free(iter); heap_free(iter);
} }
......
...@@ -760,7 +760,6 @@ static void parse_inline_script(ScriptHost *script_host, HTMLScriptElement *scri ...@@ -760,7 +760,6 @@ static void parse_inline_script(ScriptHost *script_host, HTMLScriptElement *scri
if(NS_FAILED(nsres)) { if(NS_FAILED(nsres)) {
ERR("GetText failed: %08x\n", nsres); ERR("GetText failed: %08x\n", nsres);
}else if(*text) { }else if(*text) {
script_elem->parsed = TRUE;
parse_text(script_host, text); parse_text(script_host, text);
} }
...@@ -927,9 +926,6 @@ void doc_insert_script(HTMLInnerWindow *window, HTMLScriptElement *script_elem) ...@@ -927,9 +926,6 @@ void doc_insert_script(HTMLInnerWindow *window, HTMLScriptElement *script_elem)
{ {
ScriptHost *script_host; ScriptHost *script_host;
if(script_elem->parsed)
return;
script_host = get_elem_script_host(window, script_elem); script_host = get_elem_script_host(window, script_elem);
if(!script_host) if(!script_host)
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment