Commit Graph

5539 Commits

Author SHA1 Message Date
Alex Maitland 9ff6b35ddf Net Core - Regenerate CefSharp.Core.RefAssembly
TODO: It's not automatically regenerating at times, need to fix this
v86.0.241
2020-11-27 13:23:18 +10:00
Alex Maitland 4ffa8bf367 Update cefclient example application links 2020-11-27 13:00:06 +10:00
Alex Maitland c63b120f8e Core - Add BrowserSubprocess.SelfHost.Main
Can be used to self host the browser SubProcess
Uses reflection to load CefSharp.BrowserSubprocess.Core.dll

This method is primarily used for .Net Core and does not load the WCF specific features required
for synchronous javascript binding
2020-11-27 12:57:23 +10:00
Alex Maitland 6991d0e53c Core - Add IResponse.SetHeaderByName/GetHeaderByName 2020-11-27 12:53:17 +10:00
Alex Maitland 80753ebc70 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:17:30 +10:00
Alex Maitland 40fc9f8ae6 Upgrade build version to 86.0.240 v86.0.240-pre 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 23d30a9ff3 DevTools Client - Update csproj file
Forgot to update the .Net 452 csproj file (Net Core doesn't need updating)
2020-11-17 18:58:57 +10:00
Alex Maitland 9a062828ce 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 15:20:25 +10:00
Alex Maitland e9bbcd6bdd Core - EvaluateScriptAsPromiseAsync not working when JavascriptBindingApiGlobalObjectName specified
Resolves #3281
2020-11-14 12:09:47 +10:00
Alex Maitland 145fbab12a Net Core - Remove copying of files when no RuntimeIdentifier is specified
Can look at providing this option later, in the 86 release we'll keep things barebones

Issue #3197
2020-11-11 13:21:47 +10:00
Alex Maitland 8d0fc1a4f8 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-09 20:04:19 +10:00
Alex Maitland 1586330b5a Net Core - Copy BrowserSubProcess files to Test/Example projects
Follow up to https://github.com/cefsharp/CefSharp/commit/833ebe49a6c2f1bef925eeeb1390cdb8032ce36c

Issue #3197
2020-11-09 20:04:19 +10:00
Alex Maitland 5136ec7a9c 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-09 20:04:18 +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 5a3b259b2d 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-09 20:04:18 +10:00
Alex Maitland 7367f0aaa2 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-09 20:04:17 +10:00
Alex Maitland 0359738de7 Net Core - Include missing CefSharp.BrowserSubprocess files
CefSharp.BrowserSubprocess.dll wasn't included, and the runtimeconfig.json wasn't being copied

They're now in the native folder as they are runtime only assets and this copies them correctly.

Issue #3197
2020-11-09 20:04:12 +10:00
amaitland 0098eb6bfa Net Core - Change from <None/> to <Content/> in targets
https://docs.microsoft.com/en-us/visualstudio/msbuild/common-msbuild-project-items?view=vs-2019#content
2020-11-09 20:04:12 +10:00
amaitland 07cab51d50 Net Core - Add Build to Common Nuspec
Appears to be required to copy swiftshader/locales
2020-11-09 20:04:12 +10:00
amaitland 7dff589d66 Nuget - Update NetCore packages 2020-11-09 20:03:21 +10:00
amaitland 4a590f1927 Net Core - CefSharp.dll wasn't being copied at runtime
Issue #3197
2020-11-09 20:02:43 +10:00
Alex Maitland fb82df0037 Update build version to 86.0.21 2020-11-07 19:45:34 +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 0386a7a71d 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:16:35 +10:00
Alex Maitland 8062ea3e7c Revert "Net Core - BrowserSubprocess compile as x86/x64 variants"
This reverts commit 7621e2b4b8.
2020-11-07 09:57:47 +10:00
Alex Maitland 7621e2b4b8 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-07 09:33:33 +10:00
Alex Maitland 5af2623f56 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 20:54:45 +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 a83dbc23a1 WPF - Resize Glitches (Image glitches during resize)
- Remove disable-gpu-compositing command line arg
- WritableBitmapRenderHandler/InteropBitmapRenderHandler ignore update if size doesn't match

It's possible that OnPaint is called multiple times before our BeginInvoke call is marshalled onto the UI Thread.
In those cases we check width/height and ignore the call if it doesn't match

Issue #3114
2020-10-30 14:28:01 +10:00
amaitland da918d6b75 WPF - Default to using WritableBitmapRenderHandler for DPI 100%
- No longer use InteropBitmapRenderHandler as the default (InteropBitmap doesn't support DPI scaling).
- Remove old IncreaseBufferInteropRenderHandler as reusing the buffer causing glitching as detailed in https://github.com/cefsharp/CefSharp/issues/3114#issuecomment-717334316

Issue #3114
2020-10-28 16:09:14 +10:00
amaitland c04c20fc44 WPF - InteropBitmapRenderHandler always create new buffer
InteropBitmap is strangely glitching on resize when reusing the same buffer as detailed in https://github.com/cefsharp/CefSharp/issues/3114#issuecomment-717334316
Go back to the old method approach of creating a new buffer for every resize operation.

Revert part of commit https://github.com/cefsharp/CefSharp/commit/b1bd7499e578f2486ad1c49f0b4bdc93c63d790f#diff-10ce38e86ac5782d06a15b191dc6216fd098f3e23fe1fa88b3711761d8944055

InteropBitmapRenderHandler will no longer be the default shortly.

Issue #3114
2020-10-28 16:08:42 +10:00
Alex Maitland f8a1b658f9 Core - DevToolsClient release DevToolsEvent on Dispose
Set DevToolsEvent event to null to prevent memory leaks
2020-10-28 16:08:29 +10:00
amaitland e815bdeef3 build - fix packages.config reference in build scripts 2020-10-28 16:08:02 +10:00
amaitland f500fb3ee5 Core - Update build/readme to 86.0.17 2020-10-28 16:08:01 +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 79fe405208 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-28 16:02:03 +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
v85.3.130
2020-10-25 11:59:13 +10:00
amaitland c530e9ed36 Xml Doc - Fix param reference v85.3.121 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 aa8e8b3208 Core - HtmlString charSet was never assigned 2020-10-23 13:14:11 +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 dadb4fa707 Test - Add CanEvaluateScriptAsPromiseAsyncReturnObject
Promise return complex object

Issue #3251
2020-10-20 07:19:19 +10:00
amaitland fe4c0b66a2 Test - Add expiry to DevToolsClientFacts.CanSetCookieForDomain test
#3218
2020-10-16 19:57:43 +10:00