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

Issue 2801003005: bindings: Skip undefined property descriptors when creating records. (Closed)

Created:
3 years, 8 months ago by Raphael Kubo da Costa (rakuco)
Modified:
3 years, 8 months ago
Reviewers:
haraken, bashi, Yuki
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

bindings: Skip undefined property descriptors when creating records. We were being too aggressive with our DCHECK(desc->IsObject()). The spec says (and we even mention it in a comment) that a call to Object.getOwnPropertyDescriptor can return undefined in addition to a proper object descriptor. We were only considering the latter case, and crashing on the DCHECK if we ever received an undefined descriptor, which can happen when a Proxy is used in JS. This is also covered by external/wpt/fetch/api/headers/headers-record.html. BUG=707365 R=bashi@chromium.org,haraken@chromium.org,yukishiino@chromium.org Review-Url: https://codereview.chromium.org/2801003005 Cr-Commit-Position: refs/heads/master@{#462850} Committed: https://chromium.googlesource.com/chromium/src/+/9e1372a28311ec4b7fee0ae76eba7301069e7c6a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M third_party/WebKit/LayoutTests/bindings/record-type.html View 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/NativeValueTraitsImpl.h View 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (7 generated)
Raphael Kubo da Costa (rakuco)
PTAL
3 years, 8 months ago (2017-04-07 12:06:49 UTC) #1
Yuki
LGTM. :)
3 years, 8 months ago (2017-04-07 12:19:48 UTC) #4
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/2801003005/1
3 years, 8 months ago (2017-04-07 13:40:11 UTC) #8
haraken
LGTM
3 years, 8 months ago (2017-04-07 13:59:48 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-07 14:31:08 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9e1372a28311ec4b7fee0ae76eba...

Powered by Google App Engine
This is Rietveld 408576698