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

Issue 177633006: Implement IDBVersionChangeEvent ctor w/ IDBVersionChangeEventInit dict (Closed)

Created:
6 years, 10 months ago by jsbell
Modified:
6 years, 9 months ago
Reviewers:
haraken, dgrogan
CC:
blink-reviews, jsbell+bindings_chromium.org, Nils Barth (inactive), kojih, arv+blink, sof, alecflett, abarth-chromium, marja+watch_chromium.org, dgrogan, adamk+blink_chromium.org, cmumford, Nate Chapin, Inactive
Visibility:
Public.

Description

Implement IDBVersionChangeEvent ctor w/ IDBVersionChangeEventInit dict A rarely used part of the IndexedDB spec was overlooked - like most other events, script can call the constructor with a dict to populate the fields. This required some finessing: the fields were stored as 'IDBAny' but our automagical code gen wiring for EventInit prefers ScriptValue or SerializedScriptValue. I went with the latter, and as an aside eliminate a call to v8::Isolate::GetCurrent() by SSV - serializing simple values such as null or numbers can be done with no isolate. BUG=345881 R=dgrogan,haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168162

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase, handle null, and simplify #

Total comments: 4

Patch Set 3 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -28 lines) Patch
A LayoutTests/storage/indexeddb/event-init.html View 1 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/storage/indexeddb/event-init-expected.txt View 1 1 chunk +28 lines, -0 lines 0 comments Download
M Source/bindings/bindings.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/v8/Dictionary.h View 1 3 chunks +26 lines, -0 lines 0 comments Download
A Source/bindings/v8/Nullable.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
M Source/modules/indexeddb/IDBDatabase.cpp View 1 2 chunks +4 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBOpenDBRequest.cpp View 1 3 chunks +4 lines, -3 lines 0 comments Download
M Source/modules/indexeddb/IDBVersionChangeEvent.h View 1 2 3 chunks +29 lines, -7 lines 0 comments Download
M Source/modules/indexeddb/IDBVersionChangeEvent.cpp View 1 2 2 chunks +19 lines, -13 lines 0 comments Download
M Source/modules/indexeddb/IDBVersionChangeEvent.idl View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jsbell
dgrogan@, haraken@ - PTAL?
6 years, 10 months ago (2014-02-24 21:29:59 UTC) #1
dgrogan
IDB behavior LGTM
6 years, 10 months ago (2014-02-24 21:42:13 UTC) #2
haraken
LGTM with comments. https://codereview.chromium.org/177633006/diff/1/LayoutTests/storage/indexeddb/event-init.html File LayoutTests/storage/indexeddb/event-init.html (right): https://codereview.chromium.org/177633006/diff/1/LayoutTests/storage/indexeddb/event-init.html#newcode12 LayoutTests/storage/indexeddb/event-init.html:12: finishJSTest(); Is this necessary? https://codereview.chromium.org/177633006/diff/1/Source/bindings/v8/SerializedScriptValue.cpp File ...
6 years, 10 months ago (2014-02-25 01:14:38 UTC) #3
jsbell
https://codereview.chromium.org/177633006/diff/1/Source/bindings/v8/SerializedScriptValue.cpp File Source/bindings/v8/SerializedScriptValue.cpp (right): https://codereview.chromium.org/177633006/diff/1/Source/bindings/v8/SerializedScriptValue.cpp#newcode2299 Source/bindings/v8/SerializedScriptValue.cpp:2299: v8::Isolate* isolate = 0; On 2014/02/25 01:14:38, haraken wrote: ...
6 years, 10 months ago (2014-02-25 17:42:09 UTC) #4
haraken
On 2014/02/25 17:42:09, jsbell wrote: > https://codereview.chromium.org/177633006/diff/1/Source/bindings/v8/SerializedScriptValue.cpp > File Source/bindings/v8/SerializedScriptValue.cpp (right): > > https://codereview.chromium.org/177633006/diff/1/Source/bindings/v8/SerializedScriptValue.cpp#newcode2299 > ...
6 years, 10 months ago (2014-02-26 01:42:06 UTC) #5
jsbell
On 2014/02/26 01:42:06, haraken wrote: > It seems that Writer shouldn't hold m_isolate (because Writer ...
6 years, 9 months ago (2014-02-26 18:06:17 UTC) #6
haraken
On 2014/02/26 18:06:17, jsbell wrote: > On 2014/02/26 01:42:06, haraken wrote: > > It seems ...
6 years, 9 months ago (2014-02-26 22:46:46 UTC) #7
jsbell
On 2014/02/25 01:14:38, haraken wrote: > LayoutTests/storage/indexeddb/event-init.html:12: finishJSTest(); > > Is this necessary? Apparently it's ...
6 years, 9 months ago (2014-02-27 20:51:08 UTC) #8
jsbell
Just some design notes. https://codereview.chromium.org/177633006/diff/20001/Source/bindings/v8/Nullable.h File Source/bindings/v8/Nullable.h (right): https://codereview.chromium.org/177633006/diff/20001/Source/bindings/v8/Nullable.h#newcode10 Source/bindings/v8/Nullable.h:10: namespace WebCore { Could be ...
6 years, 9 months ago (2014-02-27 20:59:05 UTC) #9
haraken
LGTM
6 years, 9 months ago (2014-02-27 23:09:15 UTC) #10
haraken
Probably Nullable is also helpful to simplify auto-generated code. We're currently using an isNull flag ...
6 years, 9 months ago (2014-02-27 23:11:35 UTC) #11
jsbell
The CQ bit was checked by jsbell@chromium.org
6 years, 9 months ago (2014-02-28 17:51:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/177633006/20001
6 years, 9 months ago (2014-02-28 17:51:34 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 17:51:43 UTC) #14
commit-bot: I haz the power
Failed to apply patch for Source/modules/indexeddb/IDBVersionChangeEvent.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-02-28 17:51:43 UTC) #15
jsbell
The CQ bit was checked by jsbell@chromium.org
6 years, 9 months ago (2014-02-28 18:50:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/177633006/40001
6 years, 9 months ago (2014-02-28 18:50:16 UTC) #17
commit-bot: I haz the power
6 years, 9 months ago (2014-02-28 20:18:04 UTC) #18
Message was sent while issue was closed.
Change committed as 168162

Powered by Google App Engine
This is Rietveld 408576698