playwright-core 1.55.0-alpha-1755516433000 → 1.55.0-beta-1755602792000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -61,8 +61,8 @@ class BidiBrowser extends import_browser.Browser {
|
|
|
61
61
|
browser._bidiSessionInfo = await browser._browserSession.send("session.new", {
|
|
62
62
|
capabilities: {
|
|
63
63
|
alwaysMatch: {
|
|
64
|
-
acceptInsecureCerts:
|
|
65
|
-
proxy: getProxyConfiguration(options.proxy),
|
|
64
|
+
acceptInsecureCerts: options.persistent?.internalIgnoreHTTPSErrors || options.persistent?.ignoreHTTPSErrors,
|
|
65
|
+
proxy: getProxyConfiguration(options.originalLaunchOptions.proxyOverride ?? options.proxy),
|
|
66
66
|
unhandledPromptBehavior: {
|
|
67
67
|
default: bidi.Session.UserPromptHandlerType.Ignore
|
|
68
68
|
},
|
|
@@ -91,9 +91,10 @@ class BidiBrowser extends import_browser.Browser {
|
|
|
91
91
|
this._didClose();
|
|
92
92
|
}
|
|
93
93
|
async doCreateNewContext(options) {
|
|
94
|
+
const proxy = options.proxyOverride || options.proxy;
|
|
94
95
|
const { userContext } = await this._browserSession.send("browser.createUserContext", {
|
|
95
|
-
acceptInsecureCerts: options.ignoreHTTPSErrors,
|
|
96
|
-
proxy: getProxyConfiguration(
|
|
96
|
+
acceptInsecureCerts: options.internalIgnoreHTTPSErrors || options.ignoreHTTPSErrors,
|
|
97
|
+
proxy: getProxyConfiguration(proxy)
|
|
97
98
|
});
|
|
98
99
|
const context = new BidiBrowserContext(this, userContext, options);
|
|
99
100
|
await context._initialize();
|
|
@@ -423,8 +424,9 @@ function getProxyConfiguration(proxySettings) {
|
|
|
423
424
|
default:
|
|
424
425
|
throw new Error("Invalid proxy server protocol: " + proxySettings.server);
|
|
425
426
|
}
|
|
426
|
-
|
|
427
|
-
|
|
427
|
+
const bypass = proxySettings.bypass ?? process.env.PLAYWRIGHT_PROXY_BYPASS_FOR_TESTING;
|
|
428
|
+
if (bypass)
|
|
429
|
+
proxy.noProxy = bypass.split(",");
|
|
428
430
|
return proxy;
|
|
429
431
|
}
|
|
430
432
|
var Network;
|