enhancement: Cookie type missing SameSite attribute #22
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #3
Description
The
Cookiestruct incookiejar.go:9-17is missing theSameSiteattribute:Playwright's
Cookietype includesSameSite(Strict,Lax,None), but this field is lost during conversion inplaywrightCookieToCookie()(playwright.go:80-89).Impact
Low — the current use cases may not need SameSite. But for completeness, especially for the cookie jar's
cookies.txtimport/export, supporting this field would improve fidelity.Fix
Add
SameSite stringtoCookieand update the conversion functions.Starting work on this. Will add
SameSitefield toCookiestruct and update Playwright conversion functions.Work finished — added
SameSitefield toCookiestruct withSameSiteStrict,SameSiteLax,SameSiteNoneconstants. Playwright conversion functions updated. Merged in PR #42.Resolved by PR #42 — added
SameSitefield toCookiestruct and updated conversion functions.