Implement Cookie-Store API
Categories
(Core :: DOM: Core & HTML, enhancement, P5)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox132 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-complete, parity-chrome, parity-safari)
Attachments
(12 files, 1 obsolete file)
|
106.26 KB,
patch
|
Details | Diff | Splinter Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
| Assignee | ||
Comment 1•7 years ago
|
||
| Assignee | ||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Blink intent to ship: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/zOsGZGMGiM4/zdJGMq5iBwAJ
| Assignee | ||
Updated•5 years ago
|
Comment 4•4 years ago
|
||
Any eta on this?
Comment 5•4 years ago
|
||
It would be great if this could be implemented in Firefox. The API is much nicer to work with than document.cookie, and would allow many developers to remove third party dependencies that they use purely for nice cookie management.
Updated•4 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 6•2 years ago
|
||
It looks like Safari is now implementing this API.
Comment 7•2 years ago
|
||
FWIW, having an async, far cleaner API for cookies is nice DX and may benefit performance, but I think it's worth calling out that one of the key additions is the "Monitoring Cookies" feature.
In order to achieve this in a polyfill—as per Keith Cirkel's comment—involves using postMessage and BroadcastChannel, which could conflict with other uses of those APIs and would add significant weight to the polyfill.
I'm not suggesting the Monitoring Cookies feature should be implemented in lieu of the rest of the API, I'm just trying to add weight to the need for the overall Cookie Store API to be implemented given that feature is a significant challenge to polyfill.
WebKit appear to have made significant progress on their implementation now, only one bug is outstanding: https://bugs.webkit.org/show_bug.cgi?id=258504 so if this make a Safari release shortly, this would leave Firefox being the only browser without support.
Updated•2 years ago
|
| Assignee | ||
Comment 8•1 year ago
|
||
| Assignee | ||
Comment 9•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 10•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 11•1 year ago
|
||
The following patch is waiting for review from an inactive reviewer:
| ID | Title | Author | Reviewer Status |
|---|---|---|---|
| D215146 | Bug 1475599 - part 3 - CookieStore API - WPT, r?edgul | baku | edgul: Back Jul 8, 2024 |
:baku, could you please find another reviewer?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 12•1 year ago
|
||
| Assignee | ||
Comment 13•1 year ago
|
||
| Assignee | ||
Comment 14•1 year ago
|
||
| Assignee | ||
Comment 15•1 year ago
|
||
| Assignee | ||
Comment 16•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 17•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 18•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
| Assignee | ||
Comment 19•1 year ago
|
||
Comment 20•1 year ago
|
||
Comment 22•1 year ago
|
||
Backed out for causing mochitest failures on browser_script_command_execute_basic.js.
- Backout link
- Push with failures
- Failure Log for wpt
- Failure Log for wpt 2
- Failure Log for mochitest:
[task 2024-09-10T20:36:05.960Z] 20:36:05 INFO - TEST-PASS | devtools/shared/commands/script/tests/browser_script_command_execute_basic.js | property 'input' for 'typeof document.cookie' -
[task 2024-09-10T20:36:05.960Z] 20:36:05 INFO - Buffered messages finished
[task 2024-09-10T20:36:05.961Z] 20:36:05 INFO - TEST-UNEXPECTED-FAIL | devtools/shared/commands/script/tests/browser_script_command_execute_basic.js | property 'result' for 'typeof document.cookie' - Got [object Object], expected "string"
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - Stack trace:
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:test_is:1625
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochitests/content/browser/devtools/shared/commands/script/tests/head.js:checkValue:38
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochitests/content/browser/devtools/shared/commands/script/tests/head.js:checkObject:20
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochitests/content/browser/devtools/shared/commands/script/tests/browser_script_command_execute_basic.js:doEagerEvalDOMGetters:956
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochitests/content/browser/devtools/shared/commands/script/tests/browser_script_command_execute_basic.js:null:103
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:handleTask:1145
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1217
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1358
[task 2024-09-10T20:36:05.962Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1134
[task 2024-09-10T20:36:05.963Z] 20:36:05 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-09-10T20:36:05.963Z] 20:36:05 INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - TEST-UNEXPECTED-FAIL | devtools/shared/commands/script/tests/browser_script_command_execute_basic.js | no eval exception -
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - Stack trace:
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:test_ok:1597
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochitests/content/browser/devtools/shared/commands/script/tests/browser_script_command_execute_basic.js:doEagerEvalDOMGetters:965
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochitests/content/browser/devtools/shared/commands/script/tests/browser_script_command_execute_basic.js:null:103
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:handleTask:1145
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1217
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1358
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1134
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-09-10T20:36:05.965Z] 20:36:05 INFO - TEST-PASS | devtools/shared/commands/script/tests/browser_script_command_execute_basic.js | no helper result -
Comment 24•1 year ago
|
||
Comment 25•1 year ago
|
||
Backed out for causing wpt failures on change_eventhandler_in_bfcache.https.window.html.
[task 2024-09-11T20:18:34.542Z] 20:18:34 INFO - TEST-PASS | /workers/semantics/run-a-worker/003.html | shared
[task 2024-09-11T20:18:34.542Z] 20:18:34 INFO - TEST-UNEXPECTED-TIMEOUT | /_mozilla/cookie-store/change_eventhandler_in_bfcache.https.window.html | CookieStore queues events when bfcached - Test timed out
[task 2024-09-11T20:18:34.633Z] 20:18:34 INFO - TEST-UNEXPECTED-TIMEOUT | /_mozilla/cookie-store/change_eventhandler_in_bfcache.https.window.html | expected OK
[task 2024-09-11T20:18:34.633Z] 20:18:34 INFO - TEST-INFO took 40768ms
[task 2024-09-11T20:18:34.634Z] 20:18:34 INFO - Restarting browser for new test group
[task 2024-09-11T20:18:35.033Z] 20:18:35 INFO - STDOUT: cleanup aborted: Unable to remount device
[task 2024-09-11T20:18:35.188Z] 20:18:35 INFO - STDOUT: cleanup aborted: Unable to remount device
[task 2024-09-11T20:18:35.189Z] 20:18:35 INFO - Closing logging queue
[task 2024-09-11T20:18:35.190Z] 20:18:35 INFO - queue closed
[task 2024-09-11T20:18:35.205Z] 20:18:35 INFO - Setting up ssl
[task 2024-09-11T20:18:35.453Z] 20:18:35 INFO - certutil | b''
[task 2024-09-11T20:18:35.585Z] 20:18:35 INFO - certutil | b''
[task 2024-09-11T20:18:35.600Z] 20:18:35 INFO - certutil | b'\nCertificate Nickname Trust Attributes\n SSL,S/MIME,JAR/XPI\n\nweb-platform-tests CT,, \n'
[task 2024-09-11T20:18:36.378Z] 20:18:36 INFO - adb Granting important runtime permissions to org.mozilla.geckoview.test_runner
[task 2024-09-11T20:18:37.632Z] 20:18:37 INFO - adb launch_application: am start -W -n org.mozilla.geckoview.test_runner/org.mozilla.geckoview.test_runner.TestRunnerActivity -a android.intent.action.MAIN --es env0 MOZ_CRASHREPORTER=1 --es env1 MOZ_CRASHREPORTER_NO_REPORT=1 --es env2 MOZ_CRASHREPORTER_SHUTDOWN=1 --es env3 MOZ_HIDE_RESULTS_TABLE=1 --es env4 MOZ_IN_AUTOMATION=1 --es env5 MOZ_LOG=signaling:3,mtransport:4,DataChannel:4,jsep:4 --es env6 R_LOG_LEVEL=6 --es env7 R_LOG_DESTINATION=stderr --es env8 R_LOG_VERBOSE=1 --es env9 MOZ_PROCESS_LOG=/tmp/tmpj1vpytxypidlog --es env10 MOZ_DISABLE_NONLOCAL_CONNECTIONS=1 --es arg0 -no-remote --es arg1 -profile --es arg2 /data/local/tmp/test_root/profile --es arg3 --marionette --es arg4 about:blank
[task 2024-09-11T20:18:39.246Z] 20:18:39 INFO - Starting runner
[task 2024-09-11T20:18:40.114Z] 20:18:40 INFO - TEST-START | /_mozilla/mathml/disabled/dynamic-math-tree-001.html
Updated•1 year ago
|
Comment 27•1 year ago
|
||
Comment 28•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d55b6525d7b2
https://hg.mozilla.org/mozilla-central/rev/5e078f860dfb
https://hg.mozilla.org/mozilla-central/rev/bbf48c250215
https://hg.mozilla.org/mozilla-central/rev/6cd4304de43b
https://hg.mozilla.org/mozilla-central/rev/6017acfcb2bc
https://hg.mozilla.org/mozilla-central/rev/d2c278cfa955
https://hg.mozilla.org/mozilla-central/rev/c6e20b939a21
https://hg.mozilla.org/mozilla-central/rev/2081d42e6ccd
https://hg.mozilla.org/mozilla-central/rev/2fbb65a885f6
https://hg.mozilla.org/mozilla-central/rev/6a36e7a65173
https://hg.mozilla.org/mozilla-central/rev/8283b857e25f
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•