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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp

Issue 2411863002: [NoStatePrefetch] Kill renderer after preload scanning (Closed)
Patch Set: rebase and git cl format Created 4 years, 2 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/html/parser/HTMLDocumentParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
index b06f1a3626107c7e89c5a6eb89320b9066e73ab7..b1f7bb3aaf250f81221291ccd42798d196c79ffe 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -923,6 +923,9 @@ void HTMLDocumentParser::end() {
ASSERT(!isDetached());
ASSERT(!isScheduledForResume());
+ if (document()->isPrefetchOnly())
Charlie Harrison 2016/10/17 13:25:50 This might make a little more sense in Document::f
pasko 2016/10/17 14:25:11 OK! Any recommendation on what part of Document::
Charlie Harrison 2016/10/17 14:49:16 Adding the call to the very end SGTM. Yeah the Doc
pasko 2016/10/25 14:49:40 Done.
+ document()->onPrefetchFinished();
+
if (m_haveBackgroundParser)
stopBackgroundParser();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/web/tests/PrerenderingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698