* Make ExecuteDevToolsMethodAsync generic
* Make RegisterEventHandler generic
* PR feedback and added test for registering multiple event handlers
* Updated generated code to latest version
* Fix possible NRE when removing event listener before adding one
- Reinstall nuget packages to retarget to net472
This brings the branch inline with current `master` and will make it easier to cherry pick CEF update commits
This was added as a workaround for Issue #3715 which is specific to WinForms
and will hopefully be fixed upstream.
I've added the logic to all three implementations as I think the behaviour should be
consistent across all implementations.
One final attempt to workaround https://github.com/dotnet/project-system/issues/4158
The None/Content entries aren't picked up as the .targets file doesn't exist before the Nuget restore (only when using packages.config)
Attempt to copy the files via calling CefRedist32CopyResources/CefRedist64CopyResources tasks.
Properties aren't accessible, I believe that tasks should be, so hopefully this copies the files.
Build actions like Publish are very unlikely to work correctly as the files won't have been included via the <Content/> entries.
On Nuget restore the CefRedist32/CefRedist64 properties aren't accessible until after the project has been closed
and reopened. (Think clean checkout where the packages folder doesn't exist).
The Targets behave different and can be called, so this works around the problem.
Includes various other DevTools fixes:
- JavaScript "number"s are represented as doubles instead of longs
- Headers are now correctly serialized / deserialized
- DevToolsDomainErrorResponse is now correctly deserialized
CancelComposition is now private as it's not used outside the scope of the class. Technically this is a breaking change
though it's incredibly unlikely this method was used outside the scope of WpfImeKeyboardHandler as it requires
the Hwnd which is obtained from the SourceHook which is private.
We can and probably should make most of the private methods protected virtual to allow for overriding of just a small
portion of the class, you currently can copy and paste the whole class into your own code base if small changes are required.
#3690
Upstream changes mean that extraInfo can now be null (https://bitbucket.org/chromiumembedded/cef/issues/3123/convert-legacy-ipc-messages-to-mojo)
We currently only send extra Info for the main browser and not for popups.
Assign the _jsBindingPropertyName/_jsBindingPropertyNameCamelCase properties
by default and only update when the user has specified their own name.
It's not currently possible to have different naming in the same render process (was previously the case).
Issue #3670
When using Non SDK Stlye project with PackageReference and publishing with ClickOnce the CefSharp.Core.Runtime.*
files were missing from the installer.
Far as I can tell ClickOnce publishing isn't supported for SDK Style projects so just disable for PackageReference for now
https://github.com/cefsharp/CefSharp/discussions/3613#discussioncomment-913061
When ConcurrentMethodRunnerQueue.Dispose is called from a different thread it appears that
the CancellationTokenSource is cancelled (via Dispose) inbetween creation of the Task
and calling Task.Start(TaskScheduler).
Switch from using Task constructor and Task.Start to the preferred Task.Run method.
Added additional unit tests.
Issue #3639
* WPF - Add support for Shift+AltGr
The handling of AltGr characters in CefBrowsterHostWrapper did not cover capital diacritic letters. This commit adds handling for the Shift + AltGr + character combination.
* WPF - Shift+AltGr review fixes
* Trigger rebuild
Uri.Query returns the leading '?', as per the OWIN spec the leading '?' needs to be removed
owin.RequestQueryString | A string containing the query string component of the HTTP request URI, without the leading "?" The value may be an empty string.
Issue https://github.com/amaitland/Chromium.AspNetCore.Bridge/issues/7
- ChromiumHostControl Add On OnVisibleChanged override
- ChromiumHostControl reorder OnSizeChanged so resize
happens before event for consistency
Follow up to #2922
Simplify using CefSharp when targeting AnyCPU, it's now possible to include this as library code
now that CefSharp.dll targets AnyCPU.
There is no .Net Core/.Net 5.0 implementation of this class as the CefSharp.Core.Runtime.dll
is already loaded dynamically based on architecture.
- Call CefRuntime.LoadCefSharpCoreRuntimeAnyCpu to immediately load the CefSharp.Core.Runtime.dll
and all dependant resources will be loaded based on this instance
- Call LoadCefSharpCoreRuntimeAnyCpu.SubscribeAnyCpuAssemblyResolver to use load assembly
when required.