Make the setting of letting Javascript access the clipboard configurable through...
[WebKit-https.git] / WebKitTools / DumpRenderTree / qt / DumpRenderTree.cpp
index d6047591808836dee14245dc5299ef9bd852cc8d..37722f267697f9dfca028e7560b61a8046a91c52 100644 (file)
@@ -74,6 +74,7 @@ WebPage::WebPage(QWidget *parent, DumpRenderTree *drt)
     : QWebPage(parent), m_drt(drt)
 {
     settings()->setAttribute(QWebSettings::JavascriptCanOpenWindows, true);
+    settings()->setAttribute(QWebSettings::JavascriptCanAccessClipboard, true);
 }
 
 QWebPage *WebPage::createWindow()