Skip to content

Crash on Dispose when Alert is open #5226

@EricPRHC

Description

@EricPRHC

Is there an existing issue for this?

CefSharp Version

145.0.260

Operating System

Windows 11

Architecture

x86

.Net Version

4.8

Implementation

WPF

Reproduction Steps

Using the minimal WPF example;
Start the application and type in the url javascript:alert()
Click the newly added button (below).

Code
MainWindow.xaml
<Button Content="Btn" Click="ButtonBase_OnClick"/>
MainWindow.xaml.cs

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            Browser.Dispose();
        }

Expected behavior

Not to crash and dispose properly.

Actual behavior

The application crashes instantly.

Regression?

Yes, but verified that it already doesn't seem to work in 140.1.140 either (I checked it bc a related issue mentioned this version).

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Yes using WPF minimal example

Other information

Dump:

a1b90fbd-6883-4050-ba48-471dc1b7eb55.dmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions