stopping tokenizer if parser is aborted

This commit is contained in:
Gregory Terzian 2018-07-22 19:25:27 +08:00
parent e49c8e7f26
commit 31da37fa6c
3 changed files with 6 additions and 7 deletions

View file

@ -482,6 +482,9 @@ impl ServoParser {
self.suspended.set(true); self.suspended.set(true);
return; return;
} }
if self.aborted.get() {
return;
}
} }
} }

View file

@ -1,3 +1,4 @@
[010.html] [010.html]
type: testharness type: testharness
expected: TIMEOUT [Link with onclick form submit to javascript url with delayed document.write and href navigation ]
expected: FAIL

View file

@ -1,8 +1,3 @@
[aborted-parser.window.html] [aborted-parser.window.html]
expected: TIMEOUT
[document.open() after parser is aborted] [document.open() after parser is aborted]
expected: TIMEOUT expected: FAIL
[async document.open() after parser is aborted]
expected: TIMEOUT