HTMLFormElement::ConstructEntryList() creates a FormData instance

instead of taking an empty FormData as an argument.

- This matches to what the specification says.
  https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#constructing-form-data-set
> 1. If form's constructing entry list is true, then return null.

- We avoid to create unnecessary FormData instance in a case where
  FormData::Create() throws an exception.

Change-Id: Iafb8aa09e3d0cf2b013760ef488258e4b61fed5f
Reviewed-on: https://chromium-review.googlesource.com/c/1414738
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623595}
4 files changed