- Will now work with Debug/Release builds correctly
TODO: Still needs to deal with x64/x86 variants properly, currently it uses x86 first if exists, then falls back to x64
If both exist then x86 is used regardless which might not always be correct.
When CefSharpTargetDir is specified for x86/x64 platforms the files are included in a sub directory,
the CefSharp.dll file required by the BrowserSubProcess isn't copied by default and won't start, so we include an extra
- SdkStyle(PackageReference) projects now default to CefSharpBuildAction Content
- CefSharpTargetDir is now empty by default instead of a `.` and a trailing slash appended if required
- Add an UnWrap method to the interfaces (should be hidden from IntelliSense)
- For .Net 4.5.2 projects they're not a decorator class which an inner instance of the CefSharp.Core.Runtime Type
- For Net Core we have a ref assembly which allows us to reference the CefSharp.Core.Runtime without issues
We can potentially remove the ref assembly now and forgo any direct reference.
- When settings BrowserSettings/RequestContext properties the type checking needs to make sure the
CefSharp.Core.BrowserSettings and CefSharp.BrowserSettings objects are acceptable
- In WPF only the RequestContext was updated as there's no check for BrowserSettings property yet (probably should be)
https://github.com/cefsharp/CefSharp/issues/3343#issuecomment-757581368
Core - Add IAsyncMethodInterceptor
- Add IAsyncMethodInterceptor
Extension of IMethodInterceptor to allow for easier evaluation of async taskScheduler
- Add Additional unit tests
- Add JavascriptBindingSettings.AlwaysInterceptAsynchronously for cases where you'd like all method calls to use
IAsyncMethodInterceptor.InterceptAsync
Follow up to PR #3291
Co-authored-by: Andrew Sampson <andrew@rainway.com>
Co-authored-by: Emily Hudson <emily33901@gmail.com>
When attempting to use two DevTools Client instances the message Id
fails validation as it's not incrementing per CefBrowser instance.
This should be made unique per CefBrowser
Issue #3341 has been created to document improving this.
For ClickOnce specifying <CefSharpBuildAction>Content</CefSharpBuildAction> in your project file
before the .targets file should allow for resources to be included in your ClickOnce installer.
The default None copies files to a dependant project, say you have CefSharp installed in your
Class library, the files will be included in projects that directly reference this project file
(Only one level deep).
Same as the Content/None options listed at
https://docs.microsoft.com/en-us/visualstudio/ide/build-actions?view=vs-2019#build-action-values
Issue #3319
I don't have a full stack trace or a means to reproduce the actual problem, to date there have been only two reported cases.
This is a speculative fix, adds some extra null checks and a dispose check. Basically being a little more defensive.
Some of the code is duplicated in the hopes of one day refactoring out so each message has a different method/class
Issue #3322
**This is a breaking change**
- CefSharp.Core.CefSettingsBase is now disposed when calling Cef.Initialize
- CefSharpApp was refactored to no longer need a reference to CefSettingsBase so it can be disposed
Resolves#3220
Instead of calling on the CEF Thread we are current on in OnProcessMessageReceived
use Task.Run to execute the event on the ThreadPool.
Instances of users calling MessageBox.Show and also problems with with uncaught exceptions
on the CEF thread.