WebKitTools: Implement the setAllowUniversalAccessFromFileURLs method
[WebKit-https.git] / WebKitTools / DumpRenderTree / qt / LayoutTestControllerQt.cpp
index be542209238dbf995625ee30478775228d539e94..0f682921bd392ac74ba3382ab2675aa3c42bbef5 100644 (file)
@@ -237,6 +237,11 @@ QString LayoutTestController::decodeHostName(const QString& host)
     return decoded;
 }
 
+void LayoutTestController::setAllowUniversalAccessFromFileURLs(bool enabled)
+{
+    m_drt->webPage()->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, enabled);
+}
+
 void LayoutTestController::setJavaScriptProfilingEnabled(bool enable)
 {
     m_topLoadingFrame->page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);