| Index: Source/core/html/HTMLLinkElement.cpp
|
| diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
|
| index c548ab145b45514f4969e37d7488505acef198a4..39ef9a4c9d90a04bc0233e0076d1da4eb58a03a5 100644
|
| --- a/Source/core/html/HTMLLinkElement.cpp
|
| +++ b/Source/core/html/HTMLLinkElement.cpp
|
| @@ -510,6 +510,8 @@ void LinkStyle::setCSSStyleSheet(const String& href, const KURL& baseURL, const
|
| return;
|
| }
|
|
|
| + // See the comment in ScriptLoader.cpp about why this check is necessary
|
| + // here. https://crbug.com/500701.
|
| if (!cachedStyleSheet->errorOccurred() && !SubresourceIntegrity::CheckSubresourceIntegrity(*m_owner, cachedStyleSheet->sheetText(), KURL(baseURL, href), *cachedStyleSheet)) {
|
| m_loading = false;
|
| removePendingSheet();
|
|
|