Change arguments to CookieStoreManager's subscribe method
Proposal
Update documentation to reflect changes in https://github.com/whatwg/cookiestore/pull/291#issuecomment-3723024282
The PR changes the arguments of subscribe(name, url). name is now optional and matches to every available cookie in the service worker scope if omitted. The url of the subscription should default to be the service worker's scope url if omitted.
Browser support
No response
Tasks
- [ ]
Dependencies
- [ ]
Additional information
this information should be on https://developer.mozilla.org/en-US/docs/Web/API/CookieStoreManager/subscribe
Are you willing to support this work?
can write/review
Thanks @aamuley - I'm moving this issue to the content repo where the work will happen. Feel free to pick it up and make the changes
Hi! @Rumyra 👋
I’d love to help with this documentation update for CookieStoreManager.subscribe. I can help draft the update or review changes.
A few quick clarifications would be helpful:
- Can anyone confirm the updated behavior across browsers for
namebeing optional andurldefaulting to the service worker scope? - Should I focus on adding examples, updating argument descriptions, or both?
Thanks! Looking forward to contributing. 🙂
hey so the related wpts are here: https://github.com/web-platform-tests/wpt/pull/56004, https://github.com/web-platform-tests/wpt/blob/master/cookiestore/cookieStore_subscribe_arguments.https.any.js and the latest x-browser results would be available here: https://wpt.fyi/results/cookiestore?label=experimental&label=master&aligned
the types of the arguments were changed in that PR so that needs to be reflected in the parameters, and I think one example each with each of the optional arguments not specified should be enough, but i will defer to the mdn owners' opinions
I’d like to help with updating the documentation for CookieStoreManager.subscribe.
Based on the related WPTs and PRs:
The types of the arguments were changed, so the documentation should reflect that. I plan to include one example for each optional argument not specified, but I will follow the MDN owners’ guidance on final structure.
I’m happy to draft the updates or review them—just let me know how I can contribute. 🙂
I dont mind using an LLM for this kind of work (assuming that is allowed in the MDN guidelines) but I hope this is a human in the loop learning experience still, since its a relatively simple change that would be a good first learning issue for new human contributors.
The issue is accepting a PR and you would likely not be able to review it, since an MDN owner is required to review the change to merge it.
Thanks @aamuley for highlighting those details about the subscribe() method. I appreciate the help in improving the docs!
I dont mind using an LLM for this kind of work (assuming that is allowed in the MDN guidelines) but I hope this is a human in the loop learning experience still, since its a relatively simple change that would be a good first learning issue for new human contributors.
FWIW ^^^ What @aamuley said. If it is your first contribution, you absolutely should do this manually.
MDN doesn't explicilty prohibit the use of LLMs but we will reject contributions that seem to be generated by AI without evidence that the contribution has had adequate checking. There is a limited pool of reviewers, and it is too easy to generate lots of seemingly accurate content.
I personally use LLMs every day, but I don't use them for generating the content itself. I use them for helping me to interpret tricky bits of the spec and generating test code, so that I can then confirm the answers with technical experts. I also use them to test large structural changes that would be hard to make manually - but with very constrained instructions.
Same here @hamishwillee, I mostly use LLM for correcting my grammatically errors but I write the context, mdn maintainers will help you with words also.