Skip to content

[BUG] WebKit / Chromium setting a cookie with expiration does not work #12226

@rado-o

Description

@rado-o

Context:

  • Playwright Version: 1.19.0
  • Browser: WebKit
  • CI/CD: GitLab (Docker image: playwright:focal)
  • Failed pipeline run

Code Snippet
Sample test

Describe the bug
Running the sample test on GitLab CI/CD (Docker) fails only in WebKit - not reproducible for Firefox/Chrome.
The issue is not reproducible when running the test in WebKit locally (Windows 10, Node.js : v16.13.2)

browserContext.addCookies: Protocol error (Playwright.setCookies): Internal error: no network storage [{"code":-[32](https://gitlab.com/user/plawright_webkit_error/-/jobs/2111581501#L32)000,"message":"Internal error: no network storage"}]
      14 |             secure: false
      15 |         }];
    > 16 |         await context.addCookies(validCookieSession);
         |                       ^
      17 |     });
      18 |
      19 |     test('Inventory Page - Navigate', async({page}) => {
        at /builds/user/plawright_webkit_error/tests/inventory_page.spec.ts:16:23

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions