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

Issue 2308373002: Fix assertion when trying to set custom properties as named properties (Closed)

Created:
4 years, 3 months ago by Timothy Loh
Modified:
4 years, 3 months ago
Reviewers:
meade_UTC10, haraken, nainar
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-style_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix assertion when trying to set custom properties as named properties This patch fixes a bug where trying to access a custom property as a named property causes an assertion (e.g. e.style['--foo'] = 'a'). None of the named-property handling code on CSSStyleDeclaration should support custom properties (we should actually use attributes instead of named properties, crbug.com/628785, but that's another issue). The added test already passes in Firefox. BUG=643194 Committed: https://crrev.com/0dcfd301c47f8510004c295f14f348fd601e2c4e Cr-Commit-Position: refs/heads/master@{#416502}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
A third_party/WebKit/LayoutTests/fast/css/variables/accessing-variable-as-named-property.html View 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp View 3 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Timothy Loh
Forgot that named properties could also be set by o['name'] and not just o.name in ...
4 years, 3 months ago (2016-09-05 04:43:46 UTC) #5
nainar
lgtm
4 years, 3 months ago (2016-09-05 04:46:01 UTC) #6
haraken
LGTM Let's land this asap since it's causing a P0 bug (crbug.com/642821). I'll mark it ...
4 years, 3 months ago (2016-09-05 04:46:28 UTC) #7
meade_UTC10
lgtm
4 years, 3 months ago (2016-09-05 04:51:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2308373002/1
4 years, 3 months ago (2016-09-05 04:52:44 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-05 06:06:34 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-05 06:07:59 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0dcfd301c47f8510004c295f14f348fd601e2c4e
Cr-Commit-Position: refs/heads/master@{#416502}

Powered by Google App Engine
This is Rietveld 408576698