Index: Source/core/html/canvas/WebGLRenderingContext.cpp |
diff --git a/Source/core/html/canvas/WebGLRenderingContext.cpp b/Source/core/html/canvas/WebGLRenderingContext.cpp |
index e7046820f3a46a4c89b99ae48e12a38ed89d86c1..c96188ce1976d358756753d24e5c67e9cb24897a 100644 |
--- a/Source/core/html/canvas/WebGLRenderingContext.cpp |
+++ b/Source/core/html/canvas/WebGLRenderingContext.cpp |
@@ -5146,7 +5146,7 @@ bool WebGLRenderingContext::validateHTMLImageElement(const char* functionName, H |
return false; |
} |
if (wouldTaintOrigin(image)) { |
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute(functionName, "WebGLRenderingContext", "The cross-origin image at " + url.elidedString() + " may not be loaded.")); |
+ exceptionState.throwSecurityError("The cross-origin image at " + url.elidedString() + " may not be loaded."); |
return false; |
} |
return true; |
@@ -5159,7 +5159,7 @@ bool WebGLRenderingContext::validateHTMLCanvasElement(const char* functionName, |
return false; |
} |
if (wouldTaintOrigin(canvas)) { |
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute(functionName, "WebGLRenderingContext", "Tainted canvases may not be loaded.")); |
+ exceptionState.throwSecurityError("Tainted canvases may not be loaded."); |
return false; |
} |
return true; |
@@ -5172,7 +5172,7 @@ bool WebGLRenderingContext::validateHTMLVideoElement(const char* functionName, H |
return false; |
} |
if (wouldTaintOrigin(video)) { |
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute(functionName, "WebGLRenderingContext", "The video element contains cross-origin data, and may not be loaded.")); |
+ exceptionState.throwSecurityError("The video element contains cross-origin data, and may not be loaded."); |
return false; |
} |
return true; |