dispatchImageLoadEventSoon
Dirk Mueller
mueller at kde.org
Fri Apr 18 19:01:43 CEST 2003
On Fre, 18 Apr 2003, Darin Adler wrote:
> You can probably reproduce this bug with Konqueror too. The underlying
> cause of the crash is an image onLoad handler that does a setInnerHTML
> call.
Ok, but how is this problem specific to image onload ? The same can happen
in other onload handlers, or onclick etc.. see my forwarding of the
aljazeera.net problem, this is quite the same issue and introduced by your
changes to setInnerHTML(), the crash wasn't there before.
> I can't remember the rest of the details, but during my
> investigation one of the things I learned was that Gecko delayed the
> propagation of image load events for similar reasons.
delayed the propagation till after body onload? this would make *some*
sense, but a 0 timer delay seems pretty random to me.
Anyway, many thanks for the explanation, I'll go play with this a bit more..
> I wish I could remember all of the details so I knew what other options
> we considered to solve the problem. Perhaps you'll find another
> solution to it.
Do you have a testcase around for the crash still?
--
Dirk
More information about the Khtml-devel
mailing list