Skip to content

Cookies: add tests for expiry at read, path length order, repeated attributes and other methods - #64550

Open
rifmj wants to merge 1 commit into
web-platform-tests:masterfrom
rifmj:cookies-expiry-order-attributes
Open

rifmj wants to merge 1 commit into
web-platform-tests:masterfrom
rifmj:cookies-expiry-order-attributes

Cookies: add tests for expiry at read, path length order, repeated at…

d9e8d3d
Select commit
Loading
Failed to load commit list.
Community-TC Integration / wpt-chrome-dev-stability succeeded Nov 2, 2026 in 7m 55s

Community-TC (pull_request)

Verify that all tests affected by a pull request are stable when executed in chrome.

Details

View task in Taskcluster | View logs in Taskcluster | View task group in Taskcluster

Task Status

Started: 2026-11-02T13:51:45.328Z
Resolved: 2026-11-02T13:59:39.764Z
Task Execution Time: 7 minutes, 54 seconds, 436 milliseconds
Task Status: completed
Reason Resolved: completed
TaskId: UB730WmwQbqaPc-vtDxVOQ
RunId: 0

Artifacts

- public/logs/live_backing.log (175 KB)
- public/logs/live.log
- public/results/checkrun.md (406 B)

WPT Command: python3 ./wpt run --channel=dev --verify --verify-no-chaos-mode --verify-repeat-loop=0 --verify-repeat-restart=10 --github-checks-text-file=/home/test/artifacts/checkrun.md --affected base_head --log-mach-level=debug --log-mach=- -y --no-pause --no-restart-on-unexpected --install-fonts --verify-log-full --no-headless --enable-swiftshader --install-browser --install-webdriver chrome


