A canvas should not be tainted if it draws a data URL SVGImage with a <foreignObject>
[WebKit-https.git] / Source / WebCore / html / ImageBitmap.cpp
index 30ba83c..72d9339 100644 (file)
@@ -102,6 +102,9 @@ static bool taintsOrigin(CachedImage& cachedImage)
     if (!image)
         return false;
 
+    if (image->sourceURL().protocolIsData())
+        return false;
+
     if (!image->hasSingleSecurityOrigin())
         return true;