chore: do not double close connection (#744)

This commit is contained in:
Yury Semikhatsky 2025-07-23 17:41:15 -07:00 committed by GitHub
parent 2c5eac89a8
commit bc120baa78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 60 additions and 59 deletions

View file

@ -307,7 +307,9 @@ class ExtensionContextFactory implements BrowserContextFactory {
const browser = await this._browserPromise;
return {
browserContext: browser.contexts()[0],
close: async () => {}
close: async () => {
debugLogger('close() called for browser context, ignoring');
}
};
}