Chromium Code Reviews| Index: Source/core/html/HTMLOptionsCollection.cpp |
| diff --git a/Source/core/html/HTMLOptionsCollection.cpp b/Source/core/html/HTMLOptionsCollection.cpp |
| index 1b9c61989d690657f43387ff68b19730de456912..5f6ff463af1840761c0242a330ade96f4edaa094 100644 |
| --- a/Source/core/html/HTMLOptionsCollection.cpp |
| +++ b/Source/core/html/HTMLOptionsCollection.cpp |
| @@ -91,6 +91,8 @@ void HTMLOptionsCollection::setSelectedIndex(int index) |
| void HTMLOptionsCollection::setLength(unsigned length, ExceptionState& exceptionState) |
| { |
| + if (length > 0x7fffffffu) |
|
davve
2015/08/18 12:04:30
Will this mean we'll get the following behavior?
vivekg
2015/08/18 12:30:32
Yes makes sense. So the simplified condition would
|
| + return; |
| toHTMLSelectElement(ownerNode()).setLength(length, exceptionState); |
| } |