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

Unified Diff: Source/core/fetch/ImageResource.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/ImageResource.h ('k') | Source/core/fetch/Resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ImageResource.cpp
diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp
index c38e62deb65046a7351cd754c8586ee3f66d4986..519dbfd352fd9e3a6e7fb3825fdcc0af19897447 100644
--- a/Source/core/fetch/ImageResource.cpp
+++ b/Source/core/fetch/ImageResource.cpp
@@ -502,13 +502,13 @@ bool ImageResource::currentFrameKnownToBeOpaque(const RenderObject* renderer)
return image->currentFrameKnownToBeOpaque();
}
-bool ImageResource::isAccessAllowed(SecurityOrigin* securityOrigin)
+bool ImageResource::isAccessAllowed(ExecutionContext* context, SecurityOrigin* securityOrigin)
{
if (response().wasFetchedViaServiceWorker())
return response().serviceWorkerResponseType() != WebServiceWorkerResponseTypeOpaque;
if (!image()->currentFrameHasSingleSecurityOrigin())
return false;
- if (passesAccessControlCheck(securityOrigin))
+ if (passesAccessControlCheck(context, securityOrigin))
return true;
return !securityOrigin->taintsCanvas(response().url());
}
« no previous file with comments | « Source/core/fetch/ImageResource.h ('k') | Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698