[Webkit-unassigned] [Bug 40919] beforeload event not sent to document for <img src> added to document using .innerHTML (affects images.google.com)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 22 12:06:30 PDT 2010


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





--- Comment #7 from Adam Roben (aroben) <aroben at apple.com>  2010-06-22 12:06:30 PST ---
The same bug does not affect the following code:

var img = new Image();
img.src = foo;
document.body.appendChild(img);

Setting @src schedules the beforeload event to be sent after a timer fires (via ImageEventSender::dispatchEventSoon). By the time the timer fires, the image is already in the document.

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