| Index: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| index 3afe9168a531d44219c1e54d5444991219632c7a..efff3e4086f4357f8431fba26c2cbea20f5583f1 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp
|
| @@ -221,6 +221,14 @@ private:
|
| setDefer(FetchRequest::LazyLoad);
|
| else if (match(attributeName, deferAttr))
|
| setDefer(FetchRequest::LazyLoad);
|
| + // Note that only scripts need to have the integrity metadata set on
|
| + // preloads. This is because script resources fetches, and only script
|
| + // resource fetches, need to re-request resources if a cached version
|
| + // has different metadata (including empty) from the metadata on the
|
| + // request. See the comment before the call to
|
| + // mustRefetchDueToIntegrityMismatch() in
|
| + // Source/core/fetch/ResourceFetcher.cpp for a more complete
|
| + // explanation.
|
| else if (match(attributeName, integrityAttr))
|
| SubresourceIntegrity::parseIntegrityAttribute(attributeValue, m_integrityMetadata);
|
| }
|
| @@ -382,7 +390,6 @@ private:
|
| void setDefer(FetchRequest::DeferOption defer)
|
| {
|
| m_defer = defer;
|
| -
|
| }
|
|
|
| bool defer() const
|
|
|