**BREAKING CHANGE**
- You must now explicitly specify the `isAsync` param.
- Add additional xml doc comment regarding .Net Core and using only isAsync = true
The isAsync = false option (sync binding) requires WCF which isn't available on .Net core, remove the default value so you are forced to specify an option and in the process hopefully read the documentation.
For those who previously hadn't provided a param then simply pass in false for the third argument.
e.g.
browser.JavascriptObjectRepository.Register("bound", new BoundObject(), false);
Resolves#3016
- Callback is executed after the store is ready.
- CookieManagerDecorator added (not yet used), will look at providing the user with clearer feedback
that the store isn't ready, quite often people attempt to get/set cookies when the manager just isn't ready
TODO: Add tests for CookieManagerDecorator and add an overload that uses it
- Add ClearHttpAuthCredentialsAsync extension
- Make IRequestContext.ClearHttpAuthCredentials callback param default to null
NOTE: Calling IRequestContext.ClearHttpAuthCredentials without a callback is crashing, appears to be a bug in CEF.
Issue #2957
WARNING: This method will fail with "bad IPC message" reason
INVALID_INITIATOR_ORIGIN (213) unless you first navigate to the
request origin using some other mechanism (LoadURL, link click, etc).
Resolves#2932
* BrowserSubprocess - Refactor to support .Net Core
- Added BrowserSubprocessExecutable for use with .Net Core (no WCF)
- Added WcfBrowserSubprocessExecutable for use with the existing CefSharp.BrowserSubprocess.exe which supports WCF (conditionally)
* Add additional comments and minor code simplification
* Core - Add IURLRequest #1721
Add IURLRequest, IURLRequestClient, and GetURLRequest to IFrame
* Rename URL classes to Url, add xmldoc and licenses
* Add UrlRequestClient to CefSharp.Example, more minor cleanup
* Getters
* Rebase tweaks
* Fix filenames, remove unused
* Use UnmanagedMemoryStream instead of byte array for IUrlRequestClient.OnDownloadData
Previously only IDictionary<string, object>, IList<object> were passed, now all params are passed to allow for type conversion (Issue #2906)
Binding now occurs before missing params are added (they weren't passed to the binder previously, so this doesn't change the behaviour
This is a breaking change.
Resolves#2908
- ConcurrentMethodRunnerQueue we now directly queue tasks on TaskScheduler.Default
- MethodRunnerQueue now uses LimitedConcurrencyLevelTaskScheduler (example from Microsoft) to limit execution to one concurrent task
- MethodRunnerQueue tasks are now run on the ThreadPool directly instead of our own custom thread, should have some threading implications
for user
- IMethodRunnerQueue now implements IDisposable
Resolves#2873
Adding multiple entries to CefSettings.RegisterScheme that share the same scheme name
yet have different domain/schemehandlerfactory implementations is valid.
We will only register the first set of SchemeName/SchemeOption values (first call to RegisterScheme).
Hopefully this makes it clearer that the IWebBrowser instance is actually the ChromiumWebBrowser
Updated almost all instances, there's one WinForms example that wasn't updated
JsonString is parsed into CefValue using the CefParseJson function
If your data is already stored in JSON then it can be parsed directly
or you can use a serializer of your choosing to turn a object into JSON