Skip to content
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

Merged
merged 1 commit into from
Oct 25, 2017

Conversation

KiChjang
Copy link
Contributor

@KiChjang KiChjang commented Oct 14, 2017

Partial #14897.


This change is Reviewable

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/network_listener.rs
  • @paulrouget: components/constellation/network_listener.rs
  • @fitzgen: components/script/dom/request.rs, components/script/dom/websocket.rs, components/script/fetch.rs, components/script/dom/xmlhttprequest.rs, components/script/document_loader.rs and 1 more
  • @KiChjang: components/script/dom/request.rs, components/net/resource_thread.rs, components/script/dom/websocket.rs, components/script/fetch.rs, components/script/dom/xmlhttprequest.rs and 7 more

@highfive
Copy link

warning Warning warning

  • These commits modify net and script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 14, 2017
@KiChjang
Copy link
Contributor Author

@bors-servo try

@bors-servo
Copy link
Contributor

⌛ Trying commit 644e34b with merge b4de070...

bors-servo pushed a commit that referenced this pull request Oct 14, 2017
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 -->
@bors-servo
Copy link
Contributor

💔 Test failed - mac-rel-wpt2

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Oct 14, 2017
@KiChjang
Copy link
Contributor Author

@bors-servo retry

@bors-servo
Copy link
Contributor

⌛ Trying commit 644e34b with merge 9aadce6...

bors-servo pushed a commit that referenced this pull request Oct 14, 2017
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 -->
@bors-servo
Copy link
Contributor

💥 Test timed out

@jdm
Copy link
Member

jdm commented Oct 15, 2017

@bors-servo: retry

@bors-servo
Copy link
Contributor

⌛ Trying commit 644e34b with merge c0430a1...

bors-servo pushed a commit that referenced this pull request Oct 15, 2017
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 -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-dev

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Oct 15, 2017
@jdm
Copy link
Member

jdm commented Oct 15, 2017

Everything else passed.

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #18900) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Oct 16, 2017
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Oct 19, 2017
@KiChjang
Copy link
Contributor Author

@bors-servo try

@bors-servo
Copy link
Contributor

⌛ Trying commit 252a6d4 with merge f3b6e06...

bors-servo pushed a commit that referenced this pull request Oct 19, 2017
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 -->
@bors-servo
Copy link
Contributor

💔 Test failed - arm32

@highfive highfive added the S-tests-failed The changes caused existing tests to fail. label Oct 19, 2017
@KiChjang
Copy link
Contributor Author

I have no idea why it always fails on the manifest_update.sh script, but other than that, r? @jdm

@jdm
Copy link
Member

jdm commented Oct 24, 2017

Also redirecting this. r? @avadacatavra

@highfive highfive assigned avadacatavra and unassigned jdm Oct 24, 2017
pub resource_url: ServoUrl,
pub origin: String,
pub protocols: Vec<String>,
pub enum FetchChannels {
Copy link
Contributor

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

pub enum RequestMode {
Navigate,
SameOrigin,
NoCors,
CorsMode,
WebSocket
WebSocket(Vec<String>)
Copy link
Contributor

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()
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@KiChjang KiChjang force-pushed the websocket-fetch-integration branch 3 times, most recently from 0052896 to 0874f2b Compare October 24, 2017 23:02
@KiChjang
Copy link
Contributor Author

Comments addressed.

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #18981) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Oct 24, 2017
@jdm
Copy link
Member

jdm commented Oct 25, 2017

error[E0432]: unresolved import `net_traits::request::Type`

--> /home/travis/build/servo/servo/components/net/websocket_loader.rs:21:66

|

21 | use net_traits::request::{Destination, RequestInit, RequestMode, Type};

| ^^^^ no `Type` in `request`

@jdm jdm removed the S-needs-rebase There are merge conflict errors. label Oct 25, 2017
@KiChjang KiChjang force-pushed the websocket-fetch-integration branch 4 times, most recently from 25b6a72 to 559769a Compare October 25, 2017 03:06
@KiChjang
Copy link
Contributor Author

Comments addressed for real this time.

@avadacatavra
Copy link
Contributor

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 99f9696 has been approved by avadacatavra

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 25, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 99f9696 with merge a69e333...

bors-servo pushed a commit that referenced this pull request Oct 25, 2017
…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 -->
@bors-servo
Copy link
Contributor

☀️ 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
Approved by: avadacatavra
Pushing a69e333 to master...

@bors-servo bors-servo merged commit 99f9696 into servo:master Oct 25, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 25, 2017
@KiChjang KiChjang deleted the websocket-fetch-integration branch March 31, 2018 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants