I still have three relatively minor questions. Please let me know if it would be more appropriate to create separate topics for each of them.
Q1. Sometimes when I start cefsimple I am getting the following error
Trace/breakpoint trap
[1028/094702.514588:FATAL:x11_window.cc(543)] Check failed: !has_window_focus_ || !has_pointer_focus_.
Is this known? What would be the proper way to deal with this issue?
Q2. How to close CEF properly? I am getting authorization code in CefResourceRequestHandler::OnResourceLoadComplete() and at this point I don't need the browser anymore so want to close it. I've tried bool SimpleHandler::DoClose(CefRefPtr<CefBrowser> browser) and void SimpleHandler::CloseAllBrowsers(bool force_close) but in both cases I am getting SIGTRAP, so what would be the right way to close CEF?
Q3. Is it possible to change name of cefsimple? When I try to do this in my CMakeList file I am getting SIGTRAP with the following callstack:
- Code: Select all
1 LoadV8NativesFromFile v8_initializer.cc 367 0x7fb5d225f4
2 gin::V8Initializer::LoadV8Natives() v8_initializer.cc 330 0x7fb5d224c0
3 LoadV8NativesFile content_main_runner_impl.cc 238 0x7fb262c8cc
4 InitializeV8IfNeeded content_main_runner_impl.cc 250 0x7fb262c8cc
5 Initialize content_main_runner_impl.cc 761 0x7fb262c8cc
6 MainInitialize main.cc 376 0x7fb444ba2c
7 Initialize context.cc 418 0x7fb2853374
8 CefInitialize context.cc 251 0x7fb2853048
9 cef_initialize libcef_dll.cc 112 0x7faf7b938c
10 CefInitialize libcef_dll_wrapper.cc 105 0x55555bbefc
11 main
And final question: How do I open an issue for CEF. Czarec recommended me to open a bug in this thread https://magpcss.org/ceforum/viewtopic.php?f=6&t=17121, so I'd like to do this.
void SimpleHandler::CloseAllBrowsers(bool force_close)