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

Issue 1938943002: Use v8::Object::CreateDataProperty() for object construction (Closed)

Created:
4 years, 7 months ago by Jens Widell
Modified:
4 years, 7 months ago
Reviewers:
haraken
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-style_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use v8::Object::CreateDataProperty() for object construction When creating objects (and arrays) internally, we should typically use CreateDataProperty() rather than Set(), since the latter may invoke setters defined by scripts. This could potentially be used by exploits to do evil things, but more likely is just a potential source of breakage and/or confusion. Also, it is typically non-conforming in the cases where exact behavior is defined in a specification. BUG= Committed: https://crrev.com/c64e8e4ab82fa3a477ce6e238d9966023d62a6b3 Cr-Commit-Position: refs/heads/master@{#390924}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -18 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromise.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8IteratorResultValue.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8CSSStyleDeclarationCustom.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/WebGLAny.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/interface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestSpecialOperations.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
Jens Widell
PTAL
4 years, 7 months ago (2016-05-02 10:18:28 UTC) #2
haraken
LGTM
4 years, 7 months ago (2016-05-02 10:52:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1938943002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1938943002/1
4 years, 7 months ago (2016-05-02 11:20:32 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-02 12:29:27 UTC) #6
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 12:30:40 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/c64e8e4ab82fa3a477ce6e238d9966023d62a6b3
Cr-Commit-Position: refs/heads/master@{#390924}

Powered by Google App Engine
This is Rietveld 408576698