Title: [215524] trunk/Tools
- Revision
- 215524
- Author
- [email protected]
- Date
- 2017-04-19 12:11:25 -0700 (Wed, 19 Apr 2017)
Log Message
[WK2] Run tests with ResourceLoadStatistics enabled
https://bugs.webkit.org/show_bug.cgi?id=170952
Reviewed by Andy Estes.
Excercise the load statistics code during tests.
* WebKitTestRunner/cocoa/TestControllerCocoa.mm:
(WTR::initializeWebViewConfiguration):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (215523 => 215524)
--- trunk/Tools/ChangeLog 2017-04-19 18:57:49 UTC (rev 215523)
+++ trunk/Tools/ChangeLog 2017-04-19 19:11:25 UTC (rev 215524)
@@ -1,3 +1,15 @@
+2017-04-19 Brent Fulgham <[email protected]>
+
+ [WK2] Run tests with ResourceLoadStatistics enabled
+ https://bugs.webkit.org/show_bug.cgi?id=170952
+
+ Reviewed by Andy Estes.
+
+ Excercise the load statistics code during tests.
+
+ * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
+ (WTR::initializeWebViewConfiguration):
+
2017-04-19 Bill Ming <[email protected]>
close_fds should be set to False on Windows.
Modified: trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm (215523 => 215524)
--- trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm 2017-04-19 18:57:49 UTC (rev 215523)
+++ trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm 2017-04-19 19:11:25 UTC (rev 215524)
@@ -32,6 +32,7 @@
#import "TestRunnerWKWebView.h"
#import <Foundation/Foundation.h>
#import <WebKit/WKContextConfigurationRef.h>
+#import <WebKit/WKCookieManager.h>
#import <WebKit/WKPreferencesRefPrivate.h>
#import <WebKit/WKProcessPoolPrivate.h>
#import <WebKit/WKStringCF.h>
@@ -40,6 +41,7 @@
#import <WebKit/WKWebViewConfiguration.h>
#import <WebKit/WKWebViewConfigurationPrivate.h>
#import <WebKit/WKWebViewPrivate.h>
+#import <WebKit/WKWebsiteDataStoreRef.h>
#import <WebKit/_WKProcessPoolConfiguration.h>
#import <WebKit/_WKUserContentExtensionStore.h>
#import <WebKit/_WKUserContentExtensionStorePrivate.h>
@@ -63,6 +65,12 @@
globalWebViewConfiguration._applePayEnabled = YES;
#endif
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000)
+ WKCookieManagerSetCookieStoragePartitioningEnabled(WKContextGetCookieManager(context), true);
+#endif
+
+ WKWebsiteDataStoreSetResourceLoadStatisticsEnabled(WKContextGetWebsiteDataStore(context), true);
+
#if PLATFORM(IOS)
globalWebViewConfiguration.allowsInlineMediaPlayback = YES;
globalWebViewConfiguration._inlineMediaPlaybackRequiresPlaysInlineAttribute = NO;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes