Commit Graph

6179 Commits

Author SHA1 Message Date
Alex Maitland aed5c609d9 Update build version to 87.1.12 2020-12-16 15:24:33 +10:00
Alex Maitland d466a3b991 Net Core - Add specific Readme.txt for Nuget packages 2020-12-16 15:24:09 +10:00
Alex Maitland 32a8cc6b88 Net Core - BrowserSubProcess run on newer .Net version
Set RollForward Major so if .Net Core 3.1 isn't installed then .Net 5 can be used (if installed)

Issue #3197
2020-12-16 13:37:09 +10:00
Alex Maitland 0346979936 Nuget - Update Readme.txt 2020-12-16 13:13:01 +10:00
Alex Maitland bc9b3d1a16 Test - Update remaining QUnit tests to async
Follow up to #3298
2020-12-16 11:26:29 +10:00
Timo Tijhof d06d5100be Example - Simplify BindObjectAsync tests with QUnit (#3298)
* Example - Update to QUnit 2.10

Follows ae41e10d71, which introduced a few references
to QUnit 2.10.

* Example - Simplify the BindObjectAsync unit tests

The `QUnit.test()` may take an async function and/or to return a Promise.
This uses JavaScript's native async/await capabilities to wait for that,
much the same way manual tracking via `assert.async()` would.
Using this can simplify the test structures by a lot.

`assert.rejects()` asserts that a promise throws an error.
`assert.throws()` asserts that a block directly throws an error.

I've also tried to use `assert.deepEqual()`. I suspect a copy
of this function was placed here directly, but I couldn't find
in the history why, so perhaps worth trying if the built-in
one now works.
2020-12-16 10:59:23 +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 149bda01f3 Update bug_report.md
Please ask questions in the discussions section https://github.com/cefsharp/CefSharp/discussions
2020-12-11 15:52:11 +10:00
Alex Maitland c26aba636e Update feature_request.md
Ask questions in the discussion section instead of opening a feature request.
2020-12-11 15:49:53 +10:00
pgodwin b8a36411ce Add async to EvaluateScriptAsPromiseAsync and tests (#3314)
Co-authored-by: Peter Godwin <peter.godwin@health.qld.gov.au>
2020-12-11 13:01:27 +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 1885d45130 Update README.md
Update to reflect release of version 86 being the current release version.
2020-12-09 13:11:54 +10:00
Alex Maitland 6528c8b3cf Update bug_report.md
Update to reflect release of 86.0.241
2020-12-09 13:09:53 +10:00
GitHubPang 6258b86059 Fix typos (#3306)
* Fix typos in md files in .github

* Fix typos in Cef.h
2020-12-08 09:08:18 +10:00
GitHubPang 728420ca7f Fix typos (#3305) 2020-12-06 11:24:14 +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 f1602c2c94 Update cefclient example application links 2020-11-27 13:02:46 +10:00
Alex Maitland f2c80f54df Example - Update BindingTestsAsyncTask tests
Update the Multiple Async Download File Test to download 4 files concurrently instead of two
2020-11-27 11:17:25 +10:00
Konstantin Preißer 007cb53720 Improve the check for RuntimeIdentifier to also allow non-portable RIDs like "win7-x64" or "win10-x86". (#3295)
Issue: cefsharp/CefSharp#3197
2020-11-26 21:01:37 +10:00
Alex Maitland f1daac7131 Core - Add IResponse.SetHeaderByName/GetHeaderByName 2020-11-26 16:43:16 +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 6e4e41573a Net Core - Add missing files to vcxproj
They were only added to the NetCore specific version
2020-11-25 21:35:45 +10:00
Alex Maitland 592c8a384d Net Core - Update CefSharp.Core.RefAssembly
Didn't update properly for the last two commits

issue #3197
2020-11-25 17:16:58 +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
amaitland 55af252d91 Core - Refactor JavascriptObjectRepository to IJavascriptObjectRepositoryInternal
Basic refactoring in preparation for allowing users(advanced) to provide their own custom JavascriptObjectRepository implementation
2020-11-25 15:23:29 +10:00
Alex Maitland 83ae9399dd Core - MethodRunnerQueue use TaskCreationOptions.HideScheduler to
To prevent subtasks from attempting to use our LimitedConcurrencyLevelTaskScheduler we need to
specify TaskCreationOptions.HideScheduler when creating the Task

Resolves #3293
2020-11-25 15:16:57 +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 bdce01f423 Update feature_request.md 2020-11-23 11:19:36 +10:00
Alex Maitland fe48a51d1c README.md - Update as 86.0.240-pre has been released 2020-11-20 14:43:09 +10:00
Alex Maitland 24f3ee310d DevTools Client - Upgrade to M87 2020-11-17 19:09:35 +10:00
Alex Maitland c48c0feb07 DevTools Client - Update to M86
- Switch to a single generated file, this reduces file size a little which is important for embedding the source in the dll file (Issue #3197)
- Rename domain generated classes to prefix with Client as there was a naming conflict with the latest update.
- Prefix enum property with this qualifier
2020-11-17 18:56:58 +10:00
GitHubPang facecb1bab Fix typo. (#3282) 2020-11-15 05:13:47 +10:00
Alex Maitland e213f37285 Core - EvaluateScriptAsPromiseAsync not working when JavascriptBindingApiGlobalObjectName specified
Resolves #3281
2020-11-14 12:07:38 +10:00
campersau e873f8fe60 Test - Add CefSharp.RenderProcessId javascript binding test
Issue #2984
2020-11-09 20:53:35 +10:00
campersau 8ad0c76f1b Wpf.Example - Remove MvvmLight 2020-11-09 20:19:31 +10:00
Alex Maitland 95716dac6e Net Core - Copy files when no RuntimeIdentifier specified
- Include PackageReference in targets file, this technically probably valid though it works so we might test with it
- Copy files into the runtimes\{rid}\native\ folder
- Update PackageReference version number on build

Issue #3197
2020-11-08 15:34:08 +10:00
Alex Maitland c9f6cafbbd Update build version to 87.1.1 2020-11-07 19:47:15 +10:00
Alex Maitland 5bd9b49b30 WPF - Fix Custom Cursor Not displaying
- Update CursorType enum
  CEF has added some additional values
  As entries were added before Custom the WPF custom cursor handling wasn't working
  https://github.com/chromiumembedded/cef/commit/047e8f9349ecd635b1146e4a44de46a38b8a64f8#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26b
2020-11-07 18:17:28 +10:00
Alex Maitland 8258102569 Core - Move OnCursorChange from CefRenderHandler to IDisplayHandler
Resolves #3275
2020-11-07 18:17:14 +10:00
Alex Maitland f26d518a9a Core - RequestContext.LoadExtension update JSON parsing
CEF has removed the errorCode param removed from CefParseJSONAndReturnError
We now check if the return value is null as per the doc (null for failure)

https://github.com/chromiumembedded/cef/commit/015e3621a3ccaf4b90301d7b24e1fbd5abae7150#diff-f9ffbbceb0fb483a501949fe58321caaa4c6652688ab718bc4a5fbb68651bb5dR149
2020-11-07 16:38:29 +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 0a5292fd95 Net Core - Copy BrowserSubProcess files to Test/Example projects
Follow up to https://github.com/cefsharp/CefSharp/commit/833ebe49a6c2f1bef925eeeb1390cdb8032ce36c

Issue #3197
2020-11-07 11:26:41 +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
Alex Maitland 6b5feafb70 Core - PopupFeatures regenerate RefAssembly
- remove commented out code
- manually delete CefSharp.Core.cs and regenerate.

Issue #3270
2020-11-06 19:44:52 +10:00
Austin Stephens f9971730be Fixed issue #3270 (Core - Improve IPopupFeatures mapping and xml doc)
Now using nullable ints for optional values in IPopupFeatures
2020-11-06 19:44:52 +10:00
Alex Maitland 833ebe49a6 Net Core - BrowserSubprocess compile as x86/x64 variants
Using an AnyCPU process wouldn't load when the browser process was x86
Basically x86 browser process couldn't use an x64 subprocess

Issue #3197
2020-11-06 17:41:45 +10:00
Alex Maitland 810560cfdd 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-06 16:30:10 +10:00
Alex Maitland a8a60e7b5c Net Core - Remove hardcoded RefAssembly path
Still a bit of a hack, at least it will use the win32 dll if the x64 doesn't exist

Issue #3197
2020-11-06 16:21:57 +10:00
Alex Maitland 928bc68ef6 Net Core - Embed PDB and Source
For release builds we embed project source and symbols (at least until https://github.com/dotnet/sdk/issues/1458 is resolved)

Issue #3197
2020-11-06 15:45:36 +10:00
Alex Maitland 63a422835c Nuget - Fix Publish state property in .targets files
Follow up to commit https://github.com/cefsharp/CefSharp/commit/f8ffbc7aa5dc58a667a6a6f29d0553a14027b5ff#diff-0d9b4a8f1ae31c93f5bfdfe571baf089b5126c437989baf70010d8c631d3385b

https://docs.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items?view=vs-2019#content

Technically it's only documented for <Content/> and not <None/> targets, so this is just to see if it actually works by magic.
Fixed my mistake previously.
2020-11-06 14:44:03 +10:00