aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/tests/main.rs
Commit message (Collapse)AuthorAgeFilesLines
* make protocol handlers registrable (#33104)webbeef2024-08-221-0/+2
| | | Signed-off-by: webbeef <me@webbeef.org>
* Replace the lazy_static crate with std::sync::LazyLock in components/net ↵Hayashi Mikihiro2024-08-141-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | (#33046) * replace in net/fetch/methods.rs Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * replace in net/hosts.rs Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * replace in net/async_runtime.rs Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * replace in net/tests/main.rs Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> * remove lazy_static crate from components/net Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com> --------- Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
* clippy: fix warnings in components/net (#31564)eri2024-03-101-1/+1
| | | | | | | * clippy: fix some warnings in components/net * fix: review comments * fix: tidy
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-7/+7
| | | | | * 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-081-38/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Upgrade HyperNaveen Gattu2022-01-161-67/+106
|
* Non-blocking network IONaveen Gattu2021-12-231-5/+9
|
* Fix tidy error.Josh Matthews2021-05-281-1/+0
|
* Disable warnings on windows.Josh Matthews2021-05-281-0/+2
|
* net: Add unit test for accepting a self-signed cert.Josh Matthews2020-06-091-2/+7
|
* 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-211-0/+2
|
* add a core resource thread-poolGregory Terzian2020-02-141-4/+7
|
* Add ALPN and signature algorithms to OpenSSL configJan Andre Ikenmeyer2019-11-301-8/+8
|
* Move ResourceFetchTiming into ArcJaved Nissar2019-09-181-1/+2
| | | | | | | | | | | 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
|
* http-cache: re-enable and update testGregory Terzian2019-06-221-0/+1
|
* refactored performance timing to align with updated specddh2018-11-201-5/+13
| | | | | | | | | | | | refactoring with ResourceFetchMetadata implemented deprecated window.timing functionality created ResourceTimingListener trait fixed w3c links in navigation timing updated include.ini to run resource timing tests on ci
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-4/+4
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-25/+1
|
* Reorder importsPyfisch2018-11-061-4/+4
|
* Rustfmt net cratePyfisch2018-11-031-41/+49
|
* Update hyper to 0.12Bastien Orivel2018-11-011-10/+102
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-1/+2
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* move msg to embedder_traits, use in script, handle send error in embedderGregory Terzian2018-05-231-2/+1
|
* test(net): update test casesOJ Kwon2018-04-271-5/+32
|
* test(net): update test casesOJ Kwon2018-04-271-1/+4
|
* delegate resource reading to embedderPaul Rouget2018-04-271-5/+3
|
* Merge net and net_testsAnthony Ramine2018-01-201-0/+112