Index: Source/core/html/parser/HTMLResourcePreloader.cpp |
diff --git a/Source/core/html/parser/HTMLResourcePreloader.cpp b/Source/core/html/parser/HTMLResourcePreloader.cpp |
index 3f1ee72eab01460a69638136a0c6c97b2c5eaa87..6cdc6da411ee29b8ff5f06d20950bb7017a0615f 100644 |
--- a/Source/core/html/parser/HTMLResourcePreloader.cpp |
+++ b/Source/core/html/parser/HTMLResourcePreloader.cpp |
@@ -88,6 +88,8 @@ void HTMLResourcePreloader::takeAndPreload(PreloadRequestStream& r) |
void HTMLResourcePreloader::preload(PassOwnPtr<PreloadRequest> preload) |
{ |
FetchRequest request = preload->resourceRequest(m_document); |
+ request.setIsBeforeBody(preload->isBeforeBody()); |
+ request.setExecAsync(preload->execAsync()); |
blink::Platform::current()->histogramCustomCounts("WebCore.PreloadDelayMs", static_cast<int>(1000 * (monotonicallyIncreasingTime() - preload->discoveryTime())), 0, 2000, 20); |
m_document->fetcher()->preload(preload->resourceType(), request, preload->charset()); |
} |