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

Issue 2367753002: Reland of Clear LifecycleObserver::m_context when LifecycleObserver::contextDestroyed gets called (Closed)

Created:
4 years, 3 months ago by haraken
Modified:
4 years, 3 months ago
Reviewers:
dcheng, Will Harris
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Clear LifecycleObserver::m_context when LifecycleObserver::contextDestroyed gets called (patchset #1 id:1 of https://codereview.chromium.org/2365463004/ ) Reason for revert: Relanding this CL because the fix to the original crash has been landed in https://codereview.chromium.org/2364693005/ Original issue's description: > Revert of Clear LifecycleObserver::m_context when LifecycleObserver::contextDestroyed gets called (patchset #11 id:200001 of https://codereview.chromium.org/2317483005/ ) > > Reason for revert: > Speculatively reverting for https://crbug.com/649272 > > Original issue's description: > > Clear LifecycleObserver::m_context when LifecycleObserver::contextDestroyed gets called > > > > This CL clears LifecycleObserver::m_context when LifecycleObserver::contextDestroyed gets called. > > This means that LifecycleObserver::context() starts returning false after the context gets destroyed. > > > > The new behavior makes a lot of more sense, but the problem is that some existing code is assuming that > > LifecycleObserver::context() keeps returning the context even after the context gets destroyed. > > This CL fixed the problematic code to make all layout tests pass, but I'm not sure if I've updated all of the problematic code > > (because the coverage of the layout tests is not sufficient). > > However, the worst thing that can happen is that code that had been assuming that LifecycleObserver::context() > > returns a context even after the context gets destroyed will stop working (it may cause a null-deref crash). > > I think the risk is low. > > > > BUG=610176 > > > > Committed: https://crrev.com/b729a998b05ec916731171d59de95e0aea31bbac > > Cr-Commit-Position: refs/heads/master@{#419951} > > TBR=haraken@chromium.org > # Not skipping CQ checks because original CL landed more than 1 days ago. > BUG=610176, 649272 > NOTRY=true > > Committed: https://crrev.com/04b1826356a37de2a322e7e6e0e80f07d05f210f > Cr-Commit-Position: refs/heads/master@{#420498} TBR=wfh@chromium.org,dcheng@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=610176, 649272 Committed: https://crrev.com/9c675cfdcf006e5ca978b0dfa04f187ed36f86cc Cr-Commit-Position: refs/heads/master@{#420608}

Patch Set 1 #

Messages

Total messages: 7 (3 generated)
haraken
Created Reland of Clear LifecycleObserver::m_context when LifecycleObserver::contextDestroyed gets called
4 years, 3 months ago (2016-09-23 12:09:52 UTC) #2
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/2367753002/1
4 years, 3 months ago (2016-09-23 12:10:05 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-23 12:11:00 UTC) #5
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 12:13:46 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9c675cfdcf006e5ca978b0dfa04f187ed36f86cc
Cr-Commit-Position: refs/heads/master@{#420608}

Powered by Google App Engine
This is Rietveld 408576698