chore: remove same site hack for libsoup on the client (#31192)
This commit is contained in:
parent
c8b7cda514
commit
fc6fcc2118
|
|
@ -268,8 +268,6 @@ export class WKBrowserContext extends BrowserContext {
|
||||||
...c,
|
...c,
|
||||||
session: c.expires === -1 || c.expires === undefined,
|
session: c.expires === -1 || c.expires === undefined,
|
||||||
expires: c.expires && c.expires !== -1 ? c.expires * 1000 : c.expires,
|
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[];
|
})) as Protocol.Playwright.SetCookieParam[];
|
||||||
await this._browser._browserSession.send('Playwright.setCookies', { cookies: cc, browserContextId: this._browserContextId });
|
await this._browser._browserSession.send('Playwright.setCookies', { cookies: cc, browserContextId: this._browserContextId });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue