Commit Graph

1562 Commits

Author SHA1 Message Date
Alex Maitland 6991d0e53c Core - Add IResponse.SetHeaderByName/GetHeaderByName 2020-11-27 12:53:17 +10:00
Alex Maitland 40fc9f8ae6 Upgrade build version to 86.0.240 2020-11-20 10:53:34 +10:00
Alex Maitland 01cfa69121 Upgrade to CEF 86.0.24+g85e79d4+chromium-86.0.4240.198 / Chromium 86.0.4240.198 2020-11-20 10:30:37 +10:00
Alex Maitland 3c023fe7b4 Upgrade to CEF 86.0.23+ga2c2edf+chromium-86.0.4240.193 / Chromium 86.0.4240.193 2020-11-18 10:50:06 +10:00
Alex Maitland f7569d8f0e Net Core - Make more VC++ classes private
They aren't used publicly so make private so they don't show up in the ref assembly.

Issue #3197
2020-11-09 20:04:18 +10:00
Alex Maitland b7ad18c598 Upgrade to CEF 86.0.21+g6a2c8e7+chromium-86.0.4240.183 / Chromium 86.0.4240.183 2020-11-07 18:26:33 +10:00
Alex Maitland a21c57fe39 Core - Fix/suppress some compiler warnings.
size_t -> int conversion warnings

Still lots to resolve, some properties like frameidentifier could be changed to Int64
2020-11-06 20:52:20 +10:00
Alex Maitland 8e4991898a Core - PopupFeatures regenerate RefAssembly
- remove commented out code
- manually delete CefSharp.Core.cs and regenerate.

