| Index: Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
|
| index c0771e70b85666694be354ca9f2b1dec1e7cef9a..6fba610cbe888f521fc36238f1ec0ffc4a9f57ff 100644
|
| --- a/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/Source/core/loader/FrameFetchContext.cpp
|
| @@ -43,7 +43,9 @@
|
| #include "core/html/imports/HTMLImportsController.h"
|
| #include "core/inspector/ConsoleMessage.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| +#include "core/inspector/InspectorResourceAgent.h"
|
| #include "core/inspector/InspectorTraceEvents.h"
|
| +#include "core/inspector/InstrumentingAgents.h"
|
| #include "core/loader/DocumentLoader.h"
|
| #include "core/loader/FrameLoader.h"
|
| #include "core/loader/FrameLoaderClient.h"
|
| @@ -348,6 +350,12 @@ void FrameFetchContext::printAccessDeniedMessage(const KURL& url) const
|
|
|
| bool FrameFetchContext::canRequest(Resource::Type type, const ResourceRequest& resourceRequest, const KURL& url, const ResourceLoaderOptions& options, bool forPreload, FetchRequest::OriginRestriction originRestriction) const
|
| {
|
| + InstrumentingAgents* agents = InspectorInstrumentation::instrumentingAgentsFor(frame());
|
| + if (agents && agents->inspectorResourceAgent()) {
|
| + if (agents->inspectorResourceAgent()->shouldBlockRequest(resourceRequest))
|
| + return false;
|
| + }
|
| +
|
| SecurityOrigin* securityOrigin = options.securityOrigin.get();
|
| if (!securityOrigin && m_document)
|
| securityOrigin = m_document->securityOrigin();
|
|
|