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

Issue 2607533002: Prefer using ContextClient over ContextLifecycleObserver (Closed)

Created:
3 years, 11 months ago by haraken
Modified:
3 years, 11 months ago
Reviewers:
sof, dcheng
CC:
chromium-reviews, feature-media-reviews_chromium.org, mlamouri+watch-blink_chromium.org, blink-reviews-css, tzik, eric.carlson_apple.com, dglazkov+blink, apavlov+blink_chromium.org, nhiroki, cmumford, darktears, blink-reviews, Srirama, jsbell+idb_chromium.org, kinuko+fileapi, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prefer using ContextClient over ContextLifecycleObserver ContextClient is more lightweight than ContextLifecycleObserver. Classes that don't override contextDestroyed should use ContextClient. BUG=610176 Committed: https://crrev.com/46dcc19eebc7a63cee5b9aeb4e1284fd5f9adf6d Cr-Commit-Position: refs/heads/master@{#440822}

Patch Set 1 #

Total comments: 1

Messages

Total messages: 15 (6 generated)
haraken
PTAL
3 years, 11 months ago (2016-12-27 12:12:06 UTC) #2
dcheng
lgtm
3 years, 11 months ago (2016-12-27 19:07:24 UTC) #3
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/2607533002/1
3 years, 11 months ago (2016-12-28 01:00:00 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2016-12-28 02:26:09 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/46dcc19eebc7a63cee5b9aeb4e1284fd5f9adf6d Cr-Commit-Position: refs/heads/master@{#440822}
3 years, 11 months ago (2017-01-02 15:48:17 UTC) #10
sof
https://codereview.chromium.org/2607533002/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp File third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp (right): https://codereview.chromium.org/2607533002/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp#newcode100 third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp:100: : ContextClient(scriptState->getExecutionContext()), This one is flakily repro'ing on the ...
3 years, 11 months ago (2017-01-05 15:12:08 UTC) #12
haraken
I'll revert the CL at the moment. On 2017/01/05 15:12:08, sof wrote: > https://codereview.chromium.org/2607533002/diff/1/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp > ...
3 years, 11 months ago (2017-01-05 15:52:02 UTC) #13
haraken
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2618753002/ by haraken@chromium.org. ...
3 years, 11 months ago (2017-01-05 15:52:44 UTC) #14
haraken
3 years, 11 months ago (2017-01-13 09:46:30 UTC) #15
Message was sent while issue was closed.
On 2017/01/05 15:12:08, sof wrote:
>
https://codereview.chromium.org/2607533002/diff/1/third_party/WebKit/Source/m...
> File third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp (right):
> 
>
https://codereview.chromium.org/2607533002/diff/1/third_party/WebKit/Source/m...
> third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp:100: :
> ContextClient(scriptState->getExecutionContext()),
> This one is flakily repro'ing on the bots,
> 
> 
>
https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Mac10_11_...
> 
> who ensures that ExecutionContext::notifyContextDestroyed() is always called
in
> a worker setting?

I cannot reproduce the flaky failure, but I suspect that it's related to the
following difference:

- ContextLifecycleObserver::getExecutionContext returns a valid context while
notifyContextDestroyed is being called.
- ContextClient::getExecutionContext returns nullptr while
notifyContextDestroyed is being called.

Let me investigate what I can do there.

Powered by Google App Engine
This is Rietveld 408576698