On Nov 16, 2008, at 2:53 PM, Aaron Boodman wrote:

Hello all,

I'd like to run some C++ around the same point as the DOMContentLoaded
event is fired. Importantly, I need this to happen *before* the
window's onload event fires.

FrameLoaderClient::dispatchDidFinishDocumentLoad is usually fired at
the right point, but it can sometimes happen after window.onload.
Would a patch to add something like
dispatchDidHandleDOMContentLoadedEvents to FrameLoaderClient be
accepted? Or is there some better way to do what I want?

I believe dispatchDidFinishDocumentLoad() will be called right after the DOMContentLoaded event is dispatched. So I don't think a new client interface is needed.

Regards,
Maciej

_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to