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

Issue 2828953002: [IndexedDB] Hold referenced to IDB::put blobs in the IDBRequest (Closed)

Created:
3 years, 8 months ago by dmurph
Modified:
3 years, 7 months ago
Reviewers:
michaeln, jsbell, pwnall
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, blink-reviews, darin-cc_chromium.org, cmumford, haraken, jsbell+idb_chromium.org, michaeln
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[IndexedDB] Hold referenced to IDB::put blobs in the IDBRequest Since blobs can die during transit (pending mojo change), we can prevent this by holding onto the blob handles in the IDBRequest until we get the response back from the browser. R=pwnall,jsbell BUG=351753, 710736, 713409 Review-Url: https://codereview.chromium.org/2828953002 Cr-Commit-Position: refs/heads/master@{#467836} Committed: https://chromium.googlesource.com/chromium/src/+/ca74aee3773bb77867cf02d5f81725d10b33e4ab

Patch Set 1 #

Total comments: 3

Patch Set 2 : Implemented much better idea by Michael #

Patch Set 3 : compile fix #

Total comments: 4

Patch Set 4 : Name change, and added dcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.h View 1 2 3 5 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (21 generated)
dmurph
Victor & Josh, can you PTAL at how I do this? Is this worth the ...
3 years, 8 months ago (2017-04-19 22:26:34 UTC) #3
pwnall
LGTM. It seems to me that there isn't that much extra complexity (am I missing ...
3 years, 8 months ago (2017-04-21 01:39:22 UTC) #6
michaeln
some drive by comments... https://codereview.chromium.org/2828953002/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp File third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp (right): https://codereview.chromium.org/2828953002/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp#newcode517 third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp:517: registry->AddBlobDataRef(info.Uuid()); Manual refcounting always makes ...
3 years, 8 months ago (2017-04-21 01:46:10 UTC) #7
dmurph
Thanks for the idea Michael! That's way better. I need to add a test to ...
3 years, 8 months ago (2017-04-25 19:06:55 UTC) #12
michaeln
thnx! lgtm https://codereview.chromium.org/2828953002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp File third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp (right): https://codereview.chromium.org/2828953002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp#newcode293 third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp:293: ClearTransitBlobHandles(); There are many OnSuccess variants, no ...
3 years, 8 months ago (2017-04-25 23:37:01 UTC) #20
dmurph
https://codereview.chromium.org/2828953002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp File third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp (right): https://codereview.chromium.org/2828953002/diff/40001/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp#newcode293 third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp:293: ClearTransitBlobHandles(); On 2017/04/25 23:37:00, michaeln wrote: > There are ...
3 years, 7 months ago (2017-04-27 22:04:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2828953002/60001
3 years, 7 months ago (2017-04-27 22:30:31 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 02:09:53 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ca74aee3773bb77867cf02d5f817...

Powered by Google App Engine
This is Rietveld 408576698