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

Issue 1021713003: [bindings] Let NativeValueTraits<T>::nativeValue be variadic function and merge various convers… (Closed)

Created:
5 years, 9 months ago by vivekg_samsung
Modified:
5 years, 9 months ago
Reviewers:
haraken, vivekg, bashi, jsbell, Yuki
CC:
aandrey+blink_chromium.org, apavlov+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, caseq+blink_chromium.org, cmumford, devtools-reviews_chromium.org, dgrogan, eustas+blink_chromium.org, jsbell+idb_chromium.org, kozyatinskiy+blink_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, malch+blink_chromium.org, pfeldman+blink_chromium.org, sergeyv+blink_chromium.org, vivekg_samsung, yurys+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Let NativeValueTraits<T>::nativeValue be variadic function and merge various conversion methods There exist multiple methods to convert from ScriptValue to IDB*. With these fragmented methods, there might exist some bugs (even security implications) related to v8 API usage. Having a single window to such conversions would help reduce these inconsistencies. Make an universal converter function to be static in ScriptValue to assist any such conversions. Using the NativeValueTraits<T>::nativeValue(), the conversion can be achieved. R=haraken@chromium.org, yukishiino@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192250

Patch Set 1 #

Patch Set 2 : Fixed the compiler error behind ASSERT flag #

Total comments: 5

Patch Set 3 : IDB related changes alone. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -33 lines) Patch
M Source/bindings/core/v8/NativeValueTraits.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/core/v8/ScriptValue.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/modules/v8/V8BindingForModules.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
M Source/bindings/modules/v8/V8BindingForModules.cpp View 1 2 5 chunks +9 lines, -10 lines 0 comments Download
M Source/bindings/modules/v8/V8BindingForModulesTest.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/indexeddb/IDBCursor.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/indexeddb/IDBFactory.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBKeyRange.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.cpp View 4 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 24 (5 generated)
vivekg
The things being done in this CL: * Make NativeValueTraits<T>::nativeValue a variadic template method to ...
5 years, 9 months ago (2015-03-19 15:05:02 UTC) #2
jsbell
idb changes lgtm Having the conversion function be variadic, with the extra arguments depending on ...
5 years, 9 months ago (2015-03-19 16:46:57 UTC) #4
vivekg
Thank you jsbell@ for the review, I appreciate your feedback. https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModules.h File Source/bindings/modules/v8/V8BindingForModules.h (right): https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModules.h#newcode39 ...
5 years, 9 months ago (2015-03-19 17:46:52 UTC) #5
haraken
https://codereview.chromium.org/1021713003/diff/20001/Source/core/inspector/InjectedScript.cpp File Source/core/inspector/InjectedScript.cpp (right): https://codereview.chromium.org/1021713003/diff/20001/Source/core/inspector/InjectedScript.cpp#newcode285 Source/core/inspector/InjectedScript.cpp:285: ScriptState::Scope scope(state); You sometimes enter a ScriptState::Scope but sometimes ...
5 years, 9 months ago (2015-03-19 23:26:13 UTC) #6
vivekg
On 2015/03/19 23:26:13, haraken wrote: > https://codereview.chromium.org/1021713003/diff/20001/Source/core/inspector/InjectedScript.cpp > File Source/core/inspector/InjectedScript.cpp (right): > > https://codereview.chromium.org/1021713003/diff/20001/Source/core/inspector/InjectedScript.cpp#newcode285 > ...
5 years, 9 months ago (2015-03-19 23:36:52 UTC) #7
haraken
On 2015/03/19 23:36:52, vivekg_ wrote: > On 2015/03/19 23:26:13, haraken wrote: > > > https://codereview.chromium.org/1021713003/diff/20001/Source/core/inspector/InjectedScript.cpp ...
5 years, 9 months ago (2015-03-19 23:51:14 UTC) #8
bashi
https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModulesTest.cpp File Source/bindings/modules/v8/V8BindingForModulesTest.cpp (right): https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModulesTest.cpp#newcode45 Source/bindings/modules/v8/V8BindingForModulesTest.cpp:45: NonThrowableExceptionState exceptionState; Can we pass exceptionState from the caller ...
5 years, 9 months ago (2015-03-19 23:53:42 UTC) #10
vivekg
On 2015/03/19 23:51:14, haraken wrote: > On 2015/03/19 23:36:52, vivekg_ wrote: > > On 2015/03/19 ...
5 years, 9 months ago (2015-03-20 00:00:54 UTC) #11
vivekg
On 2015/03/19 23:53:42, bashi1 wrote: > https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModulesTest.cpp > File Source/bindings/modules/v8/V8BindingForModulesTest.cpp (right): > > https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModulesTest.cpp#newcode45 > ...
5 years, 9 months ago (2015-03-20 00:18:07 UTC) #12
vivekg
On 2015/03/20 00:18:07, vivekg_ wrote: > On 2015/03/19 23:53:42, bashi1 wrote: > > > https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModulesTest.cpp ...
5 years, 9 months ago (2015-03-20 00:22:25 UTC) #13
bashi
On 2015/03/20 00:18:07, vivekg_ wrote: > On 2015/03/19 23:53:42, bashi1 wrote: > > > https://codereview.chromium.org/1021713003/diff/20001/Source/bindings/modules/v8/V8BindingForModulesTest.cpp ...
5 years, 9 months ago (2015-03-20 00:22:37 UTC) #14
vivekg
On 2015/03/20 00:22:37, bashi1 wrote: > On 2015/03/20 00:18:07, vivekg_ wrote: > > On 2015/03/19 ...
5 years, 9 months ago (2015-03-20 00:25:58 UTC) #15
bashi
On 2015/03/20 00:25:58, vivekg_ wrote: > On 2015/03/20 00:22:37, bashi1 wrote: > > On 2015/03/20 ...
5 years, 9 months ago (2015-03-20 00:37:24 UTC) #16
vivekg
On 2015/03/20 at 00:37:24, bashi wrote: > On 2015/03/20 00:25:58, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-20 04:51:33 UTC) #17
haraken
On 2015/03/20 04:51:33, vivekg_ wrote: > On 2015/03/20 at 00:37:24, bashi wrote: > > On ...
5 years, 9 months ago (2015-03-20 06:10:06 UTC) #18
vivekg
On 2015/03/20 at 06:10:06, haraken wrote: > On 2015/03/20 04:51:33, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-20 09:35:46 UTC) #19
haraken
LGTM
5 years, 9 months ago (2015-03-20 09:48:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1021713003/40001
5 years, 9 months ago (2015-03-20 11:38:17 UTC) #23
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 13:05:15 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192250

Powered by Google App Engine
This is Rietveld 408576698