| Index: Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
|
| index be681ecea5e8c3849f8e2071d7afe94f4de85c32..51e9019a40d16b6a15d2fca86fb429d4bb4d5c60 100644
|
| --- a/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/Source/core/loader/FrameFetchContext.cpp
|
| @@ -206,7 +206,7 @@ ResourceRequestCachePolicy FrameFetchContext::resourceRequestCachePolicy(const R
|
| // |loader| can be null if the resource is loaded from imported document.
|
| // This means inspector, which uses DocumentLoader as an grouping entity,
|
| // cannot see imported documents.
|
| -inline DocumentLoader* FrameFetchContext::ensureLoaderForNotifications()
|
| +inline DocumentLoader* FrameFetchContext::ensureLoaderForNotifications() const
|
| {
|
| return m_documentLoader ? m_documentLoader.get() : frame()->loader().documentLoader();
|
| }
|
| @@ -349,7 +349,7 @@ bool FrameFetchContext::canRequest(Resource::Type type, const ResourceRequest& r
|
| {
|
| InstrumentingAgents* agents = InspectorInstrumentation::instrumentingAgentsFor(frame());
|
| if (agents && agents->inspectorResourceAgent()) {
|
| - if (agents->inspectorResourceAgent()->shouldBlockRequest(resourceRequest))
|
| + if (agents->inspectorResourceAgent()->shouldBlockRequest(frame(), resourceRequest, ensureLoaderForNotifications(), options.initiatorInfo))
|
| return false;
|
| }
|
|
|
|
|