aboutsummaryrefslogtreecommitdiffstats
path: root/components/net
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
| |
* | Fix a mistake in the redirect fetch codeBastien Orivel2020-05-051-1/+3
| | | | | | | | The spec says to ignore both HEAD and GET in step 11
* | Strip request-body-header when redirecting from a POST to GETBastien Orivel2020-05-051-1/+14
|/ | | | | | | | This doesn't change any expectation because we're not setting response.redirected properly so all the tests fail later on when it's asserted to be true. Fixes #25257
* More Cargo.toml updatesatouchet2020-04-251-17/+17
|
* Don't continually re-request completed requests that had load errors.Josh Matthews2020-04-171-12/+21
|
* Refactor ImageCache::find_image_or_metadata API.Julien Tregoat2020-04-171-30/+75
|
* Upgrade to rustc 1.44.0-nightly (42abbd887 2020-04-07)Simon Sapin2020-04-092-2/+2
|
* allow for a service worker network mediator per originGregory Terzian2020-04-051-5/+7
|
* Update content-security-policy.Josh Matthews2020-03-252-1/+2
|
* Remove syn 0.15 from our crate graph (fixes #24421)Anthony Ramine2020-03-051-2/+4
| | | | | | | | | | This required bumps of: * gleam * image * rust-webvr * webrender * webxr
* Auto merge of #25842 - servo-wpt-sync:wpt_update_25-02-2020, r=jdmbors-servo2020-02-251-7/+17
|\ | | | | | | | | | | | | | | Sync WPT with upstream (25-02-2020) Automated downstream sync of changes from upstream as of 25-02-2020. [no-wpt-sync] r? @servo-wpt-sync
| * Don't panic when dealing with disconnected websockets.Josh Matthews2020-02-251-7/+17
| |
* | Auto merge of #25740 - gterzian:per_fetch_filemanager_handle, r=Manishearthbors-servo2020-02-256-32/+152
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per fetch file token for blob url <!-- Please describe your changes on the following line: --> Depends on https://github.com/servo/servo/pull/25724 First step of https://github.com/servo/servo/issues/25226 --- <!-- 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. -->
| * add a fetch token for blob urlsGregory Terzian2020-02-216-32/+152
| |
* | Update ipc-channel and crossbeam-channel.Josh Matthews2020-02-202-3/+3
| |
* | Auto merge of #25768 - pshaughn:corsstar, r=jdmbors-servo2020-02-141-9/+10
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle access-control header wildcards <!-- Please describe your changes on the following line: --> We were checking Access-Control-Expose-Headers for wildcards inconsistently and then discarding the result; this fixes the check and its use, passing the WPT test for having a wildcard there. --- <!-- 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 #24913 <!-- 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. -->
| * Handle access-control header wildcardsPatrick Shaughnessy2020-02-141-9/+10
| |
* | Auto merge of #25724 - gterzian:use_rayon_for_file_threads, r=Manishearthbors-servo2020-02-147-219/+399
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use rayon for file operations off the main resource thread FIX #25723 --- <!-- 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. -->
| * | add a core resource thread-poolGregory Terzian2020-02-147-219/+399
| |/
* | Auto merge of #25739 - servo:rustup, r=paulrougetbors-servo2020-02-142-3/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | Upgrade to rustc 1.43.0-nightly (5d04ce67f 2020-02-13) ~This Nightly doesn’t have rustfmt, so merging this PR is blocked on https://github.com/rust-lang/rust/issues/68917 and upgrading to a Nightly with the fix.~ Fixes #25550
| * | Use the `matches!` macro from the standard librarySimon Sapin2020-02-122-3/+0
| |/
* | Auto merge of #25736 - Darkspirit:ossl, r=jdmbors-servo2020-02-143-1/+19
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add OpenSSL 1.1.1 build check, Update HSTS Preload list * This variant also works with cross-compilation. PR should fail in CI on Android at first: The net crate successfully compiled after switching to OpenSSL 1.1.1 on Android. It seemed openssl.sh doesn't need any changes.(?) * Updated HSTS preload list and public suffix list. * Configured OpenSSL [SECLEVEL=2](https://www.openssl.org/docs/man1.1.1/man3/SSL_CTX_set_security_level.html) like [Debian](https://wiki.debian.org/ContinuousIntegration/TriagingTips/openssl-1.1.1) Stable: > As a result RSA, DSA and DH keys shorter than [2048 bits](https://github.com/cabforum/documents/blob/16a5a9bb78a193266f8d1465de1ee5a1acf5d184/docs/BR.md#6153-subscriber-certificates) and ECC keys shorter than 224 bits are prohibited. * Although all other crates compile I generally get a `libscript-fe019dd3e0a4e06d.rlib: bad extended name index at 8` error on simpleservo_jniapi, I guess Debian Testing is too new and I just haven't found the right steps so far. ./mach build -d --android ``` = note: /home/darkspirit/github/servo/android-toolchains/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld.gold: error: /home/darkspirit/github/servo/target/android/armv7-linux-androideabi/debug/deps/libscript-fe019dd3e0a4e06d.rlib: bad extended name index at 8 clang: error: linker command failed with exit code 1 (use -v to see invocation) toolchain: /home/darkspirit/github/servo/android-toolchains/ndk/toolchains/llvm/prebuilt/linux-x86_64/bin libs dir: /home/darkspirit/github/servo/android-toolchains/ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a sysroot: /home/darkspirit/github/servo/android-toolchains/ndk/platforms/android-21/arch-arm targetdir: /home/darkspirit/github/servo/target/android/armv7-linux-androideabi/debug/build/simpleservo_jniapi-26ef18debb5b3630/out/../../.. ``` - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #25708, fix #25619.
| * Configure OpenSSL SECLEVEL=2Jan Andre Ikenmeyer2020-02-121-1/+1
| |
| * Add build check for OpenSSL 1.1.1 requirementJan Andre Ikenmeyer2020-02-122-0/+18
| |
* | file: and about: are now opaque-filtered responsesPatrick Shaughnessy2020-02-112-17/+29
|/