| 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 0d559a74f34caf92a8651188806c9a459e5bdf6e..939bbc147dac4a405566fca980ec4bfa70f64c1d 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.cpp
|
| @@ -81,7 +81,13 @@ Resource* PreloadRequest::Start(Document* document) {
|
| params.SetCharset(charset_.IsEmpty() ? document->characterSet().GetString()
|
| : charset_);
|
| }
|
| - params.SetSpeculativePreload(true, discovery_time_);
|
| + FetchParameters::SpeculativePreloadType speculative_preload_type =
|
| + FetchParameters::SpeculativePreloadType::kInDocument;
|
| + if (from_insertion_scanner_) {
|
| + speculative_preload_type =
|
| + FetchParameters::SpeculativePreloadType::kInserted;
|
| + }
|
| + params.SetSpeculativePreloadType(speculative_preload_type, discovery_time_);
|
|
|
| return document->Loader()->StartPreload(resource_type_, params);
|
| }
|
|
|