WebCore:
[WebKit-https.git] / WebKitTools / DumpRenderTree / win / DumpRenderTree.cpp
index d36c237..5f36c01 100644 (file)
@@ -33,6 +33,7 @@
 #include "LayoutTestController.h"
 #include "PixelDumpSupport.h"
 #include "PolicyDelegate.h"
+#include "ResourceLoadDelegate.h"
 #include "UIDelegate.h"
 #include "WorkQueueItem.h"
 #include "WorkQueue.h"
@@ -926,6 +927,10 @@ int main(int argc, char* argv[])
     if (FAILED(viewEditing->setEditingDelegate(editingDelegate.get())))
         return -1;
 
+    COMPtr<ResourceLoadDelegate> resourceLoadDelegate(AdoptCOM, new ResourceLoadDelegate);
+    if (FAILED(webView->setResourceLoadDelegate(resourceLoadDelegate.get())))
+        return -1;
+
     COMPtr<IWebPreferences> preferences;
     if (FAILED(webView->preferences(&preferences)))
         return -1;