mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Implement cookie expiry date parsing algorithm (#37715)
The cookie-rs library parses the cookie expiry date based on the format from RFC 2616 (for HTTP/1.1), which is stricter than the format from RFC 6265 (for HTTP cookie). This patch implements the cookie expiry date algorithm from RFC 6265. When Cookie::parse fails in parsing the expiry date, we try to parse the expiry again with this algorithm, to provide extra compatibility with legacy systems. Testing: Pass a WPT test that was expected to fail before, and add a unit test. Fixes: #36452 --------- Signed-off-by: Kingsley Yung <kingsley@kkoyung.dev>
This commit is contained in:
parent
099d20fe94
commit
464d71ecfc
7 changed files with 310 additions and 6 deletions
4
tests/wpt/meta/xhr/cookies.http.html.ini
vendored
4
tests/wpt/meta/xhr/cookies.http.html.ini
vendored
|
@ -1,4 +0,0 @@
|
|||
[cookies.http.html]
|
||||
[Basic non-cross-site cookie handling in XHR]
|
||||
expected: FAIL
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue