Title: [243834] trunk/Source/WebKit
Revision
243834
Author
[email protected]
Date
2019-04-03 16:21:04 -0700 (Wed, 03 Apr 2019)

Log Message

Fix internal build after r243829
https://bugs.webkit.org/show_bug.cgi?id=196549

* NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(WebKit::NetworkSessionCocoa::NetworkSessionCocoa):
Some SDK's don't include this selector in the header.
Use NSSelectorFromString.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (243833 => 243834)


--- trunk/Source/WebKit/ChangeLog	2019-04-03 23:08:44 UTC (rev 243833)
+++ trunk/Source/WebKit/ChangeLog	2019-04-03 23:21:04 UTC (rev 243834)
@@ -1,3 +1,13 @@
+2019-04-03  Alex Christensen  <[email protected]>
+
+        Fix internal build after r243829
+        https://bugs.webkit.org/show_bug.cgi?id=196549
+
+        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
+        (WebKit::NetworkSessionCocoa::NetworkSessionCocoa):
+        Some SDK's don't include this selector in the header.
+        Use NSSelectorFromString.
+
 2019-04-03  Don Olmstead  <[email protected]>
 
         [CMake][WTF] Mirror XCode header directories

Modified: trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm (243833 => 243834)


--- trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm	2019-04-03 23:08:44 UTC (rev 243833)
+++ trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm	2019-04-03 23:21:04 UTC (rev 243834)
@@ -49,6 +49,7 @@
 #import <pal/spi/cf/CFNetworkSPI.h>
 #import <wtf/MainThread.h>
 #import <wtf/NeverDestroyed.h>
+#import <wtf/ObjCRuntimeExtras.h>
 #import <wtf/ProcessPrivilege.h>
 #import <wtf/URL.h>
 #import <wtf/text/WTFString.h>
@@ -946,8 +947,9 @@
     configuration._companionProxyPreference = NSURLSessionCompanionProxyPreferencePreferDirectToCloud;
 #endif
 
-    if (parameters.allowsTLSFallback == AllowsTLSFallback::No && [configuration respondsToSelector:@selector(_allowsTLSFallback)])
-        configuration._allowsTLSFallback = NO;
+    static SEL allowsTLSFallbackSetter = NSSelectorFromString(@"set_allowsTLSFallback");
+    if (parameters.allowsTLSFallback == AllowsTLSFallback::No && [configuration respondsToSelector:allowsTLSFallbackSetter])
+        wtfObjCMsgSend<void>(configuration, allowsTLSFallbackSetter, NO);
 
     auto* storageSession = networkProcess.storageSession(parameters.sessionID);
     RELEASE_ASSERT(storageSession);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to