Issue #3270
2020-11-06 20:52:19 +10:00
Austin Stephens f1cfc85566 Fixed issue #3270 (Core - Improve IPopupFeatures mapping and xml doc)
Now using nullable ints for optional values in IPopupFeatures
2020-11-06 20:52:19 +10:00
amaitland c802cbf0f4 Upgrade to CEF 86.0.19+g9c5fca5+chromium-86.0.4240.111 / Chromium 86.0.4240.111 2020-10-30 16:03:13 +10:00
amaitland 7b11952323 Upgrade to CEF 86.0.17+g4a33048+chromium-86.0.4240.75 / Chromium 86.0.4240.75 2020-10-28 16:07:22 +10:00
amaitland eed8457fac Core - Rename vcxproj packages.config files
nuget.exe keeps removing packages.config so renaming to project specific naming
each project in the same directory has a unique packages.config file
2020-10-28 16:02:02 +10:00
amaitland e8d0a17621 Upgrade to 85.3.13+gcd6cbe0+chromium-85.0.4183.121 / Chromium 85.0.4183.121
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-15999
- https://bitbucket.org/chromiumembedded/cef/commits/cd6cbe008b127990036945fb75e7c2c1594ab10d
2020-10-25 11:59:13 +10:00
amaitland c530e9ed36 Xml Doc - Fix param reference 2020-10-23 13:24:50 +10:00
amaitland 11a2635d61 Update version number to 85.3.121 2020-10-23 13:19:32 +10:00
amaitland 5e9a41b256 Xml Doc - Minor improvements 2020-10-23 13:17:15 +10:00
amaitland 84e0415376 Core - JavascriptCallbackProxy::ExecuteWithTimeoutAsync return failure task
The failure task wasn't being returned (surprised VC++ actually compiled).
2020-10-23 13:06:58 +10:00
amaitland c9c624c000 Core - Add Cookie.SameSite and Cookie.Priority
Resolves #3254
2020-10-14 14:57:25 +10:00
Alex Maitland 0a8e7d2b6c 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:42:21 +10:00
Alex Maitland deca49517b Core - Add EvaluateScriptAsPromiseAsync (#3251)
- Add useImmediatelyInvokedFuncExpression param to EvaluateScriptAsync which wraps the script in an IIFE
  with the cefSharpInternalCallbackId variable defined in scope to allow for deferred completion
- Wrap script in Immediately Invoked Function Expression and call promise.resolve to guarantee a promise.
- Return 'CefSharpDefEvalScriptRes' as the result of the js function to defer execution of the callback
- Call newly added cefSharp.sendEvalScriptResponse method in javascript when promise has been resolved/rejected

This is built up of a few parts and can technically be used by the new user to defer the response until they are ready.
Just return `'CefSharpDefEvalScriptRes'` and manually call cefSharp.sendEvalScriptResponse using the cefSharpInternalCallbackId
variable which is injected into the script execution (wrapped in an IIFE to limit scope)
2020-10-06 15:20:50 +10:00
amaitland 8fb00f7656 Core - Fix IRequestContextHandler.GetResourceRequestHandler never called
CefRequestContextHandlerAdapter now implements GetResourceRequestHandler
2020-10-04 15:11:58 +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 0dcd86026e Net Core - Split netcore vcxproj packages.config files
To make updating easier the netcore vcxproj files have their own packages.config files now
2020-10-04 14:32:06 +10:00
amaitland b0ee2f2bda Core - Add Cef.Initialize(settings, performDependencyCheck) overload
Added based on feedback from https://github.com/cefsharp/Questions-and-Support/issues/38
2020-10-02 10:25:25 +10:00
Jozef Izso 23fd91b353 Fix typos in Cef documentation (#3237) 2020-09-25 08:29:23 +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
Gilberto Stankiewicz b0b5103100 Fix code analysis C4018 warnings (#3223)
* Replace `auto`s with `size_t`s to reduce:

```
Severity	Code	Description	Project	File	Line	Suppression State
Warning	C4018	'<': signed/unsigned mismatch	CefSharp.BrowserSubprocess.Core	c:\repos\cefsharp\cefsharp.browsersubprocess.core\serialization\jsobjectsserialization.cpp	71
```

* Fix templates
2020-08-26 19:13:13 +10:00
amaitland 89e95ef3be Core - Add CompositionUnderline.Style (IME)
https://source.chromium.org/chromium/chromium/src/+/master:ui/base/ime/win/imm32_manager.cc;l=82;drc=c70af83bc44f6829277cdc3621e7015d6e0d7530;bpv=1;bpt=1?q=GCS_COMPCLAUSE&ss=chromium%2Fchromium%2Fsrc

Resolves #3107
2020-08-26 14:55:51 +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 7640b65b97 Net Core - Add Assembly.manifest
Add assembly manifest for VC++ projects to prevent loading issues of ijwhost.dll

https://github.com/dotnet/runtime/issues/38231
https://github.com/dotnet/runtime/issues/37972#issuecomment-647726082

Not sure exactly how to test this works as expected

Reference
https://docs.microsoft.com/en-us/windows/win32/sbscs/assembly-manifests

#3197
2020-08-14 21:29:29 +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 d0c14cd036 Update version number to 84.4.0 2020-08-14 15:17:03 +10:00
amaitland 159a45b79d Net Core - GenApi Generate CefSharp.Core.dll reference assembly
- Cannot currently compile the generated output yet
2020-08-12 14:51:05 +10:00
amaitland 217258c2ae Net Core - Make VC++ Methods internal to avoid being included in Ref Assembly 2020-08-12 14:50:56 +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
campersau 5e67f789ea Upgrade to CEF 84.3.3 in netcore projects (#3198) 2020-07-23 20:44:44 +10:00
amaitland e8cf336bf3 Net Core - Support for compiling with .Net Core 3.1
- Make Wpf/WinForms/OffScreen projects target AnyCPU
Only the VC++ projects are platform specific now.
- Remove BrowserSubProcess project reference
Not needed as we now have a standalone exe
- Add OffScreen example
- Add WPF Example project
- Fix some compile errors for main solution
- Add BrowserSubProcess executable
- JavascriptObjectRepository remove isAsync param
Rather than throw exception remove the option
- BrowserSubprocess Exclude the WCF specific code from the netCore project
- Add some ifdef/ifndef to exclude the WCF specific implementation
- Move WCF implementation into separate namespace
2020-07-23 15:23:45 +10:00
Konstantin Preißer 5e89f71a44 Add new projects targeting .NET Core 3.1 (#3181)
* Add .NET Core 3.1 projects for CefSharp, CefSharp.Core, CefSharp.BrowserSubprocess.Core, CefSharp.WinForms, CefSharp.Wpf, CefSharp.OffScreen.

Contributes to CefSharp#2796

* - Remove dependencies to "opengl32.lib" and "glu32.lib" which aren't available for ARM64 and don't seem to be needed.
- Clean up project files.

* Switch project CefSharp.netcore.csproj to AnyCPU as it doesn't require different builds for each platform.

* Remove WindowsTargetPlatformVersion property as that is declared in CefSharp.props.

* Use "bin.netcore" and "obj.netcore" as [intermediate] output path for the .NET Core projects, to allow side-by-side builds with the .NET Framework projects.

* Output documentation files.

* Add CefSharp.Example.netcore and CefSharp.WinForms.Example.netcore.

* Follow-up: Remove properties from the example projects that are also not used in the corresponding .NET Framework projects.
2020-07-23 15:21:14 +10:00
amaitland 86e9b712e3 Core - Xml Doc Fixes 2020-07-23 14:56:11 +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 282e25c8fd Core - Add IBrowser reference to TitleChangedEventArgs/ConsoleMessageEventArgs 2020-07-17 12:41:14 +10:00
Alex Maitland 8d25b71490 Core - Re-Add IAudioHandler (#3153)
Resolves #3152
2020-07-08 08:06:16 +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 bd4cadd2ed Core - Add ExecuteDevToolsMethodAsync extension method
ExecuteDevToolsMethod has to be called exclusively on the CEF UI thread.
This extension method will invoke into the CEF UI thread if required.
2020-06-30 14:48:35 +10:00
amaitland db75e9b6a3 Core - IBrowserHost.AddDevToolsMessageObserver can be run on any thread.
Remove ThrowIfExecutedOnNonCefUiThread as it appears the observer
can be added on any thread.
2020-06-29 13:09:31 +10:00
amaitland 49ee24912d Core - Add support for direct DevTools protocol messaging
Add support for direct DevTools protocol messaging (fixes issue #2961).

This change allows the client to directly send and receive DevTools
protocol messages (send method calls, and receive method results and
events) without requiring a DevTools front-end or remote-debugging
session.

https://bitbucket.org/chromiumembedded/cef/commits/fd6631bd181233d36b98e1327da84c44372add76
2020-06-29 11:12:37 +10:00
amaitland 88aae91ea5 Core - Add IRequestHandler.OnDocumentAvailableInMainFrame
Resolves #3157
2020-06-28 20:08:18 +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 971b7671a6 Core - Allow overriding of enable-features command line arg
Added example of NetworkServiceInProcess

NOTE: Running the Network Service in Process is not something CEF officially supports
It may or may not work for newer versions.
2020-06-19 20:48:25 +10:00