Bug 1270310 - Part 3: Make string assignment in HTMLInputElement::GetValueInternal fallible. r=smaug

This makes the string assignment fallible and also adds checks for the return
value from GetValueInternal and GetValue.
This commit is contained in:
Eric Rahm
2016-05-20 16:15:52 -07:00
parent da853b924b
commit adb206b051
3 changed files with 23 additions and 8 deletions

View File

@@ -632,7 +632,7 @@ public:
SetHTMLAttr(nsGkAtoms::value, aValue, aRv);
}
// XPCOM GetValue() is OK
void GetValue(nsAString& aValue, ErrorResult& aRv);
void SetValue(const nsAString& aValue, ErrorResult& aRv);
Nullable<Date> GetValueAsDate(ErrorResult& aRv);