Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 732323004: Add use counter for credentialed CORS access from null origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tweak spelling Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fetch/Resource.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « Source/core/fetch/Resource.cpp ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698