diff --git a/CefSharp.Example/CefExample.cs b/CefSharp.Example/CefExample.cs index 04645f15f..f5ba6344a 100644 --- a/CefSharp.Example/CefExample.cs +++ b/CefSharp.Example/CefExample.cs @@ -161,10 +161,6 @@ public static void Init(CefSettingsBase settings, IBrowserProcessHandler browser //settings.LogSeverity = LogSeverity.Verbose; - //Experimental setting see https://github.com/chromiumembedded/cef/issues/2969 - //for details - //settings.ChromeRuntime = true; - if (DebuggingSubProcess) { var architecture = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(); diff --git a/CefSharp.OffScreen.Example/Program.cs b/CefSharp.OffScreen.Example/Program.cs index 1e0c8a525..4efbbd9f2 100644 --- a/CefSharp.OffScreen.Example/Program.cs +++ b/CefSharp.OffScreen.Example/Program.cs @@ -35,7 +35,6 @@ public static int Main(string[] args) Cef.EnableWaitForBrowsersToClose(); var settings = new CefSettings(); - settings.ChromeRuntime = true; //The location where cache data will be stored on disk. If empty an in-memory cache will be used for some features and a temporary disk cache for others. //HTML5 databases such as localStorage will only persist across sessions if a cache path is specified. settings.CachePath = Path.GetFullPath("cache"); diff --git a/CefSharp.OffScreen/CefSettings.cs b/CefSharp.OffScreen/CefSettings.cs index 1a95225bc..d78d30353 100644 --- a/CefSharp.OffScreen/CefSettings.cs +++ b/CefSharp.OffScreen/CefSettings.cs @@ -16,6 +16,7 @@ public class CefSettings : CefSettingsBase public CefSettings() : base() { WindowlessRenderingEnabled = true; + ChromeRuntime = true; //For OffScreen it doesn't make much sense to enable audio by default, so we disable it. //this can be removed in user code if required diff --git a/CefSharp.Test/CefSharpFixture.cs b/CefSharp.Test/CefSharpFixture.cs index b8f8f29c6..275b20bde 100644 --- a/CefSharp.Test/CefSharpFixture.cs +++ b/CefSharp.Test/CefSharpFixture.cs @@ -56,7 +56,6 @@ private void CefInitialize() //HTML5 databases such as localStorage will only persist across sessions if a cache path is specified. settings.CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Tests\\Cache"); settings.RootCachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Tests"); - settings.ChromeRuntime = true; //settings.CefCommandLineArgs.Add("renderer-startup-dialog"); //settings.CefCommandLineArgs.Add("disable-site-isolation-trials"); diff --git a/CefSharp.WinForms.Example/Program.cs b/CefSharp.WinForms.Example/Program.cs index 098f4ad00..67366a48f 100644 --- a/CefSharp.WinForms.Example/Program.cs +++ b/CefSharp.WinForms.Example/Program.cs @@ -41,7 +41,6 @@ public static int Main(string[] args) var settings = new CefSettings(); settings.BrowserSubprocessPath = System.IO.Path.GetFullPath("CefSharp.WinForms.Example.exe"); - settings.ChromeRuntime = true; Cef.Initialize(settings); @@ -96,7 +95,6 @@ public static int Main(string[] args) var settings = new CefSettings(); settings.MultiThreadedMessageLoop = multiThreadedMessageLoop; settings.ExternalMessagePump = externalMessagePump; - settings.ChromeRuntime = true; CefExample.Init(settings, browserProcessHandler: browserProcessHandler); diff --git a/CefSharp.WinForms/CefSettings.cs b/CefSharp.WinForms/CefSettings.cs index 050f91b2d..e0731eb79 100644 --- a/CefSharp.WinForms/CefSettings.cs +++ b/CefSharp.WinForms/CefSettings.cs @@ -10,5 +10,12 @@ namespace CefSharp.WinForms /// public class CefSettings : CefSettingsBase { + /// + /// Intialize with default values + /// + public CefSettings() : base() + { + ChromeRuntime = true; + } } } diff --git a/CefSharp.Wpf.Example/App.xaml.cs b/CefSharp.Wpf.Example/App.xaml.cs index 817b53d62..23eba51f9 100644 --- a/CefSharp.Wpf.Example/App.xaml.cs +++ b/CefSharp.Wpf.Example/App.xaml.cs @@ -41,7 +41,6 @@ protected override void OnStartup(StartupEventArgs e) var settings = new CefSettings(); settings.MultiThreadedMessageLoop = multiThreadedMessageLoop; settings.ExternalMessagePump = !multiThreadedMessageLoop; - settings.ChromeRuntime = true; CefExample.Init(settings, browserProcessHandler: browserProcessHandler); diff --git a/CefSharp.Wpf/CefSettings.cs b/CefSharp.Wpf/CefSettings.cs index f9d3af16e..db895d2de 100644 --- a/CefSharp.Wpf/CefSettings.cs +++ b/CefSharp.Wpf/CefSettings.cs @@ -16,6 +16,7 @@ public class CefSettings : CefSettingsBase public CefSettings() : base() { WindowlessRenderingEnabled = true; + ChromeRuntime = true; //Disable multithreaded, compositor scrolling of web content //With OSR rendering it's fairly common for this to improve scrolling performace