Title: [239631] trunk
Revision
239631
Author
[email protected]
Date
2019-01-04 13:12:15 -0800 (Fri, 04 Jan 2019)

Log Message

Deprecate WKContextCreate
https://bugs.webkit.org/show_bug.cgi?id=193118

Reviewed by Brady Eidson.

Source/WebKit:

It has only one use that is being removed in rdar://problem/47030792
This is a step towards removing ProcessPoolConfiguration::createWithLegacyOptions.
Also make WKContextCreateWithConfiguration accept a null configuration to make it easier to use.

* UIProcess/API/C/WKContext.cpp:
(WKContextCreateWithConfiguration):
* UIProcess/API/C/WKContext.h:

Tools:

* MiniBrowser/win/WebKitBrowserWindow.cpp:
(WebKitBrowserWindow::WebKitBrowserWindow):
* TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/CookieManager.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/EventModifiers.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/FailedLoad.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/Find.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/FindMatches.mm:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/FrameHandle.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/Geolocation.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp:
(TestWebKitAPI::loadAlternateHTMLString):
* TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp:
(TestWebKitAPI::WebKit2CrashLoader::WebKit2CrashLoader):
* TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp:
(TestWebKitAPI::buildAndPerformTest):
* TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/PageGroup.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/UserMedia.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm:
(WebKit2_CommandBackForwardTestWKView::SetUp):
* TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm:
(TestWebKitAPI::TEST):
* TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm:
(TestWebKitAPI::TEST):
* TestWebKitAPI/mac/WebKitAgnosticTest.mm:
(TestWebKitAPI::WebKitAgnosticTest::runWebKit2Test):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (239630 => 239631)


--- trunk/Source/WebKit/ChangeLog	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Source/WebKit/ChangeLog	2019-01-04 21:12:15 UTC (rev 239631)
@@ -1,3 +1,18 @@
+2019-01-04  Alex Christensen  <[email protected]>
+
+        Deprecate WKContextCreate
+        https://bugs.webkit.org/show_bug.cgi?id=193118
+
+        Reviewed by Brady Eidson.
+
+        It has only one use that is being removed in rdar://problem/47030792
+        This is a step towards removing ProcessPoolConfiguration::createWithLegacyOptions.
+        Also make WKContextCreateWithConfiguration accept a null configuration to make it easier to use.
+
+        * UIProcess/API/C/WKContext.cpp:
+        (WKContextCreateWithConfiguration):
+        * UIProcess/API/C/WKContext.h:
+
 2019-01-04  Tim Horton  <[email protected]>
 
         Fix the build

Modified: trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp (239630 => 239631)


--- trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Source/WebKit/UIProcess/API/C/WKContext.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -81,7 +81,10 @@
 
 WKContextRef WKContextCreateWithConfiguration(WKContextConfigurationRef configuration)
 {
-    return WebKit::toAPI(&WebKit::WebProcessPool::create(*WebKit::toImpl(configuration)).leakRef());
+    RefPtr<API::ProcessPoolConfiguration> apiConfiguration = WebKit::toImpl(configuration);
+    if (!apiConfiguration)
+        apiConfiguration = API::ProcessPoolConfiguration::create();
+    return WebKit::toAPI(&WebKit::WebProcessPool::create(*apiConfiguration).leakRef());
 }
 
 void WKContextSetClient(WKContextRef contextRef, const WKContextClientBase* wkClient)

Modified: trunk/Source/WebKit/UIProcess/API/C/WKContext.h (239630 => 239631)


--- trunk/Source/WebKit/UIProcess/API/C/WKContext.h	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Source/WebKit/UIProcess/API/C/WKContext.h	2019-01-04 21:12:15 UTC (rev 239631)
@@ -31,6 +31,7 @@
 #include <WebKit/WKContextDownloadClient.h>
 #include <WebKit/WKContextHistoryClient.h>
 #include <WebKit/WKContextInjectedBundleClient.h>
+#include <WebKit/WKDeprecated.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -105,7 +106,7 @@
 
 WK_EXPORT WKTypeID WKContextGetTypeID();
 
-WK_EXPORT WKContextRef WKContextCreate();
+WK_EXPORT WKContextRef WKContextCreate() WK_C_API_DEPRECATED_WITH_REPLACEMENT(WKContextCreateWithConfiguration);
 WK_EXPORT WKContextRef WKContextCreateWithInjectedBundlePath(WKStringRef path);
 WK_EXPORT WKContextRef WKContextCreateWithConfiguration(WKContextConfigurationRef configuration);
 

Modified: trunk/Tools/ChangeLog (239630 => 239631)


