Commit Graph

425 Commits

Author SHA1 Message Date
amaitland f566d99b12 Upgrade to CEF 81.2.21+ge864886+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-04-23 05:56:17 +10:00
amaitland 51fef05989 Upgrade to CEF 81.2.17+gb382c62+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-04-18 10:52:53 +10:00
amaitland b2dc7bfc0d Upgrade to CEF 80.1.15+g7b802c9+chromium-80.0.3987.163 / Chromium 80.0.3987.163 2020-04-05 07:56:02 +10:00
amaitland 3d3c1c203c Upgrade to CEF 80.1.4+g8927396+chromium-80.0.3987.149 / Chromium 80.0.3987.149 2020-04-03 09:58:37 +10:00
amaitland ce94992d28 Tests - Skip ConcurrentMethodRunnerQueueFacts.ValidateAsyncTaskMethodOutput
It's unreliable, will improve as part of https://github.com/cefsharp/CefSharp/issues/3067
2020-04-01 12:34:25 +10:00
amaitland 509c0dfcb5 Upgrade to CEF 80.1.2+g9d2a31e+chromium-80.0.3987.149 / Chromium 80.0.3987.149 2020-03-31 07:14:53 +10:00
amaitland 4d47b749b1 Test - Avoid displaying Form in WinForms Test
Call CreateControl instead of displaying form.

