WebKit Bugzilla
Attachment 358268 Details for
Bug 193118
: Deprecate WKContextCreate
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-193118-20190103121722.patch (text/plain), 50.64 KB, created by
Alex Christensen
on 2019-01-03 12:17:23 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Alex Christensen
Created:
2019-01-03 12:17:23 PST
Size:
50.64 KB
patch
obsolete
>Index: Source/WebKit/ChangeLog >=================================================================== >--- Source/WebKit/ChangeLog (revision 239596) >+++ Source/WebKit/ChangeLog (working copy) >@@ -1,3 +1,18 @@ >+2019-01-03 Alex Christensen <achristensen@webkit.org> >+ >+ Deprecate WKContextCreate >+ https://bugs.webkit.org/show_bug.cgi?id=193118 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ 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-03 Brent Fulgham <bfulgham@apple.com> > > Remove logic handling DNT header during redirects >Index: Source/WebKit/UIProcess/API/C/WKContext.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/C/WKContext.cpp (revision 239585) >+++ Source/WebKit/UIProcess/API/C/WKContext.cpp (working copy) >@@ -81,7 +81,10 @@ WKContextRef WKContextCreateWithInjected > > 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) >Index: Source/WebKit/UIProcess/API/C/WKContext.h >=================================================================== >--- Source/WebKit/UIProcess/API/C/WKContext.h (revision 239585) >+++ Source/WebKit/UIProcess/API/C/WKContext.h (working copy) >@@ -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 @@ typedef uint32_t WKStatisticsOptions; > > 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); > >Index: Tools/ChangeLog >=================================================================== >--- Tools/ChangeLog (revision 239596) >+++ Tools/ChangeLog (working copy) >@@ -1,3 +1,117 @@ >+2019-01-03 Alex Christensen <achristensen@webkit.org> >+ >+ Deprecate WKContextCreate >+ https://bugs.webkit.org/show_bug.cgi?id=193118 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * 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 Michael Catanzaro <mcatanzaro@igalia.com> > > UserMedia test should use WKPageNavigationClient >Index: Tools/MiniBrowser/win/WebKitBrowserWindow.cpp >=================================================================== >--- Tools/MiniBrowser/win/WebKitBrowserWindow.cpp (revision 239585) >+++ Tools/MiniBrowser/win/WebKitBrowserWindow.cpp (working copy) >@@ -98,7 +98,7 @@ WebKitBrowserWindow::WebKitBrowserWindow > 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)); >Index: Tools/TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/AboutBlankLoad.cpp (working copy) >@@ -43,7 +43,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, AboutBlankLoad) > { >- WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate()); >+ WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/CloseFromWithinCreatePage.cpp (working copy) >@@ -63,7 +63,7 @@ static WKPageRef createNewPage(WKPageRef > > TEST(WebKit, CloseFromWithinCreatePage) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > PlatformWebView webView(context.get()); > >Index: Tools/TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/CloseThenTerminate.cpp (working copy) >@@ -44,7 +44,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, CloseThenTerminate) > { >- WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate()); >+ WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/CookieManager.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/CookieManager.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/CookieManager.cpp (working copy) >@@ -72,7 +72,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, CookieManager) > { >- wkContext.adopt(WKContextCreate()); >+ wkContext.adopt(WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(wkContext.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/DownloadDecideDestinationCrash.cpp (working copy) >@@ -71,7 +71,7 @@ static void setPagePolicyClient(WKPageRe > > TEST(WebKit, DownloadDecideDestinationCrash) > { >- WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate()); >+ WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > setContextDownloadClient(context.get()); > > PlatformWebView webView(context.get()); >Index: Tools/TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/EnumerateMediaDevices.cpp (working copy) >@@ -49,7 +49,7 @@ void checkUserMediaPermissionCallback(WK > > 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()); >Index: Tools/TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/EphemeralSessionPushStateNoHistoryCallback.cpp (working copy) >@@ -53,7 +53,7 @@ TEST(WebKit, EphemeralSessionPushStateNo > { > auto configuration = adoptWK(WKPageConfigurationCreate()); > >- auto context = adoptWK(WKContextCreate()); >+ auto context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > WKPageConfigurationSetContext(configuration.get(), context.get()); > > auto websiteDataStore = adoptWK(WKWebsiteDataStoreCreateNonPersistentDataStore()); >Index: Tools/TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/EvaluateJavaScript.cpp (working copy) >@@ -51,7 +51,7 @@ static void didRunJavaScript(WKSerialize > > TEST(WebKit, EvaluateJavaScriptThatThrowsAnException) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKRetainPtr<WKStringRef> javaScriptString(AdoptWK, WKStringCreateWithUTF8CString("throw 'Hello'")); >Index: Tools/TestWebKitAPI/Tests/WebKit/EventModifiers.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/EventModifiers.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/EventModifiers.cpp (working copy) >@@ -64,7 +64,7 @@ static void setClients(WKPageRef page) > > TEST(WebKit, EventModifiers) > { >- WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate()); >+ WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > > PlatformWebView webView(context.get()); > setClients(webView.page()); >Index: Tools/TestWebKitAPI/Tests/WebKit/FailedLoad.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/FailedLoad.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/FailedLoad.cpp (working copy) >@@ -51,7 +51,7 @@ static void didFailProvisionalNavigation > > TEST(WebKit, FailedLoad) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/Find.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/Find.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/Find.cpp (working copy) >@@ -51,7 +51,7 @@ static void didCountStringMatches(WKPage > > TEST(WebKit, Find) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/FindMatches.mm >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/FindMatches.mm (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/FindMatches.mm (working copy) >@@ -118,7 +118,7 @@ static void didGetImageForMatchResult(WK > > TEST(WebKit, FindMatches) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ForceRepaint.cpp (working copy) >@@ -51,7 +51,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, ForceRepaint) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/FrameHandle.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/FrameHandle.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/FrameHandle.cpp (working copy) >@@ -45,7 +45,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, FrameHandle) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypeHTML.cpp (working copy) >@@ -58,7 +58,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, FrameMIMETypeHTML) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/FrameMIMETypePNG.cpp (working copy) >@@ -57,7 +57,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, FrameMIMETypePNG) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/Geolocation.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/Geolocation.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/Geolocation.cpp (working copy) >@@ -161,7 +161,7 @@ struct GeolocationBasicStateTracker : Ge > > TEST(WebKit, GeolocationBasic) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > GeolocationBasicStateTracker stateTracker; > setupGeolocationProvider(context.get(), &stateTracker); >@@ -203,7 +203,7 @@ struct GeolocationBasicWithHighAccuracyS > > TEST(WebKit, GeolocationBasicWithHighAccuracy) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > GeolocationBasicWithHighAccuracyStateTracker stateTracker; > setupGeolocationProvider(context.get(), &stateTracker); >@@ -256,7 +256,7 @@ struct GeolocationTransitionToHighAccura > > TEST(WebKit, GeolocationTransitionToHighAccuracy) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > GeolocationTransitionToHighAccuracyStateTracker stateTracker; > setupGeolocationProvider(context.get(), &stateTracker); >@@ -322,7 +322,7 @@ static void runJavaScriptAlert(WKPageRef > > TEST(WebKit, GeolocationTransitionToLowAccuracy) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > GeolocationTransitionToLowAccuracyStateTracker stateTracker; > setupGeolocationProvider(context.get(), &stateTracker); >Index: Tools/TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/LayoutMilestonesWithAllContentInFrame.cpp (working copy) >@@ -53,7 +53,7 @@ static void didFinishNavigation(WKPageRe > > 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, LayoutMilestonesWithAllCont > > TEST(WebKit, FirstVisuallyNonEmptyLayoutAfterPageCacheRestore) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > WKContextSetCacheModel(context.get(), kWKCacheModelPrimaryWebBrowser); // Enables the Page Cache. > >Index: Tools/TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/LoadAlternateHTMLStringWithNonDirectoryURL.cpp (working copy) >@@ -47,7 +47,7 @@ static void didFinishNavigation(WKPageRe > > static void loadAlternateHTMLString(WKURLRef baseURL, WKURLRef unreachableURL) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/LoadPageOnCrash.cpp (working copy) >@@ -39,7 +39,7 @@ static void didFinishLoad(WKPageRef, WKN > class WebKit2CrashLoader { > public: > WebKit2CrashLoader() >- : context(AdoptWK, WKContextCreate()) >+ : context(AdoptWK, WKContextCreateWithConfiguration(nullptr)) > , webView(context.get()) > , url(adoptWK(WKURLCreateWithUTF8CString("about:blank"))) > , firstSuccessfulLoad(false) >Index: Tools/TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/MenuTypesForMouseEvents.cpp (working copy) >@@ -53,7 +53,7 @@ static void setPageLoaderClient(WKPageRe > > 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()); > >Index: Tools/TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ModalAlertsSPI.cpp (working copy) >@@ -122,7 +122,7 @@ static WKPageRef createNewPage(WKPageRef > > TEST(WebKit, ModalAlertsSPI) > { >- WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate()); >+ WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageUIClientV5 uiClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/NavigationClientDefaultCrypto.cpp (working copy) >@@ -56,7 +56,7 @@ static void decidePolicyForNavigationRes > > 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, >Index: Tools/TestWebKitAPI/Tests/WebKit/PageGroup.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/PageGroup.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/PageGroup.cpp (working copy) >@@ -40,7 +40,7 @@ namespace TestWebKitAPI { > 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, DefaultUserContentContro > 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()); >Index: Tools/TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/PageLoadBasic.cpp (working copy) >@@ -108,7 +108,7 @@ TEST(WebKit, PageLoadBasic) > { > 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, PageLoadBasic) > > 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, PageReload) > > TEST(WebKit, PageLoadTwiceAndReload) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > test1Done = false; >Index: Tools/TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/PageLoadDidChangeLocationWithinPageForFrame.cpp (working copy) >@@ -56,7 +56,7 @@ static void didSameDocumentNavigation(WK > > TEST(WebKit, PageLoadDidChangeLocationWithinPage) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/PendingAPIRequestURL.cpp (working copy) >@@ -38,7 +38,7 @@ static bool done; > > TEST(WebKit, PendingAPIRequestURL) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/PreventEmptyUserAgent.cpp (working copy) >@@ -60,7 +60,7 @@ static void didRunJavaScript(WKSerialize > > TEST(WebKit, PreventEmptyUserAgent) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageSetCustomUserAgent(webView.page(), WKStringCreateWithUTF8CString("")); >Index: Tools/TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/PrivateBrowsingPushStateNoHistoryCallback.cpp (working copy) >@@ -51,7 +51,7 @@ static void didNavigateWithNavigationDat > > TEST(WebKit, PrivateBrowsingPushStateNoHistoryCallback) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > WKContextHistoryClientV0 historyClient; > memset(&historyClient, 0, sizeof(historyClient)); >Index: Tools/TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ProcessDidTerminate.cpp (working copy) >@@ -78,7 +78,7 @@ static void webProcessCrashed(WKPageRef > > 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, ProcessDidTerminateRequeste > > TEST(WebKit, ProcessDidTerminateWithReasonCrash) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV1 navigationClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp (working copy) >@@ -65,7 +65,7 @@ static void didCrash(WKPageRef page, con > > TEST(WebKit, ReloadPageAfterCrash) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ResizeReversePaginatedWebView.cpp (working copy) >@@ -61,7 +61,7 @@ static void didLayout(WKPageRef page, WK > > TEST(WebKit, ResizeReversePaginatedWebView) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV3 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ResizeWindowAfterCrash.cpp (working copy) >@@ -75,7 +75,7 @@ static void didCrash(WKPageRef page, con > > TEST(WebKit, ResizeWindowAfterCrash) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > TestStatesData states(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionState.cpp (working copy) >@@ -85,7 +85,7 @@ static WKRetainPtr<WKDataRef> createSess > > 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, RestoreSessionStateContaini > > 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, RestoreSessionStateContaini > > TEST(WebKit, RestoreSessionStateAfterClose) > { >- auto context = adoptWK(WKContextCreate()); >+ auto context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > setPageLoaderClient(webView.page()); > auto data = createSessionStateData(context.get()); >Index: Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/RestoreSessionStateContainingFormData.cpp (working copy) >@@ -72,7 +72,7 @@ static WKRetainPtr<WKDataRef> createSess > > 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 >Index: Tools/TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ScrollPinningBehaviors.cpp (working copy) >@@ -71,7 +71,7 @@ static void didFinishNavigation(WKPageRe > > 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 >Index: Tools/TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/ShouldKeepCurrentBackForwardListItemInList.cpp (working copy) >@@ -123,7 +123,7 @@ static void setPageLoaderClient(WKPageRe > > TEST(WebKit, ShouldKeepCurrentBackForwardListItemInList) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > PlatformWebView webView(context.get()); > setPageLoaderClient(webView.page()); >Index: Tools/TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/TerminateTwice.cpp (working copy) >@@ -41,7 +41,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, TerminateTwice) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > PlatformWebView webView(context.get()); > > WKPageNavigationClientV0 loaderClient; >Index: Tools/TestWebKitAPI/Tests/WebKit/UserMedia.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/UserMedia.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/UserMedia.cpp (working copy) >@@ -69,7 +69,7 @@ static void checkUserMediaPermissionCall > > 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 @@ static void didCrashCallback(WKPageRef, > > 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()); >Index: Tools/TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/WKPageConfiguration.cpp (working copy) >@@ -67,7 +67,7 @@ static void setPageLoaderClient(WKPageRe > 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, WKPageConfigurationBasic) > 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, WKPageConfigurationBasicWit > 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()); >Index: Tools/TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/WKPageCopySessionStateWithFiltering.cpp (working copy) >@@ -105,7 +105,7 @@ static void createSessionStates(WKContex > > TEST(WebKit, WKPageCopySessionStateWithFiltering) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > createSessionStates(context.get()); > >Index: Tools/TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/WKPageGetScaleFactorNotZero.cpp (working copy) >@@ -65,7 +65,7 @@ static WKRetainPtr<WKSessionStateRef> cr > > TEST(WebKit, WKPageGetScaleFactorNotZero) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > PlatformWebView webView(context.get()); > setPageLoaderClient(webView.page()); >Index: Tools/TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/WKPageIsPlayingAudio.cpp (working copy) >@@ -96,7 +96,7 @@ static void setUpClients(WKPageRef page) > > 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, WKPageIsPlayingAudio) > > 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()); >Index: Tools/TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/WKThumbnailView.mm (working copy) >@@ -96,7 +96,7 @@ static void setPageLoaderClient(WKPageRe > > 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, WKThumbnailViewKeepSnapshot > > 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()); >Index: Tools/TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/WebCoreStatisticsWithNoWebProcess.cpp (working copy) >@@ -43,7 +43,7 @@ static void wkContextGetStatisticsCallba > > TEST(WebKit, WebCoreStatisticsWithNoWebProcess) > { >- WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate()); >+ WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > > WKContextGetStatistics(context.get(), 0, wkContextGetStatisticsCallback); > >Index: Tools/TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/mac/GetPIDAfterAbortedProcessLaunch.cpp (working copy) >@@ -42,7 +42,7 @@ static void didFinishNavigation(WKPageRe > > TEST(WebKit, GetPIDAfterAbortedProcessLaunch) > { >- WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreate()); >+ WKRetainPtr<WKContextRef> context(AdoptWK, WKContextCreateWithConfiguration(nullptr)); > > PlatformWebView webView(context.get()); > >Index: Tools/TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKit/mac/RestoreStateAfterTermination.mm (working copy) >@@ -71,7 +71,7 @@ static void didCrash(WKPageRef page, con > > 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. >Index: Tools/TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKitCocoa/CommandBackForward.mm (working copy) >@@ -116,7 +116,7 @@ public: > { > WebKit2_CommandBackForwardTest::SetUp(); > >- WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreate()); >+ WKRetainPtr<WKContextRef> context = adoptWK(WKContextCreateWithConfiguration(nullptr)); > WKRetainPtr<WKPageConfigurationRef> configuration = adoptWK(WKPageConfigurationCreate()); > WKPageConfigurationSetContext(configuration.get(), context.get()); > >Index: Tools/TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKitCocoa/FullscreenDelegate.mm (working copy) >@@ -117,7 +117,7 @@ TEST(Fullscreen, Delegate) > > 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); >Index: Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKitCocoa/PictureInPictureDelegate.mm (working copy) >@@ -200,7 +200,7 @@ TEST(PictureInPicture, AudioCannotToggle > > 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); >Index: Tools/TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm >=================================================================== >--- Tools/TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm (revision 239585) >+++ Tools/TestWebKitAPI/Tests/WebKitCocoa/SchemeRegistry.mm (working copy) >@@ -167,7 +167,7 @@ TEST(WebKit, WKContextRegisterURLSchemeA > [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 @@ TEST(WebKit, WKContextRegisterURLSchemeA > [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() }; >Index: Tools/TestWebKitAPI/mac/WebKitAgnosticTest.mm >=================================================================== >--- Tools/TestWebKitAPI/mac/WebKitAgnosticTest.mm (revision 239585) >+++ Tools/TestWebKitAPI/mac/WebKitAgnosticTest.mm (working copy) >@@ -104,7 +104,7 @@ void WebKitAgnosticTest::runWebKit1Test( > > 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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
beidson
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 193118
: 358268