[Webkit-unassigned] [Bug 9582] img.onload event ONLY fires when .src changes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 28 20:36:31 PDT 2016


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

Hyongyoub Kim <hyongyoub.kim at navercorp.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hyongyoub.kim at navercorp.com

--- Comment #9 from Hyongyoub Kim <hyongyoub.kim at navercorp.com> ---
I know this issue has seen no action for 9 years. Here is a ping that this issue does matter in the real world. Many sites use this "load the same source twice + onload event" technique to load images asynchronously and then display them when they are already in the memory cache.

Looks like Chromium fixed this last year.

https://codereview.chromium.org/1047563002

The second load event does not fire because the following check in ImageLoader.

http://trac.webkit.org/browser/trunk/Source/WebCore/loader/ImageLoader.cpp#L217

Tried simply pretending the images are always different. It seems to work okay, but not sure about any side effects this would have on CachedImage::didAddClient and CachedImage::didRemoveClient.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160429/0a648fbf/attachment.html>


More information about the webkit-unassigned mailing list