Commit Graph

5805 Commits

Author SHA1 Message Date
Alex Maitland 35d839d62e Update build version to 91.1.211 v91.1.211 2021-06-27 19:45:57 +10:00
Alex Maitland 17763e9ec4 Core - MethodRunnerQueue add additional IsCancellationRequested checks 2021-06-27 19:44:34 +10:00
Alex Maitland 1078ea317d Test - Add MethodRunnerQueueFacts.DisposeQueueThenEnqueueMethodInvocation
Test to validate that MethodRunnerQueue doesn't have the same issues as #3639
2021-06-27 19:44:34 +10:00
Alex Maitland 3c6ca74273 Nuget - Only run CefSharpExcludeCoreRuntimeBeforeGenerateApplicationManifest for packages.config projects
When using Non SDK Stlye project with PackageReference and publishing with ClickOnce the CefSharp.Core.Runtime.*
files were missing from the installer.

Far as I can tell ClickOnce publishing isn't supported for SDK Style projects so just disable for PackageReference for now

https://github.com/cefsharp/CefSharp/discussions/3613#discussioncomment-913061
2021-06-27 19:44:17 +10:00
Alex Maitland c7a4fc8e6e Core - ConcurrentMethodRunnerQueue.Enqueue throws InvalidOperationException
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
2021-06-27 19:44:16 +10:00
ptrsky aa8a02f5de WPF - Add support for Shift+AltGr (#3627)
* WPF - Add support for Shift+AltGr

The handling of AltGr characters in CefBrowsterHostWrapper did not cover capital diacritic letters. This commit adds handling for the Shift + AltGr + character combination.

* WPF - Shift+AltGr review fixes

* Trigger rebuild
v91.1.210
2021-06-21 15:16:41 +10:00
Alex Maitland 16c141357f Upgrade to CEF 91.1.21+g9dd45fe+chromium-91.0.4472.114 / Chromium 91.0.4472.114 2021-06-21 15:14:39 +10:00
Alex Maitland 1bc80fae65 Upgrade build version number to 91.1.160 v91.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 e189e4c6ae Upgrade build version number 2021-06-14 19:32:16 +10:00
Alex Maitland bd847f844f Upgrade to CEF 91.1.16+gc95b2a1+chromium-91.0.4472.101 / Chromium 91.0.4472.101 2021-06-14 19:29:28 +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 6d218c2641 JavacriptBinding - JavascriptBindingApiEnabled fix merge mistake
JavascriptBindingApiEnabled should be outside of legacy binding enabled
Not an issue in master, must have been broken during merge
v91.1.60-pre
2021-06-05 14:37:03 +10:00
Alex Maitland 8963b12d12 Test - JsBindingGlobalApiDisabled ensure page loaded successfully 2021-06-05 14:35:04 +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 46c51a6253 WinForms - IWinFormsWebBrowser now implements IWin32Window, IComponent, ISynchronizeInvoke
Allows access to methods like BeginInvoke()
2021-06-05 13:15:13 +10:00
Alex Maitland f310370d33 WinForms - Hide/Show internal browser when Visible change
- ChromiumHostControl Add On OnVisibleChanged override
- ChromiumHostControl reorder OnSizeChanged so resize
  happens before event for consistency

Follow up to #2922
2021-06-05 11:22:23 +10:00
Alex Maitland 21d4415ae6 Revert "WPF/WinForms/OffScreen - Enable Chromium Site Isolation"
This reverts commit 2366912a07.
2021-06-05 10:19:23 +10:00
Alex Maitland 5fda692074 Test - Upgrade LoadRequestAsync extension to handle load errors 2021-06-05 10:19:08 +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 1fe1fd5fbe Example - AudioHandler now extends CefSharp.Handler.AudioHandler
Fixes compile error as IAudioHandler now implements IDisposable
2021-06-04 16:55:28 +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 2366912a07 WPF/WinForms/OffScreen - Enable Chromium Site Isolation
CEF has changed it's behaviour slightly to correctly support Chromium Site Isolation
Frame objects (including for the main frame) will now always change after
cross-origin navigation, and the old frame object will be invalidated.
See commit for additional details https://bitbucket.org/chromiumembedded/cef/commits/d9efaee9b9aa

Resolves #2967
2021-06-04 15:09:43 +10:00
Alex Maitland fe800a695b WPF - IWpfWebBrowser implement IInputElement
Simplify setting Focus from View model as now possible to call Keyboard.Focus(IWpfWebBrowser);

Resolves #3546
2021-06-04 15:05:41 +10:00
Alex Maitland 802fbc8d1b WPF - Fix minor merge issues 2021-06-04 15:03:09 +10:00
Alex Maitland 45e134227e WinForms - Add LifeSpanHandler implementation capable of hosting popups as Tabs/Controls (#3529)
* WinForms - Add LifeSpanHandler implementation capable of hosting popups  as Tabs/Child controls in WinForms

- Update Example
- Remove PopupAsChildHelper and example LifeSpanHandler
- Examples always opens popups as tabs now.
- Improve xml doc and comments
- Make ParentFormMessageInterceptor public
- Make ChromiumHostControl public, move into CefSharp.WinForms.Host namespace
  Rather than having the class in the CefSharp.WinForms namespace and potentially
  confuse users, move into it's own namespace.
- Clarify ShowDevToolsDocked needs to be used with the new WinForms lifespan handler
2021-06-04 14:59:28 +10:00
Alex Maitland f0280d7b89 Test - Update to use LoadUrlAsync 2021-06-04 14:47:20 +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 c6d94616e8 README.md - 90.6.50 release 2021-06-04 13:09:41 +10:00
Alex Maitland 222ba110b2 OffScreen - Add CreateBrowserAsync
Issue #3594
2021-06-04 12:48:20 +10:00
Alex Maitland 75a74fe071 WPF - Allow overriding of IRenderWebBrowser implementation methods
- Add additional protected virtual methods so deriving classes can override
2021-06-04 12:47:38 +10:00
Alex Maitland 3a1ba42214 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-06-04 12:47:02 +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 904b2cf3bb Rename CefSettings.ProductVersion to CefSettings.UserAgentProduct
This is a breaking change.

Resolves #3530
2021-06-04 12:46:22 +10:00
Alex Maitland 8b0efd482b Upgrade to CEF 91.1.6+g8a752eb+chromium-91.0.4472.77 / Chromium 91.0.4472.77 2021-06-04 12:44:05 +10:00
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