Commit Graph

2050 Commits

Author SHA1 Message Date
Alex Maitland 1bc80fae65 Upgrade build version number to 91.1.160 2021-06-17 12:46:52 +10:00
Alex Maitland 754ec58145 DevTools Client - Update to Chromium 91.0.4472.101
No changes actual API changes.
2021-06-17 12:39:04 +10:00
Alex Maitland c1ef094953 DevTools Client - Fix Net Core build error 2021-06-10 16:17:45 +10:00
Alex Maitland 2f2ab2b9df DevTools Client - Update to Chromium 91.0.4472.77 2021-06-10 10:24:50 +10:00
Alex Maitland 41086fe2b1 Core - OwinResourceHandler RequestQueryString remove leading '?'
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
2021-06-05 14:15:17 +10:00
Alex Maitland 4eb94c4e3d AnyCPU - Add CefRuntime.SubscribeAnyCpuAssemblyResolver/LoadCefSharpCoreRuntimeAnyCpu
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.
2021-06-04 16:57:09 +10:00
Alex Maitland 23103cb6bb Core - IAudioHandler now implements IDisposable
IAudioHandler.Dispose is called when the ChromiumWebBrowser instance is being Disposed.

This is a breaking change.

Resolves #3598
2021-06-04 15:52:05 +10:00
Alex Maitland fecd7f49a4 Core - Update CefThreadIds enum
This is a breaking change

