aboutsummaryrefslogtreecommitdiffstats
path: root/components/net
Commit message (Collapse)AuthorAgeFilesLines
* Fix a Cargo warningSimon Sapin2018-05-041-0/+1
| | | | https://github.com/rust-lang/cargo/issues/5330
* test(net): update test casesOJ Kwon2018-04-275-28/+49
|
* refactor(embedder): rename file select messageOJ Kwon2018-04-271-1/+1
|
* refactor(filemanager): uses embedderproxy directlyOJ Kwon2018-04-274-39/+39
|
* refactor(filemanager): use filemanagermsg to request embedderOJ Kwon2018-04-272-14/+13
|
* test(net): update test casesOJ Kwon2018-04-274-27/+23
|
* refactor(filemanager): remove awareness to ui behaviorOJ Kwon2018-04-274-70/+1
|
* refactor(filemanager): send constellationmsg to select fileOJ Kwon2018-04-272-29/+41
|
* refactor(resourcethread): expose constellationmsg channelOJ Kwon2018-04-273-8/+15
|
* delegate resource reading to embedderPaul Rouget2018-04-2713-138/+115
|
* Remove insaccessible history statesConnor Brewster2018-04-171-0/+6
|
* Implement history stateConnor Brewster2018-04-162-2/+13
|
* Measure cache memory usage (#19251):modal-d172018-04-015-75/+181
| | | | | | | | | | | | | Made the memory cache data structure derive MallocSizeOf, along with manual size_of() implementations in malloc_size_of. Added a Measurable struct that acts as a container for fields size_of() can be called for. Added a new IpcReceiver used for listening to messages from the memory profiler, and used run_with_memory reporting to register a memory reporter in the thread. Now when a message from the memory profiler arrives, report includes sizes of public and private http caches. Updated test file.
* Bump env_logger to 0.5 and log to 0.4 in every servo crateBastien Orivel2018-03-282-3/+3
|
* Dedupe lazy_staticBastien Orivel2018-03-231-6/+3
| | | | :tada: :tada: :tada:
* Update WR (accelerated webgl fix on mac, line decoration optimizations).Glenn Watson2018-03-231-0/+1
|
* Bump ipc-channel and bincodeBastien Orivel2018-03-211-2/+2
| | | | This required bumping uuid too which unfortunately duplicated rand.
* Update servo-websocket to 0.21Bastien Orivel2018-03-152-19/+34
|
* update tinyfiledialogsPaul Rouget2018-03-031-1/+1
|
* Update flate2 to 1.0Bastien Orivel2018-02-283-4/+4
|
* Change debug assertions to specific onesjanczer2018-02-071-1/+1
|
* Auto merge of #19868 - CYBAI:specific-assertion, r=emiliobors-servo2018-01-255-25/+25
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use specific assertions Similar to #19865 r? jdm Note: Should I squash all the commits into one commit? --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it should not break anything <!-- 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/19868) <!-- Reviewable:end -->
| * Use specific assertion for net hsts testsCYBAI2018-01-261-3/+3
| |
| * Use specific assertion for net fetch methodsCYBAI2018-01-261-1/+1
| |
| * Use specific assertion for net fetch testsCYBAI2018-01-261-3/+3
| |
| * Use specific assertion for net cookie testsCYBAI2018-01-261-17/+17
| |
| * Use specific assertion for net http_cacheCYBAI2018-01-261-1/+1
| |
* | Use more specific assertions for http tests.Josh Matthews2018-01-251-6/+6
|/
* Auto merge of #19350 - gterzian:ignore_aborted_responses_in_caching, r=jdmbors-servo2018-01-233-19/+87
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignore aborted responses in caching <!-- Please describe your changes on the following line: --> @jdm @KiChjang @Manishearth Follow up on https://github.com/servo/servo/pull/18676 and https://github.com/servo/servo/pull/19274 to ignore aborted responses in caching. I also found out the cache shouldn't return any response whose body is still in `ResponseBody::Receiving` mode, because that fails the assertion at https://github.com/servo/servo/blob/master/components/net/fetch/methods.rs#L438(we might want to add a channel as pat of the cached response later on to deal with this case). I only found out now because I needed the response from the server to trickle in so that it could be cached and aborted. I copied the `http-cache.py` server from the wpt folder, and added a 'trickle' option, which is necessary to actually have a failing test with a cached but aborted request, it's now passing. I also remove one unused import that slippled through previously. --- <!-- 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/19350) <!-- Reviewable:end -->
| * handle caching of response with a body of ResponseBody::ReceivingGregory Terzian2018-01-133-23/+77
| |
| * ignore aborted response in http cachingGregory Terzian2018-01-132-6/+20
| |
* | Merge net and net_testsAnthony Ramine2018-01-20123-0/+6755
|/
* Update WR (removal of RGB8, which isn't supported on some hardware).Glenn Watson2018-01-081-39/+30
| | | | | Instead, we convert any source RGB8 images into RGBx (with an opaque alpha channel).
* net: Use ? on Option more often.Emilio Cobos Álvarez2017-12-091-4/+1
|
* Update to uluru 0.2 and arrayvec 0.4Matt Brubeck2017-12-071-1/+1
|
* Auto merge of #19487 - Eijebong:bump, r=jdmbors-servo2017-12-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | Update lazy_static to 1.0 For now it'll be duplicated <!-- 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/19487) <!-- Reviewable:end -->
| * Update lazy_static to 1.0Bastien Orivel2017-12-041-1/+1
| | | | | | | | For now it'll be duplicated
* | Prevent an unused import warning on non desktop platformsFabrice Desré2017-12-021-0/+1
|/ | | opts is not used on Android for instance.
* Replace parse-hosts crate with 10 lines of code.Simon Sapin2017-11-283-8/+12
| | | | | | | | This removes 3927 lines of Rust code in 6 crates from the dependency graph: parse-hosts, multistr, bow, extra-default, len-trait, and push-trait. One of these crates doesn’t build in today’s Nightly: https://github.com/rust-lang/rust/issues/46328
* Remove WrappedHttpResponse abstractiontigercosmos2017-11-261-54/+26
|
* Update cookie to 0.10Anthony Ramine2017-11-241-2/+2
| | | | Except in webdriver, which source is in m-c.
* Auto merge of #19185 - KiChjang:cookie-prefixes, r=avadacatavrabors-servo2017-11-231-4/+23
|\ | | | | | | | | | | | | | | | | | | | | | | | | Implement secure and host cookie prefixes Part of #8700. I modified the algorithm so that it accurately checks for the presence of the `Path` attribute of the cookie, before checking whether it has a value of `/`. <!-- 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/19185) <!-- Reviewable:end -->
| * Implement secure and host cookie prefixesKeith Yeung2017-11-211-4/+23
| |
* | Remove cancellation map and ResourceId from the net* componentsBastien Orivel2017-11-211-11/+3
|/ | | | Fixes #19327
* Removed unused import in net/http_cache.rsHugh Gallagher2017-11-211-1/+0
|
* Auto merge of #19274 - Manishearth:xhr-cancel, r=jdmbors-servo2017-11-203-15/+62
|\ | | | | | | | | | | | | | | | | | | | | | | | | Fetch cancellation This PR implements cancellation for fetch, and uses it for XHR. This means that fetch clients can now send a message to the fetch task asking for the network request to be aborted. Previously, clients like XHR had abort functionality but would implement it by simply ignoring future messages from the network task; and would not actually cancel the 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/19274) <!-- Reviewable:end -->
| * Add aborted flag to response, set when fetch is abortedManish Goregaokar2017-11-202-8/+17
| |
| * Fetch cancellation: Listen for cancellation and prematurely abort if cancelledManish Goregaokar2017-11-201-0/+6
| |
| * Fetch cancellation: Add CancellationListenerManish Goregaokar2017-11-202-5/+33
| |
| * Fetch cancellation: Add cancel_chan to FetchContextManish Goregaokar2017-11-172-5/+9
| |