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

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

Issue 2642733002: Prerender: Disable prefetch if there's an appcache. (Closed)
Patch Set: Prerender: Disable prefetch if there's an appcache. Created 3 years, 8 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
« no previous file with comments | « chrome/test/data/prerender/prefetch_appcache.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1f052c530f347377540dcc3e8f3e55f01c593a48..195bb025c9bd36344943a03fad9d359a7852f5ad 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/HTMLDocumentParser.cpp
@@ -895,6 +895,10 @@ void HTMLDocumentParser::Append(const String& input_source) {
const SegmentedString source(input_source);
if (GetDocument()->IsPrefetchOnly()) {
+ // Do not prefetch if there is an appcache.
+ if (GetDocument()->Loader()->GetResponse().AppCacheID() != 0)
+ return;
+
if (!preload_scanner_)
preload_scanner_ = CreatePreloadScanner();
« no previous file with comments | « chrome/test/data/prerender/prefetch_appcache.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698