Tell Networking Process to not optimize load
authorjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Feb 2019 19:47:03 +0000 (19:47 +0000)
committerjiewen_tan@apple.com <jiewen_tan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Feb 2019 19:47:03 +0000 (19:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=194753
<rdar://problem/48143603>

Reviewed by Brent Fulgham.

* NetworkProcess/cocoa/NetworkSessionCocoa.mm:
(WebKit::NetworkSessionCocoa::NetworkSessionCocoa):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@241731 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm

index fd3379f..d3d7554 100644 (file)
@@ -1,3 +1,14 @@
+2019-02-18  Jiewen Tan  <jiewen_tan@apple.com>
+
+        Tell Networking Process to not optimize load
+        https://bugs.webkit.org/show_bug.cgi?id=194753
+        <rdar://problem/48143603>
+
+        Reviewed by Brent Fulgham.
+
+        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
+        (WebKit::NetworkSessionCocoa::NetworkSessionCocoa):
+
 2019-02-18  Dean Jackson  <dino@apple.com>
 
         iOS Safari will not load USDZ in QLPreview when opening as BLOB
index 2a95d9d..bcc8aa2 100644 (file)
 #import <wtf/URL.h>
 #import <wtf/text/WTFString.h>
 
+#if USE(APPLE_INTERNAL_SDK)
+#include <WebKitAdditions/NetworkSessionCocoaAdditions.h>
+#endif
+
 using namespace WebKit;
 
 CFStringRef const WebKit2HTTPProxyDefaultsKey = static_cast<CFStringRef>(@"WebKit2HTTPProxy");
@@ -857,6 +861,10 @@ NetworkSessionCocoa::NetworkSessionCocoa(NetworkProcess& networkProcess, Network
 
     NSURLSessionConfiguration *configuration = configurationForSessionID(m_sessionID);
 
+#if HAVE(LOAD_OPTIMIZER)
+    NETWORKSESSIONCOCOA_LOADOPTIMIZER_ADDITIONS
+#endif
+
 #if USE(CFNETWORK_AUTO_ADDED_HTTP_HEADER_SUPPRESSION)
     // Without this, CFNetwork would sometimes add a Content-Type header to our requests (rdar://problem/34748470).
     configuration._suppressedAutoAddedHTTPHeaders = [NSSet setWithObject:@"Content-Type"];