[Webkit-unassigned] [Bug 186336] Regression(AsyncImageDecoding): HTML 'load' event fires before images have been rendered

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 7 09:29:12 PDT 2018


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

--- Comment #5 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
What is the spec of the load event regarding painting the image? Does firing the load event guarantees the image will be painted with the next window update? If this is the case we can disable the async image decoding for large images if the image element has a load event handler. The reason will be: in the image load event handler there might be a script which assumes the image will be painted synchronously.

Meanwhile there is an easy workaround which uses the HTMLImageElement::decode API. When the decode promise is resolved, the image has to be be painted in the next window update. The workaround test case is attached.

-- 
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/20180607/10b63b2d/attachment.html>


More information about the webkit-unassigned mailing list