Skip to content

[Firefox] Removing cookie failed: Cookie did not include a name #30341

Open
@Serveny

Description

Current behavior

If setting a cookie without a name, cypress running under firefox is unable to delete the cookie the next time running the test. Every test after this will fail.

image

Desired behavior

Cypress should clear all cookies, regardless if it has a name or not.

Test code to reproduce

describe('BugReproductions', () => {
  it('Can handle broken cookies', () => {
    // Unnamed cookie
    cy.setCookie('', `[{"id":"test-data-1","title":"Test Data 1"}]`);

    cy.visit('/');
  });
});

Cypress Version

13.15.0

Node version

v22.2.0

Operating System

Windows 11

Debug Logs

Removing cookie failed for: {"domain":"localhost","httpOnly":false,"name":"","path":"/","sameSite":"no_restriction","secure":false,"value":"[{"id":"test-data-1","title":"Test Data 1"}]","expirationDate":2359029695}. Cookie did not include a name

Other

I need this to reproduce a bug, where I got an unnamed cookie and it broke my web application.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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