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

Issue 2386683003: IndexedDB: Ignore open/delete requests from terminated renderers. (Closed)

Created:
4 years, 2 months ago by jsbell
Modified:
4 years, 2 months ago
Reviewers:
cmumford
CC:
chromium-reviews, jam, jsbell+idb_chromium.org, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

IndexedDB: Ignore open/delete requests from terminated renderers. Tasks associated with transactions are terminated when a dispatcher host's connection goes away, but queued connection open/delete requests are not associated with transactions, meaning attempting to send the results will fail. To avoid this, check to see if the dispatcher is still connected when a request gets to the head of the queue. BUG=650635 R=cmumford@chromium.org Committed: https://crrev.com/94384e5f7af8064d0b8812efe1bcdfa8709ff6cd Cr-Commit-Position: refs/heads/master@{#422840}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review feedback #

Patch Set 3 : Allow deletes to proceed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -10 lines) Patch
M content/browser/indexed_db/indexed_db_callbacks.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_callbacks.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_database_unittest.cc View 1 2 3 chunks +116 lines, -10 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_dispatcher_host.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/mock_indexed_db_callbacks.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/mock_indexed_db_callbacks.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
jsbell
cmumford@ - please take a look? I'm not incredibly thrilled with this patch and it ...
4 years, 2 months ago (2016-10-03 17:22:19 UTC) #5
cmumford
On 2016/10/03 17:22:19, jsbell wrote: > cmumford@ - please take a look? > > I'm ...
4 years, 2 months ago (2016-10-03 18:09:41 UTC) #6
cmumford
https://codereview.chromium.org/2386683003/diff/1/content/browser/indexed_db/indexed_db_callbacks.cc File content/browser/indexed_db/indexed_db_callbacks.cc (right): https://codereview.chromium.org/2386683003/diff/1/content/browser/indexed_db/indexed_db_callbacks.cc#newcode608 content/browser/indexed_db/indexed_db_callbacks.cc:608: return dispatcher_host_->is_open(); All the other methods have: DCHECK(dispatcher_host_.get()); Here ...
4 years, 2 months ago (2016-10-03 18:39:27 UTC) #8
jsbell
Thanks for the initial pass. Does a lack of comments on the overall approach and/or ...
4 years, 2 months ago (2016-10-03 19:28:37 UTC) #9
cmumford
lgtm https://codereview.chromium.org/2386683003/diff/1/content/browser/indexed_db/indexed_db_database.cc File content/browser/indexed_db/indexed_db_database.cc (right): https://codereview.chromium.org/2386683003/diff/1/content/browser/indexed_db/indexed_db_database.cc#newcode298 content/browser/indexed_db/indexed_db_database.cc:298: if (!callbacks_->IsValid()) { My main worry is that ...
4 years, 2 months ago (2016-10-03 20:03:34 UTC) #10
jsbell
Thanks cmumford@ - one more look? ISTM we need similar logic if the open/delete request ...
4 years, 2 months ago (2016-10-03 20:57:58 UTC) #11
cmumford
lgtm
4 years, 2 months ago (2016-10-04 16:19:49 UTC) #12
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/2386683003/40001
4 years, 2 months ago (2016-10-04 16:29:45 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-10-04 17:20:19 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 17:25:46 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/94384e5f7af8064d0b8812efe1bcdfa8709ff6cd
Cr-Commit-Position: refs/heads/master@{#422840}

Powered by Google App Engine
This is Rietveld 408576698