aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/resource_thread.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-31/+30
| | | | | * 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-38/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Make sender and receiver name more coherentatbrakhi2023-05-081-8/+8
|
* Upgrade HyperNaveen Gattu2022-01-161-77/+56
|
* Non-blocking network IONaveen Gattu2021-12-231-38/+52
|
* Make reload button clear the network cache.Josh Matthews2020-07-271-0/+3
|
* net: Replace ws-rs with async-tungstenite.Josh Matthews2020-07-081-3/+4
|
* net: Allow SSL websockets to use dynamic list of certs as well.Josh Matthews2020-06-091-0/+2
|
* net: Pass certs that fail the SSL handshake out of the network layer.Josh Matthews2020-06-091-10/+26
|
* net: Add an SSL verification callback to support checking a dynamic list of ↵Josh Matthews2020-06-091-6/+12
| | | | certs.
* net: shutdown async runtime on exitGregory Terzian2020-05-301-2/+5
|
* allow for a service worker network mediator per originGregory Terzian2020-04-051-5/+7
|
* add a fetch token for blob urlsGregory Terzian2020-02-211-1/+34
|
* add a core resource thread-poolGregory Terzian2020-02-141-8/+143
|
* Cookies are now expired immediately before each lookupPatrick Shaughnessy2020-01-241-0/+2
|
* Fix some warnings in future Rust nightliesSimon Sapin2020-01-021-13/+4
|
* Let hyper automatically add a host header for HTTP/1Jan Andre Ikenmeyer2019-12-161-3/+3
|
* Disable H2 ALPN.Josh Matthews2019-12-131-3/+3
|
* Add ALPN and signature algorithms to OpenSSL configJan Andre Ikenmeyer2019-11-301-3/+3
|
* Use HSTS preload list for private HttpState, too.Jan Andre Ikenmeyer2019-11-101-6/+18
|
* continue messageport, transferable, postmessage optionsGregory Terzian2019-10-191-2/+2
|
* http-cache: wait on pending storesGregory Terzian2019-10-081-0/+1
| | | | and various small improvements
* 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.
* Responding to review commentsAlan Jeffrey2019-09-111-1/+2
|
* Prefetch img and scripts during parsingAlan Jeffrey2019-09-101-3/+8
|
* Net: removed opts::get() usageoneturkmen2019-06-061-8/+27
|
* Auto merge of #22769 - gterzian:use_thread_pool_in_resource_thread, r=noxbors-servo2019-04-191-36/+37
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a threadpool for fetch <!-- 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 #22768 (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/22769) <!-- Reviewable:end -->
| * use a threadpool for fetchGregory Terzian2019-04-181-36/+37
| |
* | Add webdriver deletecookies functionaditj2019-04-191-0/+8
|/
* Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-6/+6
|
* refactored performance timing to align with updated specddh2018-11-201-4/+11
| | | | | | | | | | | | 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-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-3/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-1/+2
|
* Reorder importsPyfisch2018-11-061-8/+8
|
* Sort `use` statementsSimon Sapin2018-11-061-5/+5
|
* `cargo fix --edition`Simon Sapin2018-11-061-12/+12
|
* Rustfmt net cratePyfisch2018-11-031-142/+185
|
* Update hyper to 0.12Bastien Orivel2018-11-011-6/+5
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-2/+2
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-1/+1
| | | | 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-1/+1
|
* refactor(filemanager): uses embedderproxy directlyOJ Kwon2018-04-271-12/+12
|
* refactor(filemanager): use filemanagermsg to request embedderOJ Kwon2018-04-271-6/+6
|
* refactor(filemanager): remove awareness to ui behaviorOJ Kwon2018-04-271-3/+1
|
* refactor(filemanager): send constellationmsg to select fileOJ Kwon2018-04-271-2/+2
|
* refactor(resourcethread): expose constellationmsg channelOJ Kwon2018-04-271-8/+13
|
* delegate resource reading to embedderPaul Rouget2018-04-271-9/+11
|