script: Do not include fragments when comparing URLs in CookieStore (#38876)

Fixes a check for empty options in `getAll(options)` and makes url
comparison with exclude fragments set to true.

Testing: New passing WPT tests
Part of #37674

---------

Signed-off-by: Sebastian C <sebsebmc@gmail.com>
This commit is contained in:
Sebastian C 2025-08-27 18:41:11 -05:00 committed by GitHub
parent 84f478a47a
commit e5c83ec419
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 46 additions and 66 deletions

View file

@ -1,18 +1,19 @@
[change_eventhandler_for_document_cookie.https.window.html]
expected: TIMEOUT
[document.cookie set/overwrite/delete observed by CookieStore]
expected: FAIL
expected: TIMEOUT
[document.cookie set already-expired cookie should not be observed by CookieStore]
expected: FAIL
expected: NOTRUN
[document.cookie duplicate cookie should not be observed by CookieStore]
expected: FAIL
expected: NOTRUN
[CookieStore set/overwrite/delete observed by document.cookie]
expected: FAIL
expected: NOTRUN
[CookieStore agrees with document.cookie on encoding non-ASCII cookies]
expected: FAIL
expected: NOTRUN
[document.cookie agrees with CookieStore on encoding non-ASCII cookies]
expected: FAIL
expected: NOTRUN

View file

@ -1,21 +1,22 @@
[change_eventhandler_for_http_cookie_and_set_cookie_headers.https.window.html]
expected: TIMEOUT
[HTTP set/overwrite/delete observed in CookieStore]
expected: FAIL
expected: TIMEOUT
[HTTP set already-expired cookie should not be observed by CookieStore]
expected: FAIL
expected: NOTRUN
[HTTP duplicate cookie should not be observed by CookieStore]
expected: FAIL
expected: NOTRUN
[CookieStore agreed with HTTP headers agree on encoding non-ASCII cookies]
expected: FAIL
expected: NOTRUN
[CookieStore set/overwrite/delete observed in HTTP headers]
expected: FAIL
expected: NOTRUN
[HTTP headers agreed with CookieStore on encoding non-ASCII cookies]
expected: FAIL
expected: NOTRUN
[Binary HTTP set/overwrite/delete observed in CookieStore]
expected: FAIL
expected: NOTRUN

View file

@ -1,6 +1,7 @@
[change_eventhandler_for_no_change.https.window.html]
expected: TIMEOUT
[CookieStore duplicate cookie should not be observed]
expected: FAIL
expected: TIMEOUT
[CookieStore duplicate partitioned cookie should not be observed]
expected: FAIL
expected: NOTRUN

View file

@ -1,3 +1,4 @@
[change_eventhandler_for_no_name_and_no_value.https.window.html]
expected: TIMEOUT
[Verify behavior of no-name and no-value cookies.]
expected: FAIL
expected: TIMEOUT

View file

@ -1,3 +1,4 @@
[change_eventhandler_for_no_name_equals_in_value.https.window.html]
expected: TIMEOUT
[Verify that attempting to set a cookie with no name and with '=' in the value does not work.]
expected: FAIL
expected: TIMEOUT

View file

@ -1,3 +1,4 @@
[change_eventhandler_for_no_name_multiple_values.https.window.html]
expected: TIMEOUT
[Verify behavior of multiple no-name cookies]
expected: FAIL
expected: TIMEOUT

View file

@ -2,17 +2,5 @@
expected: ERROR
[cookieStore_getAll_arguments.https.any.html]
[cookieStore.getAll with no arguments]
expected: FAIL
[cookieStore.getAll with empty options]
expected: FAIL
[cookieStore.getAll with absolute url with fragment in options]
expected: FAIL
[cookieStore.getAll with absolute different url in options]
expected: FAIL
[cookieStore.getAll with whitespace]
expected: FAIL

View file

@ -1,7 +1,4 @@
[cookieStore_getAll_multiple.https.any.html]
[cookieStore.getAll returns multiple cookies written by cookieStore.set]
expected: FAIL
[cookieStore_getAll_multiple.https.any.serviceworker.html]
expected: ERROR

View file

@ -1,3 +0,0 @@
[cookieStore_getAll_set_creation_url.https.any.html]
[cookieStore.set and cookieStore.getAll use the creation url]
expected: FAIL

View file

@ -2,11 +2,5 @@
expected: ERROR
[cookieStore_get_arguments.https.any.html]
[cookieStore.get with absolute url with fragment in options]
expected: FAIL
[cookieStore.get with absolute different url in options]
expected: FAIL
[cookieStore.get with whitespace]
expected: FAIL

View file

@ -1,7 +1,4 @@
[cookieStore_opaque_origin.https.html]
expected: TIMEOUT
[cookieStore in non-sandboxed iframe should not throw]
expected: FAIL
[cookieStore in sandboxed iframe should throw SecurityError]
expected: TIMEOUT

View file

@ -1,12 +1,13 @@
[httponly_cookies.https.window.html]
expected: TIMEOUT
[HttpOnly cookies are not observed]
expected: FAIL
expected: TIMEOUT
[HttpOnly cookies can not be set by document.cookie]
expected: FAIL
expected: NOTRUN
[HttpOnly cookies can not be set by CookieStore]
expected: FAIL
expected: NOTRUN
[HttpOnly cookies are not deleted/overwritten]
expected: FAIL
expected: NOTRUN