Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
feat(webkit): roll to r2337 (#41971)
microsoft-playwright-automation[bot]7c3a9be23047
diff --git a/packages/playwright-core/browsers.json b/packages/playwright-core/browsers.jsonindex ccd46d1955..6383abb91c 100644--- a/packages/playwright-core/browsers.json+++ b/packages/playwright-core/browsers.json@@ -45,7 +45,7 @@},{"name": "webkit",- "revision": "2336",+ "revision": "2337","installByDefault": true,"revisionOverrides": {"mac14": "2251",diff --git a/packages/playwright-core/src/server/webkit/protocol.d.ts b/packages/playwright-core/src/server/webkit/protocol.d.tsindex cde57e4dc9..7a099c55b1 100644--- a/packages/playwright-core/src/server/webkit/protocol.d.ts+++ b/packages/playwright-core/src/server/webkit/protocol.d.ts@@ -4373,6 +4373,17 @@ might return multiple quads for inline nodes.}export namespace Emulation {+ /**+ * Credentials for HTTP authentication.+ */+ export interface AuthCredentials {+ username: string;+ password: string;+ /**+ * When specified, the credentials are only used for challenges from the matching origin.+ */+ origin?: string;+ }/**@@ -4395,12 +4406,10 @@ might return multiple quads for inline nodes.export type setJavaScriptEnabledReturnValue = {}/**- * Credentials to use during HTTP authentication.+ * Credentials to use during HTTP authentication. The first credentials with matching origin are used. When missing, automation handling of authentication challenges is disabled.*/export type setAuthCredentialsParameters = {- username?: string;- password?: string;- origin?: string;+ credentials?: AuthCredentials[];}export type setAuthCredentialsReturnValue = {}diff --git a/packages/playwright-core/src/server/webkit/wkPage.ts b/packages/playwright-core/src/server/webkit/wkPage.tsindex a53085d504..0ef1768254 100644--- a/packages/playwright-core/src/server/webkit/wkPage.ts+++ b/packages/playwright-core/src/server/webkit/wkPage.ts@@ -753,7 +753,7 @@ export class WKPage implements PageDelegate {async updateHttpCredentials() {const credentials = this._browserContext._options.httpCredentials || { username: '', password: '', origin: '' };- await this._pageProxySession.send('Emulation.setAuthCredentials', { username: credentials.username, password: credentials.password, origin: credentials.origin });+ await this._pageProxySession.send('Emulation.setAuthCredentials', { credentials: [{ username: credentials.username, password: credentials.password, origin: credentials.origin }] });}async updateFileChooserInterception() {