Title: [197714] trunk/Source/WebKit2
Revision
197714
Author
[email protected]
Date
2016-03-07 16:14:34 -0800 (Mon, 07 Mar 2016)

Log Message

Correct bug in resource load statistics debug flag for legacy clients
https://bugs.webkit.org/show_bug.cgi?id=155118
<rdar://problem/25020088>

Reviewed by Andy Estes.

Some clients launch WebKit2 using the "legacy" configuration for the website data store.
The Resource Load Statistics code was not added to this type of configuration, which
prevents various WebKit2 clients from using this code.

* UIProcess/WebProcessPool.cpp:
(WebKit::legacyWebsiteDataStoreConfiguration): Tell the legacy initializer where to
find the resource load statistics data.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (197713 => 197714)


--- trunk/Source/WebKit2/ChangeLog	2016-03-08 00:04:45 UTC (rev 197713)
+++ trunk/Source/WebKit2/ChangeLog	2016-03-08 00:14:34 UTC (rev 197714)
@@ -1,3 +1,19 @@
+2016-03-07  Brent Fulgham  <[email protected]>
+
+        Correct bug in resource load statistics debug flag for legacy clients
+        https://bugs.webkit.org/show_bug.cgi?id=155118
+        <rdar://problem/25020088>
+
+        Reviewed by Andy Estes.
+
+        Some clients launch WebKit2 using the "legacy" configuration for the website data store.
+        The Resource Load Statistics code was not added to this type of configuration, which
+        prevents various WebKit2 clients from using this code.
+
+        * UIProcess/WebProcessPool.cpp:
+        (WebKit::legacyWebsiteDataStoreConfiguration): Tell the legacy initializer where to
+        find the resource load statistics data.
+
 2016-03-07  Daniel Bates  <[email protected]>
 
         Cleanup: Add convenience function URL::procotolIsBlob()

Modified: trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp (197713 => 197714)


--- trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp	2016-03-08 00:04:45 UTC (rev 197713)
+++ trunk/Source/WebKit2/UIProcess/WebProcessPool.cpp	2016-03-08 00:14:34 UTC (rev 197714)
@@ -131,6 +131,9 @@
     configuration.mediaKeysStorageDirectory = WebProcessPool::legacyPlatformDefaultMediaKeysStorageDirectory();
     configuration.networkCacheDirectory = WebProcessPool::legacyPlatformDefaultNetworkCacheDirectory();
 
+    // This is needed to support legacy WK2 clients, which did not have resource load statistics.
+    configuration.resourceLoadStatisticsDirectory = API::WebsiteDataStore::defaultResourceLoadStatisticsDirectory();
+
     return configuration;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to