), which can supposedly be avoided by passing the "--no-proxy-server" switch to CEF.
CefRuntime.Load();
var codeBase = Path.GetDirectoryName(new Uri(Assembly.GetEntryAssembly().CodeBase).LocalPath);
var settings = new CefSettings
{
Locale = "en-US", // Always use the en-US locale to avoid having to pack additional locales.
CachePath = null, // Use an in-memory cache.
MultiThreadedMessageLoop = true,
LocalesDirPath = codeBase, // en-US.pak is included on the same folder as the binaries.
BrowserSubprocessPath = Path.Combine(codeBase ?? string.Empty, RenderSubProcessPathBinary),
SingleProcess = false,
ReleaseDCheckEnabled = false,
LogSeverity = CefLogSeverity.Disable,
};
var app = new BrowserApp(_startUrl);
var args = new CefMainArgs(new[] { "--no-proxy-server" });
var exitCode = CefRuntime.ExecuteProcess(args, app);
if (exitCode != -1)
throw new InvalidOperationException("Unable to execute CEF.");
CefRuntime.Initialize(args, settings, app);
[0813/120731:VERBOSE1:pref_proxy_config_tracker_impl.cc(145)] 074B1B40: set chrome proxy config service to 074B15A0
[0813/120731:VERBOSE1:pref_proxy_config_tracker_impl.cc(235)] 074B1B40: Done pushing proxy to UpdateProxyConfig
Which I guess means that CEF is trying to do _something_ with proxies ;). Do we need to pass the --no-proxy-server switch in some other place? Maybe OnBeforeChildProcessLaunch, or in the OnBeforeCommandLineProcessing of the Render process?
Thanks!