diff --git a/libcef/browser/browser_host_create.cc b/libcef/browser/browser_host_create.cc index f9aa59076..10a3a4e25 100644 --- a/libcef/browser/browser_host_create.cc +++ b/libcef/browser/browser_host_create.cc @@ -119,6 +119,10 @@ CefRefPtr CefBrowserHost::CreateBrowserSync( return nullptr; } + if (!request_context) { + request_context = CefRequestContext::GetGlobalContext(); + } + // Verify that the browser context is valid. auto request_context_impl = static_cast(request_context.get());