Index: Source/core/inspector/InspectorResourceAgent.cpp |
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp |
index cb4a57abce7ae84db58969bda5b872cbae2c3c31..01ba6cbcb123d8f82a66913da11eb5033d81039c 100644 |
--- a/Source/core/inspector/InspectorResourceAgent.cpp |
+++ b/Source/core/inspector/InspectorResourceAgent.cpp |
@@ -715,6 +715,8 @@ void InspectorResourceAgent::setCacheDisabled(ErrorString*, bool cacheDisabled) |
m_state->setBoolean(ResourceAgentState::cacheDisabled, cacheDisabled); |
if (cacheDisabled) |
memoryCache()->evictResources(); |
+ for (LocalFrame* frame = m_pageAgent->mainFrame(); frame; frame = frame->tree().traverseNext()) |
+ frame->document()->fetcher()->garbageCollectDocumentResources(); |
} |
void InspectorResourceAgent::loadResourceForFrontend(ErrorString* errorString, const String& frameId, const String& url, const RefPtr<JSONObject>* requestHeaders, PassRefPtr<LoadResourceForFrontendCallback> prpCallback) |