Bug 460665. Whack another XBL sink mole. r+sr=sicking

This commit is contained in:
Boris Zbarsky 2008-10-20 12:20:01 -04:00
parent a1f18eb0e6
commit da63bc8f87
3 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,28 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="a">
<content></content>
<implementation>
<field>t</field>
<field/>
<property/>
<property>
<getter>x</getter>
<setter>y</setter>
</property>
<method/>
<method>
<body/>
</method>
<method>
<body>a</body>
</method>
</implementation>
</binding>
</bindings>
</head>
<body><span id="s" style="-moz-binding: url('#a');"></span></body>
</html>

View File

@ -14,3 +14,4 @@ load 418133-1.xhtml
load 415192-1.xul
load 421997-1.xhtml
load 432813-1.xhtml
load 460665-1.xhtml

View File

@ -159,7 +159,8 @@ nsXBLContentSink::FlushText(PRBool aReleaseTextNode)
}
else if (mSecondaryState == eXBL_InField) {
// Get the text and add it to the method
mField->AppendFieldText(text);
if (mField)
mField->AppendFieldText(text);
}
mTextLength = 0;
return NS_OK;