Fix textarea maxlength bug that return key is not considered.
*** This bug has been marked as a duplicate of bug 54443 ***
Created attachment 85574 [details] Patch
Could you review?
Comment on attachment 85574 [details] Patch It should be possible to make an automated test for this. Manual tests are nearly useless. Please attach patches to bug 54443, not here.
I try to make automate test. But I'm not sure I can simulate key pressing in layout test.
You can look what existing tests for maxlength do for an example. See e.g. fast/forms/script-tests/textarea-maxlength.js, or other tests with "maxlength" in file name.