[taskcluster 2026-11-02T13:51:45.401Z] Worker Type (proj-wpt/ci-gw) settings:
[taskcluster 2026-11-02T13:51:45.402Z]   {
[taskcluster 2026-11-02T13:51:45.402Z]     "generic-worker": {
[taskcluster 2026-11-02T13:51:45.402Z]       "config": {
[taskcluster 2026-11-02T13:51:45.402Z]         "capacity": 1,
[taskcluster 2026-11-02T13:51:45.402Z]         "headlessTasks": false
[taskcluster 2026-11-02T13:51:45.402Z]       },
[taskcluster 2026-11-02T13:51:45.402Z]       "engine": "multiuser",
[taskcluster 2026-11-02T13:51:45.402Z]       "go-arch": "amd64",
[taskcluster 2026-11-02T13:51:45.402Z]       "go-os": "linux",
[taskcluster 2026-11-02T13:51:45.402Z]       "go-version": "go1.27.3",
[taskcluster 2026-11-02T13:51:45.402Z]       "release": "https://github.com/taskcluster/taskcluster/releases/tag/v114.0.0",
[taskcluster 2026-11-02T13:51:45.402Z]       "revision": "2a09f42c9f303f067a0f0262ae089f09229ef485",
[taskcluster 2026-11-02T13:51:45.402Z]       "source": "https://github.com/taskcluster/taskcluster/commits/2a09f42c9f303f067a0f0262ae089f09229ef485",
[taskcluster 2026-11-02T13:51:45.402Z]       "version": "114.0.0"
[taskcluster 2026-11-02T13:51:45.402Z]     },
[taskcluster 2026-11-02T13:51:45.402Z]     "image": "projects/taskcluster-imaging/global/images/generic-worker-ubuntu-24-04-057b81800ee54b8e8ee8",
[taskcluster 2026-11-02T13:51:45.402Z]     "instance-id": "8289148831170636296",
[taskcluster 2026-11-02T13:51:45.402Z]     "instance-type": "projects/757942385826/machineTypes/n2-standard-4",
[taskcluster 2026-11-02T13:51:45.402Z]     "local-ipv4": "10.128.0.187",

...(1971 lines hidden)...

 2:42.31 pid:5050 [5069:5069:1102/135824.201763:WARNING:components/discardable_memory/service/discardable_shared_memory_manager.cc:200] Less than 64MB of free space in temporary directory for shared memory files: 63
 2:42.41 pid:5050 [5101:5101:1102/135824.305894:WARNING:media/gpu/vaapi/vaapi_wrapper.cc:1652] drmGetDevices2() has not found any devices
 2:42.43 pid:5050 [5101:5101:1102/135824.318373:WARNING:sandbox/policy/linux/sandbox_linux.cc:406] InitializeSandbox() called with multiple threads in process gpu-process.
 2:42.44 pid:5050 [5101:5101:1102/135824.331020:WARNING:ui/gfx/linux/gbm_support_x11.cc:48] dri3 extension not supported.
 2:42.56 pid:5050 [5069:5069:1102/135824.455426:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:42.57 pid:5050 [5069:5069:1102/135824.455558:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:42.60 pid:5050 [1793627904.495][WARNING]: You are using an unsupported command-line switch: --disable-build-check. Please don't report bugs that cannot be reproduced with this switch removed.
 2:42.66 pid:5050 [5069:5069:1102/135824.545136:ERROR:dbus/object_proxy.cc:572] Failed to call method: org.freedesktop.DBus.Properties.GetAll: object_path= /org/freedesktop/UPower/devices/DisplayDevice: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
 2:42.66 pid:5050 [5069:5069:1102/135824.545156:WARNING:dbus/property.cc:174] GetAll request failed for: org.freedesktop.UPower.Device
 2:42.69 pid:5050 [5069:5069:1102/135824.581162:WARNING:ui/base/idle/idle_linux.cc:111] None of the known D-Bus ScreenSaver services could be used.
 2:42.73 DEBUG Got command: 'log'
 2:42.73 DEBUG Loading http://web-platform.test:8000/testharness_runner.html
 2:42.81 DEBUG Got command: 'log'
 2:42.81 DEBUG Getting rect
 2:42.81 DEBUG Got command: 'init_succeeded'
 2:42.81 DEBUG new state: RunningState
 2:42.81 DEBUG Dispatch run_test
 2:42.81 TEST_START: /cookies/attributes/expired-at-read.html
 2:42.82 DEBUG Got command: 'log'
 2:42.81 DEBUG Executor setup done
 2:42.86 pid:5050 [5069:5069:1102/135824.750337:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:42.86 pid:5050 [5069:5069:1102/135824.750480:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:42.89 DEBUG Got command: 'log'
 2:42.89 DEBUG click <WebElement f.B99E4BA848E24A1356FB44E50E4F1621.d.7685D1C01B0129983C052423248C5DA5.e.2>
 2:42.95 DEBUG Got command: 'log'
 2:42.95 DEBUG Restoring
mem avail: 13246 of 15985 MiB (82.87%), swap free:    0 of    0 MiB ( 0.00%)
 2:51.05 DEBUG Got command: 'log'
 2:51.05 DEBUG Receive message from testdriver: ['/cookies/attributes/expired-at-read.html', 'complete', [0, None, None, [['Cookie request header, with no document.cookie read in between', 0, None, None], ['document.cookie, with no request in between', 0, None, None]]]]
 2:51.05 DEBUG Got command: 'log'
 2:51.05 DEBUG Got async callback: complete
 2:51.06 pid:5050 [5069:5069:1102/135832.950569:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.06 pid:5050 [5069:5069:1102/135832.950653:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.12 DEBUG Got command: 'test_ended'
 2:51.12 TEST_END: Test OK. Subtests passed 2/2. Unexpected 0
 2:51.12 DEBUG new state: RunningState
 2:51.12 DEBUG Dispatch run_test
 2:51.12 TEST_START: /cookies/attributes/last-attribute.html
 2:51.16 pid:5050 [5069:5069:1102/135833.049932:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.16 pid:5050 [5069:5069:1102/135833.051620:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.21 DEBUG Got command: 'log'
 2:51.21 DEBUG click <WebElement f.5024C0DD7A009F8E1FB7DFA41E793F99.d.0EE299B1E76CA8E4B76E65B677023BD6.e.2>
 2:51.29 DEBUG Got command: 'log'
 2:51.29 DEBUG Restoring
 2:51.35 DEBUG Got command: 'log'
 2:51.35 DEBUG Receive message from testdriver: ['/cookies/attributes/last-attribute.html', 'complete', [0, None, None, [['Max-Age before a past Expires keeps the cookie', 0, None, None], ['Max-Age=0 before a future Expires removes an existing cookie', 0, None, None], ['A last Path without a leading / discards the earlier valid Path', 0, None, None], ['A cookie with an empty Domain is accepted', 0, None, None]]]]
 2:51.35 DEBUG Got command: 'log'
 2:51.35 DEBUG Got async callback: complete
 2:51.36 pid:5050 [5069:5069:1102/135833.254656:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.37 pid:5050 [5069:5069:1102/135833.255690:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.39 DEBUG Got command: 'test_ended'
 2:51.39 TEST_END: Test OK. Subtests passed 4/4. Unexpected 0
 2:51.39 DEBUG new state: RunningState
 2:51.39 DEBUG Dispatch run_test
 2:51.39 TEST_START: /cookies/attributes/last-attribute.tentative.html
 2:51.44 pid:5050 [5069:5069:1102/135833.326211:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.44 pid:5050 [5069:5069:1102/135833.326325:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.50 DEBUG Got command: 'log'
 2:51.50 DEBUG click <WebElement f.C82D672773E5BAE6D432DB7FD17EDCBD.d.8A7D8C99CD63CE31C6046101ACFEC771.e.2>
 2:51.56 DEBUG Got command: 'log'
 2:51.56 DEBUG Restoring
 2:51.61 DEBUG Got command: 'log'
 2:51.61 DEBUG Receive message from testdriver: ['/cookies/attributes/last-attribute.tentative.html', 'complete', [0, None, None, [['An unparsable last Expires cancels the earlier past Expires', 0, None, None], ['Domain=. rejects the cookie', 0, None, None]]]]
 2:51.62 DEBUG Got command: 'log'
 2:51.61 DEBUG Got async callback: complete
 2:51.63 pid:5050 [5069:5069:1102/135833.517105:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.63 pid:5050 [5069:5069:1102/135833.517208:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.68 DEBUG Got command: 'test_ended'
 2:51.69 TEST_END: Test OK. Subtests passed 2/2. Unexpected 0
 2:51.69 DEBUG new state: RunningState
 2:51.69 DEBUG Dispatch run_test
 2:51.69 TEST_START: /cookies/ordering/equal-segment-count.html
 2:51.73 pid:5050 [5069:5069:1102/135833.621292:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.73 pid:5050 [5069:5069:1102/135833.621460:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.76 DEBUG Got command: 'log'
 2:51.76 DEBUG click <WebElement f.3D9091FB0E77EDDA8AE590BA49D90215.d.CBD1EABAC8CC5CB64C01D0E32084D82A.e.2>
 2:51.84 DEBUG Got command: 'log'
 2:51.84 DEBUG Restoring
 2:51.89 DEBUG Got command: 'log'
 2:51.89 DEBUG Receive message from testdriver: ['/cookies/ordering/equal-segment-count.html', 'complete', [0, None, None, [['/cookies/ordering sorts before /cookies/ although it was created later', 0, None, None]]]]
 2:51.89 DEBUG Got command: 'log'
 2:51.89 DEBUG Got async callback: complete
 2:51.90 pid:5050 [5069:5069:1102/135833.788952:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.90 pid:5050 [5069:5069:1102/135833.789097:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.92 DEBUG Got command: 'test_ended'
 2:51.92 TEST_END: Test OK. Subtests passed 1/1. Unexpected 0
 2:51.92 DEBUG new state: RunningState
 2:51.92 DEBUG Dispatch run_test
 2:51.92 TEST_START: /cookies/samesite/methods-beyond-get-post.html
 2:51.97 pid:5050 [5069:5069:1102/135833.853135:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:51.97 pid:5050 [5069:5069:1102/135833.853227:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:52.02 DEBUG Got command: 'log'
 2:52.01 DEBUG click <WebElement f.9E0960CB6D5FC6E01791C1F7C48593EF.d.1FDC190C8632201D72F5695AA399DDDB.e.2>
 2:52.11 DEBUG Got command: 'log'
 2:52.11 DEBUG Restoring
 2:52.33 DEBUG Got command: 'log'
 2:52.33 DEBUG Receive message from testdriver: ['/cookies/samesite/methods-beyond-get-post.html', 'complete', [0, None, None, [['PUT carries a SameSite=Strict cookie on a same-origin request', 0, None, None], ['DELETE carries a SameSite=Strict cookie on a same-origin request', 0, None, None], ['PATCH carries a SameSite=Strict cookie on a same-origin request', 0, None, None], ['OPTIONS carries a SameSite=Strict cookie on a same-origin request', 0, None, None]]]]
 2:52.33 DEBUG Got command: 'log'
 2:52.33 DEBUG Got async callback: complete
 2:52.35 pid:5050 [5069:5069:1102/135834.246213:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:52.36 pid:5050 [5069:5069:1102/135834.246344:WARNING:ui/aura/window.cc:1514] StackChildLayerRelativeTo called with unmanaged layer(s). child=WebContentsViewAura child_managed=0 target=WebContentsViewAura target_managed=0
 2:52.38 DEBUG Got command: 'test_ended'
 2:52.39 TEST_END: Test OK. Subtests passed 4/4. Unexpected 0
 2:52.39 INFO No more tests
 2:52.39 DEBUG new state: StopState
 2:52.39 DEBUG TestRunnerManager main loop terminating, starting cleanup
 2:52.39 DEBUG Stopping runner process
 2:52.49 DEBUG Runner process exited with code 0
 2:52.49 DEBUG Stopping WebDriver
 2:52.51 DEBUG OutputHandler.after_process_stop
 2:52.51 DEBUG TestRunnerManager cleanup
 2:52.39 DEBUG Hanging up on WebDriver session
 2:52.44 INFO Closing logging queue
 2:52.44 INFO queue closed
 2:52.51 DEBUG TestRunnerManager teardown
 2:52.51 DEBUG Stopping WebDriver
 2:52.51 DEBUG TestRunnerManager main loop terminated
 2:52.51 DEBUG Stop flag set in ManagerGroup
 2:52.51 SUITE_END

web-platform-test
~~~~~~~~~~~~~~~~~
Ran 180 checks (130 subtests, 50 tests)
Expected results: 180
Unexpected results: 0
OK
 2:52.51 INFO Got 0 unexpected results, with 0 unexpected passes
 2:52.52 wptserve INFO Stopped http server on 127.0.0.1:8000
 2:52.52 wptserve INFO Stopped http server on 127.0.0.1:8002
 2:52.52 wptserve INFO Stopped http server on 127.0.0.1:8001
 2:52.52 wptserve INFO Stopped http server on 127.0.0.1:8444
 2:52.52 wptserve INFO Stopped http server on 127.0.0.1:8003
 2:52.52 wptserve INFO Stopped http server on 127.0.0.1:8446
 2:52.52 wptserve INFO Stopped http server on 127.0.0.1:8445
 2:52.53 wptserve INFO Stopped http server on 127.0.0.1:8443
 2:52.54 wptserve INFO Stopped http server on 127.0.0.1:9000
 2:52.54 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
 2:52.73 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
 2:52.73 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
 2:52.78 INFO Removed font: Ahem.ttf
 2:52.81 INFO Closing logging queue
 2:52.81 INFO queue closed
 2:52.82 INFO ::: Ran 10 of expected 10 iterations.
 2:52.82 INFO ## All results ##

 2:52.82 INFO ### /cookies/attributes/expired-at-read.html ###
 2:52.82 INFO |                             Subtest                              | Results | Messages |
 2:52.82 INFO |------------------------------------------------------------------|---------|----------|
 2:52.82 INFO |                                                                  | OK      |          |
 2:52.82 INFO | `Cookie request header, with no document.cookie read in between` | PASS    |          |
 2:52.82 INFO | `document.cookie, with no request in between`                    | PASS    |          |
 2:52.82 INFO 
 2:52.82 INFO ### /cookies/attributes/last-attribute.html ###
 2:52.83 INFO |                              Subtest                              | Results | Messages |
 2:52.83 INFO |-------------------------------------------------------------------|---------|----------|
 2:52.83 INFO |                                                                   | OK      |          |
 2:52.83 INFO | `Max-Age before a past Expires keeps the cookie`                  | PASS    |          |
 2:52.83 INFO | `Max-Age=0 before a future Expires removes an existing cookie`    | PASS    |          |
 2:52.83 INFO | `A last Path without a leading / discards the earlier valid Path` | PASS    |          |
 2:52.83 INFO | `A cookie with an empty Domain is accepted`                       | PASS    |          |
 2:52.83 INFO 
 2:52.83 INFO ### /cookies/attributes/last-attribute.tentative.html ###
 2:52.83 INFO |                            Subtest                            | Results | Messages |
 2:52.83 INFO |---------------------------------------------------------------|---------|----------|
 2:52.83 INFO |                                                               | OK      |          |
 2:52.83 INFO | `An unparsable last Expires cancels the earlier past Expires` | PASS    |          |
 2:52.83 INFO | `Domain=. rejects the cookie`                                 | PASS    |          |
 2:52.83 INFO 
 2:52.83 INFO ### /cookies/ordering/equal-segment-count.html ###
 2:52.83 INFO |                                 Subtest                                  | Results | Messages |
 2:52.83 INFO |--------------------------------------------------------------------------|---------|----------|
 2:52.83 INFO |                                                                          | OK      |          |
 2:52.83 INFO | `/cookies/ordering sorts before /cookies/ although it was created later` | PASS    |          |
 2:52.83 INFO 
 2:52.83 INFO ### /cookies/samesite/methods-beyond-get-post.html ###
 2:52.83 INFO |                               Subtest                               | Results | Messages |
 2:52.83 INFO |---------------------------------------------------------------------|---------|----------|
 2:52.83 INFO |                                                                     | OK      |          |
 2:52.83 INFO | `PUT carries a SameSite=Strict cookie on a same-origin request`     | PASS    |          |
 2:52.83 INFO | `DELETE carries a SameSite=Strict cookie on a same-origin request`  | PASS    |          |
 2:52.83 INFO | `PATCH carries a SameSite=Strict cookie on a same-origin request`   | PASS    |          |
 2:52.83 INFO | `OPTIONS carries a SameSite=Strict cookie on a same-origin request` | PASS    |          |
 2:52.83 INFO 
 2:52.83 INFO ::: Running tests in a loop with restarts 10 times : PASS
 2:52.83 INFO :::
 2:52.83 INFO ::: Test verification PASS
 2:52.83 INFO :::
X connection to :99.0 broken (explicit kill or server shutdown).

mem avail: 14431 of 15985 MiB (90.28%), swap free:    0 of    0 MiB ( 0.00%)

[taskcluster 2026-11-02T13:59:38.771Z]                        Exit Code: 0
[taskcluster 2026-11-02T13:59:38.771Z]                        User Time: 101.796ms
[taskcluster 2026-11-02T13:59:38.771Z]                      Kernel Time: 93.401ms
[taskcluster 2026-11-02T13:59:38.771Z]                        Wall Time: 6m4.701628887s
[taskcluster 2026-11-02T13:59:38.771Z]  Average Available System Memory: 13.61 GiB
[taskcluster 2026-11-02T13:59:38.771Z]       Average System Memory Used: 2.00 GiB
[taskcluster 2026-11-02T13:59:38.771Z]          Peak System Memory Used: 2.78 GiB
[taskcluster 2026-11-02T13:59:38.771Z]              Total System Memory: 15.61 GiB
[taskcluster 2026-11-02T13:59:38.771Z]                           Result: SUCCEEDED
[taskcluster 2026-11-02T13:59:38.771Z] === Task Finished ===
[taskcluster 2026-11-02T13:59:38.771Z] Task Duration: 6m4.702746432s