[Webkit-unassigned] [Bug 50546] New: href's inside SVG's don't work if the SVG file is loaded from a HTML file

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 5 19:48:37 PST 2010


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

           Summary: href's inside SVG's don't work if the SVG file is
                    loaded from a HTML file
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: cabanier at gmail.com
                CC: zimmermann at kde.org


When you load an svg file from html either through embed, object or img and the svg file contains external resources, those resources can't be found.
They will be found if their URL is absolute or if you declare a xml:base.

Interestingly, if you load the svg from a XHTML file, the resources are found.

I debugged this a litte and a possible cause is in SVGImage.cpp in the function bool SVGImage::dataChanged
The SVG document is created with an empty url:
 (loader->writer()->begin(KURL()); // create the empty document

Passing the URL of the SVG file should make things work correctly...

I verified that the attached code works fine in ie9 but not in the latest webkit.

-- 
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