Index: Source/core/loader/DocumentLoader.cpp |
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp |
index 7b10a32dfcb4de150e0751470418fe78b8959baf..ee5bdd90d001dbed3d1e44d18044f7af617312e7 100644 |
--- a/Source/core/loader/DocumentLoader.cpp |
+++ b/Source/core/loader/DocumentLoader.cpp |
@@ -107,6 +107,7 @@ |
DocumentLoader::~DocumentLoader() |
{ |
ASSERT(!m_frame || !isLoading()); |
+ static_cast<FrameFetchContext&>(m_fetcher->context()).clearDocumentLoader(); |
clearMainResourceHandle(); |
m_applicationCacheHost->dispose(); |
} |
@@ -561,7 +562,6 @@ |
// frame have any loads active, so go ahead and kill all the loads. |
stopLoading(); |
- m_fetcher->clearContext(); |
m_applicationCacheHost->setApplicationCache(0); |
InspectorInstrumentation::loaderDetachedFromFrame(m_frame, this); |
m_frame = 0; |