190 Commits

Author SHA1 Message Date
amaitland c9fedb28d1 Upgrade to CEF 83.4.2+gc8d4f85+chromium-83.0.4103.106 2020-07-02 10:03:31 +10:00
amaitland a2fc01c4e3 Upgrade to CEF 83.4.0+gfd6631b+chromium-83.0.4103.106 / Chromium 83.0.4103.106 2020-07-02 10:03:24 +10:00
amaitland c2745c2c7e Upgrade to CEF 83.3.12+g0889ff0+chromium-83.0.4103.97 / Chromium 83.0.4103.97 2020-06-09 15:58:21 +10:00
amaitland 159ccfc38a Upgrade to CEF 83.3.9+ged43e55+chromium-83.0.4103.61 / Chromium 83.0.4103.61 2020-05-31 20:04:58 +10:00
amaitland 2a62f97392 Tests - Add OffScreenBrowserBasicFacts.CanExecuteJavascriptInMainFrameAfterNavigatingToDifferentOrigin
Confirm CanExecuteJavascriptInMainFrame is true after navigating to a different origin

Resolves #3021
2020-05-19 08:25:02 +10:00
amaitland 919487452e Tests - Convert BinderFacts.NullToValueType to NullToValueTypeTheory
Now uses Theory with InlineData
2020-05-18 11:46:40 +10:00
amaitland d1b4492549 Core - Cef.GetMimeType custom/fallback mimeType mapping
- return application/octet-stream when no mapping found
- Add custom dictionary with some additional mimeTypes, users can add their own to this dictionary
- Add xunit test

Resolves #3041
2020-05-18 11:40:38 +10:00
amaitland 8803f1c041 Core - DefaultBinder InvalidOperationException when binding [1,2,3,1.23] to double[]
- Bind for all elements in a collection, not just when the collection contains list/arrays
- Add additional unit tests

JavaScript array of [1,2,3,1.23] translates to [int, int, int, double], when attempting to Bind
to a double[] an InvalidOperationException was thrown. We now call Bind for each element,
when the type is directly assignable we return the value, for cases like above we perform a
type conversion.

Resolves #3129
2020-05-18 09:12:11 +10:00
amaitland 7dc74b2e2f Upgrade to CEF 81.3.10+gb223419+chromium-81.0.4044.138 2020-05-16 20:25:54 +10:00
amaitland 0f3de6f432 Upgrade to CEF 81.3.2+gb9282cc+chromium-81.0.4044.138 / Chromium 81.0.4044.138 2020-05-09 05:54:38 +10:00
amaitland 6b440a84a3 Shutdown - Improve WaitForBrowsersToClose
- Add Cef.PreShutdown
- For WPF hook the DispatcherShutdownStarted and DispatcherShutdownFinished events then call Cef.PreShutdown
- Add NoOpBrowserRefCounter and set as default, needs a little more testing before it's enabled by default.
  Can be enabled by calling Cef.EnableWaitForBrowsersToClose before calling Cef.Initialize

Issue #3047
2020-05-03 21:58:05 +10:00
amaitland 98b7abeeea Core - PathCheck rewrite to match Chromium FilePath::IsAbsolute
Resovles #3102
2020-05-03 19:28:32 +10:00
amaitland e1401e7092 Core - Ensure CachePath/RootCachePath/LocalesDirPath/BrowserSubprocessPath are absolute
CEF now requires this to be absolute, we enforce this by throwing exception if non-absolute

Resolves  #3102
2020-05-03 16:59:57 +10:00
amaitland 2602212f79 Upgrade to CEF 81.3.1+gb2b49f1+chromium-81.0.4044.113 / Chromium 81.0.4044.113 2020-05-03 14:01:48 +10:00
amaitland 3bac04d1d0 Upgrade to CEF 81.2.25+g3afea62+chromium-81.0.4044.113 2020-04-29 07:57:02 +10:00
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