Fix for hang. Bug 288831, r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@171536 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -964,7 +964,6 @@ nsHTMLContentSerializer::AppendToString(const nsAString& aStr,
|
||||
|
||||
if (!entityReplacement.IsEmpty()) {
|
||||
entityText = entityReplacement.get();
|
||||
lengthReplaced = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -998,7 +997,7 @@ nsHTMLContentSerializer::AppendToString(const nsAString& aStr,
|
||||
aOutputStr.Append(PRUnichar('&'));
|
||||
AppendASCIItoUTF16(entityText, aOutputStr);
|
||||
aOutputStr.Append(PRUnichar(';'));
|
||||
advanceLength += lengthReplaced;
|
||||
advanceLength++;
|
||||
}
|
||||
// if it comes from nsIEntityConverter, it already has '&' and ';'
|
||||
else if (fullEntityText) {
|
||||
|
||||
Reference in New Issue
Block a user