OutSystems / CefGlue

.NET binding for The Chromium Embedded Framework (CEF)
MIT License
277 stars 41 forks source link

Crash when type something in youtube search line #182

Closed Switch0621 closed 2 weeks ago

Switch0621 commented 2 weeks ago

Hi all! CefGlue.Avalonia.Demo (WIN10 x64) in Debug and Debug_WindowlessRender is crashing when i trying to type something in youtube search. Besides it's crashing when i set cariet into input field of youtube search line.

sakya commented 2 weeks ago

Try to disable the feature FirstPartySets using a flag when initializing CEF

            AppBuilder.Configure<App>()
                      .UsePlatformDetect()
                      .With(new Win32PlatformOptions())
                      .AfterSetup(_ => CefRuntimeLoader.Initialize(new CefSettings() {
                          RootCachePath = cachePath,
#if WINDOWLESS
                          // its recommended to leave this off (false), since its less performant and can cause more issues
                          WindowlessRenderingEnabled = true
#else
                          WindowlessRenderingEnabled = false
#endif
                      },
                      customSchemes: new[] {
                        new CustomScheme()
                        {
                            SchemeName = "test",
                            SchemeHandlerFactory = new CustomSchemeHandler()
                        }
                      },
                      flags: [ new KeyValuePair<string, string>("disable-features", "FirstPartySets") ]))
                      .StartWithClassicDesktopLifetime(args);

It's related to this issue https://github.com/chromiumembedded/cef/issues/3643

joaompneves commented 2 weeks ago

Can someone open a PR?