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

Issue 15690020: [binding] Check own property on named property accessor (Closed)

Created:
7 years, 6 months ago by kojih
Modified:
7 years, 6 months ago
Reviewers:
haraken
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

[binding] Check own property on named property accessor Current named property accessor overrides object's own property. But unless [OverrideBuiltins] is specified to IDL, object's own property should not be overridden by named property. This patch fixes the problem. Spec: http://www.w3.org/TR/WebIDL/#OverrideBuiltins FireFox and Opera do not override object's own property. R=haraken@chromium.org BUG=229740 TEST=collection-item-should-be-overridden-by-own-property.html, TestEventTarget.idl, TestInterface.idl, TestObject.idl Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151649

Patch Set 1 #

Total comments: 3

Patch Set 2 : update tests #

Total comments: 2

Patch Set 3 : udpated tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -0 lines) Patch
A LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestEventTarget.cpp View 1 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestInterface.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8CSSStyleDeclarationCustom.cpp View 2 chunks +11 lines, -0 lines 0 comments Download
M Source/bindings/v8/custom/V8StyleSheetListCustom.cpp View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kojih
r? Background: StyleSheetList is checking own property while all other named getter without [OverrideBuiltins] currently ...
7 years, 6 months ago (2013-05-30 09:54:15 UTC) #1
haraken
https://codereview.chromium.org/15690020/diff/1/LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html File LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html (right): https://codereview.chromium.org/15690020/diff/1/LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html#newcode23 LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html:23: <tr id="length"><td></td></tr> This test contains a bunch of unnecessary ...
7 years, 6 months ago (2013-05-30 10:23:09 UTC) #2
kojih
> I got a bit confused. I thought you were saying that > GetRealNamedPropertyInPrototypeChain() and ...
7 years, 6 months ago (2013-06-03 04:53:13 UTC) #3
haraken
On 2013/06/03 04:53:13, kojih wrote: > So this patch is to fix all named getters/setters ...
7 years, 6 months ago (2013-06-03 07:03:19 UTC) #4
kojih
r? removed unused tags in test.
7 years, 6 months ago (2013-06-03 09:28:14 UTC) #5
haraken
LGTM. Let's add more test cases in follow-up patches! https://codereview.chromium.org/15690020/diff/8001/LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html File LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html (right): https://codereview.chromium.org/15690020/diff/8001/LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html#newcode1 LayoutTests/fast/dom/collection-item-should-be-overridden-by-own-property.html:1: ...
7 years, 6 months ago (2013-06-03 09:42:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/15690020/8002
7 years, 6 months ago (2013-06-03 09:46:52 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=11243
7 years, 6 months ago (2013-06-03 10:33:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/15690020/8002
7 years, 6 months ago (2013-06-03 10:42:00 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=11248
7 years, 6 months ago (2013-06-03 11:26:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/15690020/8002
7 years, 6 months ago (2013-06-03 11:29:13 UTC) #11
commit-bot: I haz the power
7 years, 6 months ago (2013-06-03 11:43:33 UTC) #12
Message was sent while issue was closed.
Change committed as 151649

Powered by Google App Engine
This is Rietveld 408576698