diff --git a/libcef/browser/browser_host_impl.cc b/libcef/browser/browser_host_impl.cc index 599e2c853..97cd97813 100644 --- a/libcef/browser/browser_host_impl.cc +++ b/libcef/browser/browser_host_impl.cc @@ -268,6 +268,12 @@ CefRefPtr CefBrowserHost::CreateBrowserSync( create_params.window_info.reset(new CefWindowInfo(windowInfo)); create_params.client = client; create_params.url = GURL(url.ToString()); + if (!url.empty() && + !create_params.url.is_valid() && + !create_params.url.has_scheme()) { + std::string new_url = std::string("http://") + url.ToString(); + create_params.url = GURL(new_url); + } create_params.settings = settings; create_params.request_context = request_context;