Bug 803586 - Infinite recursion in nsXMLStylesheetPI::SetNodeValueInternal; r=bz

This commit is contained in:
Ms2ger 2012-10-21 09:38:41 +02:00
parent 45bd0fb3c3
commit d8e5487689
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,8 @@
<?xml-stylesheet href="foo.css" ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
document.firstChild.nodeValue = null
</script>
</head>
</html>

View File

@ -1,2 +1,3 @@
load 420429.xul
load 453278.html
load 803586.xhtml

View File

@ -130,7 +130,7 @@ void
nsXMLStylesheetPI::SetNodeValueInternal(const nsAString& aNodeValue,
ErrorResult& aError)
{
nsGenericDOMDataNode::SetNodeValue(aNodeValue, aError);
nsGenericDOMDataNode::SetNodeValueInternal(aNodeValue, aError);
if (!aError.Failed()) {
UpdateStyleSheetInternal(nullptr, true);
}