Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Issue 1292653003: [bindings] Avoid using custom binding for HTMLOptionsCollection.length attribute (Closed)

Created:
5 years, 4 months ago by vivekg_samsung
Modified:
5 years, 4 months ago
Reviewers:
haraken, vivekg, davve, tkent
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-html_chromium.org, Inactive, dglazkov+blink, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Avoid using custom binding for HTMLOptionsCollection.length attribute As per the specification, https://html.spec.whatwg.org/#the-htmloptionscollection-interface, there is no exception throwing mechanism defined when negative values are passed. In such case we should just ignore the values and avoid using the custom binding for such usage. Trying to set any value greater than 10000 will be ignored with the existing length unchanged. BUG=345519 R=haraken@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200819

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Aligned with maxSelectedItems value #

Total comments: 1

Patch Set 4 : Added new test #

Total comments: 1

Patch Set 5 : Review comments addressed! #

Patch Set 6 : Missed to fix the test case! #

Messages

Total messages: 32 (7 generated)
vivekg
PTAL thanks.
5 years, 4 months ago (2015-08-18 10:25:09 UTC) #2
davve
https://codereview.chromium.org/1292653003/diff/20001/Source/core/html/HTMLOptionsCollection.cpp File Source/core/html/HTMLOptionsCollection.cpp (right): https://codereview.chromium.org/1292653003/diff/20001/Source/core/html/HTMLOptionsCollection.cpp#newcode94 Source/core/html/HTMLOptionsCollection.cpp:94: if (length > 0x7fffffffu) Will this mean we'll get ...
5 years, 4 months ago (2015-08-18 12:04:30 UTC) #4
vivekg
https://codereview.chromium.org/1292653003/diff/20001/Source/core/html/HTMLOptionsCollection.cpp File Source/core/html/HTMLOptionsCollection.cpp (right): https://codereview.chromium.org/1292653003/diff/20001/Source/core/html/HTMLOptionsCollection.cpp#newcode94 Source/core/html/HTMLOptionsCollection.cpp:94: if (length > 0x7fffffffu) On 2015/08/18 at 12:04:30, David ...
5 years, 4 months ago (2015-08-18 12:30:33 UTC) #5
vivekg
Done the changes in the latest patch. PTAL.
5 years, 4 months ago (2015-08-18 13:16:49 UTC) #6
haraken
LGTM I want to have tkent take another look at the behavior change. https://codereview.chromium.org/1292653003/diff/40001/Source/core/html/HTMLOptionsCollection.cpp File ...
5 years, 4 months ago (2015-08-18 13:27:12 UTC) #8
vivekg
On 2015/08/18 at 13:27:12, haraken wrote: > LGTM > > I want to have tkent ...
5 years, 4 months ago (2015-08-18 13:30:44 UTC) #9
haraken
On 2015/08/18 13:30:44, vivekg_ wrote: > On 2015/08/18 at 13:27:12, haraken wrote: > > LGTM ...
5 years, 4 months ago (2015-08-18 13:34:06 UTC) #10
vivekg
On 2015/08/18 at 13:34:06, haraken wrote: > On 2015/08/18 13:30:44, vivekg_ wrote: > > On ...
5 years, 4 months ago (2015-08-18 13:46:52 UTC) #11
tkent
https://codereview.chromium.org/1292653003/diff/60001/Source/core/html/HTMLOptionsCollection.cpp File Source/core/html/HTMLOptionsCollection.cpp (right): https://codereview.chromium.org/1292653003/diff/60001/Source/core/html/HTMLOptionsCollection.cpp#newcode95 Source/core/html/HTMLOptionsCollection.cpp:95: return; It's inconsistent with the current behavior of HTMLSelectElement::length ...
5 years, 4 months ago (2015-08-19 01:20:24 UTC) #12
vivekg
On 2015/08/19 01:20:24, tkent wrote: > https://codereview.chromium.org/1292653003/diff/60001/Source/core/html/HTMLOptionsCollection.cpp > File Source/core/html/HTMLOptionsCollection.cpp (right): > > https://codereview.chromium.org/1292653003/diff/60001/Source/core/html/HTMLOptionsCollection.cpp#newcode95 > ...
5 years, 4 months ago (2015-08-19 01:53:35 UTC) #13
tkent
On 2015/08/19 01:53:35, vivekg_ wrote: > > Does Firefox still have the limitation of the ...
5 years, 4 months ago (2015-08-19 05:09:59 UTC) #14
vivekg
On 2015/08/19 at 05:09:59, tkent wrote: > On 2015/08/19 01:53:35, vivekg_ wrote: > > > ...
5 years, 4 months ago (2015-08-19 06:03:07 UTC) #15
tkent
On 2015/08/19 06:03:07, vivekg_ wrote: > FF behaves differently. For HTMLOptionCollection, it doesn't clamp the ...
5 years, 4 months ago (2015-08-19 06:45:02 UTC) #16
vivekg
On 2015/08/19 at 06:45:02, tkent wrote: > On 2015/08/19 06:03:07, vivekg_ wrote: > > FF ...
5 years, 4 months ago (2015-08-19 06:53:35 UTC) #17
tkent
lgtm
5 years, 4 months ago (2015-08-19 09:04:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292653003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292653003/100001
5 years, 4 months ago (2015-08-19 09:04:55 UTC) #21
davve
On 2015/08/19 06:45:02, tkent wrote: > Thank you for the investigation. > I thought following ...
5 years, 4 months ago (2015-08-19 09:58:35 UTC) #22
tkent
On 2015/08/19 09:58:35, David Vest wrote: > What do you think about the discrepancy between ...
5 years, 4 months ago (2015-08-19 10:14:42 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/95195)
5 years, 4 months ago (2015-08-19 10:34:08 UTC) #25
vivekg
On 2015/08/19 at 10:14:42, tkent wrote: > On 2015/08/19 09:58:35, David Vest wrote: > > ...
5 years, 4 months ago (2015-08-19 10:35:49 UTC) #26
tkent
On 2015/08/19 10:35:49, vivekg_ wrote: > Should we take that as a separate patch? WDYT? ...
5 years, 4 months ago (2015-08-19 10:45:21 UTC) #27
vivekg
On 2015/08/19 at 10:45:21, tkent wrote: > On 2015/08/19 10:35:49, vivekg_ wrote: > > Should ...
5 years, 4 months ago (2015-08-19 10:48:40 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292653003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292653003/100001
5 years, 4 months ago (2015-08-19 11:03:25 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://src.chromium.org/viewvc/blink?view=rev&revision=200819
5 years, 4 months ago (2015-08-19 12:22:08 UTC) #31
tkent
5 years, 4 months ago (2015-08-20 05:16:17 UTC) #32
Message was sent while issue was closed.
On 2015/08/19 10:45:21, tkent wrote:
> On 2015/08/19 10:35:49, vivekg_ wrote:
> > Should we take that as a separate patch? WDYT?
> 
> A separated patch is ok.  The main purpose of this CL is to remove custom
> binding code :)

I filed a bug for this. 
https://code.google.com/p/chromium/issues/detail?id=522802

Powered by Google App Engine
This is Rietveld 408576698