Chromium Code Reviews
DescriptionThere is a race condition when the HtmlDialogView is closed which causes a crash while dereferencing an invalid
delegate_ (HtmlDialogUIDelegate*) member. I could not reproduce this consistently though. The inference is
as below:-
1. When the dialog is closed the HtmlDialogView::OnDialogClosed member function is invoked which calls the
OnDialogClosed function on the delegate. This in turn causes the delegate to be destroyed.
2. It then sets the delegate to NULL and attempts to close the window.
3. Before the Close method is dispatched if the view attempts to Paint it causes a crash in the
HtmlDialogView::GetWindowTitle function because of dereferencing a NULL delegate_.
Fix is to add corresponding NULL checks in the relevant functions.
This fixes http://b/issue?id=2138035, which was reported with ChromeFrame.
Bug=2138035
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26953
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||