Switch to synchronous script loading

This removes the old code for asyncronously loading scripts during HTML
parsing and then executing them afterward.

Fixes #3356.
This commit is contained in:
Matt Brubeck 2014-10-17 09:48:31 -07:00
parent 65a0d1fe9a
commit fe123ad07c
39 changed files with 284 additions and 1006 deletions

View file

@ -1,3 +1,3 @@
[Document-createElement-namespace.html]
type: testharness
expected: TIMEOUT
expected: CRASH

View file

@ -1,4 +0,0 @@
[document-readyState.html]
type: testharness
[readystatechange event is fired each time document.readyState changes]
expected: FAIL

View file

@ -1,20 +1,5 @@
[script-languages-02.html]
type: testharness
[Script should run with type=""]
expected: FAIL
[Script should run with type="application/ecmascript"]
expected: FAIL
[Script should run with type="application/javascript"]
expected: FAIL
[Script should run with type="application/x-ecmascript"]
expected: FAIL
[Script should run with type="application/x-javascript"]
expected: FAIL
[Script should run with type="APPLICATION/ECMASCRIPT"]
expected: FAIL
@ -27,162 +12,6 @@
[Script should run with type="APPLICATION/X-JAVASCRIPT"]
expected: FAIL
[Script should run with type="application/ecmascript "]
expected: FAIL
[Script should run with type="application/javascript "]
expected: FAIL
[Script should run with type="application/x-ecmascript "]
expected: FAIL
[Script should run with type="application/x-javascript "]
expected: FAIL
[Script should run with type=" application/ecmascript"]
expected: FAIL
[Script should run with type=" application/javascript"]
expected: FAIL
[Script should run with type=" application/x-ecmascript"]
expected: FAIL
[Script should run with type=" application/x-javascript"]
expected: FAIL
[Script should run with type="application/ecmascript\\t"]
expected: FAIL
[Script should run with type="application/javascript\\t"]
expected: FAIL
[Script should run with type="application/x-ecmascript\\t"]
expected: FAIL
[Script should run with type="application/x-javascript\\t"]
expected: FAIL
[Script should run with type="\\tapplication/ecmascript"]
expected: FAIL
[Script should run with type="\\tapplication/javascript"]
expected: FAIL
[Script should run with type="\\tapplication/x-ecmascript"]
expected: FAIL
[Script should run with type="\\tapplication/x-javascript"]
expected: FAIL
[Script should run with type="application/ecmascript\\n"]
expected: FAIL
[Script should run with type="application/javascript\\n"]
expected: FAIL
[Script should run with type="application/x-ecmascript\\n"]
expected: FAIL
[Script should run with type="application/x-javascript\\n"]
expected: FAIL
[Script should run with type="\\napplication/ecmascript"]
expected: FAIL
[Script should run with type="\\napplication/javascript"]
expected: FAIL
[Script should run with type="\\napplication/x-ecmascript"]
expected: FAIL
[Script should run with type="\\napplication/x-javascript"]
expected: FAIL
[Script should run with type="application/ecmascript\\r"]
expected: FAIL
[Script should run with type="application/javascript\\r"]
expected: FAIL
[Script should run with type="application/x-ecmascript\\r"]
expected: FAIL
[Script should run with type="application/x-javascript\\r"]
expected: FAIL
[Script should run with type="\\rapplication/ecmascript"]
expected: FAIL
[Script should run with type="\\rapplication/javascript"]
expected: FAIL
[Script should run with type="\\rapplication/x-ecmascript"]
expected: FAIL
[Script should run with type="\\rapplication/x-javascript"]
expected: FAIL
[Script should run with type="application/ecmascript\\f"]
expected: FAIL
[Script should run with type="application/javascript\\f"]
expected: FAIL
[Script should run with type="application/x-ecmascript\\f"]
expected: FAIL
[Script should run with type="application/x-javascript\\f"]
expected: FAIL
[Script should run with type="\\fapplication/ecmascript"]
expected: FAIL
[Script should run with type="\\fapplication/javascript"]
expected: FAIL
[Script should run with type="\\fapplication/x-ecmascript"]
expected: FAIL
[Script should run with type="\\fapplication/x-javascript"]
expected: FAIL
[Script should run with type="text/ecmascript"]
expected: FAIL
[Script should run with type="text/javascript"]
expected: FAIL
[Script should run with type="text/javascript1.0"]
expected: FAIL
[Script should run with type="text/javascript1.1"]
expected: FAIL
[Script should run with type="text/javascript1.2"]
expected: FAIL
[Script should run with type="text/javascript1.3"]
expected: FAIL
[Script should run with type="text/javascript1.4"]
expected: FAIL
[Script should run with type="text/javascript1.5"]
expected: FAIL
[Script should run with type="text/jscript"]
expected: FAIL
[Script should run with type="text/livescript"]
expected: FAIL
[Script should run with type="text/x-ecmascript"]
expected: FAIL
[Script should run with type="text/x-javascript"]
expected: FAIL
[Script should run with type="TEXT/ECMASCRIPT"]
expected: FAIL
@ -219,405 +48,6 @@
[Script should run with type="TEXT/X-JAVASCRIPT"]
expected: FAIL
[Script should run with type="text/ecmascript "]
expected: FAIL
[Script should run with type="text/javascript "]
expected: FAIL
[Script should run with type="text/javascript1.0 "]
expected: FAIL
[Script should run with type="text/javascript1.1 "]
expected: FAIL
[Script should run with type="text/javascript1.2 "]
expected: FAIL
[Script should run with type="text/javascript1.3 "]
expected: FAIL
[Script should run with type="text/javascript1.4 "]
expected: FAIL
[Script should run with type="text/javascript1.5 "]
expected: FAIL
[Script should run with type="text/jscript "]
expected: FAIL
[Script should run with type="text/livescript "]
expected: FAIL
[Script should run with type="text/x-ecmascript "]
expected: FAIL
[Script should run with type="text/x-javascript "]
expected: FAIL
[Script should run with type=" text/ecmascript"]
expected: FAIL
[Script should run with type=" text/javascript"]
expected: FAIL
[Script should run with type=" text/javascript1.0"]
expected: FAIL
[Script should run with type=" text/javascript1.1"]
expected: FAIL
[Script should run with type=" text/javascript1.2"]
expected: FAIL
[Script should run with type=" text/javascript1.3"]
expected: FAIL
[Script should run with type=" text/javascript1.4"]
expected: FAIL
[Script should run with type=" text/javascript1.5"]
expected: FAIL
[Script should run with type=" text/jscript"]
expected: FAIL
[Script should run with type=" text/livescript"]
expected: FAIL
[Script should run with type=" text/x-ecmascript"]
expected: FAIL
[Script should run with type=" text/x-javascript"]
expected: FAIL
[Script should run with type="text/ecmascript\\t"]
expected: FAIL
[Script should run with type="text/javascript\\t"]
expected: FAIL
[Script should run with type="text/javascript1.0\\t"]
expected: FAIL
[Script should run with type="text/javascript1.1\\t"]
expected: FAIL
[Script should run with type="text/javascript1.2\\t"]
expected: FAIL
[Script should run with type="text/javascript1.3\\t"]
expected: FAIL
[Script should run with type="text/javascript1.4\\t"]
expected: FAIL
[Script should run with type="text/javascript1.5\\t"]
expected: FAIL
[Script should run with type="text/jscript\\t"]
expected: FAIL
[Script should run with type="text/livescript\\t"]
expected: FAIL
[Script should run with type="text/x-ecmascript\\t"]
expected: FAIL
[Script should run with type="text/x-javascript\\t"]
expected: FAIL
[Script should run with type="\\ttext/ecmascript"]
expected: FAIL
[Script should run with type="\\ttext/javascript"]
expected: FAIL
[Script should run with type="\\ttext/javascript1.0"]
expected: FAIL
[Script should run with type="\\ttext/javascript1.1"]
expected: FAIL
[Script should run with type="\\ttext/javascript1.2"]
expected: FAIL
[Script should run with type="\\ttext/javascript1.3"]
expected: FAIL
[Script should run with type="\\ttext/javascript1.4"]
expected: FAIL
[Script should run with type="\\ttext/javascript1.5"]
expected: FAIL
[Script should run with type="\\ttext/jscript"]
expected: FAIL
[Script should run with type="\\ttext/livescript"]
expected: FAIL
[Script should run with type="\\ttext/x-ecmascript"]
expected: FAIL
[Script should run with type="\\ttext/x-javascript"]
expected: FAIL
[Script should run with type="text/ecmascript\\n"]
expected: FAIL
[Script should run with type="text/javascript\\n"]
expected: FAIL
[Script should run with type="text/javascript1.0\\n"]
expected: FAIL
[Script should run with type="text/javascript1.1\\n"]
expected: FAIL
[Script should run with type="text/javascript1.2\\n"]
expected: FAIL
[Script should run with type="text/javascript1.3\\n"]
expected: FAIL
[Script should run with type="text/javascript1.4\\n"]
expected: FAIL
[Script should run with type="text/javascript1.5\\n"]
expected: FAIL
[Script should run with type="text/jscript\\n"]
expected: FAIL
[Script should run with type="text/livescript\\n"]
expected: FAIL
[Script should run with type="text/x-ecmascript\\n"]
expected: FAIL
[Script should run with type="text/x-javascript\\n"]
expected: FAIL
[Script should run with type="\\ntext/ecmascript"]
expected: FAIL
[Script should run with type="\\ntext/javascript"]
expected: FAIL
[Script should run with type="\\ntext/javascript1.0"]
expected: FAIL
[Script should run with type="\\ntext/javascript1.1"]
expected: FAIL
[Script should run with type="\\ntext/javascript1.2"]
expected: FAIL
[Script should run with type="\\ntext/javascript1.3"]
expected: FAIL
[Script should run with type="\\ntext/javascript1.4"]
expected: FAIL
[Script should run with type="\\ntext/javascript1.5"]
expected: FAIL
[Script should run with type="\\ntext/jscript"]
expected: FAIL
[Script should run with type="\\ntext/livescript"]
expected: FAIL
[Script should run with type="\\ntext/x-ecmascript"]
expected: FAIL
[Script should run with type="\\ntext/x-javascript"]
expected: FAIL
[Script should run with type="text/ecmascript\\r"]
expected: FAIL
[Script should run with type="text/javascript\\r"]
expected: FAIL
[Script should run with type="text/javascript1.0\\r"]
expected: FAIL
[Script should run with type="text/javascript1.1\\r"]
expected: FAIL
[Script should run with type="text/javascript1.2\\r"]
expected: FAIL
[Script should run with type="text/javascript1.3\\r"]
expected: FAIL
[Script should run with type="text/javascript1.4\\r"]
expected: FAIL
[Script should run with type="text/javascript1.5\\r"]
expected: FAIL
[Script should run with type="text/jscript\\r"]
expected: FAIL
[Script should run with type="text/livescript\\r"]
expected: FAIL
[Script should run with type="text/x-ecmascript\\r"]
expected: FAIL
[Script should run with type="text/x-javascript\\r"]
expected: FAIL
[Script should run with type="\\rtext/ecmascript"]
expected: FAIL
[Script should run with type="\\rtext/javascript"]
expected: FAIL
[Script should run with type="\\rtext/javascript1.0"]
expected: FAIL
[Script should run with type="\\rtext/javascript1.1"]
expected: FAIL
[Script should run with type="\\rtext/javascript1.2"]
expected: FAIL
[Script should run with type="\\rtext/javascript1.3"]
expected: FAIL
[Script should run with type="\\rtext/javascript1.4"]
expected: FAIL
[Script should run with type="\\rtext/javascript1.5"]
expected: FAIL
[Script should run with type="\\rtext/jscript"]
expected: FAIL
[Script should run with type="\\rtext/livescript"]
expected: FAIL
[Script should run with type="\\rtext/x-ecmascript"]
expected: FAIL
[Script should run with type="\\rtext/x-javascript"]
expected: FAIL
[Script should run with type="text/ecmascript\\f"]
expected: FAIL
[Script should run with type="text/javascript\\f"]
expected: FAIL
[Script should run with type="text/javascript1.0\\f"]
expected: FAIL
[Script should run with type="text/javascript1.1\\f"]
expected: FAIL
[Script should run with type="text/javascript1.2\\f"]
expected: FAIL
[Script should run with type="text/javascript1.3\\f"]
expected: FAIL
[Script should run with type="text/javascript1.4\\f"]
expected: FAIL
[Script should run with type="text/javascript1.5\\f"]
expected: FAIL
[Script should run with type="text/jscript\\f"]
expected: FAIL
[Script should run with type="text/livescript\\f"]
expected: FAIL
[Script should run with type="text/x-ecmascript\\f"]
expected: FAIL
[Script should run with type="text/x-javascript\\f"]
expected: FAIL
[Script should run with type="\\ftext/ecmascript"]
expected: FAIL
[Script should run with type="\\ftext/javascript"]
expected: FAIL
[Script should run with type="\\ftext/javascript1.0"]
expected: FAIL
[Script should run with type="\\ftext/javascript1.1"]
expected: FAIL
[Script should run with type="\\ftext/javascript1.2"]
expected: FAIL
[Script should run with type="\\ftext/javascript1.3"]
expected: FAIL
[Script should run with type="\\ftext/javascript1.4"]
expected: FAIL
[Script should run with type="\\ftext/javascript1.5"]
expected: FAIL
[Script should run with type="\\ftext/jscript"]
expected: FAIL
[Script should run with type="\\ftext/livescript"]
expected: FAIL
[Script should run with type="\\ftext/x-ecmascript"]
expected: FAIL
[Script should run with type="\\ftext/x-javascript"]
expected: FAIL
[Script should run with language=""]
expected: FAIL
[Script should run with language="ecmascript"]
expected: FAIL
[Script should run with language="javascript"]
expected: FAIL
[Script should run with language="javascript1.0"]
expected: FAIL
[Script should run with language="javascript1.1"]
expected: FAIL
[Script should run with language="javascript1.2"]
expected: FAIL
[Script should run with language="javascript1.3"]
expected: FAIL
[Script should run with language="javascript1.4"]
expected: FAIL
[Script should run with language="javascript1.5"]
expected: FAIL
[Script should run with language="jscript"]
expected: FAIL
[Script should run with language="livescript"]
expected: FAIL
[Script should run with language="x-ecmascript"]
expected: FAIL
[Script should run with language="x-javascript"]
expected: FAIL
[Script should run with language="ECMASCRIPT"]
expected: FAIL

