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

Issue 2779433002: [IndexedDB] Abort transaction on unknown blob (Closed)

Created:
3 years, 9 months ago by dmurph
Modified:
3 years, 8 months ago
Reviewers:
Mark P, jsbell, cmumford, pwnall
CC:
chromium-reviews, jam, jsbell+idb_chromium.org, darin-cc_chromium.org, cmumford
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[IndexedDB] Abort transaction on unknown blobs instead of crashing There is a current refcounting known issue where a blob can be sent to another process but while that IPC is scheduled the source process dies. The blob will be non-existent. We want to gracefully handle this error in IndexedDB instead of crashing. (also fixes missing include in the connection class) BUG=677780 Review-Url: https://codereview.chromium.org/2779433002 Cr-Commit-Position: refs/heads/master@{#460491} Committed: https://chromium.googlesource.com/chromium/src/+/2a0b10eb79e78d3aee52538d66768381769469dc

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments & added histogram #

Total comments: 6

Patch Set 3 : crazy mojo mocking #

Patch Set 4 : comments and removed tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -5 lines) Patch
M content/browser/indexed_db/database_impl.cc View 1 2 3 7 chunks +39 lines, -5 lines 0 comments Download
M content/browser/indexed_db/indexed_db_connection.cc View 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
dmurph
Adding tests TODO (gonna copy over tests from another patch to make a framework) Can ...
3 years, 9 months ago (2017-03-27 20:33:10 UTC) #2
pwnall
On 2017/03/27 20:33:10, dmurph wrote: > Adding tests TODO (gonna copy over tests from another ...
3 years, 9 months ago (2017-03-27 20:56:18 UTC) #5
pwnall
https://codereview.chromium.org/2779433002/diff/1/content/browser/indexed_db/database_impl.cc File content/browser/indexed_db/database_impl.cc (right): https://codereview.chromium.org/2779433002/diff/1/content/browser/indexed_db/database_impl.cc#newcode278 content/browser/indexed_db/database_impl.cc:278: UMA_HISTOGRAM_BOOLEAN("Storage.IndexedDB.PutValidBlob", !!handle); Can you please add a comment explaining ...
3 years, 9 months ago (2017-03-27 20:56:33 UTC) #6
dmurph
+mpearson for histograms.xml change. https://codereview.chromium.org/2779433002/diff/1/content/browser/indexed_db/database_impl.cc File content/browser/indexed_db/database_impl.cc (right): https://codereview.chromium.org/2779433002/diff/1/content/browser/indexed_db/database_impl.cc#newcode278 content/browser/indexed_db/database_impl.cc:278: UMA_HISTOGRAM_BOOLEAN("Storage.IndexedDB.PutValidBlob", !!handle); On 2017/03/27 20:56:33, ...
3 years, 9 months ago (2017-03-27 23:03:32 UTC) #8
Mark P
histograms.ml lgtm modulo comments --mark https://codereview.chromium.org/2779433002/diff/20001/content/browser/indexed_db/database_impl.cc File content/browser/indexed_db/database_impl.cc (right): https://codereview.chromium.org/2779433002/diff/20001/content/browser/indexed_db/database_impl.cc#newcode280 content/browser/indexed_db/database_impl.cc:280: UMA_HISTOGRAM_BOOLEAN("Storage.IndexedDB.PutValidBlob", !!handle); nit: !!handle ...
3 years, 8 months ago (2017-03-28 18:17:07 UTC) #10
cmumford
lgtm % nit https://codereview.chromium.org/2779433002/diff/20001/content/browser/indexed_db/database_impl.cc File content/browser/indexed_db/database_impl.cc (right): https://codereview.chromium.org/2779433002/diff/20001/content/browser/indexed_db/database_impl.cc#newcode282 content/browser/indexed_db/database_impl.cc:282: IndexedDBDatabaseError error(blink::WebIDBDatabaseExceptionUnknownError, We do want to ...
3 years, 8 months ago (2017-03-28 18:49:31 UTC) #11
dmurph
Since mocking out mojo stuff is taking so long / so complex, I'm splitting that ...
3 years, 8 months ago (2017-03-29 18:21:34 UTC) #13
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/2779433002/60001
3 years, 8 months ago (2017-03-29 18:23:33 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-03-29 19:35:52 UTC) #21
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2a0b10eb79e78d3aee52538d6676...

Powered by Google App Engine
This is Rietveld 408576698