aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/tests
Commit message (Collapse)AuthorAgeFilesLines
* Move non-gfx things out of `gfx_traits` and create a `base` crate (#32296)Martin Robinson2024-05-173-3/+3
| | | | | | | | | | | | | | | | | | | | | | | For a long time, `gfx_traits` has held a lot of things unrelated to graphics and also unrelated to the `gfx` crate (which is mostly about fonts). This is a cleanup which does a few things: 1. Move non `gfx` crate things out of `gfx_traits`. This is important in order to prevent dependency cycles with a different integration between layout, script, and fonts. 2. Rename the `msg` crate to `base`. It didn't really contain anything to do with messages and instead mostly holds ids, which are used across many different crates in Servo. This new crate will hold the *rare* data types that are widely used. Details: - All BackgroundHangMonitor-related things from base to a new `background_hang_monitor_api` crate. - Moved `TraversalDirection` to `script_traits` - Moved `Epoch`-related things from `gfx_traits` to `base`. - Moved `PrintTree` to base. This should be widely useful in Servo. - Moved `WebrenderApi` from `base` to `webrender_traits` and renamed it to `WebRenderFontApi`.
* Backout `Host`-header related change from #32024. (#32093)Philip Lamb2024-04-162-11/+0
| | | #32024 broke a different set of nginx sites, and a more sophisticated fix for the case of a missing HTTP 1.1 `Host` header is required.
* Fixes for HTTP header compliance. (#32024)Philip Lamb2024-04-112-19/+26
| | | | | - Fix 400 errors from nginx in response to Servo requests by implementing conformant albeit non-normative removal of whitespace from `Accept` and `Accept-Language` HTTP headers. (To match behaviour of Firefox, Safari, and Chrome) https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.2 - Provide `Host` header as REQUIRED by HTTP protocol https://www.rfc-editor.org/rfc/rfc9110#field.host - Update tests.
* clippy: fix warnings in components/net (#31564)eri2024-03-104-8/+8
| | | | | | | * clippy: fix some warnings in components/net * fix: review comments * fix: tidy
* Revert "Replace time with std::time in components/net (#31079)" (#31120)Martin Robinson2024-01-181-26/+8
| | | This reverts commit 580062228bb083ccdc2144a43491bc4f916c57ad.
* Replace time with std::time in components/net (#31079)Taym Haddadi2024-01-171-8/+26
| | | | | | | | | | | | | * Replace time with std::time in components/net Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> * Fix cookie::test_sort_order test Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com> --------- Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-1110-58/+67
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-3/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Switch to rustls and webpki-roots (#30025)Martin Robinson2023-08-083-102/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change replaces OpenSSL with rustls and also the manually curated CA certs file with webpki-roots (effectively the same thing, but as a crate). Generally speaking the design of the network stack is the same. Changes: - Code around certificate overrides needed to be refactored to work with rustls so the various thread-safe list of certificates is refactored into `CertificateErrorOverrideManager` - hyper-rustls takes care of setting ALPN protocols for HTTP requests, so for WebSockets this is moved to the WebSocket code. - The safe set of cypher suites is chosen, which seem to correspond to the "Modern" configuration from [1]. This can be adjusted later. - Instead of passing a string of PEM CA certificates around, an enum is used that includes parsed Certificates (or the default which reads them from webpki-roots). - Code for starting up an SSL server for testing is cleaned up a little, due to the fact that the certificates need to be overriden explicitly now. This is due to the fact that the `webpki` crate is more stringent with self-signed certificates than SSL (CA certificates cannot used as end-entity certificates). [2] 1. https://wiki.mozilla.org/Security/Server_Side_TLS 2. https://github.com/briansmith/webpki/issues/114 Fixes #7888. Fixes #13749. Fixes #26835. Fixes #29291.
* Update uuidMartin Robinson2023-06-261-1/+1
| | | | | This is required to use the new version of gleam and update ipc-channels without duplicating the dependency in the future.
* Upgrade HyperNaveen Gattu2022-01-165-93/+114
|
* Non-blocking network IONaveen Gattu2021-12-233-14/+32
|
* Fix tidy error.Josh Matthews2021-05-281-1/+0
|
* Disable warnings on windows.Josh Matthews2021-05-281-0/+2
|
* Disable fetch tests on windows.Josh Matthews2021-05-271-2/+1
|
* Don't error on unused imports.Josh Matthews2021-05-271-0/+2
|
* Disable more unit tests for windows.Josh Matthews2021-05-271-0/+2
|
* Disable all http_loader unit tests on windows.Josh Matthews2021-05-271-0/+2
|
* Disable intermittent unit test.Josh Matthews2021-05-261-0/+1
|
* Disable another intermittent test on windows.Josh Matthews2021-05-221-0/+1
|
* Disable intermittent test on windows.Josh Matthews2021-05-221-0/+1
|
* 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
|
* 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
* Remove unit test that triggers frequent intermittent failure.Josh Matthews2020-07-271-78/+2
|
* 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
| |
* | Update referrer computationUtsav Oza2020-07-021-26/+10
|/ | | | | | | | 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-174-85/+215
|
* fix streaming request bodies, terminate fetch if the body stream errorsGregory Terzian2020-06-161-3/+4
|
* net: Add unit test for accepting a self-signed cert.Josh Matthews2020-06-092-5/+99
|
* partially integrate streaming request bodies with http re-directGregory Terzian2020-06-041-5/+1
|
* integrate readablestream with fetch and blobGregory Terzian2020-06-041-4/+35
|
* check http_state in determine_request_referrerAlexandrov Sergey2020-05-194-31/+44
|
* Upgrade to rustc 1.44.0-nightly (42abbd887 2020-04-07)Simon Sapin2020-04-091-1/+1
|
* add a fetch token for blob urlsGregory Terzian2020-02-213-2/+5
|
* add a core resource thread-poolGregory Terzian2020-02-144-18/+31
|
* file: and about: are now opaque-filtered responsesPatrick Shaughnessy2020-02-111-9/+28
|
* Fix HSTSJan Andre Ikenmeyer2020-01-072-2/+65
|
* Let hyper automatically add a host header for HTTP/1Jan Andre Ikenmeyer2019-12-162-14/+1
|
* Add ALPN and signature algorithms to OpenSSL configJan Andre Ikenmeyer2019-11-302-22/+15
|
* Limit referer header value length to 4096teapotd2019-10-241-1/+46
|
* Move ResourceFetchTiming into ArcJaved Nissar2019-09-182-2/+4
| | | | | | | | | | | 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.
* Update hyper to 0.12.33.Josh Matthews2019-08-291-1/+2
|
* Pass the event loop waker into WebXRAlan Jeffrey2019-07-251-1/+1
|
* Auto merge of #23494 - gterzian:improve_http_cache, r=jdmbors-servo2019-06-222-25/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| |