diff --git a/content/html/content/test/Makefile.in b/content/html/content/test/Makefile.in index 4cb7d4926db..d5b41991df5 100644 --- a/content/html/content/test/Makefile.in +++ b/content/html/content/test/Makefile.in @@ -113,6 +113,7 @@ _TEST_FILES = test_bug589.html \ test_bug406596.html \ test_bug421640.html \ test_bug430351.html \ + test_bug430392.html \ $(NULL) libs:: $(_TEST_FILES) diff --git a/content/html/content/test/test_bug430392.html b/content/html/content/test/test_bug430392.html new file mode 100644 index 00000000000..be6dcc67ebe --- /dev/null +++ b/content/html/content/test/test_bug430392.html @@ -0,0 +1,53 @@ + + + + + Test for Bug 430392 + + + + + + +Mozilla Bug 430392 +

+
+
+ A ; + B ; + C +
+
+
+
+
+ + diff --git a/editor/libeditor/html/nsHTMLEditor.cpp b/editor/libeditor/html/nsHTMLEditor.cpp index be6bd89556d..21469c0c1df 100644 --- a/editor/libeditor/html/nsHTMLEditor.cpp +++ b/editor/libeditor/html/nsHTMLEditor.cpp @@ -4600,7 +4600,8 @@ nsHTMLEditor::CollapseAdjacentTextNodes(nsIDOMRange *aInRange) // get the prev sibling of the right node, and see if it's leftTextNode nsCOMPtr prevSibOfRightNode; - result = GetPriorHTMLSibling(rightTextNode, address_of(prevSibOfRightNode)); + result = + rightTextNode->GetPreviousSibling(getter_AddRefs(prevSibOfRightNode)); if (NS_FAILED(result)) return result; if (prevSibOfRightNode && (prevSibOfRightNode == leftTextNode)) {