aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/tests/cookie.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of `__Secure-` and `__Host-` Cookie prefixes (#33717)Simon Wülker2024-10-091-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make checking for cookie prefixes case-insensitive Cookie-Prefixes like "__Host-" and "__Secure-" are case insensitive as per https://www.ietf.org/archive/id/draft-ietf-httpbis-rfc6265bis-15.html#name-storage-model. This is tested by many WPT tests in cookies/prefix, for example * cookies/prefix/__host.document-cookie.html * cookies/prefix/__host.document-cookie.https.html Since the implementation and the specification had diverged quite significantly i also updated/added spec comments where appropriate and slightly restructured code so its easier to follow. However, the only change in behaviour is the prefix check described above. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Remove unused import Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Fix cookie test cases Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Fix ignore cookie with __Host prefix and no specified path attribute Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Fix another cookie test case Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Make all platforms use a delay during cookie tests. (#33279)Josh Matthews2024-09-011-4/+0
| | | Signed-off-by: Josh Matthews <josh@joshmatthews.net>
* dependencies: Upgrade `cookie` and rename Servo's `Cookie` to `ServoCookie` ↵Martin Robinson2024-07-261-107/+105
| | | | | | | | | | | | | | (#32861) This changes updates to the new version of the `cookie` crate in Servo which no longer uses the old `time@0.1` data types. This requires using a new version of `time` while we transition off of the old one. This is the first step in that process. In addition, the overloading of the `cookie::Cookie` name was causing a great deal of confusion, so I've renamed the Servo wrapper to `ServoCookie` like we do with `ServoUrl`. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
* 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-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-1/+1
|
* Rustfmt net cratePyfisch2018-11-031-55/+126
|
* Update hyper to 0.12Bastien Orivel2018-11-011-9/+3
|
* Automatically provide a resource reader for testsPaul Rouget2018-04-301-14/+0
|
* delegate resource reading to embedderPaul Rouget2018-04-271-0/+14
|
* Use specific assertion for net cookie testsCYBAI2018-01-261-17/+17
|
* Merge net and net_testsAnthony Ramine2018-01-201-0/+413