Bug 1316661 part 5. Eliminate IsCallerChrome caller in HTMLTextareaElement. r=smaug

The WebIDL caller of SetUserInput is [ChromeOnly] and the other callers are all C++ code that should be able to set the value.
This commit is contained in:
Boris Zbarsky
2016-11-15 00:18:33 -05:00
parent e9fb9777b8
commit 7262bcb766

View File

@@ -363,9 +363,6 @@ HTMLTextAreaElement::SetValue(const nsAString& aValue)
NS_IMETHODIMP
HTMLTextAreaElement::SetUserInput(const nsAString& aValue)
{
if (!nsContentUtils::IsCallerChrome()) {
return NS_ERROR_DOM_SECURITY_ERR;
}
return SetValueInternal(aValue, nsTextEditorState::eSetValue_BySetUserInput);
}