Hi,
I'm using CEF 4103 / 83.0.4103.97 in my application as a child window of a window that already exists. When shutting down CEF, I have to close the browser windows to avoid getting an assertion about the browser not being closed when calling CefShutdown. But closing the browser will close the parent window too, which is not managed by CEF or Chromium and should not be closed this way.
I have tracked down the issue to browser_platform_delegate_native_win.cc Line 238, which closes the top level window that CEF is a child of. I don't think this makes much sense, it shouldn't close every window in the hierarchy just because the browser is closed. Changing this to PostMessage(window_info_.window, WM_CLOSE, 0, 0); fixes the issues and seems to work better for me.
Is there a reason for the browser to close the top level window this way and could there be some unexpected consequences with my change?
Thanks.