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

Issue 949193002: [bindings] Remove SQLTransaction's usage of custom binding. (Closed)

Created:
5 years, 10 months ago by vivekg_samsung
Modified:
5 years, 9 months ago
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, vivekg_samsung
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[bindings] Remove SQLTransaction's usage of custom binding. Making changes as per the spec, http://www.w3.org/TR/webdatabase/#sqltransaction to remove the custom binding usage. R=jl@opera.com, haraken@chromium.org BUG=345519 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191516

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : Corrected typo #

Patch Set 4 : Removing from custom.gni for GN builds #

Patch Set 5 : Adding null check for arguments. #

Total comments: 4

Patch Set 6 : Introducing V8BindingForModules #

Total comments: 3

Patch Set 7 : Using NativeValueTraits #

Total comments: 3

Patch Set 8 : Restored executeSQL back #

Total comments: 1

Patch Set 9 : Fixed exception #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -132 lines) Patch
M LayoutTests/platform/linux/storage/websql/sql-error-codes-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/platform/mac/storage/websql/sql-error-codes-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/execute-sql-args.js View 1 2 chunks +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/execute-sql-args-expected.txt View 1 2 chunks +1 line, -1 line 0 comments Download
M LayoutTests/storage/websql/sql-error-codes-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/core/v8/V8Binding.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
A Source/bindings/modules/v8/V8BindingForModules.h View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
D Source/bindings/modules/v8/custom/V8SQLTransactionCustom.cpp View 1 chunk +0 lines, -121 lines 0 comments Download
M Source/bindings/modules/v8/custom/custom.gni View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/modules/v8/custom/custom.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/modules/v8/v8.gni View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/modules/v8/v8.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webdatabase/SQLTransaction.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M Source/modules/webdatabase/SQLTransaction.cpp View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
M Source/modules/webdatabase/SQLTransaction.idl View 1 2 3 4 5 6 1 chunk +10 lines, -4 lines 0 comments Download

Messages

