Index: third_party/WebKit/Source/core/dom/Document.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp |
index 4ae8ed5733835bdae2077a919bed1922114b91fc..324caf8eb8f7de97b3dda5d1b10fbd2ae0668579 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -242,6 +242,7 @@ |
#include "public/platform/Platform.h" |
#include "public/platform/WebAddressSpace.h" |
#include "public/platform/WebFrameScheduler.h" |
+#include "public/platform/WebPrerenderingSupport.h" |
#include "public/platform/WebScheduler.h" |
#include "wtf/AutoReset.h" |
#include "wtf/CurrentTime.h" |
@@ -5138,6 +5139,9 @@ void Document::finishedParsing() { |
// Parser should have picked up all preloads by now |
m_fetcher->clearPreloads(ResourceFetcher::ClearSpeculativeMarkupPreloads); |
+ |
+ if (isPrefetchOnly()) |
+ WebPrerenderingSupport::current()->prefetchFinished(); |
} |
void Document::elementDataCacheClearTimerFired(TimerBase*) { |