Index: third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp |
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp |
index aa0d19ece0b2f86d58c78966365c2a4bd66fbdf9..1f8820779da61e50f7109e1c8959429b0d28f557 100644 |
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp |
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp |
@@ -77,7 +77,11 @@ Resource* PreloadRequest::Start(Document* document) { |
params.SetCharset(charset_.IsEmpty() ? document->characterSet().GetString() |
: charset_); |
} |
- params.SetSpeculativePreload(true, discovery_time_); |
+ FetchParameters::SpeculativePreload speculative = |
+ FetchParameters::kSpeculativeInDocument; |
+ if (from_insertion_scanner_) |
+ speculative = FetchParameters::kSpeculativeInserted; |
+ params.SetSpeculativePreload(speculative, discovery_time_); |
return document->Loader()->StartPreload(resource_type_, params); |
} |