- All three implementations updated to include an IsDisposed check which
will simply return immediately
- OffScreen updated to match the WinForms behaviour
- WPF is more complex because of the initialAddress and Address properties
initialAddress will be set if the browser hasn't been created, if the browserCreated
has been created and OnAfterBrowserCreated hasn't been called then we'll set the Address
dependency property.
NOTE: For WinForms/OffScreen there's a small window
here between CreateBrowser and OnAfterBrowserCreated
where the Address prop will be updated, though LoadUrl
won't be called.
- FrameHandler now tracks frame creation and removal and reuses the IFrame reference
- CefFrameWrapper no longer throws exception if accessing Identifier for invalid frame, this appears
to be a valid use case now which makes sense otherwise we'd never be able to identify the frame.
Resolves#3588
- New event that is raised when an exception occurs during converting a response to JSON
- Test cleanup
- New unit test to validate IEventProxy has been removed from ConcurrentDictionary
Resolves#3787
- Only OnFrameCreated provides a heap managed IFrame reference
this should be sufficient to keep track of frames using a
Dictionary in FrameHandler
- Xml doc updates
- Reorder IFrameHandler methods
Issue #3588
* DevTools Client - Simplify Strongly Typed Event handling
Now it's only possible to register one System.Type per event.
- Remove RegisterEventHandler
- Add AddEventHandler and RemoveEventHandler
- Change constraint from DevToolsDomainEventArgsBase to EventArgs
https://github.com/cefsharp/CefSharp/issues/3666
* Changes were based on https://github.com/CefNet/CefNet.DevTools.Protocol
Add links to original source files
* Reset stream position
* AddEventHandler - Use GetOrAdd for Thread safety
* AddEventHandler - Fix double event handler registration for first call
* RemoveEventHandler - Remove IEventProxy when handler null
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.
* 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
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
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
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
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.
Core - Add LoadUrlAsync
- Add IWebBrowser.LoadUrlAsync
- Add LoadUrlAsyncResponse
- Update unit tests to use new method
- Add static method to allow for CefSharp.Wpf.HwndHost to share the same code.
- The Javascript methods that CefSharp provides in relation to JavaScript Binding are
created using a Global (window) Object. Settings this property allows you to disable
the creation of this object. Features like EvaluateScriptAsPromiseAsync that rely on
the creation of this object will no longer function.
There are cases where it's preferable to use the CefSharp specific version as
the Chromium implementation queries the registry. There are cases where
the CefSharp implementation differs from the Chromium implementation.
Remove Obsolete attribute, no current plans to remove the method.