khtml crashes when I try to create a ChatMessagePart in kopete
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Tue Feb 20 13:59:26 GMT 2007
Hi,
I compiled kopete on win32 and now get a crash when kopete tries to open
a chatwindow.
I found out that CSSStyleSelector::applyRule() sets
style->setDisplay(NONE) (cssstyleselector.cpp:2107) which
ElementImpl::createRenderer()/RenderObject::createObject() does not
handle and it then crashes inside NodeImpl::createRendererIfNeeded().
Now I wonder why this could happen - can it be that a stylesheet (or
something else khtml needs) was not loaded?
How can I debug further to fix this problem?
Here is the text which should be handled by KHTMLPart::write():
---------------------8<--------------------------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8
" />
<base href="/Contents/Resources/">
<style id="KopeteStyle" type="text/css" media="screen,print">
body{background-color:#ffffff;font-family:Sans
Serif;font-size:10pt;color:#000000}td{font-family:Sans
Serif;font-size:10pt;color:#000000}a{color:#0000ee}a.visited{color:#0000ee}a.KopeteDisplayName{text-decoration:none;color:inherit;}a.KopeteDisplayName:hover{text-decoration:underline;color:inherit}.KopeteLink{cursor:pointer;}.KopeteLink:hover{text-decoration:underline}.KopeteMessageBody
> p:first-child{margin:0;padding:0;display:inline;}
</style>
<style id="baseStyle" type="text/css" media="screen,print">
@import url("main.css");
*{ word-wrap:break-word; }
</style>
<style id="mainStyle" type="text/css" media="screen,print">
@import url("");
</style>
</head>
<body>
<div id="Chat">
</div>
</body></html>
---------------------8<--------------------------
Thx,
Christian Ehrlicher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20070220/1de65880/attachment.sig>
More information about the kfm-devel
mailing list