* OffScreen - Fix ResizeAsync with deviceScalingFactor
* OffScreen - Fix CaptureScreenshotAsync Width / Height calculation to include X and Y
Always apply Scale changes
- The methods in CefResourceRequestHandlerAdapter previously passed on a scoped instance of
IBrowser which would have been disposed when the method was executed. This made it very
difficult to use the callback in OnBeforeResourceLoad so now we check to see if we
already have an IBrowser instance with the matching Id and only use a scoped instance
if we don't have a match.
- Add new CreatePopupChromiumHostControl delegate which can be passed to
LifeSpanHandler.Create to create a new ChromiumHostControl instance.
You can create a class that inherits from ChromiumHostControl and add
additional functionality.
LifeSpanHandler
.Create(() =>
{
return new ChromiumHostControl
{
Dock = DockStyle.Fill
};
})
- Updated example error handlers to use SetMainFrameDocumentContentAsync for displaying error messages
so back/forward navigation works correctly.
- DevToolsExtensions updated to use IChromiumWebBrowserBase instead of IWebBrowser so they're usable
for WinForms hosted popups
Issue #2985
- 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.