Closed Bug 2085213 Opened 1 month ago Closed 24 days ago

[wpt-sync] Sync PR 63963 - [Cookies] Port legacy path0015-test to WPT path-redirect.html

Categories

(Core :: Networking: Cookies, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63963 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63963
Details from upstream follow.

selya <selya@chromium.org> wrote:

[Cookies] Port legacy path0015-test to WPT path-redirect.html

When httpRedirectCookieTest redirects to a directory path ending in '/',
wptserve's DirectoryHandler returns an auto-generated directory listing
page that does not include path-redirect-shared.js. Update
getAndExpireCookiesForRedirectTest() to read document.cookie from the
same-origin iframe and expire cookies directly when
path-redirect-shared.js is not loaded.

Add test=18 to cookies/attributes/path-redirect.html to cover an exact
redirected path match with a trailing '/'.

Bug: 40162492
Change-Id: Ic87541dbbc78dc425f30ab3012c9ffc59c1051ea
Reviewed-on: https://chromium-review.googlesource.com/8594141
WPT-Export-Revision: 2ada074872f2433f493656fc9199f2900a0e580b

Component: web-platform-tests → Networking: Cookies
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 18 tests and 6 subtests

Status Summary

Firefox

OK : 14[GitHub] 18[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 745[GitHub] 845[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 27

Chrome

OK : 14
PASS: 754
FAIL: 18

Safari

OK : 14
PASS: 719
FAIL: 53

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /cookies/attributes/attributes-ctl.sub.html [wpt.fyi]
    • Cookie with %x9 after Secure attribute is handled correctly.: FAIL (Chrome: FAIL, Safari: FAIL)
  • /cookies/value/value-ctl.html [wpt.fyi]
    • Cookie with %xa in name is rejected or modified (HTTP).: FAIL (Chrome: FAIL, Safari: FAIL)
    • Cookie with %xd in name is rejected or modified (HTTP).: FAIL (Chrome: FAIL, Safari: PASS)
  • /cookies/value/value.html [wpt.fyi]
    • Set nameless cookie to its value: FAIL (Chrome: PASS, Safari: FAIL)
    • Set nameless cookie to its value with an escaped quote: FAIL (Chrome: PASS, Safari: FAIL)
    • Set nameless cookie followed by '=' to its value: FAIL (Chrome: PASS, Safari: FAIL)
    • Set a nameless cookie with a space character in the value: FAIL (Chrome: PASS, Safari: FAIL)
  • /cookies/attributes/invalid.html [wpt.fyi]
    • Ignore Set-Cookie: = with other Set-Cookie headers: FAIL (Chrome: PASS, Safari: FAIL)
    • Ignore name- and value-less Set-Cookie: ; bar: FAIL (Chrome: PASS, Safari: FAIL)
    • Ignore name- and value-less Set-Cookie: : FAIL (Chrome: PASS, Safari: FAIL)
    • Ignore name- and value-less Set-Cookie: \t: FAIL (Chrome: PASS, Safari: FAIL)
  • /cookies/attributes/max-age.html [wpt.fyi]
    • Set multiple cookies with valid max-age values: FAIL (Chrome: PASS, Safari: FAIL)
  • /cookies/name/name-ctl.html [wpt.fyi]
    • Cookie with %xa in name is rejected or modified (HTTP).: FAIL (Chrome: FAIL, Safari: FAIL)
    • Cookie with %xd in name is rejected or modified (HTTP).: FAIL (Chrome: FAIL, Safari: PASS)
  • /cookies/name/name.html [wpt.fyi]
    • Set a nameless cookie (that has an = in its value): FAIL (Chrome: FAIL, Safari: FAIL)
    • Set a nameless cookie (that has multiple ='s in its value): FAIL (Chrome: FAIL, Safari: FAIL)
    • Set a nameless cookie: FAIL (Chrome: PASS, Safari: FAIL)
    • Ignore invalid attributes after nameless cookie: FAIL (Chrome: PASS, Safari: FAIL)
    • Set a nameless cookie ignoring characters after first ;: FAIL (Chrome: PASS, Safari: FAIL)
    • Set a nameless cookie ignoring characters after first ; (2): FAIL (Chrome: PASS, Safari: FAIL)
    • Return the most recent nameless cookie: FAIL (Chrome: PASS, Safari: FAIL)
    • Return the most recent nameless cookie, without leading =: FAIL (Chrome: PASS, Safari: FAIL)
    • Return the most recent nameless cookie, even if preceded by =: FAIL (Chrome: PASS, Safari: FAIL)
    • Return the most recent nameless cookie, even if preceded by =, in addition to other valid cookie: FAIL (Chrome: PASS, Safari: FAIL)
    • Set nameless cookie, given Set-Cookie: =test16: FAIL (Chrome: PASS, Safari: FAIL)
    • Overwrite nameless cookie: FAIL (Chrome: PASS, Safari: FAIL)
  • /cookies/size/name-and-value.html [wpt.fyi]
    • Set max-size name-less cookie: FAIL (Chrome: PASS, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/21a618d10269 https://hg.mozilla.org/integration/autoland/rev/3fc44a99846d [wpt PR 63963] - [Cookies] Port legacy path0015-test to WPT path-redirect.html, a=testonly
Status: NEW → RESOLVED
Closed: 24 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.