Bug 1556363 - Part 1: Check disabled state for submission in a common place; r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D129048
This commit is contained in:
Edgar Chen
2021-10-25 20:43:10 +00:00
parent e59cb4491e
commit 635069f699
5 changed files with 8 additions and 21 deletions

View File

@@ -677,11 +677,6 @@ nsresult HTMLTextAreaElement::Reset() {
NS_IMETHODIMP
HTMLTextAreaElement::SubmitNamesValues(FormData* aFormData) {
// Disabled elements don't submit
if (IsDisabled()) {
return NS_OK;
}
//
// Get the name (if no name, no submit)
//