-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mac: Browser created before CefRunMessageLoop does not exit correctly #3810
Comments
Recommended usage is to call CreateBrowser from OnContextInitialized. However, this still sounds like a bug. |
Please try with a supported CEF version (M130 or newer) |
May be related to #3469 |
Hi @magreenblatt Thanks for looking into it. We are using the cef version - 116.0.0, I have updated it in the description. Has it been fixed in 130 or newer versions of cef ? |
It may be, please test. |
sure, I'll update you once we test it |
Hi @magreenblatt Seems like the bug is still present on the latest cef version. I was able to reproduce it by modifying the cefsimple app slightly. I am creating a couple of browsers inside my window, and closing the first browser after a certain timer. You'll observe that it has been removed from the view, but yet the Below is the cefsimple_mac.mm
And here is the simple_app.cpp
and
|
Thanks for the update. I suggest you use one of the working options until this issue is addressed. |
Describe the bug
There are two approaches I can take to create a browser using the CefBrowserHost::CreateBrowser API:
In the main method, after initializing CEF, I can create the view where the browser will load and then call CreateBrowser immediately before invoking CefRunMessageLoop.
Alternatively, after initializing CEF, I can schedule the creation of the view and the subsequent CreateBrowser call using performSelectorOnMainThread.
The issue arises when calling CloseBrowser. In approach 2, the OnBeforeClose callback is triggered as expected. However, in approach 1, the callback does not execute, and the renderer process remains active.
In both the cases, the view in which browser url is loaded is a child of parent main window. The CloseBrowser() is explicitly closed by my application.
I understand that this question is better suited for the CEF forum, but despite multiple attempts to register with different email addresses, I haven't received the activation link. I also reached out to [email protected] regarding the issue but haven't received any response.
Versions (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: