Commit Graph

5522 Commits

Author SHA1 Message Date
amaitland 0e27cd2db4 Nuget - Update NetCore packages 2020-10-31 19:15:23 +10:00
amaitland 4248aadc7c Build - Disable CodeQL for now.
It's failing with an out of memory error. Not sure what we can do about that at the moment

There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 30408704 bytes for Failed to commit area from 0x00000007f9300000 to 0x00000007fb000000 of length 30408704.
2020-10-31 09:30:23 +10:00
amaitland 049172fbba WPF - CompositionTargetRenderHandler improve Dispose 2020-10-31 09:25:07 +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 839e6ceee4 WPF - Resize Glitches (Image glitches during resize)
- WritableBitmapRenderHandler/InteropBitmapRenderHandler ignore update if size doesn't match
- Revert back to using WritableBitmapRenderHandler as the default implementation
- CompositionTargetRenderHandler only update bitmap if buffer is dirty
- AllocHGlobalWritableBitmapRenderHandler only update bitmap if buffer is dirty

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:51:12 +10:00
amaitland b24efd2853 WPF - Resize Glitches (Image glitches during resize)
- 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:30:35 +10:00
amaitland c2e343e23d WPF Example - ExperimentalLifespanHandler improve DevTools detection 2020-10-30 13:09:38 +10:00
amaitland fb289d49d8 WPF - Add AllocHGlobalWritableBitmapRenderHandler
A port of WritableBitmapRenderHandler to use Marshal.AllocHGlobal instead of MemoryMappedFile

Remove disable-gpu-compositing command line arg

Resovles #3114
2020-10-28 15:39:33 +10:00
amaitland 59b8e7fbdd 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 13:42:01 +10:00
amaitland a8119cc145 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 13:26:36 +10:00
Alex Maitland abd170c925 Core - DevToolsClient release DevToolsEvent on Dispose
Set DevToolsEvent event to null to prevent memory leaks
2020-10-27 13:58:47 +10:00
mattkol 7ef3da4126 Adding Chromely to "Projects using CefSharp" (#3264) 2020-10-26 05:34:26 +10:00
amaitland 18be7f767f README.md - Update as 85.3.130 as been released 2020-10-25 13:36:04 +10:00
amaitland 7012dc5922 codeql-analysis.yml - disable cpp for now
Only run on master also
2020-10-25 12:47:38 +10:00
amaitland 1f9519206d codeql-analysis.yml - Use Windows build worker 2020-10-25 12:05:09 +10:00
amaitland 9be805cf62 Xml Doc - Fix param reference 2020-10-25 12:04:04 +10:00
amaitland ae22607fe1 Xml Doc - Minor improvements 2020-10-25 12:04:03 +10:00
amaitland 77f2ed88db Core - HtmlString charSet was never assigned 2020-10-25 12:04:02 +10:00
amaitland dad43386c0 Core - JavascriptCallbackProxy::ExecuteWithTimeoutAsync return failure task
The failure task wasn't being returned (surprised VC++ actually compiled).
2020-10-25 12:04:01 +10:00
Alex Maitland b8c7321536 Create codeql-analysis.yml 2020-10-25 05:17:19 +10:00
Alex Maitland a2aeee9bf3 Update CONTRIBUTING.md
Update CEF Client links
2020-10-23 14:22:03 +10:00
Alex Maitland b10f75cfc2 Update bug_report.md
Update CEF Client Links and version numbers for upcoming 85.3.121 release
2020-10-23 14:21:38 +10:00
Alex Maitland f936100b07 Update bug_report.md
Update version number.
2020-10-21 19:29:44 +10:00
amaitland 3372ce8a57 Build - Generate Ref Assemblies for .Net 4.5.2 assemblies
Only for Release builds.

This appears to work as expected under VS2017, not sure about VS2015
Roslny .Net compiler upgraded to 2.4 allows for Ref Assembly generation
2020-10-21 18:10:04 +10:00
amaitland 5d4897f4c6 Core - Add Microsoft.Net.Compilers 2.4
This is the last version to support .Net 4.5.2
Set allowedVersions="2.4"  to stop from updating to a newer version which won't compile under VS2015
2020-10-21 17:55:29 +10:00
amaitland 0d25b7910b Net Core - CefSharp.dll wasn't being copied at runtime
Issue #3197
2020-10-21 17:28:39 +10:00
amaitland 6181e141a0 build - fix packages.config reference in build scripts 2020-10-21 16:09:18 +10:00
amaitland 33146a4e89 Core - Update build/readme to 86.0.17 2020-10-21 15:58:49 +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 841156c8ee Test - Add CanEvaluateScriptAsPromiseAsyncReturnObject
Promise return complex object

Issue #3251
2020-10-20 07:18:28 +10:00
amaitland 2d3be70609 Test - Add expiry to DevToolsClientFacts.CanSetCookieForDomain test
#3218
2020-10-16 19:58:30 +10:00
amaitland 74e77eb086 Core - Improve DevTools Client xml doc 2020-10-16 19:58:28 +10:00
amaitland 10f6a4bd20 Core - Add Cookie.SameSite and Cookie.Priority
Resolves #3254
2020-10-14 14:56:35 +10:00
amaitland 752de82395 Upgrade build version to 83.5.121 2020-10-13 15:20:55 +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 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
Alex Maitland fdba655cf5 Core - Change WindowsTargetPlatformVersion to 10.0
According to https://developercommunity.visualstudio.com/content/problem/140294/windowstargetplatformversion-makes-it-impossible-t.html#reply-548052
this will use the 'latest installed version of Windows 10 SDK'

Issue #3197
2020-10-10 20:34:21 +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 d0b53da211 Core - Fix IRequestContextHandler.GetResourceRequestHandler never called
CefRequestContextHandlerAdapter now implements GetResourceRequestHandler
2020-10-04 15:13:33 +10:00
amaitland 13e74fea8d README.md - Update in preparation for branching cefsharp/85 2020-10-04 14:47:25 +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 b4c2e359a6 Core - Improve IRequestContext.SetProxy extension Method
- Add tests
- Add better validation

Issue #3235
2020-10-02 17:13:49 +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
amaitland 02d51747f5 Core - Update CefErrorCode xml doc
Update BlockedByAdministrator xml doc

https://source.chromium.org/chromium/chromium/src/+/refs/tags/85.0.4183.102:net/base/net_error_list.h;l=93

Replaces #3245
2020-10-02 10:25:25 +10:00
amaitland 6b56bfd552 Core - Add IRequestContext.SetProxy
Add helper method for setting proxy on RequestContext

Issue #3235
2020-10-02 10:25:24 +10:00
amaitland e149cabe07 Example - Move RequestContextHandler into CefSharp.Example
Was previously only in WPF project, move into the common CefSharp.Example
as there was nothing WPF specific out the class.
2020-10-02 10:25:23 +10:00