| Index: Source/core/html/canvas/WebGLRenderingContext.cpp
|
| diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| index 1faa49d6fe059b38d7383a1e86631ee593da0d0d..ed8646bf8cdb8bc63559bcb0cec4b5a803c89be3 100644
|
| --- a/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| +++ b/Source/core/html/canvas/WebGLRenderingContext.cpp
|
| @@ -5136,7 +5136,7 @@ bool WebGLRenderingContext::validateHTMLImageElement(const char* functionName, H
|
| return false;
|
| }
|
| if (wouldTaintOrigin(image)) {
|
| - ec = SECURITY_ERR;
|
| + ec = SecurityError;
|
| return false;
|
| }
|
| return true;
|
| @@ -5149,7 +5149,7 @@ bool WebGLRenderingContext::validateHTMLCanvasElement(const char* functionName,
|
| return false;
|
| }
|
| if (wouldTaintOrigin(canvas)) {
|
| - ec = SECURITY_ERR;
|
| + ec = SecurityError;
|
| return false;
|
| }
|
| return true;
|
| @@ -5162,7 +5162,7 @@ bool WebGLRenderingContext::validateHTMLVideoElement(const char* functionName, H
|
| return false;
|
| }
|
| if (wouldTaintOrigin(video)) {
|
| - ec = SECURITY_ERR;
|
| + ec = SecurityError;
|
| return false;
|
| }
|
| return true;
|
|
|