Implement the HTML5 canvas tainting rules to prevent potential data leakage
[WebKit-https.git] / WebCore / html / HTMLCanvasElement.cpp
index 45895c7e266cac2034da23db3e38e8d08eb5e27c..5444cbf3087c5d1b6ca8cc75766f02b1a2ccd80e 100644 (file)
@@ -65,6 +65,7 @@ const float HTMLCanvasElement::MaxCanvasArea = 32768 * 8192; // Maximum canvas a
 HTMLCanvasElement::HTMLCanvasElement(Document* doc)
     : HTMLElement(canvasTag, doc)
     , m_size(defaultWidth, defaultHeight)
 HTMLCanvasElement::HTMLCanvasElement(Document* doc)
     : HTMLElement(canvasTag, doc)
     , m_size(defaultWidth, defaultHeight)
+    , m_originClean(true)
     , m_createdImageBuffer(false)
 {
 }
     , m_createdImageBuffer(false)
 {
 }