aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/websocket_loader.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use `ROUTER::add_typed_route` instead of `ROUTER::add_route` everywhere (#33866)Simon Wülker2024-10-181-3/+3
| | | | | | | | | | | | | * Use ROUTER::add_typed_route where possible Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update webxr, media and ipc-channel Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* dependencies: Upgrade `cookie` and rename Servo's `Cookie` to `ServoCookie` ↵Martin Robinson2024-07-261-2/+2
| | | | | | | | | | | | | | (#32861) This changes updates to the new version of the `cookie` crate in Servo which no longer uses the old `time@0.1` data types. This requires using a new version of `time` while we transition off of the old one. This is the first step in that process. In addition, the overloading of the `cookie::Cookie` name was causing a great deal of confusion, so I've renamed the Servo wrapper to `ServoCookie` like we do with `ServoUrl`. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* Net: fold websocket and http tokio runtime into one (#31771)tannal2024-03-211-11/+2
| | | | | | | | | * net: use the same tokio runtime in websocket loader #31648 * readability * license
* clippy: fix warnings in components/net (#31564)eri2024-03-101-3/+3
| | | | | | | * clippy: fix some warnings in components/net * fix: review comments * fix: tidy
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-11/+11
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-0/+2
| | | | | | | | | | | * 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-23/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* bump base64 from 0.10 to 0.21 (#29804)Tuna2023-08-021-1/+2
| | | | | | | | | * bump base64 from 0.10 to 0.21 * Fix configuration of bitflags --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Update tungsteniteFabrice Desré2023-05-201-59/+43
|
* Upgrade HyperNaveen Gattu2022-01-161-3/+3
|
* net: Remove explicit Host header from websocket connection.Josh Matthews2020-07-161-26/+1
|
* net: Replace ws-rs with async-tungstenite.Josh Matthews2020-07-081-241/+435
|
* net: Allow SSL websockets to use dynamic list of certs as well.Josh Matthews2020-06-091-2/+12
|
* net: Pass certs that fail the SSL handshake out of the network layer.Josh Matthews2020-06-091-2/+3
|
* net: Add an SSL verification callback to support checking a dynamic list of ↵Josh Matthews2020-06-091-2/+2
| | | | certs.
* Remove duplicate Host header from initial websocket request.Josh Matthews2020-05-221-22/+0
|
* Don't panic when dealing with disconnected websockets.Josh Matthews2020-02-251-7/+17
|
* Cookie header values can be utf8Patrick Shaughnessy2020-01-281-1/+1
|
* Cookies are now expired immediately before each lookupPatrick Shaughnessy2020-01-241-0/+1
|
* Fix HSTSJan Andre Ikenmeyer2020-01-071-0/+17
|
* Add ALPN and signature algorithms to OpenSSL configJan Andre Ikenmeyer2019-11-301-3/+4
|
* use ipc router to handle ws dom-action messagesGregory Terzian2019-10-091-4/+7
|
* Upgrade headers, headers-core, and hyper_serde.Josh Matthews2019-06-131-1/+1
|
* Net: removed opts::get() usageoneturkmen2019-06-061-2/+4
|
* Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-13/+15
|
* Remove redundant `.clone()`sShotaro Yamada2018-12-111-1/+1
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-4/+7
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-5/+5
|
* Rustfmt net cratePyfisch2018-11-031-104/+133
|
* Update hyper to 0.12Bastien Orivel2018-11-011-15/+20
|
* The WS protocols should be case sensitive, not insensitiveBastien Orivel2018-08-161-3/+3
|
* Handle secure websocketsBastien Orivel2018-08-161-0/+29
| | | | Fixes #20816
* Replace servo-websocket by wsBastien Orivel2018-08-151-603/+151
| | | | | | This is heavily based on previous work done in #16012. Fixes #14517
* Update servo-websocket to 0.21Bastien Orivel2018-03-151-18/+33
|
* Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)Simon Sapin2017-11-091-1/+0
|
* Merge functionality of WebsocketConnect into FetchKeith Yeung2017-10-241-23/+24
|
* Merge request type and destinationKeith Yeung2017-10-231-3/+3
|
* Rename basic fetch to scheme fetchKeith Yeung2017-08-081-3/+3
|
* Move hosts module into net crate. Remove obsolete functions.Josh Matthews2017-04-061-1/+1
|
* Pass the url by value to websocket_loader::main_fetchAnthony Ramine2017-04-051-6/+6
|
* Use set_default_accept in websocket_loaderAnthony Ramine2017-04-041-17/+5
|
* Properly set Accept-Language in websocket_loaderAnthony Ramine2017-04-041-2/+2
|
* Use cookie::from_cookie_string in websocket_loaderAnthony Ramine2017-04-041-5/+2
|
* Pass http_state around in websocket_loaderAnthony Ramine2017-04-031-18/+17
|
* Move Arc out of HttpStateAnthony Ramine2017-04-031-10/+10
|
* Update Hyper and OpenSSLddh2017-03-311-2/+5
|
* Disable wss supportAnthony Ramine2017-03-311-38/+24
| | | | | | None of the existing websocket libraries are currently able to cope with openssl 0.9 and be featureful, so we are disabling wss for now to land openssl 0.9.
* Make the WebSocket handshake ourselves to ease switching libsAnthony Ramine2017-03-291-67/+554
| | | | | | We need to switch to tungstenite to finally update openssl, this commit rewrites the whole websocket infrastructure to properly follow the Fetch spec and to make switching to a different websocket library easier.