TEXTAREA: Fix selectionStart and selectionEnd after setting value while parsing TEXTAREA children.

We checked IsFinishedParsingChildren() in SetValueCommon() in order to
avoid changing selection repeatedly while parsing. It caused this bug,
and the check is unnecessary now because parsing TEXTAREA children
doesn't move selectionStart/End to the end of the value since
crrev.com/653487.

Bug: 822639
Change-Id: Ic4353c8cac372da1fc964f51576b306b240ae6b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1583172
Reviewed-by: Yoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#654325}
diff --git a/html/semantics/forms/textfieldselection/textarea-selection-while-parsing.xhtml b/html/semantics/forms/textfieldselection/textarea-selection-while-parsing.xhtml
new file mode 100644
index 0000000..57326bb
--- /dev/null
+++ b/html/semantics/forms/textfieldselection/textarea-selection-while-parsing.xhtml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<body>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<textarea>
+a
+<script>document.querySelector('textarea').value = 'ggg';</script>
+b
+</textarea>
+<script>
+test(() => {
+  let ta = document.querySelector('textarea');
+  assert_equals(ta.selectionStart, 3);
+  assert_equals(ta.selectionEnd, 3);
+}, 'Value setter while parsing textarea children should move ' +
+    'selection{Start,End} to the end');
+</script>
+</body>
+</html>