View file

@ -1,5 +0,0 @@
[013.html]
type: testharness
[ scheduler: DOM added inline script earlier in document]
expected: FAIL

View file

@ -1,5 +0,0 @@
[016.html]
type: testharness
[ scheduler: DOM added inline script later in document]
expected: FAIL

View file

@ -1,5 +0,0 @@
[025.html]
type: testharness
[ scheduler: DOM added script, .src set on script with content]
expected: FAIL

View file

@ -1,5 +0,0 @@
[036.html]
type: testharness
[ scheduler: DOM cloning]
expected: FAIL

View file

@ -1,5 +0,0 @@
[037.html]
type: testharness
[ scheduler: DOM movement with appendChild, inline]
expected: FAIL

View file

@ -1,5 +0,0 @@
[048.html]
type: testharness
[ scheduler: adding inline script which sets its own .src ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[052.html]
type: testharness
[ scheduler: interaction of parsing and script execution - external script ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[056.html]
type: testharness
[ scheduler: appending code to initially empty SCRIPT tag in DOM ]
expected: FAIL

View file

@ -1,6 +1,5 @@
[069.html]
type: testharness
expected: TIMEOUT
[scheduler: external files added through DOM should not block further parsing while loading]
expected: TIMEOUT
expected: FAIL

View file

@ -1,5 +0,0 @@
[104.html]
type: testharness
[ scheduler: adding defer attribute at runtime]
expected: FAIL

View file

@ -1,6 +1,5 @@
[116.html]
type: testharness
expected: TIMEOUT
[scheduler: adding script to head of frameset document]
expected: TIMEOUT
expected: FAIL

View file

@ -1,5 +0,0 @@
[124.html]
type: testharness
[scheduler: altering the type attribute and changing script data inline script ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[127.html]
type: testharness
[scheduler: appending non-text children to script ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[129.html]
type: testharness
[scheduler: appending multiple script elements]
expected: FAIL

View file

@ -1,5 +0,0 @@
[133.html]
type: testharness
[scheduler: inline HTML script added by SVG script ]
expected: FAIL

View file

@ -1,5 +0,0 @@
[145.html]
type: testharness
[scheduler: SVG inline script adding text to empty script ]
expected: FAIL