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

Use the fetch stack for stylesheets. #13575

Merged
merged 1 commit into from Oct 5, 2016
Merged

Use the fetch stack for stylesheets. #13575

merged 1 commit into from Oct 5, 2016

Conversation

@Ms2ger
Copy link
Contributor

Ms2ger commented Oct 4, 2016

Fixes #13462.


This change is Reviewable

@highfive
Copy link

highfive commented Oct 4, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/htmllinkelement.rs
@highfive
Copy link

highfive commented Oct 4, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
pipeline_id: Some(self.global().r().pipeline_id()),
referrer_url: Some(document.url().clone()),
referrer_policy: referrer_policy,
.. RequestInit::default()

This comment has been minimized.

Copy link
@jdm

jdm Oct 4, 2016

Member

This should set use_url_credentials to true per https://html.spec.whatwg.org/multipage/infrastructure.html#create-a-potential-cors-request , as well as set mode to Cors.

let request = RequestInit {
url: url.clone(),
type_: RequestType::Script,
destination: Destination::Style,

This comment has been minimized.

Copy link
@jdm

jdm Oct 4, 2016

Member

The spec says destination should be the empty string, but the table at https://fetch.spec.whatwg.org/#concept-request-type disagrees. I've filed whatwg/html#1856.


let request = RequestInit {
url: url.clone(),
type_: RequestType::Script,

This comment has been minimized.

Copy link
@jdm

jdm Oct 4, 2016

Member

The spec doesn't specify a type; the table at https://fetch.spec.whatwg.org/#concept-request-type says it should be style.

@jdm jdm assigned jdm and unassigned metajack Oct 4, 2016
Fixes #13462.
@Ms2ger
Copy link
Contributor Author

Ms2ger commented Oct 4, 2016

Done

@jdm
Copy link
Member

jdm commented Oct 4, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Oct 4, 2016

📌 Commit 2980903 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Oct 4, 2016

Testing commit 2980903 with merge 710bd7e...

bors-servo added a commit that referenced this pull request Oct 4, 2016
Use the fetch stack for stylesheets.

Fixes #13462.

<!-- 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/13575)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 5, 2016

@bors-servo bors-servo merged commit 2980903 into master Oct 5, 2016
3 of 4 checks passed
3 of 4 checks passed
dependency-ci Failed dependency checks
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@Ms2ger Ms2ger deleted the fetch-link branch Oct 6, 2016
@Ms2ger Ms2ger mentioned this pull request Nov 7, 2016
31 of 31 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.