Implement the HTML5 canvas tainting rules to prevent potential data leakage
[WebKit-https.git] / WebCore / html / CanvasRenderingContext2D.h
index 5f79d53..acb75aa 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;
     };