contextualIdentities.ContextualIdentity

The contextualIdentities.ContextualIdentity type describes a single contextual identity.

Type

Values of this type are objects. They contain the following properties:

cookieStoreId

string. The cookie store ID for the identity. Since contextual identities don't share cookie stores, this serves as a unique identifier.

color

string. The color for the identity. This will be shown in tabs belonging to this identity. The following values are valid:

  • "blue"
  • "turquoise"
  • "green"
  • "yellow"
  • "orange"
  • "red"
  • "pink"
  • "purple"
  • "toolbar"

The value "toolbar" represents a theme-dependent color. Identities with color "toolbar" will be displayed in the same color as text in the toolbar (corresponding to the theme key "toolbar_field_text").

colorCode

string. A hex code representing the exact color used for the identity. For example: "#37adff". In the special case of the "toolbar" color, colorCode is always "#7c7c7d", regardless of the displayed color.

icon

string. The name of an icon for the identity. This will be shown in the URL bar for tabs belonging to this identity. The following values are valid:

  • "fingerprint"
  • "briefcase"
  • "dollar"
  • "cart"
  • "circle"
  • "gift"
  • "vacation"
  • "food"
  • "fruit"
  • "pet"
  • "tree"
  • "chill"
  • "fence"
iconUrl

string. A full resource:// URL pointing to the identity's icon. For example: "resource://usercontext-content/fingerprint.svg".

name

string. Name of the identity. This will be shown in the URL bar for tabs belonging to this identity. Note that names don't have to be unique.

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
ContextualIdentity
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 53 (Release date: 2017-04-19)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote
footnote Until Firefox for Android 137 contextualIdentities is defined but not functional. From Firefox for Android 138 contextualIdentities is inaccessible.
footnote See bug 1638878
Safari on iOS – No support
Safari on iOS
footnote No support
color
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 53 (Release date: 2017-04-19)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote
footnote Until Firefox for Android 137 contextualIdentities is defined but not functional. From Firefox for Android 138 contextualIdentities is inaccessible.
footnote See bug 1638878
Safari on iOS – No support
Safari on iOS
footnote No support
colorCode
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 57 (Release date: 2017-11-14)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote
footnote Until Firefox for Android 137 contextualIdentities is defined but not functional. From Firefox for Android 138 contextualIdentities is inaccessible.
footnote See bug 1638878
Safari on iOS – No support
Safari on iOS
footnote No support
cookieStoreId
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 53 (Release date: 2017-04-19)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote
footnote Until Firefox for Android 137 contextualIdentities is defined but not functional. From Firefox for Android 138 contextualIdentities is inaccessible.
footnote See bug 1638878
Safari on iOS – No support
Safari on iOS
footnote No support
icon
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 53 (Release date: 2017-04-19)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote
footnote Until Firefox for Android 137 contextualIdentities is defined but not functional. From Firefox for Android 138 contextualIdentities is inaccessible.
footnote See bug 1638878
Safari on iOS – No support
Safari on iOS
footnote No support
iconUrl
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 57 (Release date: 2017-11-14)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote
footnote Until Firefox for Android 137 contextualIdentities is defined but not functional. From Firefox for Android 138 contextualIdentities is inaccessible.
footnote See bug 1638878
Safari on iOS – No support
Safari on iOS
footnote No support
name
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – Full support
Firefox 53 (Release date: 2017-04-19)
footnote Full support
Opera – No support
Opera
footnote No support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote
footnote Until Firefox for Android 137 contextualIdentities is defined but not functional. From Firefox for Android 138 contextualIdentities is inaccessible.
footnote See bug 1638878
Safari on iOS – No support
Safari on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.