Skip to content

Ambiguity on setting a cookie with "" (empty string) as the path. #242

@RupinMittal

Description

@RupinMittal

The spec (https://wicg.github.io/cookie-store/#set-a-cookie) says that if set is called with a path passed in, and the path does not start with a "/", then we should return a failure. This implies that passing in "" should cause a failure.

However, Chrome does not return failure here, but rather fills in the path itself and sets the cookie.

Which is correct? Returning a failure or filling in the path automatically if an empty string is passed in? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions