diff --git a/editor/libeditor/html/nsHTMLDataTransfer.cpp b/editor/libeditor/html/nsHTMLDataTransfer.cpp
index cb6a9252cc01..c051c352cabe 100644
--- a/editor/libeditor/html/nsHTMLDataTransfer.cpp
+++ b/editor/libeditor/html/nsHTMLDataTransfer.cpp
@@ -328,7 +328,7 @@ nsHTMLEditor::InsertHTMLWithCharsetAndContext(const nsAString & aInputString,
PRBool doContinue = PR_TRUE;
- res = DoContentFilterCallback(aFlavor,
+ res = DoContentFilterCallback(aFlavor, aDeleteSelection,
(nsIDOMNode **)address_of(fragmentAsNode),
(nsIDOMNode **)address_of(streamStartParent),
&streamStartOffset,
@@ -788,6 +788,7 @@ nsHTMLEditor::RemoveInsertionListener(nsIContentFilter *aListener)
nsresult
nsHTMLEditor::DoContentFilterCallback(const nsAString &aFlavor,
+ PRBool aWillDeleteSelection,
nsIDOMNode **aFragmentAsNode,
nsIDOMNode **aFragStartNode,
PRInt32 *aFragStartOffset,
@@ -805,7 +806,8 @@ nsHTMLEditor::DoContentFilterCallback(const nsAString &aFlavor,
{
listener = (nsIContentFilter *)mContentFilters[i];
if (listener)
- listener->NotifyOfInsertion(aFlavor, nsnull, aFragmentAsNode,
+ listener->NotifyOfInsertion(aFlavor, nsnull, aWillDeleteSelection,
+ aFragmentAsNode,
aFragStartNode, aFragStartOffset,
aFragEndNode, aFragEndOffset,
aTargetNode, aTargetOffset, aDoContinue);