<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:hyongyoub.kim@navercorp.com" title="Hyongyoub Kim <hyongyoub.kim@navercorp.com>"> <span class="fn">Hyongyoub Kim</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - img.onload event ONLY fires when .src changes"
href="https://bugs.webkit.org/show_bug.cgi?id=9582">bug 9582</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>hyongyoub.kim@navercorp.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - img.onload event ONLY fires when .src changes"
href="https://bugs.webkit.org/show_bug.cgi?id=9582#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - img.onload event ONLY fires when .src changes"
href="https://bugs.webkit.org/show_bug.cgi?id=9582">bug 9582</a>
from <span class="vcard"><a class="email" href="mailto:hyongyoub.kim@navercorp.com" title="Hyongyoub Kim <hyongyoub.kim@navercorp.com>"> <span class="fn">Hyongyoub Kim</span></a>
</span></b>
<pre>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.
<a href="https://codereview.chromium.org/1047563002">https://codereview.chromium.org/1047563002</a>
The second load event does not fire because the following check in ImageLoader.
<a href="http://trac.webkit.org/browser/trunk/Source/WebCore/loader/ImageLoader.cpp#L217">http://trac.webkit.org/browser/trunk/Source/WebCore/loader/ImageLoader.cpp#L217</a>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>