aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/hsts.rs
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Replace time with std::time in components/net (#31079)" (#31120)Martin Robinson2024-01-181-17/+9
| | | This reverts commit 580062228bb083ccdc2144a43491bc4f916c57ad.
* Replace time with std::time in components/net (#31079)Taym Haddadi2024-01-171-9/+17
| | | | | | | | | | | | | * 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-111-2/+3
| | | | | * 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>
* Remove customised implementation of hsts headers. (#30046)shanehandley2023-07-311-93/+9
| | | This looks to have originally been implemented due to missing functionality in the headers crate, which has since been added and released.
* Fix HSTSJan Andre Ikenmeyer2020-01-071-9/+152
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-2/+0
| | | | A `crate_name::foo` path always works in 2018
* Reorder importsPyfisch2018-11-061-1/+1
|
* Rustfmt net cratePyfisch2018-11-031-11/+23
|
* Add lots of derived Debug implsAlan Jeffrey2018-10-291-2/+2
|
* delegate resource reading to embedderPaul Rouget2018-04-271-10/+5
|
* Fix indentation errors in servo rust code that tidy now finds.coalman2017-04-181-1/+1
|
* Introduce HstsList::switch_known_hsts_host_domain_url_to_httpsAnthony Ramine2017-04-051-0/+11
|
* Kill hsts::secure_urlAnthony Ramine2017-04-051-13/+0
|
* Use serde_json to persist cookies in the net crateAnthony Ramine2017-02-221-5/+5
|
* Refactor HSTSList to use HashMapRaghav2016-12-301-29/+45
| | | | | | | | | | | Refactored HSTSList to use HashMap, where the key of HashMap is the base domain. Every time when we check if a host is secure, we find the base domain of the host and get a vector of HSTS entries associated with the base domain. While this will not give O(1) look up time, we would have a smaller list to iterate for every lookup. I have added one unit test to validate HashMap changes.
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Report use statements that use {} with only one entryCullen Rhodes2016-05-271-2/+2
|
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-6/+4
|
* Rename 'HSTS*' structures to 'Hsts*'.Corey Farwell2016-04-171-14/+14
| | | | | | "In CamelCase, acronyms count as one word: use Uuid rather than UUID." -- https://doc.rust-lang.org/style/style/naming/README.html
* Refactor Servo HSTS file loading, hard-fail if can't load.Corey Farwell2016-04-171-6/+7
| | | | | | | Use constructor pattern instead of separate utility function. Instead of allowing the Servo HSTS file loading to silently fail, we should expect that file to always exist and be formatted correctly.
* Move UTF8 bytes handling into generic constructor.Corey Farwell2016-04-171-8/+8
| | | | Separate from Servo specific logic.
* Rename constructor to match convention, add doc comment.Corey Farwell2016-04-171-2/+3
|
* Make `read_resource_file` param simpler and more idiomatic.Corey Farwell2016-04-161-1/+1
| | | | | `<P: AsRef<Path>>` is also what `File::open` uses as a generic type for the parameter.
* Remove dependency on regex_macrosSimon Sapin2015-11-241-2/+3
| | | | | This reduces the amount of code using unstable features that we depend on. The hand-written IP address parser is probably just as fast.
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-2/+1
|
* Add plugins for compositing and net crates #7699Maciej Skrzypkowski2015-09-221-1/+1
| | | | | Changed to_string calls to to_owned calls where was a need.
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Use hosts-replaced URL only when loading resourcesJames Graham2015-08-051-2/+1
|
* Uses the approach suggested by @SimonSapin for changing Url schemeSam Gibson2015-07-221-1/+5
| | | | servo/rust-url#61
* Moves HSTS includeSubdomains enum to net_traitsSam Gibson2015-07-221-8/+3
|
* Responds to more code review feedbackSam Gibson2015-07-221-6/+7
| | | | | * Use regex from resource task * Don't have an option of an HSTS list, default to empty
* Moves the HSTS replacement code to http_loaderSam Gibson2015-07-221-14/+6
| | | | This respects STS for redirects as well.
* Moves HSTS code to it's own moduleSam Gibson2015-07-221-0/+145