aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/cookie_storage.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-3/+4
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Remove useless `use crate_name;` imports.Simon Sapin2018-11-081-1/+0
| | | | A `crate_name::foo` path always works in 2018
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-4/+2
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* Format remaining filesPyfisch2018-11-061-4/+3
|
* `cargo fix --edition`Simon Sapin2018-11-061-2/+2
|
* Rustfmt net cratePyfisch2018-11-031-26/+46
|
* Update hyper to 0.12Bastien Orivel2018-11-011-6/+6
|
* Replace a boxed iterator with impl TraitMatt Brubeck2018-05-111-3/+3
|
* Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10)Simon Sapin2017-08-151-1/+1
|
* Update Hyper and OpenSSLddh2017-03-311-25/+25
|
* Use serde_json to persist cookies in the net crateAnthony Ramine2017-02-221-2/+2
|
* Refactor to use ServoUrl::is_secure_schemeRohit Burra2016-12-251-2/+2
|
* Add domain and path checks for secure cookies evictionKeith Yeung2016-12-211-4/+29
|
* Conform conditionals regarding cookie removal with specKeith Yeung2016-12-201-5/+7
|
* Redesign CookieStorage and Implement Leave Secure Cookie AloneRaghav2016-12-041-15/+90
| | | | | | | | | | | | | CookieStorage has been refactored to use HashMap with base domain as the key. Values of hashmap is vector of cookies. CookieStorage now has max_per_host which restricts maximum cookies that can be added per base domain. Cookie eviction doesnot take place if max_per_host is not reached. Cookie eviction logic implemented here does following steps 1) Evict all expired cookies 2) Remove oldest accessed non-secure cookie If any 3) When no non-secure cookie exist, remove oldest accessed secure cookie if new cookie being added is secure. Else ignore new cookie
* Auto merge of #14208 - servo:CookieStorage-debug, r=jdmbors-servo2016-11-221-1/+1
|\ | | | | | | | | | | | | | | Derive Debug for CookieStorage. <!-- 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/14208) <!-- Reviewable:end -->
| * Derive Debug for CookieStorage.Ms2ger2016-11-141-1/+1
| |
* | Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-3/+3
|/
* Use common cookie struct add cookie webdriver cmdsDan Robertson2016-06-251-0/+9
| | | | | One cookie struct to rule them all. One struct to represent them. One cookie struct to bind them all, and through the IPC carry them.
* Auto merge of #11196 - fduraffourg:master, r=jdmbors-servo2016-05-171-5/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unit tests for cookies handling 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 #9965 Either: - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ Add unit tests for the `net` component about cookies. The tests are generated with a new `mach update-net-cookies` command from this repo: https://github.com/abarth/http-state. This PR also includes two trivial bug fixes about cookie handling. From all the tests included, the following ones are currently failing: - cookie_http_state::test_0003 - cookie_http_state::test_0006 - cookie_http_state::test_attribute0004 - cookie_http_state::test_attribute0005 - cookie_http_state::test_attribute0007 - cookie_http_state::test_attribute0008 - cookie_http_state::test_domain0017 - cookie_http_state::test_mozilla0001 - cookie_http_state::test_mozilla0002 - cookie_http_state::test_mozilla0003 - cookie_http_state::test_mozilla0005 - cookie_http_state::test_mozilla0007 - cookie_http_state::test_mozilla0009 - cookie_http_state::test_mozilla0010 - cookie_http_state::test_mozilla0013 `test_000[36]` and `test_mozilla*` are failing because there is currently no method to clean a `net::cookie_storage` from expired cookies. `test_attribute000[4578]` are failing because hyper does not parse the `Secure` attribute correctly. I will open an issue on the upstream project. `test_domain0017` fails because the TLD .org is not on the PUB_DOMAINS list. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11196) <!-- Reviewable:end -->
| * Correct cookie handling behaviorFlorian Duraffourg2016-05-171-5/+1
| | | | | | | | | | | | - Cookies with empty values are not to be ignored as per RFC6265 - A space should separate two cookie-pairs as per RFC6265 section 4.2.1
* | Removed unused importsPer Lundberg2016-05-151-1/+0
|/ | | | This fixes #11185.
* Fix some warningsSimon Sapin2016-04-291-1/+1
|
* read cookie_jar, hsts_list, auth_cache, and local_data from file if ↵Daniel2016-04-251-1/+1
| | | | profile_dir option is present
* write cookie_jar, hsts_list, auth_cache, and local_data to file if ↵Daniel2016-04-201-0/+4
| | | | profile_dir option is present
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-2/+2
|
* 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.
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Reduce max line length from 150 to 120 charactersCorey Farwell2015-05-241-1/+2
| | | | Part of https://github.com/servo/servo/issues/6041
* Move net::cookie unit tests into the unit_tests crate.Simon Sapin2015-04-071-19/+1
|
* Split out shared networking code into net_traits crateGilles Leblanc2015-04-031-9/+1
| | | | Fixes #4476
* Update some code that's feature-gated under core.Ms2ger2015-03-211-1/+1
|
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-2/+2
|
* Address review comments.Josh Matthews2015-02-041-12/+34
|
* Differentiate between HTTP and non-HTTP APIs for cookie operations. Fix some ↵Josh Matthews2015-02-041-22/+58
| | | | incorrect cookie removal operation logic. Order the returned cookies according to the spec. Make cookie unit tests pass.
* Improve redirect behaviour to clear headers and reevaluate sent cookies. ↵Josh Matthews2015-02-041-10/+49
| | | | Implement storage-related cookie behaviour such as domain and path matching that cookie-rs doesn't require. Remove stored cookies when an empty value is stored. Document cookie code.
* cookies and cookies storage implementationShamir Khodzha2015-02-041-0/+46