Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

browser(webkit): roll back to using same proxy for http & https (#2471)

Pavel Feldmanc03b39a30eac
diff --git a/browser_patches/webkit/BUILD_NUMBER b/browser_patches/webkit/BUILD_NUMBER
index 5c59e571ed..d07807cbf0 100644
--- a/browser_patches/webkit/BUILD_NUMBER
+++ b/browser_patches/webkit/BUILD_NUMBER
@@ -1 +1 @@
-1264
+1265
diff --git a/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m b/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m
index 2a6117e2ae..c441270730 100644
--- a/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m
+++ b/browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m
@@ -148,14 +148,13 @@ const NSActivityOptions ActivityOptions =
[dictionary setObject:host forKey:(NSString *)kCFStreamPropertySOCKSProxyHost];
if (port)
[dictionary setObject:port forKey:(NSString *)kCFStreamPropertySOCKSProxyPort];
- } else if ([proxyServer hasPrefix:@"https://"]) {
- [dictionary setObject:host forKey:(NSString *)kCFStreamPropertyHTTPSProxyHost];
- if (port)
- [dictionary setObject:port forKey:(NSString *)kCFStreamPropertyHTTPSProxyPort];
} else {
+ [dictionary setObject:host forKey:(NSString *)kCFStreamPropertyHTTPSProxyHost];
[dictionary setObject:host forKey:(NSString *)kCFStreamPropertyHTTPProxyHost];
- if (port)
+ if (port) {
+ [dictionary setObject:port forKey:(NSString *)kCFStreamPropertyHTTPSProxyPort];
[dictionary setObject:port forKey:(NSString *)kCFStreamPropertyHTTPProxyPort];
+ }
}
#pragma clang diagnostic pop