-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge functionality of WebsocketConnect into Fetch #18871
Conversation
Heads up! This PR modifies the following files:
|
edc7039
to
644e34b
Compare
@bors-servo try |
Merge functionality of WebsocketConnect into Fetch Partial #14897. <!-- 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/18871) <!-- Reviewable:end -->
💔 Test failed - mac-rel-wpt2 |
@bors-servo retry |
Merge functionality of WebsocketConnect into Fetch Partial #14897. <!-- 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/18871) <!-- Reviewable:end -->
💥 Test timed out |
@bors-servo: retry |
Merge functionality of WebsocketConnect into Fetch Partial #14897. <!-- 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/18871) <!-- Reviewable:end -->
💔 Test failed - linux-dev |
Everything else passed. |
☔ The latest upstream changes (presumably #18900) made this pull request unmergeable. Please resolve the merge conflicts. |
644e34b
to
252a6d4
Compare
@bors-servo try |
Merge functionality of WebsocketConnect into Fetch Partial #14897. <!-- 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/18871) <!-- Reviewable:end -->
💔 Test failed - arm32 |
I have no idea why it always fails on the manifest_update.sh script, but other than that, r? @jdm |
Also redirecting this. r? @avadacatavra |
components/net_traits/lib.rs
Outdated
pub resource_url: ServoUrl, | ||
pub origin: String, | ||
pub protocols: Vec<String>, | ||
pub enum FetchChannels { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you comment these to make it more clear what they are
components/net_traits/request.rs
Outdated
pub enum RequestMode { | ||
Navigate, | ||
SameOrigin, | ||
NoCors, | ||
CorsMode, | ||
WebSocket | ||
WebSocket(Vec<String>) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make it more clear that this vec is the protocols?
@@ -556,7 +556,7 @@ impl RequestMethods for Request { | |||
|
|||
// https://fetch.spec.whatwg.org/#dom-request-mode | |||
fn Mode(&self) -> RequestMode { | |||
self.request.borrow().mode.into() | |||
self.request.borrow().mode.clone().into() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the clone needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RequestMode
used to implement Copy
, but since I've added the WebSocket(Vec<String>)
variant, it cannot implement Copy
, hence this clone.
0052896
to
0874f2b
Compare
Comments addressed. |
☔ The latest upstream changes (presumably #18981) made this pull request unmergeable. Please resolve the merge conflicts. |
0874f2b
to
46817ca
Compare
|
25b6a72
to
559769a
Compare
Comments addressed for real this time. |
559769a
to
99f9696
Compare
@bors-servo r+ |
📌 Commit 99f9696 has been approved by |
…atavra Merge functionality of WebsocketConnect into Fetch Partial #14897. <!-- 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/18871) <!-- Reviewable:end -->
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev |
Partial #14897.
This change is