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

Issue 14244017: Make length property return useful values for DOM bindings functions (Closed)

Created:
7 years, 8 months ago by do-not-use
Modified:
7 years, 8 months ago
CC:
blink-reviews, kinuko, Nate Chapin, abarth-chromium, lgombos
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make length property return useful values for DOM bindings functions The length property of JavaScript functions (and constructors) from DOM bindings was always returning 0. This patch makes Blink return useful values instead and matches the behavior of both Safari/JSC and Firefox. BUG=231469 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148663

Patch Set 1 #

Total comments: 5

Patch Set 2 : Make length property return useful values for DOM bindings functions and interfaces #

Total comments: 5

Patch Set 3 : Remove invalid change to parseExtendedAttributeListAllowEmpty #

Patch Set 4 : Rebased on master #

Patch Set 5 : Replace [Optional] by optional #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -125 lines) Patch
M LayoutTests/fast/js/constructor-length.html View 1 2 chunks +22 lines, -22 lines 0 comments Download
M LayoutTests/fast/js/constructor-length-expected.txt View 1 1 chunk +36 lines, -36 lines 0 comments Download
A LayoutTests/fast/js/function-length.html View 1 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/fast/js/function-length-expected.txt View 1 1 chunk +34 lines, -0 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 3 3 chunks +29 lines, -1 line 0 comments Download
M Source/bindings/scripts/IDLParser.pm View 1 2 3 6 chunks +30 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8Float64Array.cpp View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestActiveDOMObject.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestCallback.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestCustomNamedGetter.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestEventConstructor.cpp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/V8TestException.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/V8TestMediaQueryListListener.cpp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/results/V8TestNamedConstructor.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestNode.cpp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObj.cpp View 1 2 3 3 chunks +49 lines, -47 lines 0 comments Download
M Source/bindings/tests/results/V8TestOverloadedConstructors.cpp View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/V8DOMConfiguration.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/v8/V8DOMConfiguration.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/MutationObserver.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/fileapi/Blob.idl View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/DOMFormData.idl View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/ArrayBuffer.idl View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/canvas/DataView.idl View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/DOMPoint.idl View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/xml/XMLHttpRequest.idl View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 32 (0 generated)
do-not-use
7 years, 8 months ago (2013-04-15 18:57:41 UTC) #1
abarth-chromium
Cool! This CL is for haraken to review.
7 years, 8 months ago (2013-04-15 23:49:21 UTC) #2
haraken
I'm very glad to see you here! Will take a look in an hour.
7 years, 8 months ago (2013-04-15 23:54:51 UTC) #3
haraken
Thanks for the patch. I'm very glad to see patches to make behavior of JSC/V8 ...
7 years, 8 months ago (2013-04-16 00:29:31 UTC) #4
do-not-use
https://codereview.chromium.org/14244017/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (right): https://codereview.chromium.org/14244017/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm#newcode2158 Source/bindings/scripts/CodeGeneratorV8.pm:2158: $numberOfConstructorParameters = $currNumberOfParameters; On 2013/04/16 00:29:31, haraken wrote: > ...
7 years, 8 months ago (2013-04-16 07:26:23 UTC) #5
haraken
Sorry, I was misreading the spec. You're right.
7 years, 8 months ago (2013-04-16 07:29:02 UTC) #6
do-not-use
https://codereview.chromium.org/14244017/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm File Source/bindings/scripts/CodeGeneratorV8.pm (right): https://codereview.chromium.org/14244017/diff/1/Source/bindings/scripts/CodeGeneratorV8.pm#newcode2158 Source/bindings/scripts/CodeGeneratorV8.pm:2158: $numberOfConstructorParameters = $currNumberOfParameters; On 2013/04/16 07:26:23, cdumez wrote: > ...
7 years, 8 months ago (2013-04-16 09:39:20 UTC) #7
haraken
Good observation! What is behavior of other browsers?
7 years, 8 months ago (2013-04-16 09:42:41 UTC) #8
do-not-use
On 2013/04/16 09:42:41, haraken wrote: > Good observation! What is behavior of other browsers? Safari/JSC ...
7 years, 8 months ago (2013-04-16 09:48:32 UTC) #9
haraken
Thanks, then it sounds reasonable to me to follow the ED spec.
7 years, 8 months ago (2013-04-16 10:13:08 UTC) #10
do-not-use
On 2013/04/16 10:13:08, haraken wrote: > Thanks, then it sounds reasonable to me to follow ...
7 years, 8 months ago (2013-04-16 11:38:04 UTC) #11
haraken
Looks almost good. https://codereview.chromium.org/14244017/diff/15001/Source/bindings/scripts/IDLParser.pm File Source/bindings/scripts/IDLParser.pm (right): https://codereview.chromium.org/14244017/diff/15001/Source/bindings/scripts/IDLParser.pm#newcode1153 Source/bindings/scripts/IDLParser.pm:1153: # CustomConstructor may also be used ...
7 years, 8 months ago (2013-04-16 11:58:27 UTC) #12
do-not-use
https://codereview.chromium.org/14244017/diff/15001/Source/bindings/scripts/IDLParser.pm File Source/bindings/scripts/IDLParser.pm (right): https://codereview.chromium.org/14244017/diff/15001/Source/bindings/scripts/IDLParser.pm#newcode1153 Source/bindings/scripts/IDLParser.pm:1153: # CustomConstructor may also be used on attributes. On ...
7 years, 8 months ago (2013-04-16 12:02:23 UTC) #13
haraken
LGTM https://codereview.chromium.org/14244017/diff/15001/Source/bindings/scripts/IDLParser.pm File Source/bindings/scripts/IDLParser.pm (right): https://codereview.chromium.org/14244017/diff/15001/Source/bindings/scripts/IDLParser.pm#newcode1153 Source/bindings/scripts/IDLParser.pm:1153: # CustomConstructor may also be used on attributes. ...
7 years, 8 months ago (2013-04-16 12:05:44 UTC) #14
arv (Not doing code reviews)
Awesome change. This one has been on my list for a while too. Are you ...
7 years, 8 months ago (2013-04-16 18:38:02 UTC) #15
do-not-use
On 2013/04/16 18:38:02, arv wrote: > Awesome change. This one has been on my list ...
7 years, 8 months ago (2013-04-16 18:44:24 UTC) #16
arv (Not doing code reviews)
On 2013/04/16 18:44:24, cdumez wrote: > On 2013/04/16 18:38:02, arv wrote: > > Awesome change. ...
7 years, 8 months ago (2013-04-16 19:35:35 UTC) #17
do-not-use
On 2013/04/16 19:35:35, arv wrote: > On 2013/04/16 18:44:24, cdumez wrote: > > On 2013/04/16 ...
7 years, 8 months ago (2013-04-16 19:48:54 UTC) #18
haraken
Thanks for working on this. Just to clarify: You can land your patch before removing ...
7 years, 8 months ago (2013-04-16 23:34:38 UTC) #19
do-not-use
On 2013/04/16 23:34:38, haraken wrote: > Thanks for working on this. > > Just to ...
7 years, 8 months ago (2013-04-17 06:02:46 UTC) #20
abarth-chromium
Typing L-G-T-M is Chromium's version of an r+. It makes the comment box light up ...
7 years, 8 months ago (2013-04-17 06:04:53 UTC) #21
haraken
I'll land your patch for you. Are you in rush? (If not, I'd like to ...
7 years, 8 months ago (2013-04-17 07:12:18 UTC) #22
do-not-use
On 2013/04/17 07:12:18, haraken wrote: > I'll land your patch for you. Are you in ...
7 years, 8 months ago (2013-04-17 08:54:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/14244017/13003
7 years, 8 months ago (2013-04-17 23:56:27 UTC) #24
commit-bot: I haz the power
Failed to apply patch for Source/WebCore/dom/MutationObserver.idl: While running patch -p1 --forward --force --no-backup-if-mismatch; A Source/WebCore ...
7 years, 8 months ago (2013-04-17 23:56:34 UTC) #25
do-not-use
On 2013/04/17 23:56:34, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
7 years, 8 months ago (2013-04-18 14:36:50 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/14244017/33001
7 years, 8 months ago (2013-04-18 14:40:28 UTC) #27
commit-bot: I haz the power
Presubmit check for 14244017-33001 failed and returned exit status 1. INFO:root:Found 28 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-18 14:40:38 UTC) #28
do-not-use
On 2013/04/18 14:40:38, I haz the power (commit-bot) wrote: > Presubmit check for 14244017-33001 failed ...
7 years, 8 months ago (2013-04-18 14:59:47 UTC) #29
do-not-use
On 2013/04/18 14:59:47, cdumez wrote: > On 2013/04/18 14:40:38, I haz the power (commit-bot) wrote: ...
7 years, 8 months ago (2013-04-18 15:17:13 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/14244017/40001
7 years, 8 months ago (2013-04-18 16:07:52 UTC) #31
commit-bot: I haz the power
7 years, 8 months ago (2013-04-18 16:31:17 UTC) #32
Message was sent while issue was closed.
Change committed as 148663

Powered by Google App Engine
This is Rietveld 408576698