Commit Graph

570 Commits

Author SHA1 Message Date
Alex Maitland df68bd0432 Upgrade to CEF 89.0.7+gb5952bd+chromium-89.0.4389.72 / Chromium 89.0.4389.72 2021-03-16 15:31:12 +10:00
Alex Maitland 099abefbea Net Source - Add SourceLink support
- The Debug PDBs will now use SourceLink
- The C++/CLI projects will use SourceLink
- CefSharp.Core.dll now generates/uses a ref assembly
- The managed (c#) projects still embed sources/symbols for Release builds

At some point we should investigate generating a snupkg to reduce the dll size
2021-03-16 15:28:31 +10:00
Jozef Izso 65a3756ed0 Explicitly set the code page to UTF-8 (65001) so the copyright symbol is compiled correctly (#3432) 2021-03-11 15:23:00 +10:00
Alex Maitland bbf5d5ed0f Upgrade to CEF 89.0.6+g6f30454+chromium-89.0.4389.72 / Chromium 89.0.4389.72 2021-03-06 13:04:02 +10:00
Alex Maitland c98568d7e3 Upgrade build version to 88.2.90 2021-03-05 09:30:20 +10:00
Alex Maitland 1ea6c46163 Javascript Callback - Add very basic support for executing a Promise
It's a manual process at this stage and requires the end user to deal to:
- Return "CefSharpDefEvalScriptRes" immediately after the promise function has been created
- Call cefSharp.sendEvalScriptResponse when the async/await (promise) processing has completed
2021-02-25 20:36:24 +10:00
Alex Maitland 48480feb6d Upgrade to CEF 88.2.9+g5c8711a+chromium-88.0.4324.182 / Chromium 88.0.4324.182 2021-02-21 20:03:02 +10:00
Alex Maitland c5669068cc Upgrade to CEF 88.2.4+gf3c4ca9+chromium-88.0.4324.150 / Chromium 88.0.4324.150 2021-02-09 09:48:12 +10:00
Alex Maitland 1661b2f955 Upgrade to CEF 88.2.1+g0b18d0b+chromium-88.0.4324.146 / Chromium 88.0.4324.146 2021-02-05 15:00:16 +10:00
Alex Maitland a4fdda6945 Update to CEF 88.1.6+g4fe33a1+chromium-88.0.4324.96 / Chromium 88.0.4324.96 2021-02-03 15:53:00 +10:00
Alex Maitland 995512d9f0 Upgrade build version to 87.1.132 2021-01-27 20:14:43 +10:00
Alex Maitland 3a29c70d81 Upgrade build version to 87.1.13 2021-01-09 14:20:11 +10:00
Alex Maitland ff77f024ad Upgrade to CEF 87.1.13+g481a82a+chromium-87.0.4280.141 / Chromium 87.0.4280.141 2021-01-09 13:52:28 +10:00
Alex Maitland a4e42843f8 Update version numbers to 87.1.12 2020-12-16 16:09:08 +10:00
Alex Maitland 8a367fbdc4 Refactor CefSharp.Core into CefSharp.Core.Runtime (#3311)
* Net Core - Rename CefSharp.Core.dll to CefSharp.Core.Runtime.dll

Partial rename, only Net Core, folder not renamed

* Net Core - Rename CefSharp.Core.RefAssembly to CefSharp.Core.netcore

Remove GenApi

* Core - Rename CefDragDataWrapper to DragData

Move into CefSharp.Core namespace

* WinForms/WPF/OffScreen - Migrate from GitLink command line to Nuget package

* Net Core - Refactor to have CefSharp.Core.dll contain only public Api

* Net Core - Remove CefSharp.Core.RefAssembly

* Net Core - Change CefSharp.Core.netcore output folder

* Net Core - Restructure nuget packages

* Net Core - Add Cefsharp.Core.Runtime.RefAssembly

* Net Core - Hide CLI/C++ classes from intellisense

Make sure users don't attempt to load them directly

* Rename CefSharp.Core to CefSharp.Core.Runtime

* Core - Restructure Net 4.5.2 packages to use CefSharp.Core.dll anycpu variant

Attempt to load CefSharp.Core.Runtime at runtime rather than having to use msbuild to copy the correct version

* Rename CefSharp.Core.netcore to CefSharp.Core

* WPF/WinForms/OffScreen - Change from x86/64 to AnyCPU

As they are all managed assemblies they can target AnyCPU.
Includes CefSharp.dll

* Convert RequestContextBuilder from C++ to C#

Now part of the CefSharp.Core PublicApi

* Update version number to 87.1.11

* Migrate more of the public Api to C#

* Net Core - Basic restructure complete

* Net Core - ModuleInitializer (Doesn't work yet)

* Remove direct references to BrowserSettings

* Net Core - ModuleInitializer load CefShar.Core.Runtime.dl

* Net Core - Load libcef.dll via CLR Module initializer

If no RID is specified then we can load libcef.dll using the module initializer

* Add version to CefSharp.Core

* Remove dependency on CefSharp.Core.Runtime
Rewrite common targets

* AnyCPU app.config transform

Improve AnyCPU support

* Improve Net Core 3 support
Only delete CefSharp.Core.Runtime.dll when AnyCPU

* Nuget - Add CefSharp.Core.Runtime reference when TargetFramework = NetCore

* Fix Typos

Based on #3306

* Net Core - Rename CefSharp.Core.Runtime RefAssembly source file

* Net Full - Generate CefSharp.Core.Runtime Ref Assembly

For now the powershell build script generates the .cs file based on a x86 release build.ps1
It's not possible to directly install GenApi as it requires a Sdk style project

* Net Core - Old packages copy files to required folders

* Test - Install newer .Net Compiler and set Lang Version to 7.3

* Net Core - Exclude Net 452 Runtime generated reference source

* Core - Add Refactoring TODO

* Ref Assembly - Generate source as part of build

- Move ref assembly source generate into GenerateRefAssemblySource.ps1
- Call before project build

Runs locally, see if Appveyor has a problem with the powershell script execution

* Core - Add more factory methods to create instances of managed wrappers

* Net Core - Make Initialzier properties internal

Not quite sure what the public API should look like as yet, so making internal for now.
2020-12-16 10:47:34 +10:00
Alex Maitland 6daf660caf Upgrade to 87.1.12+g03f9336+chromium-87.0.4280.88 / Chromium 87.0.4280.88 2020-12-11 11:19:02 +10:00
Alex Maitland a84d6e0958 Upgrade to CEF 87.1.11+g8bb7705+chromium-87.0.4280.66 / Chromium 87.0.4280.66 2020-11-29 17:58:59 +10:00
Alex Maitland 01d775a46d Core - Add BrowserSubprocess.SelfHost.Main
Can be used to self host the browser SubProcess
Fixes build errors, the Net Core implementation is now renamed from MainNetCore to Main

Issue #3197
2020-11-26 09:27:35 +10:00
Alex Maitland aada072f80 Net Core - Add SelfHost class to CefSharp.Core
Allows for quick self hosting of the BrowserSubprocess

Issue #3197
2020-11-25 17:10:45 +10:00
Alex Maitland 2aa3ed13e5 Upgrade to CEF 87.1.6+g315d248+chromium-87.0.4280.66 / Chromium 87.0.4280.66 2020-11-24 10:29:35 +10:00
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
Alex Maitland 25defd0d59 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:40:09 +10:00
amaitland 11060ddc5a Upgrade build version to 86.0.20 2020-10-31 19:28:35 +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 44e1e03fab Update build version to 86.0.19 2020-10-30 16:23:29 +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
amaitland 791683d4af Tools - Add UpdateNugetPackages.ps1
- Hacky powershell script to update projects to latest version
- csproj/vcxproj files will now consistently have a UTF8 BOM
- CefSharp.BrowserSubprocess.Core.netcore.vcxproj and CefSharp.BrowserSubprocess.Core.vcxproj
  now reference CefSharp.props relatively as using $SolutionDir doesn't work when running Nuget.exe directly against a vcxproj file
2020-10-21 15:53:44 +10:00
amaitland f0b7bd1e81 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-21 15:50:30 +10:00
amaitland 81c0ceee09 BrowserSubProcess - Fix namespace conflict
CefSharp.Core/Cef.h CefSharp.BrowserSubprocess.Core/Cef.h were both in the CefSharp namespace.

TODO: The BrowserSubProcess class namespaces need some cleanup
2020-10-13 15:16:25 +10:00
Alex Maitland fd46a4c145 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:19:37 +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 4f74f60787 Core - Add CefSharp.RenderProcessId javascript property
Two new properties have been added (both have the same value)
- CefSharp.RenderProcessId
- cefSharp.renderProcessId

Use which ever suites your naming style

Resolves #2984
2020-09-18 13:56:07 +10:00
amaitland 4678bbc932 Net Core - Add header to CefSharp.BrowserSubprocess.Core.netcore.vcxproj
Follow up to https://github.com/cefsharp/CefSharp/commit/53f15f22ebaf1c32fe69f14e676c3485fbab00c9
2020-09-16 16:17:30 +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 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 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
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 4b2fe1e0d7 Core - JavascriptObjectRepository.ResolveObject incorrectly called with args.ObjectName of string.Empty
We were incorrectly leaving empty entries in the CefListValue

Resolves #3193
2020-07-22 14:55:14 +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