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 upImplement browsing context group and set #23507
Conversation
highfive
commented
Jun 4, 2019
|
Heads up! This PR modifies the following files:
|
29b464e
to
65ae91e
|
@bors-servo try=wpt |
…<try> Implement browsing context group and set <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23307 (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/23507) <!-- Reviewable:end -->
a6c7687
to
b287c4c
|
@bors-servo try=wpt (false start) |
…<try> Implement browsing context group and set <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23307 (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/23507) <!-- Reviewable:end -->
|
|
|
@bors-servo try=wpt |
…<try> Implement browsing context group and set <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23307 (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/23507) <!-- Reviewable:end -->
|
Mostly looks good! I'm glad to see the constellation getting freshened with new bits of the spec. The main change is to avoid panic in the constellation. |
| host: &Host, | ||
| top_level_browsing_context_id: &TopLevelBrowsingContextId, | ||
| opener: &Option<BrowsingContextId>, | ||
| ) -> Option<Weak<EventLoop>> { |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
gterzian
Jun 4, 2019
•
Author
Member
I don't know if that would be useful, since I added a few warn statements in the None cases...
This comment has been minimized.
This comment has been minimized.
asajeffrey
Jun 4, 2019
Member
Well you could make the return type Result<Weak<EventLoop>,&'static str> and then replace the match foo { ... } by foo.ok_or("a warning message")? Then put the logic to warn! in the caller of get_event_loop. Not a huge deal, just might make the code a bit shorter and easier to read.
This comment has been minimized.
This comment has been minimized.
jdm
Jun 4, 2019
Member
? works with Option as well, unless I'm misunderstanding the suggestion here.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@paulrouget does this impact the work on multiple windows? |
|
|
7e65b30
to
69145af
|
@bors-servo try=wpt (should still be ok) |
…<try> Implement browsing context group and set <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23307 (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/23507) <!-- Reviewable:end -->
|
By the way this also addresses @nox concern at the time of implementing |
|
|
15a623d
to
a981010
|
Ok, squashed and ready for another review... |
|
The failure on CI appears unrelated(download error for a crate) |
|
Yay, no panic! The only remaining question is whether to return a |
|
@bors-servo delegate=gterzian |
|
|
| let _ = self | ||
| .event_loops | ||
| .insert(host, Rc::downgrade(&pipeline.pipeline.event_loop)); | ||
| let _ = self.set_event_loop( |
This comment has been minimized.
This comment has been minimized.
No. |
|
@asajeffrey Could you take a look at the last commit please? |
|
LGTM! |
9a178e9
to
8c28852
|
@bors-servo r=asajeffrey |
|
|
…asajeffrey Implement browsing context group and set <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #23307 (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/23507) <!-- Reviewable:end -->
|
|
gterzian commentedJun 4, 2019
•
edited by SimonSapin
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is