I've modified cefclient application to invoke requests. I've chenged the "Tests > Get Source" test this way:
- Code: Select all
void RunGetSourceTest(CefRefPtr<CefBrowser> browser) {
static int i = 0;
std::vector<std::string> urls;
urls.push_back("https://test.com/");
urls.push_back("https://google.com/");
CefRefPtr<CefRequest> req2 = CefRequest::Create();
auto url = urls[i++];
req2->SetURL(url);
browser->GetMainFrame()->LoadRequest(req2);
}
and started cefclient with --url="about:blank". First running of Get Source loads the test.com correctly. Second run crashes the renderer and loads initial URL (about:blank) immediately.
Here is the debug.log:
- Code: Select all
[1031/221748.400:INFO:content_main_runner_impl.cc(959)] Chrome is running in full browser mode.
[1031/221753.038:WARNING:http_cache_transaction.cc(1177)] Unable to open or create cache entry
[1031/221753.041:WARNING:http_cache_transaction.cc(1177)] Unable to open or create cache entry
[1031/221754.185:WARNING:http_cache_transaction.cc(1177)] Unable to open or create cache entry
[1031/221754.378:WARNING:extension_protocols.cc(258)] Failed to get directory for extension invalid
[1031/221755.081:WARNING:extension_protocols.cc(258)] Failed to get directory for extension invalid
[1031/221759.312:ERROR:bad_message.cc(27)] Terminating renderer for bad IPC message, reason 213
When I change LoadRequest to LoadURL it works.
Is it bug or am I doing something wrong?