RuidSiel / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Crash on UIT_CreateBrowser if parentWindow was destroyed #322

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Because there is a time between the creation the CEF window inside 
UIT_CreateBrowser and the actual call to CreateBrowser, it is possible that the 
parent window handle (passed as member of window_info) to become invalid, due 
to the parent window being closed.

Maybe the DCHECK(window_info_.m_hWnd != NULL); in browser_impl_win should 
become a return. Or could call a new error callback function on one of the 
handler (probably LifeSpanHandler)

What version of the product are you using? On what operating system?
Windows, CEF 271

Original issue reported on code.google.com by raulhu...@gmail.com on 1 Sep 2011 at 1:23

GoogleCodeExporter commented 9 years ago
Adding a patch for fixing this. Unfortunately, I don't think that adding a test 
for is something that is easy to do due to the perfect timing that needs to be 
achieved between calling CreateBrowser and CreateWindowEx.

Original comment by raulhu...@gmail.com on 2 Sep 2011 at 11:22

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, fixed in revision 336.

Original comment by magreenb...@gmail.com on 21 Oct 2011 at 9:01