Index: Source/core/frame/SubresourceIntegrity.cpp |
diff --git a/Source/core/frame/SubresourceIntegrity.cpp b/Source/core/frame/SubresourceIntegrity.cpp |
index 481456e62b589b226772c9fe8ba6dbd0a5b1e876..67b4f1c68ec4ebf0871ba4330942a40ca5f8d984 100644 |
--- a/Source/core/frame/SubresourceIntegrity.cpp |
+++ b/Source/core/frame/SubresourceIntegrity.cpp |
@@ -114,6 +114,7 @@ bool SubresourceIntegrity::CheckSubresourceIntegrity(const Element& element, con |
return true; |
if (!resource.isEligibleForIntegrityCheck(document.securityOrigin())) { |
+ UseCounter::count(document, UseCounter::SRIElementIntegrityAttributeButIneligible); |
logErrorToConsole("Subresource Integrity: The resource '" + resourceUrl.elidedString() + "' has an integrity attribute, but the resource requires the request to be CORS enabled to check the integrity, and it is not. The resource has not been blocked, but no integrity check occurred.", document); |
return true; |
} |