servo/tests/wpt/meta/cookies
Simon Wülker ff6523c37e
Fix handling of __Secure- and __Host- Cookie prefixes (#33717)
* 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>
2024-10-09 04:52:48 +00:00
..
attributes Rename metadata directories 2023-06-22 21:15:41 +02:00
name Rename metadata directories 2023-06-22 21:15:41 +02:00
partitioned-cookies Update web-platform-tests to revision b'8e164c249d2b93a4234a2710a5e2cc5a16fab499' (#33515) 2024-09-22 01:24:38 +00:00
samesite-none-secure Rename metadata directories 2023-06-22 21:15:41 +02:00
schemeful-same-site Run same tests for layout-2020 and layout-2013 (#30092) 2023-08-15 00:28:32 +00:00
size Rename metadata directories 2023-06-22 21:15:41 +02:00
third-party-cookies Sync WPT with upstream (04-10-2023) (#30493) 2023-10-06 00:51:48 +00:00
value Rename metadata directories 2023-06-22 21:15:41 +02:00
cookie-enabled-noncookie-frame.html.ini Run same tests for layout-2020 and layout-2013 (#30092) 2023-08-15 00:28:32 +00:00
navigated-away.html.ini Run same tests for layout-2020 and layout-2013 (#30092) 2023-08-15 00:28:32 +00:00