Update NetworkSession to use Session Cleanup when available
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Feb 2019 22:08:33 +0000 (22:08 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Feb 2019 22:08:33 +0000 (22:08 +0000)
https://bugs.webkit.org/show_bug.cgi?id=195019
<rdar://problem/45149868>

Reviewed by Alex Christensen.

If the build environment supports Session Cleanup, initialize it.

No test changes since this doesn't do anything on the test systems at present.

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

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

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

index 7fe27e0..f31a6fd 100644 (file)
@@ -1,3 +1,18 @@
+2019-02-26  Brent Fulgham  <bfulgham@apple.com>
+
+        Update NetworkSession to use Session Cleanup when available
+        https://bugs.webkit.org/show_bug.cgi?id=195019
+        <rdar://problem/45149868>
+
+        Reviewed by Alex Christensen.
+
+        If the build environment supports Session Cleanup, initialize it.
+
+        No test changes since this doesn't do anything on the test systems at present.
+
+        * NetworkProcess/cocoa/NetworkSessionCocoa.mm:
+        (WebKit::NetworkSessionCocoa::NetworkSessionCocoa):
+
 2019-02-26  Chris Dumez  <cdumez@apple.com>
 
         [iOS] Regression(PSON) Scroll position is no longer restored when navigating back to reddit.com
index bcc8aa2..1907a55 100644 (file)
@@ -949,6 +949,10 @@ NetworkSessionCocoa::NetworkSessionCocoa(NetworkProcess& networkProcess, Network
     m_resourceLoadStatisticsDirectory = parameters.resourceLoadStatisticsDirectory;
     setResourceLoadStatisticsEnabled(parameters.enableResourceLoadStatistics);
 #endif
+
+#if HAVE(SESSION_CLEANUP)
+    activateSessionCleanup(*this);
+#endif
 }
 
 NetworkSessionCocoa::~NetworkSessionCocoa()