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

Issue 2742393002: Turn IDBTransaction into the ContextLifecycleObserver it needs to be. (Closed)

Created:
3 years, 9 months ago by sof
Modified:
3 years, 9 months ago
Reviewers:
haraken, jsbell
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, cmumford, blink-reviews, jsbell+idb_chromium.org, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Turn IDBTransaction into the ContextLifecycleObserver it needs to be. Revert r453574's switch to using ContextClient for IDBTransaction, going back to ContextLifecycleObserver. This is needed in order for IDBTransaction's debug checks upon destruction to be able to safely access the ExecutionContext. While ContextClient keeps a weak reference to its ExecutionContext, accessing it from a destructor assumes that weak processing for the ContextClient will already have run (and cleared out the ExecutionContext weak reference, if needs be.) This assumes that weak processing will always run, which it won't if the ContextClient and ExecutionContext are determined to be garbage during the same GC. Update ContextLifecycleObserver comments to mention this subtle detail. R=jsbell,haraken BUG=699819 Review-Url: https://codereview.chromium.org/2742393002 Cr-Commit-Position: refs/heads/master@{#456432} Committed: https://chromium.googlesource.com/chromium/src/+/5dec7437ab22a52aa3dcab8e3415142b6db89040

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M third_party/WebKit/Source/core/dom/ContextLifecycleObserver.h View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBTransaction.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp View 6 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (9 generated)
sof
please take a look.
3 years, 9 months ago (2017-03-13 15:21:47 UTC) #4
jsbell
lgtm
3 years, 9 months ago (2017-03-13 16:02:33 UTC) #5
haraken
LGTM
3 years, 9 months ago (2017-03-13 16:06:04 UTC) #6
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/2742393002/1
3 years, 9 months ago (2017-03-13 18:12:03 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 18:20:53 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5dec7437ab22a52aa3dcab8e3415...

Powered by Google App Engine
This is Rietveld 408576698