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 up[WIP] Make subsequent about:blank loads async #14764
Conversation
highfive
commented
Dec 28, 2016
highfive
commented
Dec 28, 2016
|
r? @jdm |
|
Depends what it's testing, really :) If you can write a test that checks behaviour that the spec describes, then it belongs in wpt. @bors-servo: try |
Only send ScriptLoadedAboutBlankInIFrame on initial BC creation <!-- 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 - [X] These changes fix #13716 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/14764) <!-- Reviewable:end -->
|
@jdm an easy test is to create an iframe with some src (can be anything), then set src to |
|
Whenever possible, have the test verify expected outcomes beyond just "does this crash", since that will make the test more meaningful to both us and other browsers. |
|
|
|
|
After some digging I found that the issue is that whenever These tests were previously passing because they set I am not entirely sure the best way to fix the race condition but I think it would be ok to update the test expectations here and fix the race condition in a separate PR. Unless all Edit: The plan is to wait until we figure out how to fix the tests. |
|
Do squash. |
| @@ -75,6 +75,13 @@ enum ProcessingMode { | |||
| NotFirstTime, | |||
| } | |||
|
|
|||
| #[derive(PartialEq)] | |||
| pub enum NavigationType { | |||
| SynchronousAboutBlank, | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
|
Checklist
|
|
This should be ready for review |
|
|
|
@bors-servo try |
[WIP] Make subsequent about:blank loads async <!-- 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 - [X] These changes fix #14856 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/14764) <!-- Reviewable:end -->
|
|
|
@bors-servo try |
[WIP] Make subsequent about:blank loads async <!-- 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 - [X] These changes fix #14856 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/14764) <!-- Reviewable:end -->
|
|
|
Superseded by #16506 |
cbrewster commentedDec 28, 2016
•
edited
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is