Index: Source/core/inspector/InspectorFrontendHost.cpp |
diff --git a/Source/core/inspector/InspectorFrontendHost.cpp b/Source/core/inspector/InspectorFrontendHost.cpp |
index 9df3e41bfbfe8aa7bb3ced0894763d60a53cb095..0b2db0703714fd2d8bd99d1c4e6d6162adea96b5 100644 |
--- a/Source/core/inspector/InspectorFrontendHost.cpp |
+++ b/Source/core/inspector/InspectorFrontendHost.cpp |
@@ -32,6 +32,7 @@ |
#include "bindings/v8/ScriptFunctionCall.h" |
#include "core/dom/UserGestureIndicator.h" |
+#include "core/fetch/ResourceFetcher.h" |
#include "core/fetch/TextResourceDecoder.h" |
#include "core/inspector/InspectorController.h" |
#include "core/inspector/InspectorFrontendClient.h" |
@@ -268,7 +269,7 @@ String InspectorFrontendHost::loadResourceSynchronously(const String& url) |
Vector<char> data; |
ResourceError error; |
ResourceResponse response; |
- m_frontendPage->mainFrame()->loader()->loadResourceSynchronously(request, DoNotAllowStoredCredentials, error, response, data); |
+ m_frontendPage->mainFrame()->document()->fetcher()->fetchSynchronously(request, DoNotAllowStoredCredentials, error, response, data); |
WTF::TextEncoding textEncoding(response.textEncodingName()); |
bool useDetector = false; |
if (!textEncoding.isValid()) { |