Repository navigation
Conversation
|
Heads up! This PR modifies the following files:
|
|
@bors-servo try |
Implement MessagePort Chances are that I'm still missing some `JSAutoCompartment`s here and there, and that the thread-sharing part of `Trusted` structs need to be handled more carefully. <!-- 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/16622) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt1 |
|
@bors-servo try |
Implement MessagePort Chances are that I'm still missing some `JSAutoCompartment`s here and there, and that the thread-sharing part of `Trusted` structs need to be handled more carefully. <!-- 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/16622) <!-- Reviewable:end -->
|
💔 Test failed - mac-rel-wpt1 |
| impl MessageChannel { | ||
| // https://html.spec.whatwg.org/multipage/#dom-messagechannel | ||
| pub fn Constructor(global: &GlobalScope) -> Fallible<Root<MessageChannel>> { | ||
| let incumbent = match GlobalScope::incumbent() { |
There was a problem hiding this comment.
I tried that, it said something like convertFrom is not implemented for Result<_, dom::bindings::Error>
There was a problem hiding this comment.
Wait, nvm, I found my error before.
|
Passing tests!!! 😄 |
|
r? @jdm or someone else |
|
@bors-servo try |
Implement MessagePort Chances are that I'm still missing some `JSAutoCompartment`s here and there, and that the thread-sharing part of `Trusted` structs need to be handled more carefully. <!-- 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/16622) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel-wpt |
|
Running locally on the |
|
☔ The latest upstream changes (presumably #21170) made this pull request unmergeable. Please resolve the merge conflicts. |
|
This one could be relevant by the way: #21218 (Although I have no idea whether the change actually makes sense, see the related issue for that) Actually, it looks like you are approaching that problem through the message_port_internal And I am guessing my solution might still 'good enough' for a Blob, which I think isn't transferable? |
|
@gterzian Hmm, your linked PR would be perfect for the temporary storage of the cloned MessagePorts on the new realm. I've struggled with who should actually own this, but somehow it never struck me that I should let GlobalScope own them. |
|
@gterzian As for Blob, you're correct in that they're not transferable objects, but they are the closely-related serializable objects. In my PR, perhaps I would instead change your StructuredCloneDataHolder to have a list of |
|
@KiChjang Ok, thanks for the info. Would you be interested in reviewing the other one, and then later rebase yours off of it (since your PR introduces |
|
☔ The latest upstream changes (presumably #21218) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #21737) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #22086) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #21804) made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #23483) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Was this finished in #23637? Should this be closed? |
|
Indeed! |
Chances are that I'm still missing some
JSAutoCompartments here and there, and that the thread-sharing part ofTrustedstructs need to be handled more carefully.Fixes #7457.
Fixes #12715.
Fixes #12717.
Fixes #16095.
Fixes #18969.
This change is