Skip to content

Expose partitioning in serialized cookies #1894

Open
@johannhof

Description

@johannhof

WebDriver has a representation of cookies that contains some of their most relevant concepts for test introspection. It's currently missing support for the "Partition Key" of a cookie when using CHIPS. Because the partition key is more than just a site, it's a site and an ancestor chain bit (or potentially no partition key at all), it's not clear what it should serialize to.

As a straw man suggestion just to get some input, I could imagine splitting it up into two attributes:

  • cookie["partitionKeySite"], which is either a DOMString representing a site, or undefined.
  • cookie["partitionKeyHasCrossSiteAncestors"], which is a boolean that represents whether or not the partition key has the ancestor chain bit (yes this is a really long name)

Any thoughts / suggestions @annevk @DCtheTall @bvandersloot-mozilla?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions