mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.21k stars 22.49k forks source link

Contextual identity information in cookies API #8267

Closed rebloor closed 1 year ago

rebloor commented 3 years ago

Documentation of the cookies API does not include information about contextual identities. For example, cookies.CookieStore only talks about there being different stores for private vs. non-private windows.

(Consider combining with Bug 1750589 More documentation for developers about cookieStoreId field of proxy.RequestDetails.)

Rob--W commented 3 years ago

The cookieStoreId concept originated from Chrome, where it was used to distinguish between incognito and non-incognito mode (aka private browsing and non-private browsing mode in Firefox).

When the contextual identities feature (possibly more well-known as "container tabs") was introduced, this concept was expanded to also include containers.

Later on, this cookieStoreId property was added to other extension APIs where the distinction between container tabs was relevant.

The article at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Work_with_contextual_identities can be improved, to serve as the canonical location for cookieStoreId documentation (and be referenced by all MDN articles that mention cookieStoreId).

rebloor commented 3 years ago

Thanks @Rob--W

hamishwillee commented 3 years ago

Thanks. @rebloor I assume you're assigning yourself to this task?

rebloor commented 3 years ago

If, or hopefully when, get to it, I will @hamishwillee

Rob--W commented 3 years ago

Update the links in the downloads documentation when there is a canonical place for cookieStoreId documentation, see https://github.com/mdn/content/pull/8106#pullrequestreview-744412976

Rob--W commented 3 years ago

There is an introduction to containers at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/contextualIdentities, but it does not mention cookieStoreId or https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Work_with_contextual_identities . Could you fix that too?