- If you were to remove the ChromiumHostControl from it's parent Control and manually call Dispose()
then the underlying CefBrowser wouldn't have been closed until the parent ChromiumWebBrowser is
Disposed (all popups are disposed)
- Rewrite to directly use BrowserCore checking for null and IsDisposed to
avoid exceptions if at all possible.
- Check MainFrame.IsValid
As yet I've not seen a way to reproduce the actual problem, single reported case
so far at https://github.com/TV-Rename/tvrename/issues/862
- Change to 0x200 which is low end of 'Application reserved "in between" shutdown range.'
- Remove logging as it wasn't working, must be too early to use the LOG(INFO) CEF macro
Test with a GetProcessShutdownParameters in debugger shows working e.g.
if (SetProcessShutdownParameters(0x200, SHUTDOWN_NORETRY))
{
DWORD level = 0;
DWORD flags = 0;
GetProcessShutdownParameters(&level, &flags);
}
Issue #3155
Opening either solution in VS2022 should no longer prompt to upgrade VC++ version/Win10 SDK.
Having both VS2019 and VS2022 installed might be a problem if VS2022 doesn't have the required components installed.
Update .vsconfig Win10 SDK version to 19041 (same as Chromium requires for build)
- Add IChromiumWebBrowserBase which is can be used for ChromiumWebBrowser instances and ChromiumHostControl
- Reduce code duplication for extensions methods
- Update WinForms Example
- Create ChromiumHostControlBase as common base class for ChromiumHostControl and ChromiumWebBrowser
- ChromiumHostControl is now the specific implementation for hosting popups
Has AddressChanged, LoadingStateChanged, etc events
- Can now access the IBrowser property via ChromiumHostControl.BrowserCore
- The ChromiumHostControl.IsBrowserInitialized event will be raised when
the underlying CEF browser has been created.
- Remove url optional null, a Url is now required and an exception will be
thrown if null or empty. If the browser wasn't loading an null was passed
in then the task would have never resolved. This provides a predictable behaviour.
A new WaitForInitialLoadAsync method was added to simplify waiting for initial
browser load.
- Remove SynchronizationContext param, best to let the framework handle
Issue #3842
- Initial intention was to have a reusable method that could be used CefSharp.Wpf.HwndHost,
upon further deliberation I've decided to build the functionality into the ChromiumWebBrowser.Partial.cs
and will need to duplicate the functionality in CefSharp.Wpf.HwndHost. This guarantees that the
Task will be resolved in all cases. The previous implementation there was a theoretical change we'd
miss subscribing to the relevant events
- Remove CancellationToken as it's not possible to cancel
Issue #3842
- CEF doesn't differentiate between UINT and INT
so we have to do some additional bounds checking
To make sure the correct value is returned
- Add xUnit tests
Issue #3858
- GlobalContextInitialized wraps a TaskCompletionSource which is resolved
when the Global CefRequestContext has been created
- Reduce code duplication
If successful we can apply the same changes to WinForms/WPF though they're less likely to have
issues than the OffScreen implementation as the CreateBrowser doesn't happen until much later
Issue #3850#3634
- InitializeAsyncBrowserProcessHandler is used to complete the taskCompletionSource
when OnContextInitialized is called
- Update the OffScreen example to be async with a simply SingleThreadSynchronizationContext
to ensure we continue on our main thread.
Issue #3634