cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.88k stars 2.92k forks source link

After setting CefSharpSettings.RuntimeStyle = CefRuntimeStyle.Chrome;, there is a chance that a Chromium error popup will appear when loading the Line extension. #4923

Closed AB901 closed 2 months ago

AB901 commented 2 months ago

Is there an existing issue for this?

CefSharp Version

127.3.50

Operating System

Windows 11

Architecture

x64

.Net Version

.NET 6.0

Implementation

WinForms

Reproduction Steps

public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            CefSharpSettings.RuntimeStyle = CefRuntimeStyle.Chrome;
        }
    }
public partial class MainWindow : Window
    {
        ChromiumWebBrowser browser;
        public MainWindow()
        {
            InitializeComponent();
            var url = @"chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html";
            RequestContextSettings contextSetting = new RequestContextSettings()
            {
                CachePath = @"C:\Users\pc\Desktop\demo\demo_team\demo\bin\x64\Debug\net6.0-windows\data\chrome_user\user_data_1",

            };
            var requestContextBuild = RequestContext.Configure();
            requestContextBuild.WithSharedSettings(new RequestContext(contextSetting));
            browser = new ChromiumWebBrowser(url, requestContextBuild.Create());
            fromHost.Child = browser;
        }
    }

Expected behavior

When I set CefSharpSettings.RuntimeStyle = CefRuntimeStyle.Chrome; and load the Line extension, there is a chance that a Chrome error window will pop up with the error code: STATUS_ACCESS_VIOLATION.

Actual behavior

111

Regression?

No response

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Yes using WPF/OffScreen command line args

Other information

No response

amaitland commented 2 months ago

If you discover an issue with the Chrome Runtime then you need to raise the issue on the CEF ISSUE TRACKER

https://github.com/chromiumembedded/cef/issues

Then please post a link in https://github.com/cefsharp/CefSharp/issues/4835