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

WPF/OffScreen - Avoid ObjectDisposedException when browser is already disposed #4941

Closed campersau closed 1 month ago

campersau commented 1 month ago

Summary:

Changes:

How Has This Been Tested?
Manually. Unfortunately I wasn't able to create a test for it yet.

Screenshots (if appropriate): image

image

Types of changes

Checklist:

AppVeyorBot commented 1 month ago

:white_check_mark: Build CefSharp 128.4.90-CI5063 completed (commit https://github.com/cefsharp/CefSharp/commit/3c0908f894 by @campersau)

amaitland commented 1 month ago

Thanks 👍 Check seems sensible, hopefully that's enough, otherwise it'll have to be a catch (ObjectDisposedException