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 upImprove spec compliance of discarding BCs #24143
Conversation
highfive
commented
Sep 5, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Sep 5, 2019
aa84725
to
5810f18
|
@jdm @asajeffrey r? The problem is still running tasks after either a frame has been removed from the tree, or an auxiliary closed, in both cases the BC is discarded "sync"(as per the spec), however tasks are only ignored later when the script-thread handles the "exit pipeline" message, which means that in the meantime the global can still be handling tasks. This became apparent in #23637 (comment) |
|
For good measure I'm also preventing handling any user input via compositor events, since those result in firing events and potentially running JS code, if the BC is being discarded. (I mentioned something about this not applying to iframe previously, that was wrong, and it is now also applied to them). |
|
@bors-servo try=wpt |
Improve spec compliance of discarding BCs <!-- Please describe your changes on the following line: --> Came-up at #23637 (comment) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./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 ___ <!-- 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/24143) <!-- Reviewable:end -->
|
|
c8b7cf0
to
52b5485
52b5485
to
557d5aa
|
@bors-servo try=wpt |
Improve spec compliance of discarding BCs <!-- Please describe your changes on the following line: --> Came-up at #23637 (comment) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./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 ___ <!-- 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/24143) <!-- Reviewable:end -->
557d5aa
to
e434652
|
well, look at that...
And also
|
878e5ba
to
5b0980c
|
@bors-servo try=wpt |
Improve spec compliance of discarding BCs <!-- Please describe your changes on the following line: --> Came-up at #23637 (comment) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./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 ___ <!-- 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/24143) <!-- Reviewable:end -->
|
|
5b0980c
to
89ccec2
|
@bors-servo try=wpt (compilation error, fixed, this time with a local check first) |
Improve spec compliance of discarding BCs <!-- Please describe your changes on the following line: --> Came-up at #23637 (comment) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./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 ___ <!-- 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/24143) <!-- Reviewable:end -->
|
|
I think this one might be intermittent |
|
@asajeffrey ready for another round, see the new commits, to be squashed. |
Yes, it's #23290. |
75104ff
to
37ac288
|
|
do not handle compositor input events when BC is being discarded prevent firing of timers for discarded BCs return null for opener is BC has been discarded bundle discard BC steps into window method return null in window.opener, if BC has already been discarded move the window closed check pre-event to script-thread
37ac288
to
45ec250
|
@asajeffrey This one is ready for another review. |
|
Yay, this looks like it's quite the improvement! @bors-servo r+ |
|
|
…ajeffrey Improve spec compliance of discarding BCs <!-- Please describe your changes on the following line: --> Came-up at #23637 (comment) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./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 ___ <!-- 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/24143) <!-- Reviewable:end -->
|
|
gterzian commentedSep 5, 2019
•
edited by SimonSapin
Came-up at #23637 (comment)
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is