mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
c2206b4836
Some of the upstream issues have been resolved https://github.com/chromiumembedded/cef/issues/3822 https://github.com/chromiumembedded/cef/issues/3826
44 lines
1.7 KiB
C#
44 lines
1.7 KiB
C#
// Copyright © 2018 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
namespace CefSharp.Wpf
|
|
{
|
|
/// <summary>
|
|
/// Initialization settings. Many of these and other settings can also configured
|
|
/// using command-line switches.
|
|
/// </summary>
|
|
public class CefSettings : CefSettingsBase
|
|
{
|
|
/// <summary>
|
|
/// Intialize with default values
|
|
/// </summary>
|
|
public CefSettings() : base()
|
|
{
|
|
WindowlessRenderingEnabled = true;
|
|
|
|
//Disable multithreaded, compositor scrolling of web content
|
|
//With OSR rendering it's fairly common for this to improve scrolling performace
|
|
//https://peter.sh/experiments/chromium-command-line-switches/#disable-threaded-scrolling
|
|
//CefCommandLineArgs.Add("disable-threaded-scrolling");
|
|
|
|
// CEF doesn't call GetAuthCredentials unless
|
|
// the Chrome login prompt is disabled
|
|
// https://github.com/chromiumembedded/cef/issues/3603
|
|
CefCommandLineArgs.Add("disable-chrome-login-prompt");
|
|
|
|
// Disable "Restore pages" popup after incorrect shutdown
|
|
// https://github.com/chromiumembedded/cef/issues/3767
|
|
CefCommandLineArgs.Add("hide-crash-restore-bubble");
|
|
|
|
// Browser not correctly refreshing on Resize
|
|
// https://github.com/cefsharp/CefSharp/issues/4953
|
|
//CefCommandLineArgs.Add("disable-gpu-compositing");
|
|
|
|
// Disable the back-forward cache
|
|
// https://github.com/cefsharp/CefSharp/issues/4621
|
|
CefCommandLineArgs.Add("disable-back-forward-cache");
|
|
}
|
|
}
|
|
}
|