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

Issue 43010: Fix crash in DOMUIContents::RenderViewCreated (Closed)

Created:
11 years, 9 months ago by yurys
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Added null-check for current DOMUI. BUG=8546 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11322

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/dom_ui/dom_ui_contents.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
yurys
11 years, 9 months ago (2009-03-10 11:57:13 UTC) #1
pfeldman
LGTM
11 years, 9 months ago (2009-03-10 12:08:53 UTC) #2
Søren Thygesen Gjesse
I am not familiar with this part of Chrome, but what does a NULL content_ui_ ...
11 years, 9 months ago (2009-03-10 12:12:00 UTC) #3
yurys
current_ui_ is a delagate that depends on current content type rendered in DOMUIContents. It's NULL ...
11 years, 9 months ago (2009-03-10 12:27:16 UTC) #4
yurys
Brett, Glen: From the stack trace I can see that DOMUIHost content type is about ...
11 years, 9 months ago (2009-03-10 12:43:48 UTC) #5
Glen Murphy
11 years, 9 months ago (2009-03-10 22:11:11 UTC) #6
Patch LGTM, though I can't comment on the root cause.


On 2009/03/10 12:43:48, Yury Semikhatsky wrote:
> Brett, Glen:
> From the stack trace I can see that DOMUIHost content type is about to replace
> DOMUIcontents at the moment DOMUIcontents::RenderViewCreated is called. 
> 
> It seems wrong to me that previous instance of WebContents(DOMUIContents) is
> notified about creation of render view that is going to be used to render
> content for the new WebContents instance(DOMUIHost).
> 
> On 2009/03/10 12:27:16, yurys wrote:
> > current_ui_ is a delagate that depends on current content type rendered in
> > DOMUIContents. It's NULL until a navigation request. My understanding was
that
> > it was expected to be intialized by the time RenderViewCreated is called. It
> was
> > a wrong assumption as e.g. InitCurrentUI may fail to find matching DOMUI for
a
> > URL and set current_ui_ to NULL while render view will be created and cause
> > DOMUIContents::RenderViewCreated execution. 
> > 
> > On 2009/03/10 12:12:00, Søren Gjesse wrote:
> > > I am not familiar with this part of Chrome, but what does a NULL
content_ui_
> > > mean? Is it a "valid" state?
> > > 
> > > On 2009/03/10 11:57:13, yurys wrote:
> > > >

Powered by Google App Engine
This is Rietveld 408576698