Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake ServoParser::pending_input hold onto a BufferQueue #14250
Conversation
|
Reviewed 6 of 6 files at r1. components/script/dom/servoparser/xml.rs, line 54 at r1 (raw file):
Should this be a loop? r=me otherwise Comments from Reviewable |
|
|
|
@bors-servo try |
(Do not merge) Make ServoParser::pending_input hold onto a BufferQueue <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14250) <!-- Reviewable:end -->
| }; | ||
| } | ||
| NextParserState::Continue | ||
| self.script.set(Some(node.downcast().unwrap())); |
This comment has been minimized.
This comment has been minimized.
nox
Nov 17, 2016
Author
Member
This is the only way I found to make xml5ever just stop tokenizing on </script> to handle the script itself out of it.
| self.tokenizer.borrow_mut().run(); | ||
| if let Err(script) = self.tokenizer.borrow_mut().feed(&mut *self.pending_input.borrow_mut()) { | ||
| if script.prepare() { | ||
| continue; |
This comment has been minimized.
This comment has been minimized.
nox
Nov 17, 2016
Author
Member
In the case where tokenization needs to continue after a </script>, we must preemptively continue because xml5ever might be holding onto unprocessed input in the tokenizer itself, even if input is empty.
|
|
|
|
So apparently xml5ever sometimes calls |
|
@bors-servo try |
(Do not merge) Make ServoParser::pending_input hold onto a BufferQueue <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14250) <!-- Reviewable:end -->
|
|
highfive
commented
Nov 18, 2016
|
|
r? @SimonSapin |
|
@bors-servo r+ Reviewed 1 of 7 files at r2, 6 of 6 files at r3. Comments from Reviewable |
|
|
|
@bors-servo retry #10473 |
Make ServoParser::pending_input hold onto a BufferQueue <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14250) <!-- Reviewable:end -->
|
|
nox commentedNov 16, 2016
•
edited by larsbergstrom
This change is