aboutsummaryrefslogtreecommitdiffstats
path: root/components/net
Commit message (Collapse)AuthorAgeFilesLines
* Fix check conditionsShinichi Morimoto2019-11-051-5/+2
|
* fix #24367Shinichi Morimoto2019-11-051-1/+9
|
* Limit referer header value length to 4096teapotd2019-10-242-2/+49
|
* Update rand to 0.7 (fixes #24448)Anthony Ramine2019-10-231-1/+1
|
* Auto merge of #24508 - pajamapants3000:21254, r=jdmbors-servo2019-10-222-5/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add start_time to resource timing. <!-- Please describe your changes on the following line: --> `start_time` property added to `ResourceFetchTiming`, which enables the setting of `start_time` in the `PerformanceEntry` member of `PerformanceResourceTiming`. Following the specification at https://w3c.github.io/resource-timing/#dfn-starttime, `start_time` is set to the value of `redirect_start` if redirection occurs and the timing allow check passes. Otherwise it has the same value as `fetch_start`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21254 <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
| * Add start_time to resource timing.Tommy Lincoln2019-10-202-5/+27
| |
* | continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-2/+2
| |
* | Add simple implementation of content-security-policy on scripts / stylesMichael Howell2019-10-162-1/+37
|/ | | | | | | | This needs a lot more hooks before it'll actually be a good implementation, but for a start it can help get some feedback on if this is the right way to go about it. Part of servo/servo#4577
* Auto merge of #23990 - tomasdivito:add-secure-connection-start, r=jdmbors-servo2019-10-101-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add secure connection start Implementing `secure_connection_start` as well as we can, this is related to #21268 We are setting the value as well as we can since we don't have a way to know if we are currently using a secure transport or where the handshake before the connection is done as the spec says on the step 15 [https://w3c.github.io/resource-timing/#sec-process](https://w3c.github.io/resource-timing/#sec-process) Regarding the Timing Allow Check, that's being done on another PR by another person which will take care of setting the rest of the values on `PerformaceResourceTiming` to Zero and prevent them to set them any other way. I'm currently setting the `secure_connection_time` using `precise_time_ms()` as the `connection_start` and `connection_end` are set that way... but other attributes inside `PerformanceResourceTiming` are set using `precise_time Another thing, the issue talks about setting `redirect_start` but I'm not really sure if it's related, if so I can look up into that too... I might have just read and thought it was all about secure connection start. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #21268 <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- 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/23990) <!-- Reviewable:end -->
| * implemented secure_connection_startTomas Di Vito2019-10-101-0/+11
| |
* | Auto merge of #24401 - gterzian:ensure_done_chan_is_none_when_revalidating, ↵bors-servo2019-10-091-14/+17
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=jdm Fetch: ensure consistency between response, done-chan, and cache state. This ensures that when a cached response is not used because it requires revalidation, the done chan is set back to `None`(since the cache might have set it to `Some` when constructing the response requiring revalidation). <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #24399 (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/24401) <!-- Reviewable:end -->
| * | fetch: ensure consistency between response, done-chan, and cache state.Gregory Terzian2019-10-091-14/+17
| | |
* | | Auto merge of #24402 - gterzian:remove_thread_spawning_in_ws, r=jdmbors-servo2019-10-091-4/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Websocket: use ipc router to handle ws dom-action messages <!-- Please describe your changes on the following line: --> Use the ipc router as opposed to spawning a dedicated thread. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/24402) <!-- Reviewable:end -->
| * | | use ipc router to handle ws dom-action messagesGregory Terzian2019-10-091-4/+7
| |/ /
* / / Use RequestBuilder for CORS preflight fetchCYBAI2019-10-091-12/+15
|/ /
* | http-cache: wait on pending storesGregory Terzian2019-10-084-92/+239
| | | | | | | | and various small improvements
* | Auto merge of #24340 - jdm:image-cache-cors, r=Manishearthbors-servo2019-10-072-47/+124
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow using CORS filtered image responses as WebGL textures More specifically, this makes the "is this image same origin?" check consider the CORS status of the original response, rather than relying on an overly-strict "is this image's response's URL same-origin with a particular global?" check. To do this, we make the image cache double keyed based on the requested URL as well as the requesting origin, and store the CORS status of the eventual response with the final image that eventually gets sent to the HTMLImageElement consumer. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24330 and fix #24368 - [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/24340) <!-- Reviewable:end -->
| * | Add useful debug output for HTTP response and image cache.Josh Matthews2019-10-042-0/+6
| | |
| * | Support CORS attributes for image elements.Josh Matthews2019-10-041-15/+47
| | |
| * | Double key image cache by requesting origin, and store CORS status with ↵Josh Matthews2019-10-041-47/+86
| | | | | | | | | | | | cached images.
* | | Auto merge of #24370 - jdm:cache-crossorigin-test, r=gterzianbors-servo2019-10-071-0/+10
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cache crossorigin test This adds a test for #24356 to ensure that we don't regress our cache behaviour. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [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/24370) <!-- Reviewable:end -->
| * | | Add some useful HTTP cache debug output.Josh Matthews2019-10-041-0/+10
| | | |
* | | | Pass argument by reference to CacheKey constructorTugdual JULLIEN2019-10-051-5/+5
| |/ / |/| | | | | | | | | | | Argument now passed by reference, and clone() removed when calling constructor.
* | | rustfmtJosh Matthews2019-10-031-1/+3
| | |
* | | Use unfiltered response body when replicating body of cached responses.Josh Matthews2019-10-031-1/+1
|/ /
* / Remove unused dependenciesShotaro Yamada2019-10-011-3/+0
|/
* Move ResourceFetchTiming into ArcJaved Nissar2019-09-184-4/+8
| | | | | | | | | | | The purpose of this commit is to ensure that the Response object has access to Timing updates as previously the Response object simply stored a ResourceFetchTiming struct so updates on ResourceFetchTiming that were not explicitly done on the Response would not be passed down. The references to ServoArc are added because Response uses servo_arc::Arc rather than std::sync::Arc as is used elsewhere. So, we've switched those other places to servo_arc::Arc instead of switching Response to std::sync::Arc.
* Add PerformanceResourceTiming: TimingAllowCheckJaved Nissar2019-09-181-3/+28
| | | | The purpose of this commit is to implement https://w3c.github.io/resource-timing/#dfn-timing-allow-check
* Responding to review commentsAlan Jeffrey2019-09-111-1/+2
|
* Make http_loader more robust against hyperium parse errorsAlan Jeffrey2019-09-101-17/+29
|
* Prefetch img and scripts during parsingAlan Jeffrey2019-09-101-3/+8
|
* Update hyper to 0.12.33.Josh Matthews2019-08-291-1/+2
|
* Update ipc-channel and related dependenciesBastien Orivel2019-08-271-1/+1
|
* Deduplicate idna, log, mime, mime_guess, percent-encoding, unicase, url, wsSimon Sapin2019-08-192-6/+6
|
* Update to percent-encoding 2.0Simon Sapin2019-08-171-1/+1
|
* Update to url 2.0Simon Sapin2019-08-172-3/+4
|
* Pass the event loop waker into WebXRAlan Jeffrey2019-07-251-1/+1
|
* ISSUE-21257: set redirectEnd on PerformanceResourceTimingThomas Delacour2019-07-191-5/+39
|
* WebRender units are no longer reexported.Patrick Walton2019-07-091-1/+2
|
* Add PerformanceResourceTiming: domainLookupStartKamil Niski2019-06-301-0/+6
| | | | | | | | | | | | | | Remove wpt tests for domainLookupStart Set ResourceAttribute::DomainLookupTime Move DomainLookupStart timing before HTTP request initialization Change label of domainLookupStart TAO zero test to PASS Adjust the from_resource_timing method to initialize domain_lookup_start value Restore domainLookupsStart test
* Auto merge of #23593 - georgeroman:fix_panic_on_opening_directory, r=Manishearthbors-servo2019-06-221-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix panic on opening a directory <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors Continued from https://github.com/servo/servo/pull/23548 <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/23593) <!-- Reviewable:end -->
| * Fix panic on opening a directoryGeorge Roman2019-06-181-0/+8
| |
* | Auto merge of #23494 - gterzian:improve_http_cache, r=jdmbors-servo2019-06-225-40/+77
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various improvements and update to the http cache <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/23494) <!-- Reviewable:end -->
| * | http-cache: re-enable and update testGregory Terzian2019-06-222-25/+27
| | |
| * | http-cache: do not cache responses from requests with authorizationGregory Terzian2019-06-201-0/+9
| | |
| * | http-cache: remove double-store of resourcesGregory Terzian2019-06-191-6/+1
| | |
| * | http-cache: improve handling of network errors and partial contentGregory Terzian2019-06-172-9/+40
| | |
* | | Fix some new warningsSimon Sapin2019-06-222-2/+2
| |/ |/|
* | Upgrade headers, headers-core, and hyper_serde.Josh Matthews2019-06-139-27/+23
| |
* | Upgrade ws.Josh Matthews2019-06-121-1/+1
| |