Implement the HTML5 canvas tainting rules to prevent potential data leakage
[WebKit-https.git] / WebCore / html / CanvasRenderingContext2D.h
index 5f79d53110603592f5c0843d580157fca3fa4890..acb75aa9fa454f7f25c5d2eda924a0c83abc5e33 100644 (file)
@@ -46,6 +46,7 @@ namespace WebCore {
     class HTMLCanvasElement;
     class HTMLImageElement;
     class ImageData;
+    class KURL;
 
     typedef int ExceptionCode;
 
@@ -210,6 +211,10 @@ namespace WebCore {
 
         void clearPathForDashboardBackwardCompatibilityMode();
 
+        void checkOrigin(const KURL&);
+
+        void printSecurityExceptionMessage() const;
+
         HTMLCanvasElement* m_canvas;
         Vector<State, 1> m_stateStack;
     };