Index: third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp |
diff --git a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp |
index 8626d53cfbef8059709409681d4201a241ef1f47..4f9f3cd97208d7c5a48fb3fbbf7a6fe8ab0bf574 100644 |
--- a/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp |
+++ b/third_party/WebKit/Source/core/frame/SubresourceIntegrity.cpp |
@@ -121,7 +121,7 @@ bool SubresourceIntegrity::CheckSubresourceIntegrity(const IntegrityMetadataSet& |
{ |
Document& document = element.document(); |
- if (!resource.isEligibleForIntegrityCheck(document.securityOrigin())) { |
+ if (!resource.isEligibleForIntegrityCheck(document.getSecurityOrigin())) { |
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 been blocked because the integrity cannot be enforced.", document); |
return false; |