Closed Bug 1977257 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 53753 - Default to empty `value` for named cookies in cookieStore.delete

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

anushamuley <anushamuley@google.com> wrote:

Default to empty value for named cookies in cookieStore.delete

Based on https://github.com/WICG/cookie-store/pull/261 we should only
use an implementation defined string as a cookie's value when we are
deleting a nameless cookie. Otherwise cookies with a name of the
maximum supported name and value size would not be able to be
deleted by this API. Also add a WPT to check for this behavior.

Change-Id: I09ab4af872f34695c635c1342852def183fb3070
Bug: 427258226, 431030814
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6604039
Commit-Queue: Aaron Selya \<selya@google.com>
Reviewed-by: Aaron Selya \<selya@google.com>
Reviewed-by: Dylan Cutler \<dylancutler@google.com>
Cr-Commit-Position: refs/heads/main@{#1486511}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 2 tests and 17 subtests

Status Summary

Firefox

OK : 2
PASS: 34

Chrome

OK : 2
PASS: 29
FAIL: 5

Safari

OK : 2
PASS: 1
FAIL: 33

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /cookie-store/cookieStore_delete_arguments.https.any.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: OK)
  • /cookie-store/cookieStore_delete_arguments.https.any.serviceworker.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: OK)

Tests Disabled in Gecko Infrastructure

  • /cookie-store/cookieStore_delete_arguments.https.any.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: OK)
  • /cookie-store/cookieStore_delete_arguments.https.any.serviceworker.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] (Chrome: OK, Safari: OK)
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0f5a945435e4 https://hg.mozilla.org/integration/autoland/rev/ecbecca67f8b [wpt PR 53753] - Default to empty `value` for named cookies in cookieStore.delete, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
You need to log in before you can comment on or make changes to this bug.