Tooltips, context menus may not be positioned/displayed correctly as there is no parent form (window). For testing
purposes that's fine for now.
2020-03-03 07:01:00 +10:00
campersau cde3f385f9 Test - Add CefSharp WPF / WinForms CanLoadGoogle Test Case (#3069)
* enable CefSharp Wpf tests

* enable CefSharp WinForms tests

* using assembly resolver to fix serialization exception when using Xunit.StaFact with default appdomain
2020-03-03 05:30:41 +10:00
amaitland 9d10775566 Test - Rewrite ValidateAsyncTaskMethodOutput to use AsyncManualResetEvent
Also increased timeout.

Issue #3067
2020-03-02 12:16:21 +10:00
campersau 5dd127f134 use Nito.AsyncEx for running methods on the same thread 2020-03-01 22:45:08 +01:00
campersau e184fe2757 make sure Cef.Shutdown is called on the same thread as Cef.Initialize 2020-02-29 14:22:48 +01:00
campersau f1c182853f demonstrate that Cef.Shutdown is currently called on a different thread 2020-02-29 13:47:27 +01:00
amaitland 5c83a560c8 CefSharp.Test - Fix Xunit.TestFramework Test Class name
Remove unused class
2020-02-29 15:04:50 +10:00
amaitland 82ec447d23 Test - ValidateAsyncTaskMethodOutput dispose of MethodRunnerQueue after result complete
Issue #3067
2020-02-29 14:54:05 +10:00
amaitland 1f6492b9ca CefSharp.Test - Refactor BindingRedirectHelper
Split into CefSharpXunitTestFramework and BindingRedirectAssemblyResolver
Allow for more customisation if required.
2020-02-29 14:34:35 +10:00
campersau 967ad22e60 CefSharp.Text - Add BindingRedirectHelper
Replaces BindingRedirectFixtureCollection/BindingRedirectFixture

https://github.com/cefsharp/CefSharp/pull/3065#issuecomment-592828985

Issue #3065
2020-02-29 13:26:13 +10:00
campersau a6aa5ec05c AppVeyor - Enable Unit Tests on Build (#3065)
AppVeyor - Enable Unit Tests on Build

* Test - Fix tests

* use async which isn't that flaky

* rename CurrentDomainAssemblyResolve

* replace project reference to CefSharp.BrowserSubprocess with solution dependency

* updated comment on fixture

* revert whitespace changes

* remove project reference to CefSharp.BrowserSubprocess for consistency

solution dependency already exists

* move binding redirect with assembly resolve to separate fixture

* Revert "remove project reference to CefSharp.BrowserSubprocess for consistency"

This reverts commit b8b1d28c30.

* Revert ConcurrentMethodRunnerQueueFacts
2020-02-29 12:28:45 +10:00
amaitland ec95a7245b Upgrade to CEF 80.0.4+g74f7b0c+chromium-80.0.3987.122 / Chromium 80.0.3987.122 2020-02-27 16:51:17 +10:00
amaitland 6c14b9239a Upgrade to CEF 79.1.38+gecefb59+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-02-27 15:24:17 +10:00
amaitland 7100c3d0ec Core - Add Cef.WaitForBrowsersToClose helper function
- Add BrowserRefCounter to increment/decrement CefBrowser instance creation
- Add Cef.WaitForBrowsersToClose to dispose of all browser instances and call WaitForBrowsersToClose

Before calling CefShutdown it's important that CEF has finished closing/disposing of all the CefBrowser instances.
If you call CefShutdown before this has finished then you can get the error
"Check failed: !IsCefShutdown(). Object reference incorrectly held at CefShutdown".
This is more a problem when using MultiThreadedMessageLoop where CEF close/dispose happens on a different thread.
Calling ChromiumWebBrowser.Dispose will start to free the resources, CEF internally executes code on it's own thread.

#3047
2020-02-14 19:39:12 +10:00
amaitland 94ae6bea17 Upgrade to CEF 79.1.36+g90301bd+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-01-31 10:59:33 +10:00
amaitland 27cae10f15 Upgrade to CEF 79.1.35+gfebbb4a+chromium-79.0.3945.130 / Chromium 79.0.3945.130 2020-01-29 05:52:55 +10:00
amaitland 1550251940 Upgrade to CEF 79.1.31+gfc9ef34+chromium-79.0.3945.117 / Chromium 79.0.3945.117 2020-01-21 08:56:08 +10:00
amaitland 94e311844c Upgrade to CEF 79.1.10+g7ec49fa+chromium-79.0.3945.117 / Chromium 79.0.3945.117 2020-01-15 11:16:39 +10:00
amaitland 1ef327cf9d Upgrade to CEF 79.1.3+ga5342ed+chromium-79.0.3945.88 / Chromium 79.0.3945.88 2020-01-08 16:46:48 +10:00
amaitland 617e43cebf Upgrade to CEF 78.3.9+gc7345f2+chromium-78.0.3904.108 / Chromium 78.0.3904.108 2019-11-28 12:04:02 +10:00
amaitland ec8d58bcec Core - Rename CefSharp.Internals.CefUrlRequestWrapper to CefSharp.UrlRequest
- Make public
- Add public constructor
2019-11-23 15:11:14 +10:00
amaitland 966890588e Upgrade to CEF 78.3.1+g8819d2e+chromium-78.0.3904.87 / Chromium 78.0.3904.87 2019-11-08 12:18:46 +10:00
amaitland 3ee5b4544a Upgrade to CEF 78.2.9+g4907ec5+chromium-78.0.3904.70 / Chromium 78.0.3904.70 2019-11-03 12:33:44 +10:00
amaitland 6ea0db49e7 Upgrade to CEF 77.1.18+g8e8d602+chromium-77.0.3865.120 / Chromium 77.0.3865.120 2019-10-21 16:04:01 +10:00
amaitland 770eee012d Upgrade to CEF 77.1.11+g1687a63+chromium-77.0.3865.90 / Chromium 77.0.3865.90 2019-10-07 11:16:26 +10:00
amaitland 4d4ea7fd71 CefSharp.Test - Upgrade Nuget deps 2019-10-05 14:04:41 +10:00
amaitland 396e2cb5b8 ModelBinding - Major refactor
- Remove unused IFieldNameConverter/DefaultFieldNameConverter
- DefaultBinder remove blacklistnames
2019-10-04 14:41:45 +10:00
amaitland 21d272f443 CefSharp.Test - Call Cef.Shutdown on the same thread that created the CefSharpFixture instance 2019-10-01 21:39:14 +10:00
amaitland 4a79b75726 IUrlRequest - Minor formatting and xml doc improvements
- Formatting
- Xml doc improvements
- Rewrite test case to run continuation async

Issue #2881
2019-10-01 20:44:46 +10:00
David M Iserovich a843407dab Core - Add IURLRequest #1721 (#2881)
* 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
2019-10-01 20:11:10 +10:00
amaitland c270d0a00c Upgrade to CEF 77.1.3+gf0a1c44+chromium-77.0.3865.90 / Chromium 77.0.3865.90 2019-10-01 19:54:29 +10:00
amaitland 25ab209380 MethodRunnerQueue/ConcurrentMethodRunnerQueue - Remove custom task execution queue
- 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
2019-09-06 11:05:18 +10:00
amaitland e5ff2fe8e0 Upgrade to CEF 76.1.9+g2cf916e+chromium-76.0.3809.87 / Chromium 76.0.3809.87 2019-08-14 10:09:53 +10:00
amaitland 94b9e9043f Update to CEF 76.1.5+gd8a577c+chromium-76.0.3809.87 2019-08-02 10:06:50 +10:00
amaitland d4fb870e0d Upgrade to CEF 75.1.14+gc81164e+chromium-75.0.3770.100 2019-07-27 21:36:31 +10:00
amaitland 47e232e89e Upgrade to CEF 75.1.7+gb34af23+chromium-75.0.3770.100 2019-07-26 14:01:18 +10:00
amaitland 51b21f7fca Upgrade to CEF 75.1.4+g4210896+chromium-75.0.3770.100 / Chromium 75.0.3770.100 2019-07-18 20:14:09 +10:00
amaitland 517779b91c Upgrade to CEF 75.0.13+g2c92fcd+chromium-75.0.3770.100 / Chromium 75.0.3770.100 2019-07-03 13:18:39 +10:00
amaitland 4e5aac413f Upgrade to CEF 75.0.11+gf50b3c2+chromium-75.0.3770.100 / Chromium 75.0.3770.100 2019-06-25 19:24:57 +10:00
amaitland fc37e82590 Upgrade to CEF 75.0.3+g699a922+chromium-75.0.3770.80 / Chromium 75.0.3770.80 2019-06-25 19:24:57 +10:00
amaitland 04cff2bf39 Upgrade to CEF 75.0.1+gb5e74dd+chromium-75.0.3770.80 2019-06-25 19:24:57 +10:00
Alex Maitland fe98124c9b Async JavascriptBinding - Add support for returning Task (#2771)
* Async JavascriptBinding - Add support for returning Task

Remove Parallel Task execution code from MethodRunnerQueue
Add ParallelMethodRunnerQueue
  - For the new code path the Func is executed, if the Result is a generic Task we wait for it's completion
  - If the task is not generic then we return immediately

This is only enabled when CefSharpSettings.ConcurrentTaskExecution = true;
* MethodRunnerQueue - Display error message when method returns Task
* ParallelMethodRunnerQueue - Rename to ConcurrentMethodRunnerQueue
* MethodRunnerQueue - Improve formatting of error message when method returns Task
* Async JavascriptBinding Return Task - Add Basic xUnit Test

Very quick test, needs to be refined a little. The basics are working as expected.

* Add Binding Test Async Task Example to the WPF Example menu

* Async JSB Task - Add additional tests and improve error messaging
2019-06-08 17:21:49 +10:00
amaitland 40117b0cdb Upgrade to CEF 74.1.13+g98f22d3+chromium-74.0.3729.108 / Chromium 74.0.3729.108 2019-04-25 22:18:54 +10:00
amaitland c5cb465b55 Upgrade to CEF 73.1.13+g6e3c989+chromium-73.0.3683.75 / Chromium 73.0.3683.75 2019-04-25 20:40:11 +10:00