| Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| index 802cec44c6feb71d318e5cb60cbb1be8826ceacf..beddb2699306d90f0fe6e0cf76f652b86450684d 100644
|
| --- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| +++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
|
| @@ -5091,7 +5091,7 @@ bool WebGLRenderingContextBase::validateHTMLImageElement(const char* functionNam
|
| synthesizeGLError(GL_INVALID_VALUE, functionName, "invalid image");
|
| return false;
|
| }
|
| - if (wouldTaintOrigin(image)) {
|
| + if (image->wouldTaintOrigin(this)) {
|
| exceptionState.throwSecurityError("The cross-origin image at " + url.elidedString() + " may not be loaded.");
|
| return false;
|
| }
|
| @@ -5104,7 +5104,7 @@ bool WebGLRenderingContextBase::validateHTMLCanvasElement(const char* functionNa
|
| synthesizeGLError(GL_INVALID_VALUE, functionName, "no canvas");
|
| return false;
|
| }
|
| - if (wouldTaintOrigin(canvas)) {
|
| + if (canvas->wouldTaintOrigin(this)) {
|
| exceptionState.throwSecurityError("Tainted canvases may not be loaded.");
|
| return false;
|
| }
|
| @@ -5117,7 +5117,7 @@ bool WebGLRenderingContextBase::validateHTMLVideoElement(const char* functionNam
|
| synthesizeGLError(GL_INVALID_VALUE, functionName, "no video");
|
| return false;
|
| }
|
| - if (wouldTaintOrigin(video)) {
|
| + if (video->wouldTaintOrigin(this)) {
|
| exceptionState.throwSecurityError("The video element contains cross-origin data, and may not be loaded.");
|
| return false;
|
| }
|
|
|