Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2174563003: Clear all preloads when document is detached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issues inside clearPreloads and add tests Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index 98515baed379c6f114128085590b70ace6584e34..0849bce9bb633e593ac126b469eb88cc3a8eed17 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -572,6 +572,7 @@ void DocumentLoader::detachFromFrame()
if (!m_frame)
return;
+ m_fetcher->clearPreloads(ResourceFetcher::ClearAllPreloads);
m_fetcher->clearContext();
m_applicationCacheHost->detachFromDocumentLoader();
m_applicationCacheHost.clear();

Powered by Google App Engine
This is Rietveld 408576698