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

Issue 822863003: LifecycleObserver::contextDestroyed should be explicitly dispatched promptly when a context is dest… (Closed)

Created:
6 years ago by haraken
Modified:
5 years, 11 months ago
Reviewers:
oilpan-reviews, sof
CC:
blink-reviews, eae+blinkwatch, falken, blink-reviews-dom_chromium.org, dglazkov+blink, kinuko+worker_chromium.org, horo+watch_chromium.org, rwlbuis
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

LifecycleObserver::contextDestroyed should be explicitly dispatched promptly when a context is destroyed Currently LifecycleObserver::contextDestroyed is dispatched within LifecycleContext's destructor. This is problematic in Oilpan because destructors are not allowed to touch other on-heap objects. We need to dispatch LifecycleObserver::contextDestroyed not when the context is destructed but promptly when the context is destroyed (e.g., Document::detach(), WorkerGlobalScope::dispose(), Page::willBeDestroyed()). BUG=340522

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -5 lines) Patch
M Source/core/dom/Document.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/ExecutionContext.h View 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/page/Page.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/workers/WorkerGlobalScope.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/platform/LifecycleContext.h View 1 2 chunks +20 lines, -2 lines 0 comments Download
M Source/platform/LifecycleNotifier.h View 1 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
haraken
This CL is not yet ready for review. - This CL is necessary to move ...
6 years ago (2014-12-23 03:43:44 UTC) #2
sof
https://codereview.chromium.org/822863003/diff/1/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/822863003/diff/1/Source/core/frame/LocalDOMWindow.cpp#newcode632 Source/core/frame/LocalDOMWindow.cpp:632: LifecycleContext<LocalDOMWindow>::contextDestroyed(); On 2014/12/23 03:43:44, haraken wrote: > > This ...
6 years ago (2014-12-23 14:40:30 UTC) #3
haraken
On 2014/12/23 14:40:30, sof wrote: > https://codereview.chromium.org/822863003/diff/1/Source/core/frame/LocalDOMWindow.cpp > File Source/core/frame/LocalDOMWindow.cpp (right): > > https://codereview.chromium.org/822863003/diff/1/Source/core/frame/LocalDOMWindow.cpp#newcode632 > ...
6 years ago (2014-12-24 07:11:49 UTC) #4
sof
On 2014/12/24 07:11:49, haraken wrote: > On 2014/12/23 14:40:30, sof wrote: > > > https://codereview.chromium.org/822863003/diff/1/Source/core/frame/LocalDOMWindow.cpp ...
5 years, 12 months ago (2014-12-24 09:14:40 UTC) #5
sof
just some trivial comments i forgot to flush earlier.. https://codereview.chromium.org/822863003/diff/1/Source/platform/LifecycleContext.h File Source/platform/LifecycleContext.h (right): https://codereview.chromium.org/822863003/diff/1/Source/platform/LifecycleContext.h#newcode50 Source/platform/LifecycleContext.h:50: ...
5 years, 12 months ago (2014-12-26 08:21:42 UTC) #6
sof
Can be closed, right?
5 years, 11 months ago (2015-01-16 09:22:52 UTC) #7
haraken
5 years, 11 months ago (2015-01-16 09:23:22 UTC) #8
On 2015/01/16 09:22:52, sof wrote:
> Can be closed, right?

yes, closed.

Powered by Google App Engine
This is Rietveld 408576698