chore: remove same site hack for libsoup on the client (#31192)

This commit is contained in:
Yury Semikhatsky 2024-06-06 08:55:38 -07:00 committed by GitHub
parent c8b7cda514
commit fc6fcc2118
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,8 +268,6 @@ export class WKBrowserContext extends BrowserContext {
...c,
session: c.expires === -1 || c.expires === undefined,
expires: c.expires && c.expires !== -1 ? c.expires * 1000 : c.expires,
// TODO: make WebKit on linux work without eplicit sameSite.
sameSite: c.sameSite ?? (process.platform === 'linux' ? 'Lax' : undefined)
})) as Protocol.Playwright.SetCookieParam[];
await this._browser._browserSession.send('Playwright.setCookies', { cookies: cc, browserContextId: this._browserContextId });
}