Index: Source/core/fetch/ResourceFetcher.cpp |
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp |
index 1bea34febb270d3d4233ed775810b0a0e236a5d4..6a5d54843f051ae83a7b8fc2da636a15db74fa76 100644 |
--- a/Source/core/fetch/ResourceFetcher.cpp |
+++ b/Source/core/fetch/ResourceFetcher.cpp |
@@ -612,7 +612,7 @@ bool ResourceFetcher::canAccessResource(Resource* resource, SecurityOrigin* sour |
return true; |
String errorDescription; |
- if (!resource->passesAccessControlCheck(sourceOrigin, errorDescription)) { |
+ if (!resource->passesAccessControlCheck(document(), sourceOrigin, errorDescription)) { |
if (resource->type() == Resource::Font) |
toFontResource(resource)->setCORSFailed(); |
if (frame() && frame()->document()) { |
@@ -1455,7 +1455,7 @@ bool ResourceFetcher::canAccessRedirect(Resource* resource, ResourceRequest& req |
sourceOrigin = document()->securityOrigin(); |
String errorMessage; |
- if (!CrossOriginAccessControl::handleRedirect(resource, sourceOrigin, request, redirectResponse, options, errorMessage)) { |
+ if (!CrossOriginAccessControl::handleRedirect(document(), resource, sourceOrigin, request, redirectResponse, options, errorMessage)) { |
if (resource->type() == Resource::Font) |
toFontResource(resource)->setCORSFailed(); |
if (frame() && frame()->document()) |