| Index: Source/core/html/parser/HTMLPreloadScanner.cpp
|
| diff --git a/Source/core/html/parser/HTMLPreloadScanner.cpp b/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| index 9be5f68cdc0d1de07a09b82dea8dfba67030428b..3a5d44e7d604b66577b3802da56728dd43da157e 100644
|
| --- a/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| +++ b/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| @@ -478,6 +478,9 @@ static void handleMetaViewport(const String& attributeValue, CachedDocumentParam
|
| template<typename Token>
|
| void TokenPreloadScanner::scanCommon(const Token& token, const SegmentedString& source, PreloadRequestStream& requests)
|
| {
|
| + if (!m_documentParameters->doHtmlPreloadScanning)
|
| + return;
|
| +
|
| // Disable preload for documents with AppCache.
|
| if (m_isAppCacheEnabled)
|
| return;
|
| @@ -627,6 +630,7 @@ CachedDocumentParameters::CachedDocumentParameters(Document* document, PassRefPt
|
| {
|
| ASSERT(isMainThread());
|
| ASSERT(document);
|
| + doHtmlPreloadScanning = !document->settings() || document->settings()->doHtmlPreloadScanning();
|
| if (givenMediaValues)
|
| mediaValues = givenMediaValues;
|
| else
|
|
|