--- trunk/Tools/ChangeLog	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/ChangeLog	2019-01-04 21:12:15 UTC (rev 239631)
@@ -1,3 +1,117 @@
+2019-01-04  Alex Christensen  <[email protected]>
+
+        Deprecate WKContextCreate
+        https://bugs.webkit.org/show_bug.cgi?id=193118
+
+        Reviewed by Brady Eidson.
+
+        * MiniBrowser/win/WebKitBrowserWindow.cpp:
+        (WebKitBrowserWindow::WebKitBrowserWindow):
+        * TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/CookieManager.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/EventModifiers.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/FailedLoad.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/Find.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/FindMatches.mm:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/FrameHandle.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/Geolocation.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp:
+        (TestWebKitAPI::loadAlternateHTMLString):
+        * TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp:
+        (TestWebKitAPI::WebKit2CrashLoader::WebKit2CrashLoader):
+        * TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp:
+        (TestWebKitAPI::buildAndPerformTest):
+        * TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/PageGroup.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/UserMedia.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm:
+        (WebKit2_CommandBackForwardTestWKView::SetUp):
+        * TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm:
+        (TestWebKitAPI::TEST):
+        * TestWebKitAPI/mac/WebKitAgnosticTest.mm:
+        (TestWebKitAPI::WebKitAgnosticTest::runWebKit2Test):
+
 2019-01-03  Matt Rajca  <[email protected]>
 
         Make DidPlayMediaPreventedFromPlaying autoplay event more generic.

Modified: trunk/Tools/MiniBrowser/win/WebKitBrowserWindow.cpp (239630 => 239631)


--- trunk/Tools/MiniBrowser/win/WebKitBrowserWindow.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/MiniBrowser/win/WebKitBrowserWindow.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -98,7 +98,7 @@
     WKPreferencesSetDeveloperExtrasEnabled(prefs, true);
     WKPageConfigurationSetPreferences(conf.get(), prefs);
 
