Repository navigation
Parse HTML input speculatively using the async tokenizer - #19203
nikhilshagri wants to merge 1 commit into
Conversation
|
@bors-servo try |
Parse HTML input speculatively using the async tokenizer 👓 <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ Do not merge: This PR needs some changes in h5e, and I'm testing this using my h5e fork with the changes to see if it all works well. h5e side changes: https://github.com/cynicaldevil/html5ever/tree/clone-tokenizer-state. These changes mostly consist of creating new types which correspond to the Tokenizer and TreeBuilder, which are `Send`able. The biggest change on the Servo side is the creation of the `ParseOperationExecutor` type, which actually receives parse operations and executes them. Before this, the code for doing this resided directly inside the `Tokenizer`, but I had to create a separate type for this because the `Sink` needs to use this while parsing speculatively. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/19203) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-wpt |
|
☔ The latest upstream changes (presumably #19229) made this pull request unmergeable. Please resolve the merge conflicts. |
70dab9a to
b02518b
Compare
|
@bors-servo try |
Parse HTML input speculatively using the async tokenizer 👓 <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ Do not merge: This PR needs some changes in h5e, and I'm testing this using my h5e fork with the changes to see if it all works well. h5e side changes: https://github.com/cynicaldevil/html5ever/tree/clone-tokenizer-state. These changes mostly consist of creating new types which correspond to the Tokenizer and TreeBuilder, which are `Send`able. The biggest change on the Servo side is the creation of the `ParseOperationExecutor` type, which actually receives parse operations and executes them. Before this, the code for doing this resided directly inside the `Tokenizer`, but I had to create a separate type for this because the `Sink` needs to use this while parsing speculatively. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/19203) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt4 |
|
☔ The latest upstream changes (presumably #19236) made this pull request unmergeable. Please resolve the merge conflicts. |
b02518b to
01364b4
Compare
|
@bors-servo try |
Parse HTML input speculatively using the async tokenizer <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ Do not merge: This PR needs some changes in h5e, and I'm testing this using my h5e fork with the changes to see if it all works well. h5e side changes: https://github.com/cynicaldevil/html5ever/tree/clone-tokenizer-state. These changes mostly consist of creating new types which correspond to the Tokenizer and TreeBuilder, which are `Send`able. The biggest change on the Servo side is the creation of the `ParseOperationExecutor` type, which actually receives parse operations and executes them. Before this, the code for doing this resided directly inside the `Tokenizer`, but I had to create a separate type for this because the `Sink` needs to use this while parsing speculatively. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/19203) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt4 |
|
☔ The latest upstream changes (presumably #19314) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
afa4b39 to
3ad6aa8
Compare
|
@bors-servo try
|
Parse HTML input speculatively using the async tokenizer <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ Do not merge: This PR needs some changes in h5e, and I'm testing this using my h5e fork with the changes to see if it all works well. h5e side changes: https://github.com/cynicaldevil/html5ever/tree/clone-tokenizer-state. These changes mostly consist of creating new types which correspond to the Tokenizer and TreeBuilder, which are `Send`able. The biggest change on the Servo side is the creation of the `ParseOperationExecutor` type, which actually receives parse operations and executes them. Before this, the code for doing this resided directly inside the `Tokenizer`, but I had to create a separate type for this because the `Sink` needs to use this while parsing speculatively. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/19203) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-wpt |
3ad6aa8 to
bc803ae
Compare
|
@bors-servo try |
Parse HTML input speculatively using the async tokenizer <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ Do not merge: This PR needs some changes in h5e, and I'm testing this using my h5e fork with the changes to see if it all works well. h5e side changes: https://github.com/cynicaldevil/html5ever/tree/clone-tokenizer-state. These changes mostly consist of creating new types which correspond to the Tokenizer and TreeBuilder, which are `Send`able. The biggest change on the Servo side is the creation of the `ParseOperationExecutor` type, which actually receives parse operations and executes them. Before this, the code for doing this resided directly inside the `Tokenizer`, but I had to create a separate type for this because the `Sink` needs to use this while parsing speculatively. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/19203) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-css |
|
@bors-servo retry |
Parse HTML input speculatively using the async tokenizer <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ Do not merge: This PR needs some changes in h5e, and I'm testing this using my h5e fork with the changes to see if it all works well. h5e side changes: https://github.com/cynicaldevil/html5ever/tree/clone-tokenizer-state. These changes mostly consist of creating new types which correspond to the Tokenizer and TreeBuilder, which are `Send`able. The biggest change on the Servo side is the creation of the `ParseOperationExecutor` type, which actually receives parse operations and executes them. Before this, the code for doing this resided directly inside the `Tokenizer`, but I had to create a separate type for this because the `Sink` needs to use this while parsing speculatively. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/19203) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
bc803ae to
a125011
Compare
| }; | ||
| match document { | ||
| Some(doc) => executor.insert_node(0, Dom::from_ref(doc.upcast())), | ||
| None => {} |
There was a problem hiding this comment.
If we do nothing for the None case, how about using if let here?
|
☔ The latest upstream changes (presumably #20371) made this pull request unmergeable. Please resolve the merge conflicts. |
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsDo not merge: This PR needs some changes in h5e, and I'm testing this using my h5e fork with the changes to see if it all works well.
h5e side changes: https://github.com/cynicaldevil/html5ever/tree/clone-tokenizer-state. These changes mostly consist of creating new types which correspond to the Tokenizer and TreeBuilder, which are
Sendable.The biggest change on the Servo side is the creation of the
ParseOperationExecutortype, which actually receives parse operations and executes them. Before this, the code for doing this resided directly inside theTokenizer, but I had to create a separate type for this because theSinkneeds to use this while parsing speculatively.This change is