Changeset 215524 in webkit


Ignore:
Timestamp:
Apr 19, 2017 12:11:25 PM (7 years ago)
Author:
Brent Fulgham
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):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r215523 r215524  
     12017-04-19  Brent Fulgham  <bfulgham@apple.com>
     2
     3        [WK2] Run tests with ResourceLoadStatistics enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=170952
     5
     6        Reviewed by Andy Estes.
     7
     8        Excercise the load statistics code during tests.
     9
     10        * WebKitTestRunner/cocoa/TestControllerCocoa.mm:
     11        (WTR::initializeWebViewConfiguration):
     12
    1132017-04-19  Bill Ming  <mbbill@gmail.com>
    214
  • trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm

    r214413 r215524  
    3333#import <Foundation/Foundation.h>
    3434#import <WebKit/WKContextConfigurationRef.h>
     35#import <WebKit/WKCookieManager.h>
    3536#import <WebKit/WKPreferencesRefPrivate.h>
    3637#import <WebKit/WKProcessPoolPrivate.h>
     
    4142#import <WebKit/WKWebViewConfigurationPrivate.h>
    4243#import <WebKit/WKWebViewPrivate.h>
     44#import <WebKit/WKWebsiteDataStoreRef.h>
    4345#import <WebKit/_WKProcessPoolConfiguration.h>
    4446#import <WebKit/_WKUserContentExtensionStore.h>
     
    6365    globalWebViewConfiguration._applePayEnabled = YES;
    6466#endif
     67
     68#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000)
     69    WKCookieManagerSetCookieStoragePartitioningEnabled(WKContextGetCookieManager(context), true);
     70#endif
     71
     72    WKWebsiteDataStoreSetResourceLoadStatisticsEnabled(WKContextGetWebsiteDataStore(context), true);
    6573
    6674#if PLATFORM(IOS)
Note: See TracChangeset for help on using the changeset viewer.