-    m_context = adoptWK(WKContextCreate());
+    m_context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKPageConfigurationSetContext(conf.get(), m_context.get());
 
     m_view = adoptWK(WKViewCreate(rect, conf.get(), mainWnd));

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -43,7 +43,7 @@
 
 TEST(WebKit, AboutBlankLoad)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -63,7 +63,7 @@
 
 TEST(WebKit, CloseFromWithinCreatePage)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     PlatformWebView webView(context.get());
 

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -44,7 +44,7 @@
 
 TEST(WebKit, CloseThenTerminate)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/CookieManager.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/CookieManager.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/CookieManager.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -72,7 +72,7 @@
 
 TEST(WebKit, CookieManager)
 {
-    wkContext.adopt(WKContextCreate());
+    wkContext.adopt(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(wkContext.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -71,7 +71,7 @@
 
 TEST(WebKit, DownloadDecideDestinationCrash)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     setContextDownloadClient(context.get());
 
     PlatformWebView webView(context.get());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -49,7 +49,7 @@
 
 TEST(WebKit, EnumerateDevices)
 {
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
 
     WKRetainPtr<WKPageGroupRef> pageGroup(AdoptWK, WKPageGroupCreateWithIdentifier(Util::toWK("EnumerateDevices").get()));
     WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroup.get());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -53,7 +53,7 @@
 {
     auto configuration = adoptWK(WKPageConfigurationCreate());
 
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKPageConfigurationSetContext(configuration.get(), context.get());
 
     auto websiteDataStore = adoptWK(WKWebsiteDataStoreCreateNonPersistentDataStore());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -51,7 +51,7 @@
 
 TEST(WebKit, EvaluateJavaScriptThatThrowsAnException)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKRetainPtr<WKStringRef> _javascript_String(AdoptWK, WKStringCreateWithUTF8CString("throw 'Hello'"));

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/EventModifiers.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/EventModifiers.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/EventModifiers.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -64,7 +64,7 @@
 
 TEST(WebKit, EventModifiers)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     
     PlatformWebView webView(context.get());
     setClients(webView.page());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/FailedLoad.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/FailedLoad.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/FailedLoad.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -51,7 +51,7 @@
 
 TEST(WebKit, FailedLoad)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/Find.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/Find.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/Find.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -51,7 +51,7 @@
 
 TEST(WebKit, Find)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
     
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/FindMatches.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/FindMatches.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/FindMatches.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -118,7 +118,7 @@
 
 TEST(WebKit, FindMatches)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
     
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -51,7 +51,7 @@
 
 TEST(WebKit, ForceRepaint)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameHandle.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameHandle.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameHandle.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -45,7 +45,7 @@
 
 TEST(WebKit, FrameHandle)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -58,7 +58,7 @@
 
 TEST(WebKit, FrameMIMETypeHTML)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -57,7 +57,7 @@
 
 TEST(WebKit, FrameMIMETypePNG)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/Geolocation.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/Geolocation.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/Geolocation.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -161,7 +161,7 @@
 
 TEST(WebKit, GeolocationBasic)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     GeolocationBasicStateTracker stateTracker;
     setupGeolocationProvider(context.get(), &stateTracker);
@@ -203,7 +203,7 @@
 
 TEST(WebKit, GeolocationBasicWithHighAccuracy)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     GeolocationBasicWithHighAccuracyStateTracker stateTracker;
     setupGeolocationProvider(context.get(), &stateTracker);
@@ -256,7 +256,7 @@
 
 TEST(WebKit, GeolocationTransitionToHighAccuracy)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     GeolocationTransitionToHighAccuracyStateTracker stateTracker;
     setupGeolocationProvider(context.get(), &stateTracker);
@@ -322,7 +322,7 @@
 
 TEST(WebKit, GeolocationTransitionToLowAccuracy)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     GeolocationTransitionToLowAccuracyStateTracker stateTracker;
     setupGeolocationProvider(context.get(), &stateTracker);

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -53,7 +53,7 @@
 
 TEST(WebKit, LayoutMilestonesWithAllContentInFrame)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV3 loaderClient;
@@ -74,7 +74,7 @@
 
 TEST(WebKit, FirstVisuallyNonEmptyLayoutAfterPageCacheRestore)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     WKContextSetCacheModel(context.get(), kWKCacheModelPrimaryWebBrowser); // Enables the Page Cache.
 

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -47,7 +47,7 @@
 
 static void loadAlternateHTMLString(WKURLRef baseURL, WKURLRef unreachableURL)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -39,7 +39,7 @@
 class WebKit2CrashLoader {
 public:
     WebKit2CrashLoader()
-        : context(AdoptWK, WKContextCreate())
+        : context(AdoptWK, WKContextCreateWithConfiguration(nullptr))
         , webView(context.get())
         , url(adoptWK(WKURLCreateWithUTF8CString("about:blank")))
         , firstSuccessfulLoad(false)

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -53,7 +53,7 @@
 
 static void buildAndPerformTest(WKEventMouseButton button, WKEventModifiers modifiers, const char* expectedButton, const char* expectedMenuType)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
     setPageLoaderClient(webView.page());
 

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -122,7 +122,7 @@
 
 TEST(WebKit, ModalAlertsSPI)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageUIClientV5 uiClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -56,7 +56,7 @@
 
 TEST(WebKit, NavigationClientDefaultCrypto)
 {
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     // The navigationClient quite explicitly does *not* have a copyWebCryptoMasterKey callback,

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/PageGroup.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/PageGroup.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/PageGroup.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -40,7 +40,7 @@
 TEST(PageGroup, DefaultUserContentController)
 {
     auto pageConfiguration = adoptWK(WKPageConfigurationCreate());
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKPageConfigurationSetContext(pageConfiguration.get(), context.get());
     auto pageGroup = adoptWK(WKPageGroupCreateWithIdentifier(Util::toWK("TestPageGroup").get()));
     WKPageConfigurationSetPageGroup(pageConfiguration.get(), pageGroup.get());
@@ -58,7 +58,7 @@
 TEST(PageGroup, CustomUserContentController)
 {
     auto pageConfiguration = adoptWK(WKPageConfigurationCreate());
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKPageConfigurationSetContext(pageConfiguration.get(), context.get());
     auto pageGroup = adoptWK(WKPageGroupCreateWithIdentifier(Util::toWK("TestPageGroup").get()));
     WKPageConfigurationSetPageGroup(pageConfiguration.get(), pageGroup.get());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -108,7 +108,7 @@
 {
     State state;
 
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;
@@ -140,7 +140,7 @@
 
 TEST(WebKit, PageReload)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     // Reload test before url loading.
@@ -160,7 +160,7 @@
 
 TEST(WebKit, PageLoadTwiceAndReload)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     test1Done = false;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -56,7 +56,7 @@
 
 TEST(WebKit, PageLoadDidChangeLocationWithinPage)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -38,7 +38,7 @@
 
 TEST(WebKit, PendingAPIRequestURL)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -60,7 +60,7 @@
 
 TEST(WebKit, PreventEmptyUserAgent)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageSetCustomUserAgent(webView.page(), WKStringCreateWithUTF8CString(""));

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -51,7 +51,7 @@
 
 TEST(WebKit, PrivateBrowsingPushStateNoHistoryCallback)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     WKContextHistoryClientV0 historyClient;
     memset(&historyClient, 0, sizeof(historyClient));

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -78,7 +78,7 @@
 
 TEST(WebKit, ProcessDidTerminateRequestedByClient)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV1 navigationClient;
@@ -102,7 +102,7 @@
 
 TEST(WebKit, ProcessDidTerminateWithReasonCrash)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV1 navigationClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -65,7 +65,7 @@
 
 TEST(WebKit, ReloadPageAfterCrash)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -61,7 +61,7 @@
 
 TEST(WebKit, ResizeReversePaginatedWebView)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV3 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -75,7 +75,7 @@
 
 TEST(WebKit, ResizeWindowAfterCrash)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     TestStatesData states(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -85,7 +85,7 @@
 
 TEST(WebKit, RestoreSessionStateContainingScrollRestorationDefault)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     PlatformWebView webView(context.get());
     setPageLoaderClient(webView.page());
@@ -103,7 +103,7 @@
 
 TEST(WebKit, RestoreSessionStateContainingScrollRestorationDefaultWithAsyncPolicyDelegates)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     PlatformWebView webView(context.get());
     setPageLoaderClient(webView.page());
@@ -128,7 +128,7 @@
 
 TEST(WebKit, RestoreSessionStateAfterClose)
 {
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
     setPageLoaderClient(webView.page());
     auto data = ""

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -72,7 +72,7 @@
 
 TEST(WebKit, RestoreSessionStateContainingFormData)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     // FIXME: Once <rdar://problem/8708435> is fixed, we can move the creation of this
     // PlatformWebView after the call to createSessionStaetContainingFormData. Until then, it must

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -71,7 +71,7 @@
 
 TEST(WebKit, ScrollPinningBehaviors)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     // Turn off threaded scrolling; synchronously waiting for the main thread scroll position to
     // update using WKPageForceRepaint would be better, but for some reason doesn't block until

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -123,7 +123,7 @@
 
 TEST(WebKit, ShouldKeepCurrentBackForwardListItemInList)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     PlatformWebView webView(context.get());
     setPageLoaderClient(webView.page());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -41,7 +41,7 @@
 
 TEST(WebKit, TerminateTwice)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     WKPageNavigationClientV0 loaderClient;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/UserMedia.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/UserMedia.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/UserMedia.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -69,7 +69,7 @@
 
 TEST(WebKit, UserMediaBasic)
 {
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
 
     WKRetainPtr<WKPageGroupRef> pageGroup(AdoptWK, WKPageGroupCreateWithIdentifier(Util::toWK("GetUserMedia").get()));
     WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroup.get());
@@ -105,7 +105,7 @@
 
 TEST(WebKit, OnDeviceChangeCrash)
 {
-    auto context = adoptWK(WKContextCreate());
+    auto context = adoptWK(WKContextCreateWithConfiguration(nullptr));
 
     WKRetainPtr<WKPageGroupRef> pageGroup(AdoptWK, WKPageGroupCreateWithIdentifier(Util::toWK("GetUserMedia").get()));
     WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroup.get());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -67,7 +67,7 @@
 TEST(WebKit, WKPageConfigurationBasic)
 {
     WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageConfigurationCreate());
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKPageConfigurationSetContext(configuration.get(), context.get());
     
     PlatformWebView webView(configuration.get());
@@ -86,7 +86,7 @@
 TEST(WebKit, WKPageConfigurationBasicWithDataStore)
 {
     WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageConfigurationCreate());
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKPageConfigurationSetContext(configuration.get(), context.get());
     WKRetainPtr<WKWebsiteDataStoreRef> websiteDataStore = WKWebsiteDataStoreGetDefaultDataStore();
     WKPageConfigurationSetWebsiteDataStore(configuration.get(), websiteDataStore.get());
@@ -108,7 +108,7 @@
 TEST(WebKit, WKPageConfigurationBasicWithNonPersistentDataStore)
 {
     WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageConfigurationCreate());
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKPageConfigurationSetContext(configuration.get(), context.get());
     WKRetainPtr<WKWebsiteDataStoreRef> websiteDataStore = adoptWK(WKWebsiteDataStoreCreateNonPersistentDataStore());
     WKPageConfigurationSetWebsiteDataStore(configuration.get(), websiteDataStore.get());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -105,7 +105,7 @@
 
 TEST(WebKit, WKPageCopySessionStateWithFiltering)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     createSessionStates(context.get());
 

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -65,7 +65,7 @@
 
 TEST(WebKit, WKPageGetScaleFactorNotZero)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     PlatformWebView webView(context.get());
     setPageLoaderClient(webView.page());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -96,7 +96,7 @@
 
 TEST(WebKit, WKPageIsPlayingAudio)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
 
     PlatformWebView webView(context.get());
     setUpClients(webView.page());
@@ -115,7 +115,7 @@
 
 TEST(WebKit, MSEIsPlayingAudio)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
 
     WKRetainPtr<WKPageGroupRef> pageGroup(AdoptWK, WKPageGroupCreateWithIdentifier(Util::toWK("MSEIsPlayingAudioPageGroup").get()));
     WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroup.get());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -96,7 +96,7 @@
 
 TEST(WebKit, WKThumbnailViewKeepSnapshotWhenRemovedFromSuperview)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
     WKView *wkView = webView.platformView();
     setPageLoaderClient(webView.page());
@@ -142,7 +142,7 @@
 
 TEST(WebKit, WKThumbnailViewMaximumSnapshotSize)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
     WKView *wkView = webView.platformView();
     setPageLoaderClient(webView.page());

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -43,7 +43,7 @@
 
 TEST(WebKit, WebCoreStatisticsWithNoWebProcess)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     
     WKContextGetStatistics(context.get(), 0, wkContextGetStatisticsCallback);
     

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp	2019-01-04 21:12:15 UTC (rev 239631)
@@ -42,7 +42,7 @@
 
 TEST(WebKit, GetPIDAfterAbortedProcessLaunch)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
 
     PlatformWebView webView(context.get());
 

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -71,7 +71,7 @@
 
 TEST(WebKit, RestoreStateAfterTermination)
 {
-    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate());
+    WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr));
     PlatformWebView webView(context.get());
 
     // Add view to a Window and make it visible.

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -116,7 +116,7 @@
     {
         WebKit2_CommandBackForwardTest::SetUp();
 
-        WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+        WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
         WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageConfigurationCreate());        
         WKPageConfigurationSetContext(configuration.get(), context.get());
 

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -117,7 +117,7 @@
 
 TEST(Fullscreen, WKViewDelegate)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKRetainPtr<WKPageGroupRef> pageGroup(AdoptWK, WKPageGroupCreateWithIdentifier(Util::toWK("FullscreenDelegate").get()));
     WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroup.get());
     WKPreferencesSetFullScreenEnabled(preferences, true);

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -200,7 +200,7 @@
 
 TEST(PictureInPicture, WKPageUIClient)
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKRetainPtr<WKPageGroupRef> pageGroup(AdoptWK, WKPageGroupCreateWithIdentifier(Util::toWK("PictureInPicture").get()));
     WKPreferencesRef preferences = WKPageGroupGetPreferences(pageGroup.get());
     WKPreferencesSetFullScreenEnabled(preferences, true);

Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -167,7 +167,7 @@
         [NSURLProtocol registerClass:[EchoURLProtocol class]];
         [WKBrowsingContextController registerSchemeForCustomProtocol:echoScheme];
 
-        WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+        WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
         WKContextRegisterURLSchemeAsCanDisplayOnlyIfCanRequest(context.get(), Util::toWK(echoScheme.UTF8String).get());
 
         PlatformWebView webView { context.get() };
@@ -190,7 +190,7 @@
         [NSURLProtocol registerClass:[EchoURLProtocol class]];
         [WKBrowsingContextController registerSchemeForCustomProtocol:echoScheme];
 
-        WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+        WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
         WKContextRegisterURLSchemeAsCanDisplayOnlyIfCanRequest(context.get(), Util::toWK(echoScheme.UTF8String).get());
 
         PlatformWebView webView { context.get() };

Modified: trunk/Tools/TestWebKitAPI/mac/WebKitAgnosticTest.mm (239630 => 239631)


--- trunk/Tools/TestWebKitAPI/mac/WebKitAgnosticTest.mm	2019-01-04 20:29:24 UTC (rev 239630)
+++ trunk/Tools/TestWebKitAPI/mac/WebKitAgnosticTest.mm	2019-01-04 21:12:15 UTC (rev 239631)
@@ -104,7 +104,7 @@
 
 void WebKitAgnosticTest::runWebKit2Test()
 {
-    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate());
+    WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr));
     WKRetainPtr<WKPageGroupRef> pageGroup = adoptWK(WKPageGroupCreateWithIdentifier(Util::toWK("WebKitAgnosticTest").get()));
     RetainPtr<WKView> view = adoptNS([[WKView alloc] initWithFrame:viewFrame contextRef:context.get() pageGroupRef:pageGroup.get()]);
     setPageLoaderClient([view.get() pageRef], &didFinishLoad);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to