Bug 1345606. setRangeText should mark the text control as dirty. r=ehsan

MozReview-Commit-ID: 9le2PoelGei
This commit is contained in:
Boris Zbarsky
2017-03-09 14:44:36 -05:00
parent 6fda0e869c
commit 8f6ad791d2
3 changed files with 22 additions and 2 deletions

View File

@@ -784,7 +784,9 @@ HTMLTextAreaElement::GetValueFromSetRangeText(nsAString& aValue)
nsresult
HTMLTextAreaElement::SetValueFromSetRangeText(const nsAString& aValue)
{
return SetValueInternal(aValue, nsTextEditorState::eSetValue_ByContent);
return SetValueInternal(aValue,
nsTextEditorState::eSetValue_ByContent |
nsTextEditorState::eSetValue_Notify);
}
nsresult