aboutsummaryrefslogtreecommitdiffstats
path: root/components/net
Commit message (Collapse)AuthorAgeFilesLines
...
* Block port 10080Vincent Ricard2021-04-161-2/+2
| | | | See https://github.com/whatwg/fetch/issues/1191
* Compile fix.Josh Matthews2021-04-071-0/+2
|
* Try to work around windows unit test failures.Josh Matthews2021-04-071-5/+2
|
* Disasable net unit test on windows.Josh Matthews2021-04-041-0/+1
|
* Add port blocking for tftp, netbios-ns, snmp, rtsp, h323gatestat, ↵Vincent Ricard2021-03-291-5/+6
| | | | | | h323hostcall, pptp, sane-port Spec update: https://github.com/whatwg/fetch/pull/1148
* Fix some 'nosniff' testsVincent Ricard2021-03-083-12/+182
|
* Fix warnings introduced in newer Rust NightlySimon Sapin2021-02-251-1/+1
| | | | | | | | | | | | This does not (yet) upgrade ./rust-toolchain The warnings: * dead_code "field is never read" * redundant_semicolons "unnecessary trailing semicolon" * non_fmt_panic "panic message is not a string literal, this is no longer accepted in Rust 2021" * unstable_name_collisions "a method with this name may be added to the standard library in the future" * legacy_derive_helpers "derive helper attribute is used before it is introduced" https://github.com/rust-lang/rust/issues/79202
* Auto merge of #27738 - ghostd:update-bad-ports, r=jdmbors-servo2020-11-191-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the "bad ports" list https://github.com/whatwg/fetch/issues/1108 <!-- 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 - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- 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. -->
| * Update the "bad ports" listVincent Ricard2020-11-041-2/+2
| | | | | | | | https://github.com/whatwg/fetch/issues/1108
* | Set CORS preflight requests' `mode` to `cors`Vincent Ricard2020-10-301-62/+60
|/
* Make reload button clear the network cache.Josh Matthews2020-07-272-0/+8
|
* Remove unit test that triggers frequent intermittent failure.Josh Matthews2020-07-271-78/+2
|
* net: Remove explicit Host header from websocket connection.Josh Matthews2020-07-161-26/+1
|
* net: Replace ws-rs with async-tungstenite.Josh Matthews2020-07-083-245/+443
|
* Auto merge of #27198 - jdm:http-origin-test-debug, r=asajeffreybors-servo2020-07-071-7/+8
|\ | | | | | | | | | | Add debug output for intermittently failing test. This should help narrow down the cause of #26895.
| * Add debug output for intermittently failing test.Josh Matthews2020-07-071-7/+8
| |
* | net: in the absense of a request body, assume streaming it cannot failGregory Terzian2020-07-071-1/+11
| |
* | Ignore errors while setting username/password in strip_url_for_use_as_referrerUtsav Oza2020-07-031-2/+2
| |
* | Update referrer computationUtsav Oza2020-07-023-102/+91
|/ | | | | | | | Update unit tests for determine_requests_referrer Update wpt metadata Add missing spec links
* Fix remaining flake8 warningsKagami Sascha Rosylight2020-06-211-0/+1
|
* Use global.get_referrer() when appropiateMatthias Deiml2020-06-171-2/+2
|
* Make url for "client" referrer mandatoryMatthias Deiml2020-06-176-101/+219
|
* fix streaming request bodies, terminate fetch if the body stream errorsGregory Terzian2020-06-163-32/+177
|
* net: fix re-extracting stream upon re-directGregory Terzian2020-06-121-2/+2
|
* net: Add unit test for accepting a self-signed cert.Josh Matthews2020-06-093-9/+103
|
* net: Use a POST request for allowing certs temporarily.Josh Matthews2020-06-092-15/+23
|
* net: Add option to temporarily accept certs that failed the handshake.Josh Matthews2020-06-092-12/+40
|
* net: Allow SSL websockets to use dynamic list of certs as well.Josh Matthews2020-06-093-6/+19
|
* net: Pass certs that fail the SSL handshake out of the network layer.Josh Matthews2020-06-094-37/+126
|
* net: Add an SSL verification callback to support checking a dynamic list of ↵Josh Matthews2020-06-093-11/+60
| | | | certs.
* partially integrate streaming request bodies with http re-directGregory Terzian2020-06-042-7/+2
|
* net: use an empty body for the null body caseGregory Terzian2020-06-041-63/+58
|
* net: update list of bad portsGregory Terzian2020-06-041-4/+4
|
* net: don't set content-length in obtain responseGregory Terzian2020-06-041-14/+1
|
* integrate readablestream with fetch and blobGregory Terzian2020-06-042-16/+120
|
* Auto merge of #26678 - gterzian:shutdown_net_runtime, r=Manishearthbors-servo2020-05-302-5/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Net: shutdown async runtime on exit <!-- Please describe your changes on the following line: --> Shutting down the async runtime as part of exiting the core resource 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. -->
| * net: shutdown async runtime on exitGregory Terzian2020-05-302-5/+11
| |
* | Remove some unused dependency declarationsSimon Sapin2020-05-291-0/+3
|/ | | | | | This is based on compiling with `RUSTFLAGS="-W unused_crate_dependencies"` (CC https://github.com/rust-lang/rust/pull/72342) in a recent Nightly (more so than used in the tree as of this writing, CC https://github.com/servo/servo/issues/26661 for work-arounds). Only one crate is actually removed from the dependency graph, others are still dependended from other places.
* Remove duplicate Host header from initial websocket request.Josh Matthews2020-05-221-22/+0
|
* make is_origin_trustworthy a method of ServoUrl + fix localhost handlingAlexandrov Sergey2020-05-191-25/+3
|
* check http_state in determine_request_referrerAlexandrov Sergey2020-05-196-44/+94
|
* Auto merge of #26430 - Eijebong:referrer-policy, r=jdmbors-servo2020-05-121-1/+7
|\ | | | | | | | | | | Implement referrer policy Fixes #26270
| * Implement referrer policyBastien Orivel2020-05-051-1/+7
| | | | | | | | Fixes #26270
* | Convert all uses of UpdateResources api to use webrender transactions.Josh Matthews2020-05-111-3/+1
| |
* | Don't send a load event when a loaded image is actually the placeholderBastien Orivel2020-05-081-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | The image cache returns an `ImageCacheResult::ImageAvailable `the second time you try getting the placeholder. This means that in some cases, the loading of an image would fail, then the same image would get fetched from the cache, the placeholder would be loaded from that but would be seen as a normal image, firing a load event. This made the tests in `fetch/cross-origin-resource-policy/image-loads.html` fail depending on their order.
* | Implement cross origin resource policy checkBastien Orivel2020-05-081-1/+91
| | | | | | | | | | I removed the window getter usage from those tests as servo does not support that yet.
* | Properly set the url on the Response object when the response is an ↵Bastien Orivel2020-05-061-1/+1
| | | | | | | | opaqueredirect
* | Auto merge of #26407 - mrobinson:animation-restyle-model, r=jdmbors-servo2020-05-061-16/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Have animations more closely match the HTML spec These two commits do two major things: **Have animations ticks trigger a restyle**: This corrects synchronization issues with animations, where the values used in layout are out of sync with what is returned by `getComputedStyle`. **Tick the animation timer in script according to spec**: This greatly reduces the flakiness of animation and transitions tests. Fixes #13865. <!-- 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 - [ ] These changes fix #13865 <!-- 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. -->
| * | Use a restyle for animation ticksMartin Robinson2020-05-051-16/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | This change corrects synchronization issues with animations, by reworking the animation processing model to do a quick restyle and incremental layout when ticking animations. While this change adds overhead to animation ticks, the idea is that this will be the fallback when synchronous behavior is required to fulfill specification requirements. In the optimistic case, many animations could be updated and applied off-the-main-thread and then resynchronized when style information is queried by script. Fixes #13865.
* | Remove outdated HTTP redirection handling code.Josh Matthews2020-05-051-27/+3
| |