Resolves #3597
2021-06-04 15:31:28 +10:00
Alex Maitland f114528614 Enhancement - Add LoadUrlAsync (#3596)
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.
2021-06-04 13:35:42 +10:00
Alex Maitland e65aa52ba4 JavascriptBinding - Add JavascriptBindingSettings.JavascriptBindingApiEnabled property (#3571)
- 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.
2021-06-04 13:33:46 +10:00
Alex Maitland 19aebd40a5 Remove CefSharpSettings.LegacyJavascriptBindingEnabled
This is a breaking change

Resolves #3531
2021-06-04 12:46:22 +10:00
Alex Maitland 8df478afc9 Add Fluent DownloadHandler (#3576)
* Core - Add Fluent DownloadHandler implementation and IFrame.DownloadUrlAsync

Resolves #3550
2021-06-01 13:35:15 +10:00
Alex Maitland 1e13472d03 Upgrade build version number to 90.6.50 2021-05-16 14:32:37 +10:00
campersau cc7e73ed4a Core - Add TransitionType.DirectLoad enum value (#3551)
which was added in https://github.com/chromiumembedded/cef/commit/a141082b91c06979bbed2a6aba60708328400b33
2021-05-13 11:50:22 +10:00
Alex Maitland f81f2e1119 Core - Add Default Handler implementations
Inherit and override only the required methods rather than implement the whole interface
2021-05-11 20:25:21 +10:00
Alex Maitland 77c112a4ad DevTools Client - Upgrade to 90.6.5+g7a604aa+chromium-90.0.4430.93 / Chromium 90.0.4430.93 2021-05-11 11:57:35 +10:00
Alex Maitland 6efde818f6 Core - WebBrowserExtensions.LoadUrlWithPostData remove Obsolete attribute
No further reports of issues

#2705
2021-05-01 16:59:42 +10:00
Alex Maitland 691b099432 Core - ResourceHandler.GetMimeType remove Obsolete
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.
2021-05-01 16:59:41 +10:00
Alex Maitland 58369fad33 Core - Remove IContextMenuParams.IsPepperMenu
This is a breaking change

Resolves #3460
2021-04-23 17:14:53 +10:00
Alex Maitland 249c75a575 Core - Remove IBrowserSettings.WebSecurity
Web Security can be disabled via the "disable-web-security" command-line switch.

This is a breaking change.

Resolves #3312
2021-04-23 17:08:35 +10:00
Alex Maitland 38215a3230 Core - Remove ICookieManager.SetSupportedSchemes
- The method was removed upstream.
- New properties have been added to CefSettings and RequestContextSettings

**Breaking Change**

Resolves https://github.com/cefsharp/CefSharp/issues/3497
2021-04-23 17:00:21 +10:00
Alex Maitland bd6351fa1c Core - Update DependencyChecker as CEF has changed pak files
cef.pak,
cef_100_percent.pak,
cef_200_percent.pak,
cef_extensions.pak,
devtools_resources.pak have been replaced by

chrome_100_percent.pak,
chrome_200_percent.pak,
resources.pak

https://github.com/cefsharp/CefSharp/issues/3509#issuecomment-821756091
2021-04-23 16:36:10 +10:00
Alex Maitland 22ef1bdc39 Core - Add IRequestContext.SetProxyAsync
Can be called on any Thread to change the proxy at runtime
2021-04-23 16:36:10 +10:00
campersau fb54f103c4 DevTools Client - Serialize lists of DevToolsDomainEntityBase (#3487) 2021-04-23 16:35:55 +10:00
Dominik Palo 4ebe691bb8 Update the CefSharpSettings.WcfEnabled summary (#3483) 2021-04-23 16:35:54 +10:00
Alex Maitland b75cec752c Core - Add IRequestContext.IsDisposed 2021-04-06 16:39:53 +10:00
Alex Maitland 5bf6107963 Core - Add RequestContextExtensions.RegisterOwinSchemeHandlerFactory 2021-04-05 14:37:39 +10:00
Alex Maitland a257cd5828 Core - Add OwinResourceHandler and OwinSchemeHandlerFactory
Very basic implementation ported from https://github.com/amaitland/CefSharp.Owin

- Currently no multi part post support
- No support for cancellation token
2021-04-05 14:31:35 +10:00
Alex Maitland 047bf9198b DevTools Client - Update to CHROMIUM 89.0.4389.114 2021-04-05 10:55:04 +10:00
pedoc 1ff25441ea Javascript Binding - Allow binding to classes in the global namespace (#3467)
* fix IsComplexType NullReferenceException

Sometimes, the registered Javascript object does not have a namespace, at this time this function will throw a ```NullReferenceException```.

* add unit test for IsComplexType

* Simplify and remove useless code

* Update CefSharp/Internals/JavascriptObjectRepository.cs

Co-authored-by: campersau <buchholz.bastian@googlemail.com>

Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com>
Co-authored-by: campersau <buchholz.bastian@googlemail.com>
2021-04-05 10:31:15 +10:00
Alex Maitland 18790d1ca9 Update build version numbers to 89.0.170 2021-04-05 10:30:48 +10:00
Alex Maitland 1692c1b9d1 Net Core - DependencyChecker fix AnyCPU validation for CefSharp.Core.Runtime.dll
Resolves #3388
2021-03-27 15:17:01 +10:00
Alex Maitland fb5a6a00d8 Core - DependencyChecker now supports AnyCPU
- Remove the .Net Core specific implementation, was easier to unify them than first though
- Split checking for dlls into different folders to support AnyCPU
2021-03-23 15:14:46 +10:00
Alex Maitland 1011f727ee Net Core - Add DependencyChecker.netcore
Specific .Net core DependencyChecker that takes care of the specifics of running under .Net Core/.Net 5.0
Later on the DependencyChecker can be unified.

Issue #3388
2021-03-23 10:37:01 +10:00
Alex Maitland 2a697ee694 Core - Fix xml doc 2021-03-16 15:29:21 +10:00
Alex Maitland 3df8a59ac4 DevTools Client - Upgrade to 89.0.4389.72 2021-03-16 15:29:20 +10:00
Alex Maitland bb56e899e4 Xml Doc - Fix cref 2021-03-16 15:28:32 +10:00
Alex Maitland 099abefbea Net Source - Add SourceLink support
- The Debug PDBs will now use SourceLink
- The C++/CLI projects will use SourceLink
- CefSharp.Core.dll now generates/uses a ref assembly
- The managed (c#) projects still embed sources/symbols for Release builds

At some point we should investigate generating a snupkg to reduce the dll size
2021-03-16 15:28:31 +10:00
Alex Maitland 1f72e1820a Javascript Binding - ClientAdapter.MethodInvocationComplete NRE
Resolves #3443
2021-03-12 11:59:51 +10:00
Alex Maitland f554571dd1 Core - Remove RefAssembly Generation from Net452 packages
- They're not generated under VS2015 (AppVeyor) so didn't end up using them
2021-03-11 15:23:00 +10:00
Alex Maitland c98568d7e3 Upgrade build version to 88.2.90 2021-03-05 09:30:20 +10:00
Alex Maitland 14291d105c DevTools Client - Upgrade to 88.0.4324.182
Only a version number bump, no changes
2021-02-26 13:51:46 +10:00
Alex Maitland 7b76d6ebdf DevTools Client - Add custom mapping for DisabledImageType[]
Newly added type to the protocol
2021-02-26 13:51:04 +10:00
Alex Maitland cd0a1a30d8 DevTools Client - Update generated code to Chromium 88.0.4324.146 2021-02-26 13:51:03 +10:00
Alex Maitland 2fa16ff29a WinForms/WPF/OffScreen - Improve Cef.Initialize failed error message.
Direct user to check log file as the underlying CefInitialize call doesn't return an error message.
Errors are only available through the logs.
2021-02-26 12:15:41 +10:00
Alex Maitland 4af75b87ac Core - Fix xml doc 2021-02-25 20:36:28 +10:00
Alex Maitland 1ea6c46163 Javascript Callback - Add very basic support for executing a Promise
It's a manual process at this stage and requires the end user to deal to:
- Return "CefSharpDefEvalScriptRes" immediately after the promise function has been created
- Call cefSharp.sendEvalScriptResponse when the async/await (promise) processing has completed
2021-02-25 20:36:24 +10:00
Alex Maitland 47cf10ada8 Core - DependencyChecker add CefSharp.Core.Runtime to list of required files
- Should have been added as part of #3319
- Remove CefSharp.Core.dll from BrowserSubprocessDependencies as it's not required for the BrowserSubprocess
2021-02-05 15:00:16 +10:00
Alex Maitland 1661b2f955 Upgrade to CEF 88.2.1+g0b18d0b+chromium-88.0.4324.146 / Chromium 88.0.4324.146 2021-02-05 15:00:16 +10:00
Alex Maitland 35c997f268 Core - Make LegacyJavascriptBindingEnabled obsolete
Will likely be removed in the future as it's been replaced.
Setting after creating your ChromiumWebBrowser instance also doesn't work

Issue https://github.com/cefsharp/CefSharp/issues/2977
2021-02-03 10:04:38 +10:00