Commit Graph

5724 Commits

Author SHA1 Message Date
Alex Maitland 5bf6107963 Core - Add RequestContextExtensions.RegisterOwinSchemeHandlerFactory v89.0.170 2021-04-05 14:37:39 +10:00
Alex Maitland a257cd5828 Core - Add OwinResourceHandler and OwinSchemeHandlerFactory
Very basic implementation ported from https://github.com/amaitland/CefSharp.Owin

- Currently no multi part post support
- No support for cancellation token
2021-04-05 14:31:35 +10:00
Alex Maitland 6fa25ab9db Test - Improve reliability of JavaScriptObjectRepositoryFacts.CanRegisterJavascriptObjectBindWhenNamespaceIsNull
- JavascriptObjectRepository generates object ids using a static counter, we need to get the object Id for this
  test to be reliable, using an Object Id of 1 will fail if the test order isn't in a very specific order
2021-04-05 13:38:02 +10:00
Alex Maitland 047bf9198b DevTools Client - Update to CHROMIUM 89.0.4389.114 2021-04-05 10:55:04 +10:00
Alex Maitland 1599bfa9cd Javascript Binding - Fix failing .Net Core Test case
- Add condition to calling Register()
- Add license disclaimer

Follow up to #3467
2021-04-05 10:54:22 +10:00
pedoc 1ff25441ea Javascript Binding - Allow binding to classes in the global namespace (#3467)
* fix IsComplexType NullReferenceException

Sometimes, the registered Javascript object does not have a namespace, at this time this function will throw a ```NullReferenceException```.

* add unit test for IsComplexType

* Simplify and remove useless code

* Update CefSharp/Internals/JavascriptObjectRepository.cs

Co-authored-by: campersau <buchholz.bastian@googlemail.com>

Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com>
Co-authored-by: campersau <buchholz.bastian@googlemail.com>
2021-04-05 10:31:15 +10:00
Alex Maitland 18790d1ca9 Update build version numbers to 89.0.170 2021-04-05 10:30:48 +10:00
Alex Maitland 6efd867720 Upgrade to CEF 89.0.17+ge7bbb1d+chromium-89.0.4389.114 / Chromium 89.0.4389.114 2021-04-05 10:06:41 +10:00
Alex Maitland 6ced76a461 WPF - Pass 0 to SendKeyEvent as lparam instead of modifiers
Resolves #3462
2021-04-01 17:16:28 +10:00
Alex Maitland f84852a0ff Net Core - Assembly.GetEntryAssembly can return null when loaded from an unmanaged application
- Add null check and use currently assembly location to resolve libcef.dll

The GetEntryAssembly method can return null when a managed assembly has been loaded from an unmanaged application.
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getentryassembly?view=net-5.0
2021-04-01 16:54:52 +10:00
Alex Maitland 1692c1b9d1 Net Core - DependencyChecker fix AnyCPU validation for CefSharp.Core.Runtime.dll
Resolves #3388
2021-03-27 15:17:01 +10:00
Alex Maitland fc2ce2608d Upgrade to CEF 89.0.14+gb1b52fe+chromium-89.0.4389.90 / Chromium 89.0.4389.90 v89.0.140-pre 2021-03-25 10:40:22 +10:00
Alex Maitland c9ad3645ed Revert "ClickOnce - Load CefSharp.dll from parent directory if not in current directory"
This reverts commit d3a2da4be3.
This reverts commit aee97e650d.

Change needs more work/testing so reverting for now in preparation for the 89-pre release
2021-03-25 10:22:47 +10:00
Alex Maitland d3a2da4be3 ClickOnce - Load CefSharp.dll from parent directory if not in current directory
Still not loading, move the EnableHighDPISupport into internal method

Follow up to https://github.com/cefsharp/CefSharp/commit/aee97e650dd1d3099e17cf84930bc016b84e6c4c
2021-03-24 20:30:34 +10:00
Alex Maitland 8713e74075 Nuget - TargetPlatform Map Win32 to x86 (VC++ projects) 2021-03-23 15:18:39 +10:00
Alex Maitland d01a27e244 Net Core - Update RefAssemblty (Add Cef.GetMinLogLevel) 2021-03-23 15:14:47 +10:00
Alex Maitland fb5a6a00d8 Core - DependencyChecker now supports AnyCPU
- Remove the .Net Core specific implementation, was easier to unify them than first though
- Split checking for dlls into different folders to support AnyCPU
2021-03-23 15:14:46 +10:00
Alex Maitland c13961d90d Update build version to 89.0.120 2021-03-23 10:48:19 +10:00
Alex Maitland 1011f727ee Net Core - Add DependencyChecker.netcore
Specific .Net core DependencyChecker that takes care of the specifics of running under .Net Core/.Net 5.0
Later on the DependencyChecker can be unified.

Issue #3388
2021-03-23 10:37:01 +10:00
Alex Maitland 79fdfcfe8a Nuget - Improvements and formatting fixes
- Remove CefSharpBuildAction default to NoAction when Nuget 5.0 and Library
  For those writing plugins this would have resulted in no files being copied, will rely on users setting
  to NoAction themselves when required
- When $PlatformTarget is empty default to $Platform as the fallback, older Non SDK Style library projects
  are known to not set PlatformTarget when Platform is AnyCPU which would have resulted in only the x86 files being copied.
- Fix formatting of CefSharp.Common.NETCore.targets
2021-03-23 09:52:14 +10:00
Alex Maitland aee97e650d ClickOnce - Load CefSharp.dll from parent directory if not in current folder
When publishing with ClickOnce targeting AnyCPU the x64 folder is missing a copy of CefSharp.dll which is required by the BrowserSubprocess.
The file is copied correctly when the projects builds normally, so there's some quirk of the Publish process.

Temp workaround

Issue as described at https://github.com/cefsharp/CefSharp/issues/3319#issuecomment-791783346
2021-03-22 15:14:34 +10:00
Alex Maitland f1635de045 Upgrade to CEF 89.0.12+g2b76680+chromium-89.0.4389.90 / Chromium 89.0.4389.90 2021-03-22 14:42:09 +10:00
Alex Maitland 268e3024ae Example - Remove renderer-process-limit and add disclaimer
Related #3447
2021-03-22 14:25:19 +10:00
billshinji c51ec7ad9d WPF - Japanese IME unable to enter space (#3455)
This is a fix in response to the issue of not emitting spaces in Japanese IME (from @karthikeyancdm).
After all, it turns out that ImeSetComposition() and ImeFinishComposingText() should be invoked regardless of the current language.
2021-03-22 14:25:19 +10:00
Alex Maitland e78e18fdb0 * WPF - Add OnDpiChanged for NetCore builds
Automatically deals with DPI Change

Issue #3388
2021-03-16 16:00:57 +10:00
Alex Maitland 03446d4daf Nuget - Sdk Style Project targeting AnyCPU generate error when PlatformTarget not set
When targeting AnyCPU with an SDK Style project PlatformTarget will default to x86 before build
and after build it will have been correctly updated to AnyCPU. This is too late for our purpose as we
have already copied the x86 files resulting in a build that won't run on an an x64 machine.

Issue https://github.com/dotnet/sdk/issues/1560

Disable an error to the user. Add <PlatformTarget>AnyCPU</PlatformTarget> as simple workaround to proj file.

See also https://github.com/cefsharp/CefSharp/discussions/3430 for background.

Release #3446
2021-03-16 15:31:13 +10:00
Alex Maitland 6b27ba8d2b Test - Fix a couple of javascript warnings 2021-03-16 15:31:13 +10:00
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 2a697ee694 Core - Fix xml doc 2021-03-16 15:29:21 +10:00
Alex Maitland 3df8a59ac4 DevTools Client - Upgrade to 89.0.4389.72 2021-03-16 15:29:20 +10:00
Alex Maitland f84a120e98 Nuget (Net Core) - Add CefSharpBuildAction to CefSharpAfterBuildDiagnostic 2021-03-16 15:28:32 +10:00
Alex Maitland bb56e899e4 Xml Doc - Fix cref 2021-03-16 15:28:32 +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
Alex Maitland 1f72e1820a Javascript Binding - ClientAdapter.MethodInvocationComplete NRE
Resolves #3443
2021-03-12 11:59:51 +10:00
Alex Maitland c57a7c914f Examples - Re-Add CefSharp.Core.Runtime reference.
Switching between Win32 and x86 builds locally and sometimes you end up with a reference to the
incorrect arch dll as it looks like the compiler thinks its up to date and doesn't copy the new dll.
Was easily fixed by calling Clean, was time consuming though.
2021-03-11 15:23:02 +10:00
Alex Maitland d953ac42ec Core - ManagedCefBrowserAdapter::InitializeBrowserProcessServiceHost improve Dispose handling
As the browser is Disposed on a different Thread to OnAfterBrowserCreated is called there's possibility of an ObjectDisposedException.
Instead of locking just catch and ignore the error as it's extremely rare

Resolves #3437
2021-03-11 15:23:01 +10:00
Alex Maitland d130c578f0 Core - Tweak Build order 2021-03-11 15:23:01 +10:00
Alex Maitland f554571dd1 Core - Remove RefAssembly Generation from Net452 packages
- They're not generated under VS2015 (AppVeyor) so didn't end up using them
2021-03-11 15:23:00 +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 99ed5e64a1 Nuget - Update Readme.txt
- Updated dependency list
2021-03-11 14:28:10 +10:00
Alex Maitland be40187810 Nuget - Remove SDK Style project workaround for not PlatformTarget specified
- Remove the workound as it's not working (behaviour is different depending on the SDK version installed)
- Add Prefer32Bit to diag output

For SDK style projects the $(PlatformTarget) is incorrectly set by default
Issue https://github.com/dotnet/sdk/issues/1560

Explicitly setting $(PlatformTarget) in your project file is the recommended solution until the above issue is fixed.
2021-03-09 15:01:29 +10:00
Alex Maitland c052927402 Nuget - Fix formatting 2021-03-09 14:26:58 +10:00
Jozef Izso dc849aa903 Fix typos in CefSharp.Common.targets (#3426) 2021-03-08 12:03:56 +10:00
Alex Maitland fc299762d4 Nuget - CefSharpAfterBuildDiagnostic add extra properties 2021-03-06 13:42:02 +10:00
Alex Maitland 183132bae1 Nuget - Default CefSharpBuildAction to NoAction when Library project PackageRef Nuget > 5.0
- NoAction should now disable AnyCPU checks
- Default to NoAction when Library and Nuget 5.0 when using PackageReference, the Transitive references should flow through to the consuming
projects.
2021-03-06 13:42:02 +10:00
Alex Maitland 894cbabd92 README.md - Update Release branches table with 88 Release and creating of upcoming 89 branch 2021-03-06 13:04:03 +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 5034014f04 Net Core - Nuget Add CefSharpBuildAction and default to NoAction for Class Library
For class libraries we don't want to copy our files into their output folder by default as they won't actually,
so added CefSharpBuildAction and defaulted to NoAction (can be overridden by the user if required).

Consuming packages will have the transitive reference added and files copied into WinExe/Exe projects by default
2021-03-06 12:59:37 +10:00
Alex Maitland 9ccf82ce09 Net Core - WinForms remove Microsoft.Net.Compilers packagereference
Not sure of the reason I included it, it's not required.
2021-03-06 12:59:36 +10:00
Alex Maitland e626015b6e Net Core - Nuget chromiumembeddedframework.runtime include BuildTransitive
Update dependency includes add BuildTransitive
2021-03-06 12:59:36 +10:00