mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Ensure parsers initiated from DOMParser always complete. (#33056)
* Ensure parsers initiated from DOMParser always complete. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Add test for parseFromString with async parser. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * Add expected failure. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
3cc91e655f
commit
69185c4af1
5 changed files with 36 additions and 34 deletions
|
@ -1,4 +1,7 @@
|
|||
[responsexml-non-well-formed.htm]
|
||||
[XMLHttpRequest: responseXML non well-formed tests]
|
||||
expected: FAIL
|
||||
|
||||
[XMLHttpRequest: responseXML non well-formed tests 1]
|
||||
expected: FAIL
|
||||
|
||||
|
|
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
7
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -12632,6 +12632,13 @@
|
|||
}
|
||||
]
|
||||
],
|
||||
"DOMParser-parseFromString.html": [
|
||||
"38715db5d923e4f153e2c4a2679f644fe1e6d14d",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
]
|
||||
],
|
||||
"DOMParser.html": [
|
||||
"f386a3e0191af2c70dcb05790ce7db15dd5ccbf1",
|
||||
[
|
||||
|
|
2
tests/wpt/mozilla/meta/mozilla/DOMParser-parseFromString.html.ini
vendored
Normal file
2
tests/wpt/mozilla/meta/mozilla/DOMParser-parseFromString.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[DOMParser-parseFromString.html]
|
||||
prefs: ["dom.servoparser.async_html_tokenizer.enabled:true"]
|
15
tests/wpt/mozilla/tests/mozilla/DOMParser-parseFromString.html
vendored
Normal file
15
tests/wpt/mozilla/tests/mozilla/DOMParser-parseFromString.html
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<head>
|
||||
<title>Verify that parseFromString does not panic</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<iframe src="missing"></iframe>
|
||||
<script>
|
||||
test(() => {
|
||||
{
|
||||
const parser = new DOMParser();
|
||||
const doc = parser.parseFromString("", "text/html");
|
||||
assert_equals(doc.URL, document.URL);
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue