Unreviewed build fix after http://trac.webkit.org/changeset/195474.
[WebKit-https.git] / Tools / WebKitTestRunner / cocoa / TestControllerCocoa.mm
index 75725e7..8d61334 100644 (file)
@@ -79,11 +79,15 @@ WKPreferencesRef TestController::platformPreferences()
 
 void TestController::platformCreateWebView(WKPageConfigurationRef, const TestOptions& options)
 {
+#if WK_API_ENABLED
     RetainPtr<WKWebViewConfiguration> copiedConfiguration = adoptNS([globalWebViewConfiguration copy]);
     if (options.useDataDetection)
         [copiedConfiguration setDataDetectorTypes:WKDataDetectorTypeAll];
 
     m_mainWebView = std::make_unique<PlatformWebView>(copiedConfiguration.get(), options);
+#else
+    m_mainWebView = std::make_unique<PlatformWebView>(globalWebViewConfiguration, options);
+#endif
 }
 
 PlatformWebView* TestController::platformCreateOtherPage(PlatformWebView* parentView, WKPageConfigurationRef, const TestOptions& options)