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

Issue 11092066: [Panels] Fix favicon crash from using deleted WebContents. (Closed)

Created:
8 years, 2 months ago by jennb
Modified:
8 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, jianli, Dmitry Titov, dcheng
Visibility:
Public.

Description

[Panels] Fix favicon crash from using deleted WebContents. Updated TaskManagerPanelResourceProvider to no longer expect Panel to have web contents after web contents are disconnected. BUG=155133 TEST=updated Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162200

Patch Set 1 #

Total comments: 1

Patch Set 2 : changed to simply add dchecks #

Patch Set 3 : change one dcheck to check, avoid crash if no favicon tab helper #

Patch Set 4 : upload a trace without crashing #

Patch Set 5 : add missing include #

Patch Set 6 : release webcontents ptr before deleting #

Patch Set 7 : removed dump process without crash, think this fixes bug #

Patch Set 8 : fix NoticePanelChanges test #

Total comments: 2

Patch Set 9 : Synced #

Patch Set 10 : change DCHECK to CHECK #

Patch Set 11 : remove unneeded change now that we CHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M chrome/browser/task_manager/task_manager_resource_providers.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_host.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
jennb
8 years, 2 months ago (2012-10-11 00:07:11 UTC) #1
sky
http://codereview.chromium.org/11092066/diff/1/chrome/browser/ui/panels/panel_host.cc File chrome/browser/ui/panels/panel_host.cc (right): http://codereview.chromium.org/11092066/diff/1/chrome/browser/ui/panels/panel_host.cc#newcode207 chrome/browser/ui/panels/panel_host.cc:207: web_contents_.reset(); WebContentsDestroyed is invoked from ~WebContents (well, ~WebContentsImpl). That ...
8 years, 2 months ago (2012-10-11 01:03:53 UTC) #2
jennb
On 2012/10/11 01:03:53, sky wrote: > http://codereview.chromium.org/11092066/diff/1/chrome/browser/ui/panels/panel_host.cc > File chrome/browser/ui/panels/panel_host.cc (right): > > http://codereview.chromium.org/11092066/diff/1/chrome/browser/ui/panels/panel_host.cc#newcode207 > ...
8 years, 2 months ago (2012-10-11 03:53:26 UTC) #3
sky
On 2012/10/11 03:53:26, jennb wrote: > On 2012/10/11 01:03:53, sky wrote: > > > http://codereview.chromium.org/11092066/diff/1/chrome/browser/ui/panels/panel_host.cc ...
8 years, 2 months ago (2012-10-11 16:41:26 UTC) #4
jennb
On 2012/10/11 16:41:26, sky wrote: > > If you get stuck, before deleting the webcontents ...
8 years, 2 months ago (2012-10-11 21:50:55 UTC) #5
sky
DCHECKs are compiled out in release builds. -Scott On Thu, Oct 11, 2012 at 2:50 ...
8 years, 2 months ago (2012-10-11 21:52:20 UTC) #6
jennb
sky - Ready for another look. Added trace upload without crash and adjusted checks. Jenn
8 years, 2 months ago (2012-10-13 00:54:54 UTC) #7
jennb
I think I accidentally stumbled on the cause of the bug by adding the CHECK ...
8 years, 2 months ago (2012-10-13 04:49:53 UTC) #8
sky
On Fri, Oct 12, 2012 at 9:49 PM, <jennb@chromium.org> wrote: > I think I accidentally ...
8 years, 2 months ago (2012-10-15 22:47:10 UTC) #9
jennb
I suspect the crash isn't because FavIconTabHelper is NULL, but rather something inside GetFavIcon() is ...
8 years, 2 months ago (2012-10-15 23:01:33 UTC) #10
sky
NavigationController should still be valid too. I don't see WebContentsDestroyed in the trace of the ...
8 years, 2 months ago (2012-10-15 23:06:25 UTC) #11
jennb
On Mon, Oct 15, 2012 at 4:06 PM, Scott Violet <sky@chromium.org> wrote: > NavigationController should ...
8 years, 2 months ago (2012-10-15 23:15:55 UTC) #12
sky
http://codereview.chromium.org/11092066/diff/16002/chrome/browser/ui/panels/panel_host.cc File chrome/browser/ui/panels/panel_host.cc (right): http://codereview.chromium.org/11092066/diff/16002/chrome/browser/ui/panels/panel_host.cc#newcode88 chrome/browser/ui/panels/panel_host.cc:88: DCHECK(favicon_tab_helper); Make this a CHECK so we can know ...
8 years, 2 months ago (2012-10-15 23:34:17 UTC) #13
jennb
http://codereview.chromium.org/11092066/diff/16002/chrome/browser/ui/panels/panel_host.cc File chrome/browser/ui/panels/panel_host.cc (right): http://codereview.chromium.org/11092066/diff/16002/chrome/browser/ui/panels/panel_host.cc#newcode88 chrome/browser/ui/panels/panel_host.cc:88: DCHECK(favicon_tab_helper); On 2012/10/15 23:34:17, sky wrote: > Make this ...
8 years, 2 months ago (2012-10-16 00:17:07 UTC) #14
sky
LGTM
8 years, 2 months ago (2012-10-16 15:39:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennb@chromium.org/11092066/18005
8 years, 2 months ago (2012-10-16 17:00:30 UTC) #16
commit-bot: I haz the power
8 years, 2 months ago (2012-10-16 19:12:38 UTC) #17
Change committed as 162200

Powered by Google App Engine
This is Rietveld 408576698