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

Issue 11287002: IndexedDB: Ensure pending callbacks are fired before dispatcher is torn down (Closed)

Created:
8 years, 2 months ago by jsbell
Modified:
8 years, 1 month ago
Reviewers:
michaeln, dgrogan
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, alecflett, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

IndexedDB: Ensure pending callbacks are fired before dispatcher is torn down Worker termination was marking the dispatcher as "deleted" before pending callbacks were destructed, and some of those pending callbacks were trying to use the dispatcher. Swap the order by explicitly clearing out callback maps rather than relying on implicit destruction. R=dgrogan@chromium.org,michaeln@chromium.org BUG=153652 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163972 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164221

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M content/browser/in_process_webkit/indexed_db_layout_browsertest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_dispatcher.cc View 1 chunk +20 lines, -0 lines 1 comment Download

Messages

Total messages: 7 (0 generated)
jsbell
dgrogan@, michaeln@ - please take a look
8 years, 2 months ago (2012-10-24 18:40:54 UTC) #1
michaeln
lgtm https://codereview.chromium.org/11287002/diff/1/content/common/indexed_db/indexed_db_dispatcher.cc File content/common/indexed_db/indexed_db_dispatcher.cc (right): https://codereview.chromium.org/11287002/diff/1/content/common/indexed_db/indexed_db_dispatcher.cc#newcode62 content/common/indexed_db/indexed_db_dispatcher.cc:62: pending_callbacks_.Remove(it.GetCurrentKey()); Odd that there's no .Clear() method on ...
8 years, 2 months ago (2012-10-24 19:54:49 UTC) #2
jsbell
On 2012/10/24 19:54:49, michaeln wrote: > Odd that there's no .Clear() method on the IDMap<> ...
8 years, 2 months ago (2012-10-24 20:42:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/11287002/1
8 years, 2 months ago (2012-10-24 20:43:39 UTC) #4
commit-bot: I haz the power
Change committed as 163972
8 years, 2 months ago (2012-10-25 00:24:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/11287002/1
8 years, 1 month ago (2012-10-25 21:12:14 UTC) #6
commit-bot: I haz the power
8 years, 1 month ago (2012-10-26 00:06:52 UTC) #7
Change committed as 164221

Powered by Google App Engine
This is Rietveld 408576698