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

Issue 1061243002: bindings: Adds check for attributes on prototype chains in CSSStyleDeclaration. (Closed)

Created:
5 years, 8 months ago by Yuki
Modified:
5 years, 8 months ago
Reviewers:
haraken, dcarney, bashi
CC:
blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung, arv+blink, blink-reviews-style_chromium.org, vivekg
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

bindings: Adds check for attributes on prototype chains in CSSStyleDeclaration. CSSStyleDeclarationCustom is missing an existence check against attributes on prototype chains. This CL adds the missing check. BUG=470671 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193771

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comments. #

Patch Set 3 : Addressed review comments. #

Total comments: 3

Patch Set 4 : Fixed failing layout tests. #

Patch Set 5 : Synced. #

Patch Set 6 : Added TODO comments. #

Patch Set 7 : Added [OverrideBuiltins] to HTML{Applet,Embed}Element in addition to HTMLObejctElement. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -23 lines) Patch
M LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter.html View 1 2 3 1 chunk +9 lines, -8 lines 0 comments Download
M LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-setter-expected.txt View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M Source/bindings/templates/interface_base.cpp View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface3.cpp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLAppletElement.idl View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/html/HTMLEmbedElement.idl View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLObjectElement.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
Yuki
Could you guys review this CL?
5 years, 8 months ago (2015-04-07 08:19:12 UTC) #2
haraken
Looks like the tests are failing :(
5 years, 8 months ago (2015-04-07 08:41:54 UTC) #3
bashi
https://codereview.chromium.org/1061243002/diff/1/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp File Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp (right): https://codereview.chromium.org/1061243002/diff/1/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp#newcode210 Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp:210: if (v8Call(info.Holder()->GetRealNamedPropertyInPrototypeChain(context, nameString), returnValue, tryCatch)) { I read the ...
5 years, 8 months ago (2015-04-07 08:44:56 UTC) #4
Yuki
https://codereview.chromium.org/1061243002/diff/1/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp File Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp (right): https://codereview.chromium.org/1061243002/diff/1/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp#newcode210 Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp:210: if (v8Call(info.Holder()->GetRealNamedPropertyInPrototypeChain(context, nameString), returnValue, tryCatch)) { On 2015/04/07 08:44:56, ...
5 years, 8 months ago (2015-04-07 09:29:00 UTC) #5
haraken
On 2015/04/07 09:29:00, Yuki wrote: > https://codereview.chromium.org/1061243002/diff/1/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp > File Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp (right): > > https://codereview.chromium.org/1061243002/diff/1/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp#newcode210 > ...
5 years, 8 months ago (2015-04-07 09:32:18 UTC) #6
dcarney
On 2015/04/07 09:32:18, haraken wrote: > On 2015/04/07 09:29:00, Yuki wrote: > > > https://codereview.chromium.org/1061243002/diff/1/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp ...
5 years, 8 months ago (2015-04-07 18:58:39 UTC) #7
Yuki
On 2015/04/07 18:58:39, dcarney wrote: > I'll change the api. in the meantime, don't do ...
5 years, 8 months ago (2015-04-09 10:55:54 UTC) #8
dcarney
https://codereview.chromium.org/1061243002/diff/40001/Source/bindings/templates/interface_base.cpp File Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/1061243002/diff/40001/Source/bindings/templates/interface_base.cpp#newcode396 Source/bindings/templates/interface_base.cpp:396: {% if interface_name != 'Window' %} i think there ...
5 years, 8 months ago (2015-04-09 11:03:09 UTC) #9
bashi
https://codereview.chromium.org/1061243002/diff/40001/Source/bindings/templates/interface_base.cpp File Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/1061243002/diff/40001/Source/bindings/templates/interface_base.cpp#newcode396 Source/bindings/templates/interface_base.cpp:396: {% if interface_name != 'Window' %} On 2015/04/09 11:03:09, ...
5 years, 8 months ago (2015-04-10 00:15:32 UTC) #10
dcarney
On 2015/04/10 00:15:32, bashi1 wrote: > https://codereview.chromium.org/1061243002/diff/40001/Source/bindings/templates/interface_base.cpp > File Source/bindings/templates/interface_base.cpp (right): > > https://codereview.chromium.org/1061243002/diff/40001/Source/bindings/templates/interface_base.cpp#newcode396 > ...
5 years, 8 months ago (2015-04-10 07:21:39 UTC) #11
Yuki
As not few tests are failing, I'll investigate what I should do more. However, I'm ...
5 years, 8 months ago (2015-04-10 14:06:49 UTC) #12
Yuki
Could you guys take another look? It turned out that HTMLObjectElement relies on that it's ...
5 years, 8 months ago (2015-04-14 06:37:24 UTC) #13
haraken
On 2015/04/14 06:37:24, Yuki wrote: > Could you guys take another look? > > It ...
5 years, 8 months ago (2015-04-14 06:50:00 UTC) #14
dcarney
On 2015/04/14 06:37:24, Yuki wrote: > Could you guys take another look? > > It ...
5 years, 8 months ago (2015-04-14 06:51:30 UTC) #15
Yuki
On 2015/04/14 06:50:00, haraken wrote: > On 2015/04/14 06:37:24, Yuki wrote: > > Could you ...
5 years, 8 months ago (2015-04-14 07:13:04 UTC) #16
haraken
On 2015/04/14 07:13:04, Yuki wrote: > On 2015/04/14 06:50:00, haraken wrote: > > On 2015/04/14 ...
5 years, 8 months ago (2015-04-14 08:10:35 UTC) #17
bashi
LGTM
5 years, 8 months ago (2015-04-15 03:35:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1061243002/120001
5 years, 8 months ago (2015-04-15 09:35:44 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://src.chromium.org/viewvc/blink?view=rev&revision=193771
5 years, 8 months ago (2015-04-15 09:56:44 UTC) #22
dcarney
On 2015/04/15 09:56:44, I haz the power (commit-bot) wrote: > Committed patchset #7 (id:120001) as ...
5 years, 8 months ago (2015-04-16 11:49:37 UTC) #23
Yuki
5 years, 8 months ago (2015-04-16 12:00:35 UTC) #24
Message was sent while issue was closed.
On 2015/04/16 11:49:37, dcarney wrote:
> On 2015/04/15 09:56:44, I haz the power (commit-bot) wrote:
> > Committed patchset #7 (id:120001) as
> > https://src.chromium.org/viewvc/blink?view=rev&revision=193771
> 
> note: the fix for window is https://codereview.chromium.org/1089833003/
> (currently without the test expectation changes)

Thanks for letting us know, and it's good to see that a simple solution works.

Powered by Google App Engine
This is Rietveld 408576698