contextualIdentitities.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"
colorCode
string. A hex code representing the exact color used for the identity. For example: "#37adff".
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"
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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxOperaFirefox for Android
cookieStoreIdChrome No support NoEdge No support NoFirefox Full support 53Opera No support NoFirefox Android Full support 53
colorChrome No support NoEdge No support NoFirefox Full support 53Opera No support NoFirefox Android Full support 53
colorCodeChrome No support NoEdge No support NoFirefox Full support 57Opera No support NoFirefox Android Full support 57
iconChrome No support NoEdge No support NoFirefox Full support 53Opera No support NoFirefox Android Full support 53
iconUrlChrome No support NoEdge No support NoFirefox Full support 57Opera No support NoFirefox Android Full support 57
nameChrome No support NoEdge No support NoFirefox Full support 53Opera No support NoFirefox Android Full support 53

Legend

Full support  
Full support
No support  
No support

Document Tags and Contributors

Contributors to this page: jonathanKingston, wbamberg
Last updated by: jonathanKingston,