aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/fetch
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not return an error for non-GET data: requests (fixes #13293)Anthony Ramine2017-04-081-12/+8
|
* Move the HTTP connector in HttpStateAnthony Ramine2017-04-061-3/+0
|
* Kill some commented-out codeAnthony Ramine2017-04-051-5/+0
|
* Introduce HstsList::switch_known_hsts_host_domain_url_to_httpsAnthony Ramine2017-04-051-9/+2
|
* Auto merge of #16126 - ferjm:issue-14520-block-media-csv, r=noxbors-servo2017-04-051-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 typesFernando Jiménez Moreno2017-04-031-1/+21
| |
* | Introduce http_loader::set_default_acceptAnthony Ramine2017-04-041-34/+4
| |
* | Update the steps in fetch_with_cors_cacheAnthony Ramine2017-04-041-14/+17
|/
* Move Arc out of HttpStateAnthony Ramine2017-04-031-1/+1
|
* Move the HTTP connector to FetchContextAnthony Ramine2017-04-031-2/+5
|
* Make Response::url_list be a bare Vec<ServoUrl>Anthony Ramine2017-04-031-10/+14
|
* Update steps of main_fetch according to the Fetch specAnthony Ramine2017-04-031-82/+85
|
* Remove all internal mutability from RequestAnthony Ramine2017-04-032-39/+39
|
* Make fetch take a &RequestAnthony Ramine2017-04-031-10/+9
|
* Make the WebSocket handshake ourselves to ease switching libsAnthony Ramine2017-03-291-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_nosniffAnthony Ramine2017-03-271-19/+19
|
* Remove some useless Option<T> wrappers from ServoUrl methodsAnthony Ramine2017-03-261-1/+1
|
* Properly follow the spec in WebSocket::ConstructorAnthony Ramine2017-03-241-1/+1
|
* Introduce fetch::methods::should_be_blocked_due_to_bad_portAnthony Ramine2017-03-231-11/+50
|
* Allow for redirects after a CORS-preflightFernando Jiménez Moreno2017-03-101-2/+1
|
* Implemented nosniff for fetch algorithmSumant Manne2017-03-031-12/+126
|
* Implement Subresource Integritymrnayak2017-01-081-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 stepRaghav2016-12-291-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 blockingNick Price2016-12-211-0/+12
|
* Stop returning the response from fetch().Ms2ger2016-12-151-6/+4
|
* Make the fetch target non-optional.Ms2ger2016-12-151-37/+21
|
* Remove Request::done.Ms2ger2016-12-091-3/+0
| | | | It does not appear to be used at all.
* Rewrite determine_request_referrer() to explicitly limit it to the checks it ↵Ms2ger2016-12-081-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().Ms2ger2016-12-081-4/+3
|
* Move the http-specific fetch code to http_loader.Ms2ger2016-11-241-865/+17
|
* Unify ReadResult and Data.Ms2ger2016-11-241-4/+4
|
* Remove unused CancellationListener argument to obtain_response.Ms2ger2016-11-241-4/+1
|
* Pass the UIProvider to FileManager::handle() as needed.Ms2ger2016-11-211-58/+58
|
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-172-5/+6
|
* Auto merge of #14156 - frewsxcv:cors-capitalization, r=KiChjangbors-servo2016-11-102-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 Farwell2016-11-092-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.Ms2ger2016-11-101-1/+1
| |
* | Pass the URL to Response::new().Ms2ger2016-11-101-13/+5
|/
* Pass a borrowed fetch context to fetch().Ms2ger2016-11-081-2/+2
| | | | This will allow inspecting its state after fetching in unit tests.
* Auto merge of #14106 - servo:deindent-http-network-fetch, r=noxbors-servo2016-11-081-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.Ms2ger2016-11-071-1/+1
| |
| * Deindent some of the code in http_network_fetch.Ms2ger2016-11-071-81/+81
| |
* | Auto merge of #14114 - servo:fetch-unit-http, r=jdmbors-servo2016-11-071-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.Ms2ger2016-11-071-4/+2
| |/
* / Stop unnecessarily wrapping the response argument to http_redirect_fetch in Rc.Ms2ger2016-11-071-3/+3
|/
* Move ReferrerPolicy to net_traits.Ms2ger2016-11-041-2/+1
|
* Stop panicking when trying to load ftp URLs.Ms2ger2016-11-021-2/+2
|
* Set cookies in http_network_fetch.Ms2ger2016-11-021-4/+9
|
* Pass the entire FetchContext to http_network_fetch.Ms2ger2016-11-021-7/+8
|
* Store the referrer in the Response and return it in Response::metadata().Ms2ger2016-11-021-1/+2
|