[PATCH] making sure onLoad actions were processed before emitting the completed() signal

Sebastien Raveau sebastien.raveau at epita.fr
Thu Mar 23 19:51:47 GMT 2006


Hi all!


Here's a patch (coded by David Faure right after I enounced the problem on 
#khtml, I have to say :) to make sure onLoad actions were processed before 
emitting the completed() signal.

The problem with the current version of KHTML is that on webpages such as
http://www.darty.com/webapp/wcs/stores/servlet/DartyHomepageView?storeId=10001
which contains <body onLoad="MM_preloadImages('.../accueil_on.gif', ...);">
the completed() signal will be emitted indeed once all the objects requested 
by the page's HTML code are loaded, but _before_ the onLoad javascript is 
executed.

I tested this simple patch and it works perfectly for me... Can somebody 
please do a final review and commit it?


Best regards,

-- 
Sébastien Raveau
computer and network security student
head of the hawKeye network monitor project
http://hawkeye.sourceforge.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: khtml_part_onload_completed.diff
Type: text/x-diff
Size: 889 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20060323/78f2dda9/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20060323/78f2dda9/attachment.sig>


More information about the kfm-devel mailing list