aboutsummaryrefslogtreecommitdiffstats
path: root/components/net_traits/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-6/+6
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-11/+5
| | | | | | | | | | | * 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>
* constellation: crash to a new “sad tab” error page (#30290)Delan Azabani2023-09-061-1/+3
| | | | | | | | | | | | | | | | | | | | | * constellation: crash to a new “sad tab” page * check in resources/crash.html * use a separate enum variant instead of keying on reason * fmt + tidy * rename Resource::Crash to Resource::CrashHTML * clean up crash page and add details (reason + backtrace) * avoid repeating crash errors in script::script_thread warn log * make new LoadData init more idiomatic * clarify comments and new fields * fix doc comment style
* Switch to rustls and webpki-roots (#30025)Martin Robinson2023-08-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove net from dependencies2shiori172023-03-201-0/+5
|
* Upgrade HyperNaveen Gattu2022-01-161-2/+2
|
* Make reload button clear the network cache.Josh Matthews2020-07-271-0/+6
|
* Propagate referrer policy during about:srcdoc page loadUtsav Oza2020-07-021-0/+34
|
* net: Add option to temporarily accept certs that failed the handshake.Josh Matthews2020-06-091-0/+5
|
* net: Pass certs that fail the SSL handshake out of the network layer.Josh Matthews2020-06-091-3/+3
|
* net: Treat SSL handshake errors differently from other hyper errors.Josh Matthews2020-06-091-2/+7
|
* Convert all uses of UpdateResources api to use webrender transactions.Josh Matthews2020-05-111-4/+7
|
* Auto merge of #26450 - ↵bors-servo2020-05-071-0/+16
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PeterZhizhin:add_referrerpolicy_to_list_of_relevant_mutations, r=jdm Add referrerpolicy to list of relevant mutations <!-- Please describe your changes on the following line: --> `img.referrerPolicy` change now mutates the image. Not all `referrerPolicy` attribute changes result in an image update event. Only valid changes are reflected. All referrerpolicy tests inside `relevant-mutations.html` WPT test now pass. --- <!-- 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 #26388 <!-- Either: --> - [x] These have tests: ``` ./mach test-wpt tests/wpt/web-platform-tests/html/semantics/embedded-content/the-img-element/relevant-mutations.html ```
| * Added referrerpolicy as relevant mutation for imgPeterZhizhin2020-05-071-0/+16
| | | | | | | | | | | | | | | | This fixes #26388. referrerPolicy is now calls onload for image mutations. Not all referrerPolicy attribute changes result in an image update event. Only valid changes are reflected. Referrerpolicy tests now pass.
* | Properly set the url on the Response object when the response is an ↵Bastien Orivel2020-05-061-1/+1
| | | | | | | | opaqueredirect
* | Fix the redirected attribute for ResponseBastien Orivel2020-05-051-0/+3
|/
* allow for a service worker network mediator per originGregory Terzian2020-04-051-3/+3
|
* Fix some warnings in future Rust nightliesSimon Sapin2020-01-021-3/+2
|
* Use non-IPC webrender API over explicit IPC channels.Josh Matthews2019-11-271-0/+30
|
* Add start_time to resource timing.Tommy Lincoln2019-10-201-1/+29
|
* implemented secure_connection_startTomas Di Vito2019-10-101-0/+6
|
* Add PerformanceResourceTiming: TimingAllowCheckJaved Nissar2019-09-181-0/+22
| | | | The purpose of this commit is to implement https://w3c.github.io/resource-timing/#dfn-timing-allow-check
* Responding to review commentsAlan Jeffrey2019-09-111-1/+6
|
* Prefetch img and scripts during parsingAlan Jeffrey2019-09-101-0/+15
|
* Update to percent-encoding 2.0Simon Sapin2019-08-171-8/+23
|
* Update to url 2.0Simon Sapin2019-08-171-5/+2
|
* ISSUE-21257: set redirectEnd on PerformanceResourceTimingThomas Delacour2019-07-191-1/+12
|
* Add PerformanceResourceTiming: domainLookupStartKamil Niski2019-06-301-0/+4
| | | | | | | | | | | | | | Remove wpt tests for domainLookupStart Set ResourceAttribute::DomainLookupTime Move DomainLookupStart timing before HTTP request initialization Change label of domainLookupStart TAO zero test to PASS Adjust the from_resource_timing method to initialize domain_lookup_start value Restore domainLookupsStart test
* Upgrade headers, headers-core, and hyper_serde.Josh Matthews2019-06-131-2/+1
|
* Remove unused code from net and net_traits cratesest312019-06-021-1/+0
|
* Auto merge of #23323 - nehalem501:master, r=jdmbors-servo2019-05-171-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement connectStart in PerformanceResourceTiming <!-- Please describe your changes on the following line: --> - Added connectStart where needed (```ResourceFetchTiming```, ```ResourceAttribute```) in ```components/net_traits/lib.rs ``` - Before calling ```client.request``` in ```obtain_response```, we now add the ```connectStart``` attribute (```components/net/http_loader.rs```) - Updated tests to reflect those changes --- <!-- 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 #21261 (at least partially) <!-- 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. --> <!-- 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/23323) <!-- Reviewable:end -->
| * Add connectStart in PerformanceResourceTimingTomek LECOCQ2019-05-031-1/+4
| |
* | Create resource timing entry for sync network fetchpylbrecht2019-05-081-32/+0
|/
* ISSUE-21263: implemented attribute setting in http loaderThomas Delacour2019-04-231-1/+4
|
* Add webdriver deletecookies functionaditj2019-04-191-0/+1
|
* Implementing the builder pattern for RequestInitLucas Fantacuci2019-04-101-5/+5
|
* Add connectEnd attribute to PerformanceResourceTiming interfacepylbrecht2019-04-041-1/+4
|
* Add PerformanceResourceTiming: redirectStartkkpoon2019-02-011-1/+17
|
* Added fetch_start functionality in http_fetchAdit Jain2019-01-241-0/+4
| | | | | | Added spec link for webidl. Added fetch_start functionality to PRT . Changed the fetch_start location
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-1/+1
|
* Use Mime::get_paramAnthony Ramine2018-12-121-5/+3
|
* Change Response's statusText default value from 'Ok' to an empty stringGeorge Roman2018-11-271-1/+1
|
* refactored performance timing to align with updated specddh2018-11-201-5/+79
| | | | | | | | | | | | 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
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-18/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* Sort `use` statementsSimon Sapin2018-11-061-3/+3
|
* `cargo fix --edition`Simon Sapin2018-11-061-6/+6
|
* Rustfmt net_traits cratePyfisch2018-11-031-53/+84
|
* Update hyper to 0.12Bastien Orivel2018-11-011-32/+51
|