Skip to content

Commit c03b39a

Browse files
authored
browser(webkit): roll back to using same proxy for http & https (#2471)
1 parent 601eddf commit c03b39a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

browser_patches/webkit/BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1264
1+
1265

browser_patches/webkit/embedder/Playwright/mac/AppDelegate.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,13 @@ - (NSDictionary *)proxyConfiguration:(NSString *)proxyServer
148148
[dictionary setObject:host forKey:(NSString *)kCFStreamPropertySOCKSProxyHost];
149149
if (port)
150150
[dictionary setObject:port forKey:(NSString *)kCFStreamPropertySOCKSProxyPort];
151-
} else if ([proxyServer hasPrefix:@"https://"]) {
152-
[dictionary setObject:host forKey:(NSString *)kCFStreamPropertyHTTPSProxyHost];
153-
if (port)
154-
[dictionary setObject:port forKey:(NSString *)kCFStreamPropertyHTTPSProxyPort];
155151
} else {
152+
[dictionary setObject:host forKey:(NSString *)kCFStreamPropertyHTTPSProxyHost];
156153
[dictionary setObject:host forKey:(NSString *)kCFStreamPropertyHTTPProxyHost];
157-
if (port)
154+
if (port) {
155+
[dictionary setObject:port forKey:(NSString *)kCFStreamPropertyHTTPSProxyPort];
158156
[dictionary setObject:port forKey:(NSString *)kCFStreamPropertyHTTPProxyPort];
157+
}
159158
}
160159

161160
#pragma clang diagnostic pop

0 commit comments

Comments
 (0)