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

Issue 2825033003: WebSQL: Stop using ToImplArray(). (Closed)

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

Description

WebSQL: Stop using ToImplArray(). As we work towards removing ToImplArray() from V8Binding.h, stop using it in SQLTransaction::executeSql() by just iterating through the array and converting the data via ScriptValue::To(). BUG=685754 R=michaeln@chromium.org,bashi@chromium.org,haraken@chromium.org,yukishiino@chromium.org

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
M third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp View 1 chunk +7 lines, -3 lines 3 comments Download

Messages

Total messages: 13 (4 generated)
Raphael Kubo da Costa (rakuco)
PTAL. This was spun off https://codereview.chromium.org/2810843002/
3 years, 8 months ago (2017-04-18 10:36:57 UTC) #1
haraken
LGTM https://codereview.chromium.org/2825033003/diff/1/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp File third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp (right): https://codereview.chromium.org/2825033003/diff/1/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp#newcode324 third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp:324: script_state->GetIsolate(), script_value, exception_state)); I'm fine with this but ...
3 years, 8 months ago (2017-04-18 10:48:32 UTC) #4
Yuki
Let me take a closer look later. https://codereview.chromium.org/2825033003/diff/1/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp File third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp (right): https://codereview.chromium.org/2825033003/diff/1/third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp#newcode324 third_party/WebKit/Source/modules/webdatabase/SQLTransaction.cpp:324: script_state->GetIsolate(), script_value, ...
3 years, 8 months ago (2017-04-18 11:02:23 UTC) #5
Raphael Kubo da Costa (rakuco)
On 2017/04/18 11:02:23, Yuki wrote: > Let me take a closer look later. > > ...
3 years, 8 months ago (2017-04-18 11:05:04 UTC) #6
haraken
On 2017/04/18 11:05:04, Raphael Kubo da Costa (rakuco) wrote: > On 2017/04/18 11:02:23, Yuki wrote: ...
3 years, 8 months ago (2017-04-18 11:06:40 UTC) #7
Raphael Kubo da Costa (rakuco)
On 2017/04/18 11:06:40, haraken wrote: > Would it be hard to make NativeValueTraits work with ...
3 years, 8 months ago (2017-04-18 11:30:22 UTC) #8
Yuki
Hmm, now I think it would be better to keep ToImplArray. Why is it better ...
3 years, 8 months ago (2017-04-18 13:57:24 UTC) #11
michaeln
So long as its functionally equivalent, lgtm, but i think you need to test HadException() ...
3 years, 8 months ago (2017-04-19 01:03:45 UTC) #12
Raphael Kubo da Costa (rakuco)
3 years, 8 months ago (2017-04-19 15:26:05 UTC) #13
On 2017/04/18 13:57:24, Yuki wrote:
> TL;DR: What about just renaming ToImplArray to a better name, and continue
using
> it?
[...]
> What do you think?

I agree :-)

Thanks for spending some time on this. I've filed
https://bugs.chromium.org/p/chromium/issues/detail?id=713200 to track everything
that should be done, and I'll drop this CL for now.

Powered by Google App Engine
This is Rietveld 408576698