Commit Graph

242 Commits

Author SHA1 Message Date
Alex Maitland 74326a62ec Upgrade to CEF 87.1.1+g9a70877+chromium-87.0.4280.27 / Chromium 87.0.4280.27 2020-11-07 16:00:58 +10:00
amaitland bf504a2641 Upgrade to 86.0.20+gf2039ae+chromium-86.0.4240.111 / Chromium 86.0.4240.111 2020-10-31 19:22:45 +10:00
amaitland c8fc8810dd Upgrade to CEF 86.0.19+g9c5fca5+chromium-86.0.4240.111 / Chromium 86.0.4240.111 2020-10-30 15:55:25 +10:00
amaitland 166c57addb Upgrade to CEF 86.0.17+g4a33048+chromium-86.0.4240.75 / Chromium 86.0.4240.75 2020-10-21 15:56:23 +10:00
Alex Maitland 3eca8bdba6 Enhancement - Simplify Setting of RequestContext Proxy (#3250)
Core - Simplify Setting of Proxy for new RequestContext

- Throw exception if requestContext.CanSetPreference returns false.
Proxy likely set via command line args.
- Add IRequestContext.SetPreferenceAsync
-  Test - Add SelfHosted Proxy
Use Titanium.Web.Proxy to self host a proxy for testing proxy settings
Only run Proxy Tests when run locally
- Add RequestContext Builder Fluent API
2020-10-13 13:40:46 +10:00
amaitland 02a8ea70cd Upgrade to CEF 85.3.12+g3e94ebf+chromium-85.0.4183.121 / Chromium 85.0.4183.121 2020-10-04 14:45:58 +10:00
amaitland b4c2e359a6 Core - Improve IRequestContext.SetProxy extension Method
- Add tests
- Add better validation

Issue #3235
2020-10-02 17:13:49 +10:00
Alex Maitland 78e32a3b9f Enhancement - Add DevToolsClient (#3229)
* Core - Add DevToolsClient

Issue #3165

* DevTools Client - Add Network domain class

- Add hand written class to get a better sense of how the code should be structured.
- Improve exception handling

* Devtools - First draft of devtools protocol methods (generated)

Not complete yet

* Devtools - Simple method execution working

* DevTools - Add .Net Style cased property names to response objects

- Use internal field and datacontract attributes

* DevTools - Improve mapping

* DevTools - Strongly typed enums

* DevTools Client - Generated from active browser instance (M84)

* Devtools Client - Extract IDevToolsClient interface for testability

Improve xml doc comments

* DevTools Client - Improve error handling

* DevTools Client - Improve enum conversion

* Revert to older c# syntax

* DevTools Client - Fix failing tests

* Devtools Client - Add SetCookie Tests

* DevTools Client - Add Capture SyncContext by default

- Add option to capture the SyncContext
- Add option to provide custom SyncContext (can just pass in UI SyncContext and all continuations will happen there).
- Fix bug in ExecuteDevToolsMethodAsync sending the command twice when exeucted on the CEF UI thread

* Devtools Client - Add missing file reference

The problem with developing with the .Net Core project where files are automatically included is you
forget to include them in the regular csproj file.

* Devtools Client - Add CanCanEmulate Test case

* DevTools Client - Add AddScriptToEvaluateOnNewDocumentAsync test

* DevTools Client - OnDevToolsEvent only parse data if event handler != null

* DevTools Client - GetDevToolsClient remove ThrowExceptionIfDisposed/ThrowExceptionIfBrowserNotInitialized calls

Those methods were removed as the GetBrowser call handles the checks for us.

* DevTools Client - Improve error handling

* DevTools Client - Update xml doc comments

* DevTools Client - Add validation method (partial)

Add ability to manually add validation logic

* DevTools Client - Comment out failing test

Was working when targeting M84, now with M85 it fails.

The mapping appears to be correct, will need to investigate further

* OffScreen Example - Remove test code
2020-09-21 19:32:25 +10:00
amaitland 53f15f22eb Upgrade to CEF 85.3.6+gacfac2f+chromium-85.0.4183.102 / Chromium 85.0.4183.102
- Remove CefSettings.RegisterExtension (#3184)
- Add IRenderProcessHandler.OnWebKitInitialized
- Add Cef.RegisterExtension (Browser SubProcess specific implementation)

Resolves #3184
2020-09-16 13:49:37 +10:00
amaitland 1e141d0479 Upgrade to CEF 84.4.1+gfdc7504+chromium-84.0.4147.105 / Chromium 84.0.4147.105 2020-08-26 13:50:41 +10:00
amaitland d76379f7e9 Upgrade to CEF 84.4.0+g304e015+chromium-84.0.4147.105 / Chromium 84.0.4147.1055 2020-08-14 16:14:09 +10:00
amaitland 2a96ebc7de Upgrade to CEF 84.3.8+gc8a556f+chromium-84.0.4147.105 / Chromium 84.0.4147.105 2020-08-05 15:48:47 +10:00
Alex Maitland b5a83f526e Enhancement - Pluggable Javascript Naming (#3141)
* Core - Move NameConverter to IJavascriptObjectRepository

- Move NameConverter property from BindingOptions to IJavascriptObjectRepository
- Remove BindingOptions.CamelCaseJavascriptNames

**Breaking Change**

Follow up to https://github.com/cefsharp/CefSharp/commit/898ca38e7a7261b3a42c33b2abf5eac6c022ddde

* Core - Javascript Binding Pluggable Naming Improvements

- Added some basic unit tests (more required)
- DefaultBinder now accepts a IJavascriptNameConverter passed into the constructor
  to allow for conversion of names

* Core - Replace WeakReference with WeakReference<T>
2020-07-27 20:13:16 +10:00
amaitland 3e5133dbb3 Upgrade to CEF 84.3.3+gffc2f0e+chromium-84.0.4147.89 / Chromium 84.0.4147.89 2020-07-23 14:56:10 +10:00
amaitland 36b35e478b Upgrade to CEF 83.4.2+gc8d4f85+chromium-83.0.4103.106 2020-07-02 09:46:41 +10:00
amaitland 0bf05e6de7 Upgrade to CEF 83.4.0+gfd6631b+chromium-83.0.4103.106 / Chromium 83.0.4103.106 2020-06-28 20:08:18 +10:00
amaitland c1a4db20fd Upgrade to CEF 83.3.12+g0889ff0+chromium-83.0.4103.97 / Chromium 83.0.4103.97 2020-06-09 15:57:25 +10:00
amaitland ae41e10d71 Core - Javascript Binding Configure Property Name
- Rename settings object to JavascriptBindingSettings
- Validate JavascriptBindingSettings.JsBindingGlobalObjectName in setter to provide immediate
  feedback
- Add FreezableBase which throws exception when frozen (we can reuse this for some other settings classes)
- Add some basic Unit Tests (More would be better)

Follow on from #3126
2020-05-30 19:28:50 +10:00
amaitland c0ba9e9135 Upgrade to CEF 83.3.9+ged43e55+chromium-83.0.4103.61 / Chromium 83.0.4103.61 2020-05-25 20:04:27 +10:00
amaitland 99cc2d5030 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:47:42 +10:00
amaitland b9fba00078 Upgrade to CEF 81.3.10+gb223419+chromium-81.0.4044.138 2020-05-15 20:26:43 +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 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 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
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
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 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 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 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