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 upUse fetch infrastructure to load external scripts #12472
Conversation
highfive
commented
Jul 16, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Jul 16, 2016
|
@bors-servo try |
Make text decorations have the same color as the text if no shadows are present Fixes #9186. r? @Ms2ger <!-- 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/12472) <!-- Reviewable:end -->
|
That's a weird PR title. |
|
|
|
@bors-servo try |
Use fetch infrastructure to load external scripts Fixes #9186. r? @Ms2ger <!-- 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/12472) <!-- Reviewable:end -->
|
|
|
@bors-servo try |
Use fetch infrastructure to load external scripts Fixes #9186. r? @Ms2ger <!-- 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/12472) <!-- Reviewable:end -->
|
|
|
Huh, looks like there's a lot more infrastructure to work on. |
|
@bors-servo try |
|
@bors-servo try |
Use fetch infrastructure to load external scripts Fixes #9186. <!-- 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/12472) <!-- Reviewable:end -->
|
|
| }; | ||
|
|
||
| if self.is_network_error() { | ||
| return Err(NetworkError::Internal("Cannot extract metadata from network error".to_string())); | ||
| if let Some(ref mut m) = metadata { |
This comment has been minimized.
This comment has been minimized.
| Metadata::default(url.clone()) | ||
| Some(Metadata::default(url.clone())) | ||
| } else if self.is_network_error() { | ||
| return Err(NetworkError::Internal("Cannot extract metadata from network error".to_owned())); |
This comment has been minimized.
This comment has been minimized.
| } else { | ||
| match metadata { | ||
| Some(m) => Ok(FetchMetadata::Unfiltered(m)), | ||
| None => Err(NetworkError::Internal("No url found in response".to_owned())) |
This comment has been minimized.
This comment has been minimized.
jdm
Sep 21, 2016
Member
I would rather make this an unreachable!(), because we shouldn't be able to have a URL-less response with no internal response.
|
Comments addressed. |
|
@bors-servo: r+ |
|
|
Use fetch infrastructure to load external scripts Fixes #9186. <!-- 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/12472) <!-- Reviewable:end -->
|
|
KiChjang commentedJul 16, 2016
•
edited by Ms2ger
Fixes #9186.
This change is