[Webkit-unassigned] [Bug 7693] WebKit relies on unpredictable timing for onload events

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Mar 10 05:09:04 PST 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=7693


opendarwin.org at mitzpettel.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |opendarwin.org at mitzpettel.co
                   |                            |m




------- Comment #5 from opendarwin.org at mitzpettel.com  2006-03-10 05:09 PDT -------
The root cause for the undeterministic behavior is that <object> (and perhaps
other) subframes are created and loaded by the render tree, triggered either by
the layout timer or by event dispatch or by other mechanisms.

Frame::checkCompleted(), which emits the load DOM event, waits for the
subframes to load, but obviously only if they have already been created. This
warrants a bug by itself, since it means that the document load event may
arbitrarily be emitted before subframes have loaded.

What's causing the problem here, though, is that in the case that the subframe
gets created and its main resource fails to load, the order of calls in
-[WebDataSource _receivedMainResourceError:complete:] is such that the WebFrame
reports completion (which invokes DRT's waiting delegate and causes it to dump)
before the WebCore Frame checks for completion (which fires the onload handler,
calling dumpAsText, waitUntilDone etc. when it's too late).


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list