Bug 1383079 - Don't AddRef() the editor root node in TextEditRules::WillOutputText(); r=masayuki

This commit is contained in:
Ehsan Akhgari 2017-07-21 11:13:24 -04:00
parent e638bda44d
commit 2ee7157f0e

View File

@ -1258,7 +1258,7 @@ TextEditRules::WillOutputText(Selection* aSelection,
return NS_OK;
}
RefPtr<Element> root = mTextEditor->GetRoot();
Element* root = mTextEditor->GetRoot();
if (!root) { // Don't warn it, this is possible, e.g., 997805.html
aOutString->Truncate();
*aHandled = true;