diff --git a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
index c5f34ec2aa1..c160de6f9ce 100644
--- a/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
+++ b/mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
@@ -1661,7 +1661,7 @@ nsHTMLEditor::InsertTextWithQuotations(const nsAString &aStringToInsert)
// If no newline found, lineStart is now strEnd and we can finish up,
// inserting from curHunk to lineStart then returning.
- const nsDependentSubstring &curHunk = Substring(hunkStart, lineStart);
+ const nsAString &curHunk = Substring(hunkStart, lineStart);
nsCOMPtr dummyNode;
#ifdef DEBUG_akkana_verbose
printf("==== Inserting text as %squoted: ---\n%s---\n",