| Index: Source/core/inspector/InspectorResourceAgent.cpp
|
| diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
|
| index f215026c2ef9511a17d0289edbb220be73eecb9e..170393ac34aa4a6e02f85fee94e947a07fbed49b 100644
|
| --- a/Source/core/inspector/InspectorResourceAgent.cpp
|
| +++ b/Source/core/inspector/InspectorResourceAgent.cpp
|
| @@ -739,9 +739,7 @@ void InspectorResourceAgent::replayXHR(ErrorString*, const String& requestId)
|
|
|
| RefPtrWillBeRawPtr<XMLHttpRequest> xhr = XMLHttpRequest::create(executionContext);
|
|
|
| - Resource* cachedResource = memoryCache()->resourceForURL(xhrReplayData->url());
|
| - if (cachedResource)
|
| - memoryCache()->remove(cachedResource);
|
| + memoryCache()->removeURLFromCache(executionContext, xhrReplayData->url());
|
|
|
| xhr->open(xhrReplayData->method(), xhrReplayData->url(), xhrReplayData->async(), IGNORE_EXCEPTION);
|
| HTTPHeaderMap::const_iterator end = xhrReplayData->headers().end();
|
| @@ -857,7 +855,7 @@ bool InspectorResourceAgent::fetchResourceContent(Document* document, const KURL
|
| // First try to fetch content from the cached resource.
|
| Resource* cachedResource = document->fetcher()->cachedResource(url);
|
| if (!cachedResource)
|
| - cachedResource = memoryCache()->resourceForURL(url);
|
| + cachedResource = memoryCache()->resourceForURL(document->fetcher()->createCacheIdentifier(), url);
|
| if (cachedResource && InspectorPageAgent::cachedResourceContent(cachedResource, content, base64Encoded))
|
| return true;
|
|
|
|
|