Commit Graph

5767 Commits

Author SHA1 Message Date
Alex Maitland 8df478afc9 Add Fluent DownloadHandler (#3576)
* Core - Add Fluent DownloadHandler implementation and IFrame.DownloadUrlAsync

Resolves #3550
v90.6.70
2021-06-01 13:35:15 +10:00
Alex Maitland 6e54aea8bc WPF - Update NotifyDpiChange xml doc to clarify allowed values.
Resolves #3561
2021-06-01 13:30:50 +10:00
Alex Maitland 5c447266a6 Upgrade to CEF 90.6.7+g19ba721+chromium-90.0.4430.212 / Chromium 90.0.4430.212 2021-05-29 12:01:44 +10:00
Alex Maitland 28b10a7450 OffScreen - Add ChromiumWebBrowser constructor overload with onAfterBrowserCreated delegate
Use the constructor overload as an alternative to the BrowserInitialized event

Follow up to #3552
2021-05-22 13:48:30 +10:00
Alex Maitland 015d865aad OffScreen - Clarify BrowserInitialized may not be called if Browser created automatically
Resolves #3552
2021-05-22 13:46:26 +10:00
Alex Maitland 2e8751665b Core - ClientAdapter::OnProcessMessageReceived add nullptr checks
Follow up to https://github.com/cefsharp/CefSharp/discussions/3573
2021-05-20 10:18:21 +10:00
Alex Maitland 58af002de9 WPF Example - Implement DisplayHandler.OnFullscreenModeChange
- Use the new CefSharp.Handler.DisplayHandler base class
- Update xaml so ChromiumWebBrowser has direct reference to DataContext
- When fullscreen create new window and move the browser, move back when exit fullscreen
2021-05-16 16:27:46 +10:00
Alex Maitland 1e13472d03 Upgrade build version number to 90.6.50 2021-05-16 14:32:37 +10:00
Alex Maitland 7989023bd3 Test - Add OffScreen CanLoadMultipleBrowserInstancesSequentially
Create/Dispose of 1000 OffScreen ChromiumWebBrowser instances

Issue #3552
2021-05-14 13:54:47 +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 f8433de4e4 Test - CachePath should be child of RootCachePath v90.6.50 2021-05-12 10:59:18 +10:00
Alex Maitland 9376a799eb WPF - Allow overriding of IRenderWebBrowser.OnPopupSize and IRenderWebBrowser.OnPopupShow 2021-05-12 10:42:56 +10:00
Alex Maitland e4c585609e WinForms - Add ChromiumRenderWidgetHandleFinder/ChromiumWidgetNativeWindow
Used to hook the low level HWND and get message (e.g. mouse messages)

Updated the example
2021-05-11 20:39:14 +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 0de0244a54 WinForms - Allow setting of Focus before underlying CEF browser has been initialized 2021-05-10 15:33:43 +10:00
Alex Maitland 530a14399c WPF - Allow setting Focus before the underlying browser has been initialized.
- Remove hacks from the ViewModel as Focus can now be set on Go().
- Creating a new viewmodel also sets focus

Changing tabs doesn't set focus currently.
2021-05-10 15:15:26 +10:00
Alex Maitland 8683702803 Core - IJavascriptCallback need additional null check in ClientAdapter::GetBrowserWrapper
IJavascriptCallbacks that are finalized after the browser has been Disposed
but before the IBrowserAdapter.IsDisposed is set might end up calling ClientAdapter::GetBrowserWrapper
which attempts to access _popupBrowsers which has been set to null already.
2021-05-10 15:10:32 +10:00
Alex Maitland 41f0ef3151 Upgrade build version to 90.6.50 2021-05-08 14:17:23 +10:00
Alex Maitland 94ed263da7 Core - Update CefSettingsBase.ProductVersion
Change to use the user_agent_product property, as this is a breaking change and the `90-pre` release has already happened
wait we won't rename the property until version 91

https://bitbucket.org/chromiumembedded/cef/commits/02ae4597d8b6c895e46891a7596cf5fa1fe15df8#Linclude/internal/cef_types.hT309

Issue #3530
2021-05-08 14:16:17 +10:00
Alex Maitland 4a0fb32edd Upgrade to CEF 90.6.5+g7a604aa+chromium-90.0.4430.93 / Chromium 90.0.4430.93 2021-05-08 14:01:51 +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 82daa955a2 Net Core - ModuleInitializer add null check for Assembly.Location
In .NET 5.0 and later versions, for bundled assemblies, Assembly.Location is an empty string.
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.location?view=net-5.0
Which results in Path.GetDirectoryName returning null, in that case use use AppContext.BaseDirectory
otherwise Path.Combine will throw an exception.
In .NET 5.0 and later versions, for bundled assemblies, AppContext.BaseDirectory returns the containing directory of the host executable.
https://docs.microsoft.com/en-us/dotnet/api/system.appcontext.basedirectory?view=net-5.0

Related discussion https://github.com/cefsharp/CefSharp/discussions/3533
2021-05-01 16:59:41 +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 f6a347abf6 Javascript Binding - CefSharp.BindObjectAsync() never raised the ResolveObject event
Resolves #3470
2021-04-28 13:45:58 +10:00
Alex Maitland c630d77ef3 Test - Add Test to verify workaround for issue #3470 2021-04-28 13:36:50 +10:00
Alex Maitland 854f81e8ed Upgrade to CEF 90.5.7+gcd9342c+chromium-90.0.4430.85 / Chromium 90.0.4430.85 v90.5.70-pre 2021-04-24 20:05:30 +10:00
Alex Maitland b3abf226e0 Net Core - Update Ref Assembly 2021-04-23 17:19:20 +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 70282dd2c1 Upgrade to CEF 90.5.3+gaf0e862+chromium-90.0.4430.72 / Chromium 90.0.4430.72 2021-04-23 16:59:59 +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 3b4f3c1432 Core - Make ModuleInitializerAttribute internal
Issue #3519
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
Alex Maitland 5def74a1f0 Example - Add CefSettings.ChromeRuntime (commented out) 2021-04-23 16:36:09 +10:00
Alex Maitland 0e00e68590 Update README.md/bug_report.md/CONTRIBUTING.md 2021-04-23 16:36:09 +10:00
campersau fb54f103c4 DevTools Client - Serialize lists of DevToolsDomainEntityBase (#3487) 2021-04-23 16:35:55 +10:00
campersau 5265bb9091 Add ChromeRuntime to RefAssembly CefSharp.Core.Runtime.netcore (#3486) 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 368c331841 CefSettings - **EXPERIMENTAL** Add ChromeRuntime
https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks
2021-04-23 16:35:54 +10:00
Alex Maitland 5c46aa7acb Nuget - Exclude CefSharp.Core.Runtime.dll from bin when CefSharpTargetDir and targeting x64
See comments for details

Fix formatting

Issue #3319
2021-04-08 11:27:40 +10:00
Alex Maitland b75cec752c Core - Add IRequestContext.IsDisposed 2021-04-06 16:39:53 +10:00
Alex Maitland 5bf6107963 Core - Add RequestContextExtensions.RegisterOwinSchemeHandlerFactory v89.0.170 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 6fa25ab9db Test - Improve reliability of JavaScriptObjectRepositoryFacts.CanRegisterJavascriptObjectBindWhenNamespaceIsNull
- JavascriptObjectRepository generates object ids using a static counter, we need to get the object Id for this
  test to be reliable, using an Object Id of 1 will fail if the test order isn't in a very specific order
2021-04-05 13:38:02 +10:00
Alex Maitland 047bf9198b DevTools Client - Update to CHROMIUM 89.0.4389.114 2021-04-05 10:55:04 +10:00
Alex Maitland 1599bfa9cd Javascript Binding - Fix failing .Net Core Test case
- Add condition to calling Register()
- Add license disclaimer

Follow up to #3467
2021-04-05 10:54:22 +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