Total messages: 33 (5 generated)
vivekg
PTAL as this is WIP patch. The generated code looks like this: http://paste.ubuntu.com/10386410/ The question ...
5 years, 10 months ago (2015-02-24 09:58:15 UTC) #2
haraken
On 2015/02/24 09:58:15, vivekg_ wrote: > PTAL as this is WIP patch. The generated code ...
5 years, 10 months ago (2015-02-24 10:13:08 UTC) #3
Jens Widell
On 2015/02/24 10:13:08, haraken wrote: > On 2015/02/24 09:58:15, vivekg_ wrote: > > PTAL as ...
5 years, 10 months ago (2015-02-24 10:21:04 UTC) #4
vivekg
On 2015/02/24 at 10:21:04, jl wrote: > It looks like the code generator doesn't support ...
5 years, 10 months ago (2015-02-24 10:24:17 UTC) #5
Jens Widell
On 2015/02/24 10:24:17, vivekg_ wrote: > On 2015/02/24 at 10:21:04, jl wrote: > > > ...
5 years, 10 months ago (2015-02-24 10:29:28 UTC) #6
jsbell
Please leave a comment in the IDL that the spec has just "optional ObjectArray arguments" ...
5 years, 10 months ago (2015-02-24 19:13:16 UTC) #8
vivekg
Jens, jsbell@: Can you please take a look?
5 years, 9 months ago (2015-03-03 08:15:20 UTC) #9
jsbell
lgtm with a suggestion... https://codereview.chromium.org/949193002/diff/80001/Source/modules/webdatabase/SQLTransaction.cpp File Source/modules/webdatabase/SQLTransaction.cpp (right): https://codereview.chromium.org/949193002/diff/80001/Source/modules/webdatabase/SQLTransaction.cpp#newcode294 Source/modules/webdatabase/SQLTransaction.cpp:294: v8::Local<v8::Value> arg = args[i].v8Value(); Can ...
5 years, 9 months ago (2015-03-03 18:33:14 UTC) #10
haraken
https://codereview.chromium.org/949193002/diff/80001/Source/modules/webdatabase/SQLTransaction.cpp File Source/modules/webdatabase/SQLTransaction.cpp (right): https://codereview.chromium.org/949193002/diff/80001/Source/modules/webdatabase/SQLTransaction.cpp#newcode294 Source/modules/webdatabase/SQLTransaction.cpp:294: v8::Local<v8::Value> arg = args[i].v8Value(); On 2015/03/03 18:33:14, jsbell wrote: ...
5 years, 9 months ago (2015-03-04 02:00:07 UTC) #11
bashi
https://codereview.chromium.org/949193002/diff/80001/Source/modules/webdatabase/SQLTransaction.cpp File Source/modules/webdatabase/SQLTransaction.cpp (right): https://codereview.chromium.org/949193002/diff/80001/Source/modules/webdatabase/SQLTransaction.cpp#newcode294 Source/modules/webdatabase/SQLTransaction.cpp:294: v8::Local<v8::Value> arg = args[i].v8Value(); On 2015/03/04 02:00:07, haraken wrote: ...
5 years, 9 months ago (2015-03-04 03:33:02 UTC) #13
vivekg
Done all the changes, PTAL. Thanks.
5 years, 9 months ago (2015-03-05 13:18:10 UTC) #14
Jens Widell
https://codereview.chromium.org/949193002/diff/100001/Source/bindings/modules/v8/V8BindingForModules.cpp File Source/bindings/modules/v8/V8BindingForModules.cpp (right): https://codereview.chromium.org/949193002/diff/100001/Source/bindings/modules/v8/V8BindingForModules.cpp#newcode13 Source/bindings/modules/v8/V8BindingForModules.cpp:13: Vector<SQLValue> toSQLValueArray(const Nullable<Vector<ScriptValue>>& values) I think toSQLValueArray(const Vector<ScriptValue>>&) makes ...
5 years, 9 months ago (2015-03-05 13:54:38 UTC) #15
bashi
https://codereview.chromium.org/949193002/diff/100001/Source/bindings/modules/v8/V8BindingForModules.cpp File Source/bindings/modules/v8/V8BindingForModules.cpp (right): https://codereview.chromium.org/949193002/diff/100001/Source/bindings/modules/v8/V8BindingForModules.cpp#newcode13 Source/bindings/modules/v8/V8BindingForModules.cpp:13: Vector<SQLValue> toSQLValueArray(const Nullable<Vector<ScriptValue>>& values) On 2015/03/05 13:54:37, Jens Widell ...
5 years, 9 months ago (2015-03-06 00:52:59 UTC) #16
vivekg
PTAL, thanks. https://codereview.chromium.org/949193002/diff/120001/Source/modules/webdatabase/InspectorDatabaseAgent.cpp File Source/modules/webdatabase/InspectorDatabaseAgent.cpp (right): https://codereview.chromium.org/949193002/diff/120001/Source/modules/webdatabase/InspectorDatabaseAgent.cpp#newcode165 Source/modules/webdatabase/InspectorDatabaseAgent.cpp:165: transaction->executeSql(ScriptState::current(v8::Isolate::GetCurrent()), m_sqlStatement, Vector<ScriptValue>(), callback, errorCallback, IGNORE_EXCEPTION); Is ...
5 years, 9 months ago (2015-03-06 14:15:13 UTC) #17
vivekg
https://codereview.chromium.org/949193002/diff/120001/Source/modules/webdatabase/InspectorDatabaseAgent.cpp File Source/modules/webdatabase/InspectorDatabaseAgent.cpp (right): https://codereview.chromium.org/949193002/diff/120001/Source/modules/webdatabase/InspectorDatabaseAgent.cpp#newcode165 Source/modules/webdatabase/InspectorDatabaseAgent.cpp:165: transaction->executeSql(ScriptState::current(v8::Isolate::GetCurrent()), m_sqlStatement, Vector<ScriptValue>(), callback, errorCallback, IGNORE_EXCEPTION); On 2015/03/06 at ...
5 years, 9 months ago (2015-03-06 14:19:44 UTC) #18
Jens Widell
https://codereview.chromium.org/949193002/diff/120001/Source/modules/webdatabase/InspectorDatabaseAgent.cpp File Source/modules/webdatabase/InspectorDatabaseAgent.cpp (right): https://codereview.chromium.org/949193002/diff/120001/Source/modules/webdatabase/InspectorDatabaseAgent.cpp#newcode165 Source/modules/webdatabase/InspectorDatabaseAgent.cpp:165: transaction->executeSql(ScriptState::current(v8::Isolate::GetCurrent()), m_sqlStatement, Vector<ScriptValue>(), callback, errorCallback, IGNORE_EXCEPTION); On 2015/03/06 14:19:44, ...
5 years, 9 months ago (2015-03-06 14:26:03 UTC) #19
vivekg
On 2015/03/06 at 14:26:03, jl wrote: > One way to avoid it would be to ...
5 years, 9 months ago (2015-03-06 14:30:38 UTC) #20
vivekg
On 2015/03/06 at 14:30:38, vivekg_ wrote: > On 2015/03/06 at 14:26:03, jl wrote: > > ...
5 years, 9 months ago (2015-03-06 14:32:24 UTC) #21
Jens Widell
On 2015/03/06 14:30:38, vivekg_ wrote: > On 2015/03/06 at 14:26:03, jl wrote: > > > ...
5 years, 9 months ago (2015-03-06 14:35:53 UTC) #22
vivekg
On 2015/03/06 at 14:35:53, jl wrote: > On 2015/03/06 14:30:38, vivekg_ wrote: > > On ...
5 years, 9 months ago (2015-03-06 15:08:36 UTC) #23
bashi
https://codereview.chromium.org/949193002/diff/140001/Source/bindings/core/v8/V8Binding.h File Source/bindings/core/v8/V8Binding.h (right): https://codereview.chromium.org/949193002/diff/140001/Source/bindings/core/v8/V8Binding.h#newcode739 Source/bindings/core/v8/V8Binding.h:739: result.uncheckedAppend(NativeValueTraits<T>::nativeValue(value[i].v8Value(), isolate, exceptionState)); You need to check whether the ...
5 years, 9 months ago (2015-03-06 15:53:15 UTC) #24
vivekg
On 2015/03/06 at 15:53:15, bashi wrote: > https://codereview.chromium.org/949193002/diff/140001/Source/bindings/core/v8/V8Binding.h > File Source/bindings/core/v8/V8Binding.h (right): > > https://codereview.chromium.org/949193002/diff/140001/Source/bindings/core/v8/V8Binding.h#newcode739 ...
5 years, 9 months ago (2015-03-06 17:32:04 UTC) #25
vivekg
jl@, bashi@: Is this good to go?
5 years, 9 months ago (2015-03-08 09:50:46 UTC) #26
bashi
LGTM, but please wait for Jens' approval.
5 years, 9 months ago (2015-03-09 01:38:48 UTC) #27
haraken
LGTM
5 years, 9 months ago (2015-03-09 03:50:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/949193002/160001
5 years, 9 months ago (2015-03-09 03:57:38 UTC) #31
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://src.chromium.org/viewvc/blink?view=rev&revision=191516
5 years, 9 months ago (2015-03-09 05:30:32 UTC) #32
Jens Widell
5 years, 9 months ago (2015-03-09 06:06:28 UTC) #33
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698