Bug 13964

Summary: ASSERT in pasteboard code when dragging SVG
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: rwlbuis, zimmermann
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
URL: http://www.carto.net/neumann/webkitsvgbugs/image_placement_problem.svg

Description Eric Seidel (no email) 2007-06-01 03:19:32 PDT
ASSERTION FAILED: MimeTypeRegistry::isSupportedImageResourceMIMEType([resource MIMEType])
(/Stuff/Projects/WebKit/WebKit/Misc/WebNSPasteboardExtras.mm:253 -[NSPasteboard(WebExtras) _web_writeImage:element:URL:title:archive:types:])

Try to drag the image, somehow you end up getting the mime type "image/svg+xml" instead of png, or whatever it should be.
Comment 1 Eric Seidel (no email) 2007-06-01 03:20:25 PDT
It seems the right hand isn't talking to the left hand.  The drag should only be possible because of the jpg used in the SVG, but somehow WebKit ends up getting the svg mime type for the drag instead of the expected jpg mime type.  I think.
Comment 2 Nikolas Zimmermann 2010-07-08 01:25:54 PDT
Changed component to SVG, so it shows up in my all-svg-bugs search.
Comment 3 Rob Buis 2011-06-03 14:04:18 PDT
It seems nowadays on OS X dragging of images in SVG doesn't work at all? If that is wrong, are we tracking that? This assert/bug is probably not accurate anymore.
Cheers,

Rob.
Comment 4 Nikolas Zimmermann 2012-05-19 08:36:41 PDT
Right, it only works for SVGs that are loaded via SVGImage, e.g. embedded in a <html:img> - as intended. Closing bug.