Excise SubpageId and use only PipelineIds#11698
Conversation
|
Heads up! This PR modifies the following files:
|
|
BTW, this isn't a rebase of #7792; I learned a lot about how Servo works by doing this myself :) |
9bd1139 to
775786d
Compare
|
New code was committed to pull request. |
|
☔ The latest upstream changes (presumably #11214) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Would it be possible to get rid of the |
775786d to
3492085
Compare
|
Rebased (not sure why highfive didn't leave a comment). @ConnorGBrewster in general, the second PipelineId is necessary to identify which pipeline the message is about, and the first PipelineId is for the parent, which is needed to find the relevant iframe via It's possible that in some cases this may be able to be reduced to just the child PipelineId, but it's not obvious to me that that holds and I'd like to leave that for a follow-up. |
|
@aneeshusa makes sense, I was thinking you could just do the child and do the lookup in the constellation. But yeah that seems like it would be out of scope for this PR. |
|
☔ The latest upstream changes (presumably #11720) made this pull request unmergeable. Please resolve the merge conflicts. |
3492085 to
23ce28c
Compare
components/script/script_thread.rs
Outdated
| None => return warn!("Message sent to closed pipeline {}.", pipeline_id), | ||
| None => return warn!("Message sent to closed pipeline {}.", parent_pipeline_id), | ||
| }; | ||
| let document = document.r(); |
There was a problem hiding this comment.
Note: @asajeffrey removed this line in #11695, but this seemed inadvertent to me so I brought it back. Not sure about this change.
23ce28c to
19cf404
Compare
|
@bors-servo try |
Excise SubpageId and use only PipelineIds <!-- Please describe your changes on the following line: --> SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children. --- <!-- 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 #11694 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11698) <!-- Reviewable:end -->
|
💔 Test failed - mac-dev-unit |
|
This is looking awesome! I have a couple things for you to look at, but other than that, it looks good. I especially like the move to more consistent naming. I would like to see if there is a way to avoid passing parent and child pipelines everywhere and I would like to have After the fixes, it would probably be good to have someone else do a look over the changes. Reviewed 7 of 17 files at r1, 1 of 13 files at r7, 4 of 16 files at r10, 11 of 12 files at r12, 1 of 1 files at r13. components/constellation/constellation.rs, line 1363 [r13] (raw file):
This match can go away. components/script/script_thread.rs, line 1197 [r13] (raw file):
Should this be the child pipeline id instead of the parent? components/script/script_thread.rs, line 1427 [r13] (raw file):
See above about child pipeline instead of parent. components/script/dom/htmliframeelement.rs, line 226 [r13] (raw file):
That's weird that we had both Comments from Reviewable |
|
☔ The latest upstream changes (presumably #12178) made this pull request unmergeable. Please resolve the merge conflicts. |
Excise SubpageId and use only PipelineIds <!-- Please describe your changes on the following line: --> SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children. --- <!-- 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 #11694 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11698) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt |
|
Failures look like intermittents and linux-rel passed wpt ok. r? @asajeffrey |
|
@bors-sevo: r+ |
|
@bors-servo: r+ |
|
📌 Commit 56fbfd4 has been approved by |
|
@bors-servo retry |
|
⚡ Previous build results for arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, windows-dev are reusable. Rebuilding only mac-rel-wpt... |
|
@bors-servo clean force retry r+ |
|
💡 This pull request was already approved, no need to approve it again.
|
|
📌 Commit 56fbfd4 has been approved by |
Excise SubpageId and use only PipelineIds <!-- Please describe your changes on the following line: --> SubpageId was originally introduced in 2013 to help iframes keep track of their associated (children) pipelines. However, since each pipeline already has a PipelineId, and those are unique, those are sufficient to keep track of children. --- <!-- 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 #11694 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because refactoring <!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11698) <!-- Reviewable:end -->
|
☀️ Test successful - arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows-dev |
SubpageId was originally introduced in 2013 to help iframes keep track of
their associated (children) pipelines. However, since each pipeline
already has a PipelineId, and those are unique, those are sufficient
to keep track of children.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is