Fixing rtm++ bug 54825. The form element cleanup code in the HTML sink was incorrectly adding the form element itself to it's parent event if it had already been added, this caused the content iterator to lock up when doing 'Find on this page'. sr=vidur, r=pollmann
git-svn-id: svn://10.0.0.236/trunk@81065 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1605,8 +1605,8 @@ SinkContext::DemoteContainer(const nsIParserNode& aNode)
|
||||
sync = PR_TRUE;
|
||||
}
|
||||
// Otherwise just append the container to the parent without
|
||||
// notification
|
||||
else {
|
||||
// notification (it the container hasn't already been appended)
|
||||
else if (!(mStack[stackPos].mFlags & APPENDED)) {
|
||||
mSink->mInNotification++;
|
||||
parent->AppendChildTo(container, PR_FALSE);
|
||||
mSink->mInNotification--;
|
||||
|
||||
@@ -1605,8 +1605,8 @@ SinkContext::DemoteContainer(const nsIParserNode& aNode)
|
||||
sync = PR_TRUE;
|
||||
}
|
||||
// Otherwise just append the container to the parent without
|
||||
// notification
|
||||
else {
|
||||
// notification (it the container hasn't already been appended)
|
||||
else if (!(mStack[stackPos].mFlags & APPENDED)) {
|
||||
mSink->mInNotification++;
|
||||
parent->AppendChildTo(container, PR_FALSE);
|
||||
mSink->mInNotification--;
|
||||
|
||||
Reference in New Issue
Block a user