aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/cookie_storage.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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