[patch] fix for bug 68181
Luís Pedro Coelho
luis at luispedro.org
Sat Dec 27 19:29:37 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Check http://bugs.kde.org/show_bug.cgi?id=68181 for the whole story. I will
copy the relevant test-case:
file1 : <img src="style.css" /> for preloading
file2 : <link res="stylesheet" href="style.css" />
CRASH: style.css is loaded as image !!!
Here is the patch. It fixes the crash for me. Instead of (pseudo-code, of
course):
assert( cached_object->type() == Expected ) ;
it does
if (cached_object->type() != Expected ) {
removeFromCache(cached_object) ;
refetch ( ) ;
}
Ok to commit?
HTH,
- --
Luis Pedro Coelho
check out my game of hearts for the KDE at
http://hearts.luispedro.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE/7d2hGpBAvyRwXdgRAkztAJ41iFqws4DiolMt+7Niud0sYWhFlQCgkvqx
bNweBTD0+zJZI3RwYH6XnjY=
=aarB
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kmail-attach.J4HeLe
Type: text/x-diff
Size: 1577 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20031227/447fddb5/attachment.diff>
More information about the kfm-devel
mailing list