[Webkit-unassigned] [Bug 15443] SVGImage does not support sub-resource loading

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 18 13:57:52 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=15443





--- Comment #2 from Morley Abbott <mabbo at chromium.org>  2010-06-18 13:57:51 PST ---
Created an attachment (id=59152)
 --> (https://bugs.webkit.org/attachment.cgi?id=59152)
svg image that should cause an error due to circular reference, but does not.

It seems that WebKit doesn't handle <image xlink:href> to svg's correctly. Circular references aren't causing an error, but instead recurse on themselves one time. 

According to the W3 SVG spec, 5.3:
"URI references that directly or indirectly reference themselves are treated as invalid circular references."
"An invalid circular URI reference represents an error"

Attached is an svg which has a red rect background, an X drawn with two lines in black, and an image in the top left quarter, with itself as the xlink:href. This should result in an error, do to the circular reference. Instead, we see that it has loaded itself in the top left corner, but only 1 level of recursion deep. 

This leads me to suspect that WebKit loads image resources, but specifically only to one level of recursive depth. Perhaps this was designed this way, as to avoid infinite recursion. As a simple solution, it could be possible to specify a larger depth, but it would still mean that it doesn't follow W3 spec for circular references. 

I'm still examining more test cases, and playing with gdb to better understand the issue.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list