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

Issue 2900743002: bindings: Do not skip symbols in the JS -> record<> conversion. (Closed)

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

Description

bindings: Do not skip symbols in the JS -> record<> conversion. We were previously skipping all symbols when calling GetOwnPropertyNames() due to https://github.com/heycam/webidl/issues/294 being unresolved at the time the code was written, as well as to maintain compatibility with Gecko, which did the same at the time. That GitHub issue has since been resolved: enumerable symbols should not be skipped but rather just throw a TypeError when a string conversion function is called on it. Gecko is also being updated, and this CL adjusts our code accordingly. The new tests being added to headers-record.html come from Boris Zbarsky <bzbarsky@mit.edu>; and were originally written in https://bugzilla.mozilla.org/show_bug.cgi?id=1366032. They are being included here mostly to both help test the CL, as I believe they will be landed in Gecko and synced to web-platform-tests before this CL lands and we end up upstreaming the changes. While here, remove a duplicate test case in NativeValueTraitsImplTest. BUG=724481 R=bashi@chromium.org,haraken@chromium.org,yukishiino@chromium.org Review-Url: https://codereview.chromium.org/2900743002 Cr-Commit-Position: refs/heads/master@{#473905} Committed: https://chromium.googlesource.com/chromium/src/+/0fd77db4e8e5e8ad1ebdb2bd19bd0a1092c3ca3b

Patch Set 1 #

Patch Set 2 : Add DCHECK #

Patch Set 3 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -27 lines) Patch
M third_party/WebKit/LayoutTests/external/wpt/fetch/api/headers/headers-record.html View 1 chunk +90 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/NativeValueTraitsImpl.h View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/NativeValueTraitsImplTest.cpp View 1 2 1 chunk +6 lines, -18 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Raphael Kubo da Costa (rakuco)
PTAL I can't trigger the bots yet because the required V8 change hasn't been rolled ...
3 years, 7 months ago (2017-05-22 13:20:53 UTC) #1
Yuki
I'm not quite sure about what our consensus is. Do we all agree to throw? ...
3 years, 7 months ago (2017-05-22 13:39:51 UTC) #2
Raphael Kubo da Costa (rakuco)
On 2017/05/22 13:39:51, Yuki wrote: > I'm not quite sure about what our consensus is. ...
3 years, 7 months ago (2017-05-23 09:58:48 UTC) #5
Yuki
Yes, LGTM!
3 years, 7 months ago (2017-05-23 10:32:37 UTC) #6
Raphael Kubo da Costa (rakuco)
Hmm, some tests are failing because V8's GetOwnPropertyNames() does not convert numeric properties to strings ...
3 years, 7 months ago (2017-05-23 12:46:53 UTC) #9
Yuki
On 2017/05/23 12:46:53, Raphael Kubo da Costa (rakuco) wrote: > Hmm, some tests are failing ...
3 years, 7 months ago (2017-05-23 13:22:41 UTC) #10
Raphael Kubo da Costa (rakuco)
I considered changing V8 (although it's a change in behavior) because https://tc39.github.io/ecma262/#sec-invariants-of-the-essential-internal-methods describes [[OwnPropertyKeys]] as ...
3 years, 7 months ago (2017-05-23 13:25:35 UTC) #11
Raphael Kubo da Costa (rakuco)
On 2017/05/23 13:25:35, Raphael Kubo da Costa (rakuco) wrote: > If you think it's better ...
3 years, 7 months ago (2017-05-23 13:31:47 UTC) #13
Yuki
On 2017/05/23 13:25:35, Raphael Kubo da Costa (rakuco) wrote: > I considered changing V8 (although ...
3 years, 7 months ago (2017-05-23 13:32:04 UTC) #16
Yuki
LGTM.
3 years, 7 months ago (2017-05-23 13:34:43 UTC) #17
haraken
LGTM
3 years, 7 months ago (2017-05-23 15:08:53 UTC) #18
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/2900743002/40001
3 years, 7 months ago (2017-05-23 15:17:09 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 15:21:18 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0fd77db4e8e5e8ad1ebdb2bd19bd...

Powered by Google App Engine
This is Rietveld 408576698