[Webkit-unassigned] [Bug 219770] New: SVG with embedded font triggers img.onload before font is available

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 11 00:11:47 PST 2020


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

            Bug ID: 219770
           Summary: SVG with embedded font triggers img.onload before font
                    is available
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: chrisdowling84 at gmail.com

Created attachment 415974

  --> https://bugs.webkit.org/attachment.cgi?id=415974&action=review

HTML + JS to create SVG, render to img and draw to canvas

Rendering an img tag with a href of an SVG image containing an embedded font results in WebKit triggering the img onload function before the img is ready.

I am verifying this by creating a Blob URL of an SVG with embedded font, loading that to an img tag and drawing that img to a canvas - the canvas remains blank.

This only occurs the first time the image is loaded.  On subsequent attempts and page refreshes the image loads fine, as do other images with the same font embedded.  The problem reappears when the browser is restarted.

This is a similar issue to 39059 but that bug relates specifically to embedded images.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201211/05385a6c/attachment.htm>


More information about the webkit-unassigned mailing list