Skip to content

CookieChangeEvent behaviour for cookieStore.delete()s of non-existing cookies is under specified #282

@IdanHo

Description

@IdanHo

What is the issue with the Cookie Store API Standard?

The cookieStore does not fire change events for non-existing expired cookies subtest of WPT test https://github.com/web-platform-tests/wpt/blob/master/cookiestore/cookieStore_event_delete.https.window.js verifies that CookieChangeEvent deleted events are not fired for delete()s of non-existing cookies.
I could not find spec language that explicitly specifies that, and moreover the current definition is:

- A cookie which is removed due to an insertion of another cookie with the same name, domain, and path is ignored.
- A newly-created cookie which is not immediately evicted is considered changed.
- A newly-created cookie which is immediately evicted is considered deleted.
- A cookie which is otherwise evicted or removed is considered deleted

I read that as the delete('non-existent') falling into the third case.

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