Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Do not return an error for non-GET data: requests (fixes #13293) | Anthony Ramine | 2017-04-08 | 1 | -12/+8 | |
| | ||||||
* | Move the HTTP connector in HttpState | Anthony Ramine | 2017-04-06 | 1 | -3/+0 | |
| | ||||||
* | Kill some commented-out code | Anthony Ramine | 2017-04-05 | 1 | -5/+0 | |
| | ||||||
* | Introduce HstsList::switch_known_hsts_host_domain_url_to_https | Anthony Ramine | 2017-04-05 | 1 | -9/+2 | |
| | ||||||
* | Auto merge of #16126 - ferjm:issue-14520-block-media-csv, r=nox | bors-servo | 2017-04-05 | 1 | -1/+21 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Block scripts with text/csv, audio/*, video/* and image/* mime types This patch implements step 12 of the Main Fetch section of the Fetch API standard. It blocks the load of scripts with `text/csv`, `audio/*`, `video/*` and `image/*` mime types. Credit for the logic of `should_block_mime_type` function should go to the author of #14770. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #14520 - [X] There are tests for these changes <!-- 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/16126) <!-- Reviewable:end --> | |||||
| * | Block scripts with text/csv, audio/*, video/* and image/* mime types | Fernando Jiménez Moreno | 2017-04-03 | 1 | -1/+21 | |
| | | ||||||
* | | Introduce http_loader::set_default_accept | Anthony Ramine | 2017-04-04 | 1 | -34/+4 | |
| | | ||||||
* | | Update the steps in fetch_with_cors_cache | Anthony Ramine | 2017-04-04 | 1 | -14/+17 | |
|/ | ||||||
* | Move Arc out of HttpState | Anthony Ramine | 2017-04-03 | 1 | -1/+1 | |
| | ||||||
* | Move the HTTP connector to FetchContext | Anthony Ramine | 2017-04-03 | 1 | -2/+5 | |
| | ||||||
* | Make Response::url_list be a bare Vec<ServoUrl> | Anthony Ramine | 2017-04-03 | 1 | -10/+14 | |
| | ||||||
* | Update steps of main_fetch according to the Fetch spec | Anthony Ramine | 2017-04-03 | 1 | -82/+85 | |
| | ||||||
* | Remove all internal mutability from Request | Anthony Ramine | 2017-04-03 | 2 | -39/+39 | |
| | ||||||
* | Make fetch take a &Request | Anthony Ramine | 2017-04-03 | 1 | -10/+9 | |
| | ||||||
* | Make the WebSocket handshake ourselves to ease switching libs | Anthony Ramine | 2017-03-29 | 1 | -1/+1 | |
| | | | | | | We need to switch to tungstenite to finally update openssl, this commit rewrites the whole websocket infrastructure to properly follow the Fetch spec and to make switching to a different websocket library easier. | |||||
* | Simplify should_be_blocked_due_to_nosniff | Anthony Ramine | 2017-03-27 | 1 | -19/+19 | |
| | ||||||
* | Remove some useless Option<T> wrappers from ServoUrl methods | Anthony Ramine | 2017-03-26 | 1 | -1/+1 | |
| | ||||||
* | Properly follow the spec in WebSocket::Constructor | Anthony Ramine | 2017-03-24 | 1 | -1/+1 | |
| | ||||||
* | Introduce fetch::methods::should_be_blocked_due_to_bad_port | Anthony Ramine | 2017-03-23 | 1 | -11/+50 | |
| | ||||||
* | Allow for redirects after a CORS-preflight | Fernando Jiménez Moreno | 2017-03-10 | 1 | -2/+1 | |
| | ||||||
* | Implemented nosniff for fetch algorithm | Sumant Manne | 2017-03-03 | 1 | -12/+126 | |
| | ||||||
* | Implement Subresource Integrity | mrnayak | 2017-01-08 | 1 | -43/+35 | |
| | | | | | | | | | | | Implemented response validation part of https://w3c.github.io/webappsec-subresource-integrity/. Implemented step eighteen of the main fetch. If a request has integrity metadata, then following steps are performed *Wait for response body *If the response does not have a termination reason and response does not match request’s integrity metadata, set response to a network error.# Please enter the commit message for your changes. Lines starting | |||||
* | Implement HSTS fetch step | Raghav | 2016-12-29 | 1 | -1/+9 | |
| | | | | | | | | | | | | | | | Implemented step nine of the main fetch. If current URL scheme is 'HTTP' and current URL's host is domain and if current URL's host matched with Known HSTS Host Domain Name Matching results in either a superdomain match with an asserted includeSubDomains directive or a congruent match then we change request scheme to 'https'. This change has been made in method.rs A test case to validate this has been added in fetch.rs. For asserting https scheme, a https localhost was required. For this purpose I have created a self-signed certificate and refactored fetch-context and connector.rs to programmatically trust this certificate for running this test case. | |||||
* | Implement port-based blocking | Nick Price | 2016-12-21 | 1 | -0/+12 | |
| | ||||||
* | Stop returning the response from fetch(). | Ms2ger | 2016-12-15 | 1 | -6/+4 | |
| | ||||||
* | Make the fetch target non-optional. | Ms2ger | 2016-12-15 | 1 | -37/+21 | |
| | ||||||
* | Remove Request::done. | Ms2ger | 2016-12-09 | 1 | -3/+0 | |
| | | | | It does not appear to be used at all. | |||||
* | Rewrite determine_request_referrer() to explicitly limit it to the checks it ↵ | Ms2ger | 2016-12-08 | 1 | -9/+22 | |
| | | | | | | | | can do. Checks for the Client value should reside in the script thread. I also noted some other issues in this code. | |||||
* | Stop handling a None referrer policy in determine_request_referrer(). | Ms2ger | 2016-12-08 | 1 | -4/+3 | |
| | ||||||
* | Move the http-specific fetch code to http_loader. | Ms2ger | 2016-11-24 | 1 | -865/+17 | |
| | ||||||
* | Unify ReadResult and Data. | Ms2ger | 2016-11-24 | 1 | -4/+4 | |
| | ||||||
* | Remove unused CancellationListener argument to obtain_response. | Ms2ger | 2016-11-24 | 1 | -4/+1 | |
| | ||||||
* | Pass the UIProvider to FileManager::handle() as needed. | Ms2ger | 2016-11-21 | 1 | -58/+58 | |
| | ||||||
* | Urlmageddon: Use refcounted urls more often. | Emilio Cobos Álvarez | 2016-11-17 | 2 | -5/+6 | |
| | ||||||
* | Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjang | bors-servo | 2016-11-10 | 2 | -35/+35 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update CORS naming from 'CORS' to 'Cors'. As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps. <!-- 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/14156) <!-- Reviewable:end --> | |||||
| * | Update CORS naming from 'CORS' to 'Cors'. | Corey Farwell | 2016-11-09 | 2 | -35/+35 | |
| | | | | | | | | | | | | | | | | As per: https://aturon.github.io/style/naming/README.html#general-conventions-[rfc-#430] Acronyms should be considered one word and not all caps. | |||||
* | | Make Response::url private. | Ms2ger | 2016-11-10 | 1 | -1/+1 | |
| | | ||||||
* | | Pass the URL to Response::new(). | Ms2ger | 2016-11-10 | 1 | -13/+5 | |
|/ | ||||||
* | Pass a borrowed fetch context to fetch(). | Ms2ger | 2016-11-08 | 1 | -2/+2 | |
| | | | | This will allow inspecting its state after fetching in unit tests. | |||||
* | Auto merge of #14106 - servo:deindent-http-network-fetch, r=nox | bors-servo | 2016-11-08 | 1 | -82/+82 | |
|\ | | | | | | | | | | | | | | | Deindent some of the code in http_network_fetch. <!-- 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/14106) <!-- Reviewable:end --> | |||||
| * | Stop creating an unused Response in the error case. | Ms2ger | 2016-11-07 | 1 | -1/+1 | |
| | | ||||||
| * | Deindent some of the code in http_network_fetch. | Ms2ger | 2016-11-07 | 1 | -81/+81 | |
| | | ||||||
* | | Auto merge of #14114 - servo:fetch-unit-http, r=jdm | bors-servo | 2016-11-07 | 1 | -4/+2 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | Start using fetch for the HTTP unit tests. <!-- 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/14114) <!-- Reviewable:end --> | |||||
| * | | Use set_default_accept_language in fetch_with_cors_cache. | Ms2ger | 2016-11-07 | 1 | -4/+2 | |
| |/ | ||||||
* / | Stop unnecessarily wrapping the response argument to http_redirect_fetch in Rc. | Ms2ger | 2016-11-07 | 1 | -3/+3 | |
|/ | ||||||
* | Move ReferrerPolicy to net_traits. | Ms2ger | 2016-11-04 | 1 | -2/+1 | |
| | ||||||
* | Stop panicking when trying to load ftp URLs. | Ms2ger | 2016-11-02 | 1 | -2/+2 | |
| | ||||||
* | Set cookies in http_network_fetch. | Ms2ger | 2016-11-02 | 1 | -4/+9 | |
| | ||||||
* | Pass the entire FetchContext to http_network_fetch. | Ms2ger | 2016-11-02 | 1 | -7/+8 | |
| | ||||||
* | Store the referrer in the Response and return it in Response::metadata(). | Ms2ger | 2016-11-02 | 1 | -1/+2 | |
| |