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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 2806803003: Make OffscreenCanvas WebGL(2) context consider taintedness of image source (Closed)
Patch Set: rebase Created 3 years, 8 months 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
Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
index 93b0fc7b5271d6d2b91c8f3240bf29d50a3cb211..55277d5f432dd3ee81df496de1fbc56fa57b76e1 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h
@@ -159,8 +159,10 @@ class MODULES_EXPORT CanvasRenderingContext2D final
// BaseRenderingContext2D implementation
bool OriginClean() const final;
void SetOriginTainted() final;
- bool WouldTaintOrigin(CanvasImageSource* source, ExecutionContext*) final {
- return CanvasRenderingContext::WouldTaintOrigin(source);
+ bool WouldTaintOrigin(CanvasImageSource* source,
+ ExecutionContext* execution_context) final {
+ return CanvasRenderingContext::WouldTaintOrigin(
+ source, execution_context->GetSecurityOrigin());
}
int Width() const final;

Powered by Google App Engine
This is Rietveld 408576698