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

Issue 237143006: Make iterating over a corrupted IndexedDB fail. (Closed)

Created:
6 years, 8 months ago by cmumford
Modified:
6 years, 8 months ago
Reviewers:
jsbell
CC:
chromium-reviews, jam, alecflett, ericu+idb_chromium.org, darin-cc_chromium.org, cmumford, dgrogan, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Make iterating over a corrupted IndexedDB fail. If an open corrupted IndexedDB was iterated over it would silently fail and the web page would never be informed. This change fixes that bug so that cursor iteration fails just like a get operation did previously. BUG=332524 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264256

Patch Set 1 #

Total comments: 52

Patch Set 2 : Changed out params from ref to ptr #

Patch Set 3 : Addressed Josh's file set #1 comments #

Total comments: 6

Patch Set 4 : Added Status checks. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+546 lines, -220 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 1 3 chunks +18 lines, -11 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 54 chunks +213 lines, -101 lines 0 comments Download
M content/browser/indexed_db/indexed_db_browsertest.cc View 2 chunks +20 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cursor.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_cursor.cc View 1 2 4 chunks +25 lines, -9 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 15 chunks +77 lines, -18 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 2 3 4 chunks +20 lines, -11 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_factory.cc View 1 2 4 chunks +33 lines, -14 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.h View 1 2 chunks +10 lines, -6 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.cc View 1 5 chunks +11 lines, -5 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction_unittest.cc View 1 2 3 1 chunk +12 lines, -2 lines 1 comment Download
M content/browser/indexed_db/leveldb/leveldb_database.cc View 2 chunks +13 lines, -9 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_iterator.h View 2 chunks +5 lines, -4 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.h View 2 chunks +8 lines, -8 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.cc View 1 2 3 6 chunks +42 lines, -16 lines 0 comments Download
M content/test/data/indexeddb/corrupted_open_db_detection.html View 1 2 3 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
cmumford
PTAL. I left six TODO(cmumford) comments in the code to handle additional errors. I started ...
6 years, 8 months ago (2014-04-14 16:58:39 UTC) #1
jsbell
Since this comment affects nearly every diff in the CL, sending this out now and ...
6 years, 8 months ago (2014-04-14 18:35:39 UTC) #2
cmumford
Fixed out param types.
6 years, 8 months ago (2014-04-14 20:25:56 UTC) #3
jsbell
Despite the volume of comments, overall this is looking good. :) https://codereview.chromium.org/237143006/diff/1/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): ...
6 years, 8 months ago (2014-04-14 20:44:19 UTC) #4
cmumford
Most issues addressed, a few questions from me. https://codereview.chromium.org/237143006/diff/1/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/237143006/diff/1/content/browser/indexed_db/indexed_db_backing_store.cc#newcode349 content/browser/indexed_db/indexed_db_backing_store.cc:349: if ...
6 years, 8 months ago (2014-04-14 23:39:23 UTC) #5
jsbell
lgtm with tiny suggestions. If the "Why is Success being called?" question is answered, can ...
6 years, 8 months ago (2014-04-15 16:39:56 UTC) #6
cmumford
Got the lgtm so will check the commit box at 11am. Leaving a few minutes ...
6 years, 8 months ago (2014-04-15 17:34:36 UTC) #7
jsbell
still lgtm https://codereview.chromium.org/237143006/diff/40002/content/browser/indexed_db/indexed_db_transaction_unittest.cc File content/browser/indexed_db/indexed_db_transaction_unittest.cc (right): https://codereview.chromium.org/237143006/diff/40002/content/browser/indexed_db/indexed_db_transaction_unittest.cc#newcode25 content/browser/indexed_db/indexed_db_transaction_unittest.cc:25: // DB is created here instead of ...
6 years, 8 months ago (2014-04-15 17:48:45 UTC) #8
cmumford
The CQ bit was checked by cmumford@chromium.org
6 years, 8 months ago (2014-04-15 17:55:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmumford@chromium.org/237143006/40002
6 years, 8 months ago (2014-04-15 17:58:37 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-15 20:35:59 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-15 20:36:00 UTC) #12
cmumford
The CQ bit was checked by cmumford@chromium.org
6 years, 8 months ago (2014-04-16 15:46:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmumford@chromium.org/237143006/40002
6 years, 8 months ago (2014-04-16 15:47:04 UTC) #14
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 18:32:21 UTC) #15
Message was sent while issue was closed.
Change committed as 264256

Powered by Google App Engine
This is Rietveld 408576698