Crash xbl binding setattribute and defined style float left

Discussion of bugs in Seamonkey
Post Reply
mw22
Posts: 2379
Joined: November 19th, 2002, 5:37 pm

Crash xbl binding setattribute and defined style float left

Post by mw22 »

This crashes Mozilla:
http://home.hccnet.nl/m.wargers/test/mo ... tclass.htm

Directory listing:
http://home.hccnet.nl/m.wargers/test/mozilla/crash/

source html:

Code: Select all

<html><head>
<style>
div#wiek{
-moz-binding:url("bez.xml#beweeg");
}
div.wiek{
float:left;
}
</style>
</head>
<body>
<div id="wiek" class="wiek">test</div>
</body></html>


When I remove float:left in the stylesheet, the thing doesn't crash. There are no problems with other css-statements.
Netscape Quality Feedback Agent ID: TB17485930W if that interests someone.

I can't seem to find a report on this on bugzilla, but that doesn't say anything.
I also want to remark that I've added the binding to the id. If I added the binding to the class, it would crash for another reason, which has been already filed in bugzilla.
Warduke
Posts: 630
Joined: November 4th, 2002, 7:49 pm

Post by Warduke »

Crashed 1.1 on Win98SE.
Firefox : One Browser to Rule Them All.
mw22
Posts: 2379
Joined: November 19th, 2002, 5:37 pm

Post by mw22 »

Thank you bzbarsky, I just wanted to post another crash report :)
I have seen another problem with crashing Mozilla:

http://home.hccnet.nl/m.wargers/test/mo ... ylexbl.htm

The problem seems to be in this line of setstyle.xml:

<html:div style="position:absolute;left:100px;top:100px;">
<children />
</html:div>

var element=document.getAnonymousNodes(this)[0];
tempa=this.getAttribute('style');
element.setAttribute('style',tempa);

If I already have defined in the content area of the xbl-file the style attribute and then try to rewrite it in the constructor with the above code, Mozilla crashes. I think this bug has not been filed.
It seems to happen only with the style attribuut.
User avatar
bzbarsky
Posts: 478
Joined: November 5th, 2002, 1:36 pm

Post by bzbarsky »

mw wrote:If I already have defined in the content area of the xbl-file the style attribute and then try to rewrite it in the constructor with the above code, Mozilla crashes. I think this bug has not been filed.


Actually, I think this is the same as the first problem you mentioned -- see my analysis in the bug....
mw22
Posts: 2379
Joined: November 19th, 2002, 5:37 pm

Post by mw22 »

Ah, ok. Not that I understand too much of that. For me it seems like something else.
By the way, note 2, it seems also to apply on position fixed elements.
User avatar
bzbarsky
Posts: 478
Joined: November 5th, 2002, 1:36 pm

Post by bzbarsky »

mw wrote:By the way, note 2, it seems also to apply on position fixed elements.

Comment on the bug. ;)
Post Reply