REGRESSION(r93858): Can't type anything into input elements when maxlength is greater...
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Sep 2011 02:49:45 +0000 (02:49 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Sep 2011 02:49:45 +0000 (02:49 +0000)
commit82404b91f1a727046c4ab83f37036341caf1ebdd
tree74f808685c258a99eac4a9387fce2ab465415f2d
parent89595a13bb12c0c50f002a60bdb33f39d1e70604
REGRESSION(r93858): Can't type anything into input elements when maxlength is greater than 2^31
https://bugs.webkit.org/show_bug.cgi?id=68981

Reviewed by Darin Adler.

Source/WebCore:

* html/parser/HTMLParserIdioms.cpp:
(WebCore::parseHTMLInteger):
Check the failure of charactersToIntStrict().
(WebCore::parseHTMLNonNegativeInteger):
Check the failure of charactersToUIntStrict().

LayoutTests:

* fast/forms/input-text-paste-maxlength-expected.txt:
* fast/forms/input-text-paste-maxlength.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/input-text-paste-maxlength-expected.txt
LayoutTests/fast/forms/input-text-paste-maxlength.html
Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLParserIdioms.cpp