feat(firefox): roll to r1539 (#41970)

Co-authored-by: microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com>
Co-authored-by: Dmitry Gozman <[email protected]>
This commit is contained in:
microsoft-playwright-automation[bot]
2026-07-24 14:21:31 +01:00
committed by GitHub
co-authored by microsoft-playwright-automation[bot] <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> Dmitry Gozman
parent 824f55f354
commit acb5465083
5 changed files with 7 additions and 8 deletions
@@ -301,13 +301,12 @@ class NetworkRequest {
const proxy = this._networkObserver._targetRegistry.getProxyInfo(aChannel);
credentials = proxy ? {username: proxy.username, password: proxy.password} : null;
} else {
credentials = pageNetwork._target.browserContext().httpCredentials;
const origin = (aChannel.URI.scheme + '://' + aChannel.URI.hostPort).toLowerCase();
const httpCredentials = pageNetwork._target.browserContext().httpCredentials || [];
credentials = httpCredentials.find(c => !c.origin || c.origin.toLowerCase() === origin) || null;
}
if (!credentials)
return false;
const origin = aChannel.URI.scheme + '://' + aChannel.URI.hostPort;
if (credentials.origin && origin.toLowerCase() !== credentials.origin.toLowerCase())
return false;
authInfo.username = credentials.username;
authInfo.password = credentials.password;
// This will produce a new request with respective auth header set.
@@ -273,7 +273,7 @@ const Browser = {
'setHTTPCredentials': {
params: {
browserContextId: t.Optional(t.String),
credentials: t.Nullable(networkTypes.HTTPCredentials),
credentials: t.Nullable(t.Array(networkTypes.HTTPCredentials)),
},
},
'setRequestInterception': {
+1 -1
View File
@@ -31,7 +31,7 @@
},
{
"name": "firefox",
"revision": "1538",
"revision": "1539",
"installByDefault": true,
"browserVersion": "153.0",
"title": "Firefox"
@@ -322,7 +322,7 @@ export class FFBrowserContext extends BrowserContext {
let credentials = null;
if (httpCredentials) {
const { username, password, origin } = httpCredentials;
credentials = { username, password, origin };
credentials = [{ username, password, origin }];
}
await this._browser.session.send('Browser.setHTTPCredentials', { browserContextId: this._browserContextId, credentials });
}
+1 -1
View File
@@ -136,7 +136,7 @@ export namespace Protocol {
username: string;
password: string;
origin?: string;
}|null;
}[]|null;
};
export type setHTTPCredentialsReturnValue = void;
export type setRequestInterceptionParameters = {