Skip to content

Conversation

@weillercarvalho
Copy link

@weillercarvalho weillercarvalho commented Nov 21, 2025

Summary:

Fix WebKit/macOS Set-Cookie splitting so Expires commas don’t swallow additional cookies.
Add regression unit test covering single Expires + multiple cookies.

Issue:

Fixes #38311

Testing:

npm run ctest -- tests/library/unit/headers.spec.ts
(Optional) Note: full npm run ctest hit two SOCKS/IPv6 proxy infra failures, unrelated to this change.

@weillercarvalho
Copy link
Author

@microsoft-github-policy-service agree

Copy link
Member

@yury-s yury-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before jumping to the implementation, please clarify (in the linked issue) what user-facing problem you are trying to solve.

*/

import { test, expect } from '@playwright/test';
import { headersObjectToArray } from '../../../packages/playwright-core/src/utils/isomorphic/headers';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We normally don't test internals with unit tests and prefer end-to-end tests that call public APIs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: WebKit/macOS: Set-Cookie headers with Expires commas aren’t split; second cookie lost

2 participants