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 upContinue message port #23637
Continue message port #23637
Conversation
highfive
commented
Jun 26, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jun 26, 2019
|
Still an early sketch. cc @KiChjang @jdm Messages are still routed via the constellation, not directly script to script, and I haven't actually run it yet, just trying to have a rough sketch that compiles. One question @KiChjang do I understand it correctly that |
7f30795
to
a9f3a5a
| @@ -19,7 +19,7 @@ no_wgl = ["canvas/no_wgl"] | |||
| background_hang_monitor = { path = "../background_hang_monitor"} | |||
| backtrace = "0.3" | |||
| bluetooth_traits = { path = "../bluetooth_traits" } | |||
| canvas = {path = "../canvas", default-features = false} | |||
| canvas = {path = "../canvas", default-features = true} | |||
This comment has been minimized.
This comment has been minimized.
0b4c36a
to
9a50c92
|
|
d2d3bae
to
35de5eb
|
@jdm @KiChjang Ok so at this point, I almost dare to say that it's "working". I don't think I'll have time during the week to make progress, so it might be worth it if anyone has time to review the current work-in-progress(or not and I'll just pick things up later). Some highlights:
|
|
@bors-servo try=wpt Let's see what tests have been affected outside of |
[WIP] Continue message port <!-- Please describe your changes on the following line: --> Fixes #7457. Fixes #12715. Fixes #12717. Fixes #16095. Fixes #18969. --- <!-- 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/23637) <!-- Reviewable:end -->
|
|
|
One thing that is left to do for sure is setting the windowproxy of the source of the message on the message event, because a lot of test rely on that in sending some sort of acknowledgement back. EDIT: the problem was we were using the origin of the window receiving the message, instead of the one sending the message, in the |
|
"If this is failing: DANGER, are you sure you want to expose the new interface MessagePort to all webpages as a property on the global? Do not make a change to this file without review from jdm or Ms2ger for that specific change!" |
|
For the record, I am about 1/3 of the way through reviewing the changes so far. |
|
|
|
@bors-servo try=wpt (let's get an update on the rest of the suite) |
Accept transfer argument for StructuredCloneData::write Allow structured clone reads to return a boolean Add Transferable trait Add basic skeletons to MessagePort Implement transfer and transfer-receiving steps on MessagePort Use transfer and transfer_receive in StructuredClone callbacks Implement MessageChannel Freeze the array object for the MessageEvent ports attribute Implement transfer argument on window.postMessage Use ReentrantMutex instead for MessagePortInternal Accept origin as a parameter in dispatch_jsval Fix BorrowMut crash with pending_port_message Detach port on closure and check for detached during transfer Enable webmessaging tests fix webidl fix
9d7b0cd
to
2f8932a
|
Transplanted upstreamable changes to existing PR. Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#17663. |
|
Ok so this needed a rebase, and I've also added a re-routing of the task if the global is not managing any ports, at https://github.com/servo/servo/pull/23637/files#diff-59d233642d0ce6d687484bdd009e1017R520 @jdm r? |
|
@bors-servo r+ |
|
|
Continue message port <!-- Please describe your changes on the following line: --> Fixes #7457. Fixes #12715. Fixes #12717. Fixes #16095. Fixes #18969. --- <!-- 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/23637) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
Continue message port <!-- Please describe your changes on the following line: --> Fixes #7457. Fixes #12715. Fixes #12717. Fixes #16095. Fixes #18969. --- <!-- 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/23637) <!-- Reviewable:end -->
|
|
gterzian commentedJun 26, 2019
•
edited by SimonSapin
Fixes #7457.
Fixes #12715.
Fixes #12717.
Fixes #16095.
Fixes #18969.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is