chore(extension): support running in http mode (#717)

This commit is contained in:
Yury Semikhatsky 2025-07-19 08:30:29 -07:00 committed by GitHub
parent 29711d07d3
commit e3df209b96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 53 additions and 44 deletions

View file

@ -336,7 +336,7 @@ ${code.join('\n')}
private async _setupBrowserContext(): Promise<{ browserContext: playwright.BrowserContext, close: () => Promise<void> }> {
// TODO: move to the browser context factory to make it based on isolation mode.
const result = await this._browserContextFactory.createContext();
const result = await this._browserContextFactory.createContext(this.clientVersion!);
const { browserContext } = result;
await this._setupRequestInterception(browserContext);
for (const page of browserContext.pages())