Commit Graph

45 Commits

Author SHA1 Message Date
amaitland c00744cd5a Upgrade to 149.0.4+g2f1bfd8+chromium-149.0.7827.156 / Chromium 149.0.7827.156 2026-06-20 20:05:15 +10:00
Schuyler Tan 95d20a8265 Core - Support Chrome command execution. (#5257)
* Core - Support Chrome command execution.

- Add `Cef.MapChromeCommandNameToId`.
- Add `IBrowserHost.CanExecuteChromeCommand`
- Add `IBrowserHost.ExecuteChromeCommand`
2026-06-13 07:09:27 +10:00
Jozef Izso e4991c2947 Add the RequestContext.ClearHttpCache(callback) method.
This exposes the `CefRequestContext::ClearHttpCache(callback)` from CEF 144 release.
See the `cef.sdk\cef\include\cef_request_context.h` file.
2026-06-03 17:34:47 +10:00
strau0106 6381ab2f4f Core - Add chrome_policy_id to CefSettings (#5227)
* Core - Add chrome_policy_id to CefSettings

* Core - Update RefAssembly for ChromPolicyID in CefSettings.
2026-03-27 12:23:14 +10:00
Alex Maitland 7b9e24db55 Core - Upgrade to stdcpp20 (#5215)
* Core - Upgrade to stdcpp20

- Set NOMINMAX
- Change compiler options
- Fix compiler errors

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
2026-02-21 14:48:13 +10:00
amaitland b6fcbab952 Upgrade to 139.0.28+g55ab8a8+chromium-139.0.7258.139 / Chromium 139.0.7258.139 2025-08-23 14:36:09 +10:00
Schuyler Tan (SLT World) c966a907ee Add ChromeStatusBubble and ChromeZoomBubble (#5160) 2025-08-22 12:13:27 +10:00
Alex Maitland c38d5010a9 NetCore - Upgrade minimum version to 6.0 (#5127)
* NetCore - Upgrade minimum version to 5.0

* Update platform target
* Change to windows 10 specific TFM for top level packages
* Upgrade to .Net 6
* Nuget - Update packages
* Net Core - Fix dotnet test path
* Add Test Sdk and update Runner

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
2025-07-05 13:59:17 +10:00
amaitland 6ecb45755a NetCore - Update Ref assembly 2025-07-01 21:07:16 +10:00
amaitland b53ff70ef9 Core - IRequestContext add new GetWebsiteSetting/SetWebsiteSetting and GetContentSetting/SetContentSetting
Resolves #4991
2024-11-23 09:43:27 +10:00
amaitland 606d9df7be Core - Add Cef.GetErrorCode
- Get the error code for when Cef.Initialize fails

Resolves #4914
2024-10-05 13:36:30 +10:00
amaitland ab34cf161b Remove Alloy Bootstrap (M128) (continued)
- Fix netcore lib

Resolves #4795
2024-09-19 19:03:26 +10:00
Alex Maitland ee522012c8 NetCore - Fix Reference Assembly (IWindowInfo.RuntimeStyle) 2024-05-06 11:28:15 +10:00
Alex Maitland 3ac6487fcc Core - Add Cef.IsWindows10OrGreater and Cef.AssertIsWindows10OrGreater 2024-04-25 17:46:13 +10:00
Mike Bragg 23c9090920 Add in file paths data to DragData (#4649)
* Add in file paths data to DragData

* Update of CefSharp.Core.Runtime.netcore.cs for adding DragData FilePaths and removal of AcceptLanguageList

---------

Co-authored-by: Michael Bragg <michael.bragg@yahooinc.com>
2023-12-16 10:50:33 +10:00
Alex Maitland c26c69a61e Net Core - Update Ref assembly
#4518
2023-08-01 05:45:43 +10:00
Alex Maitland 261894181f Net Core - Update RefAssembly 2023-03-28 06:00:28 +10:00
Alex Maitland 35f3a57688 MSBuild - change from using $(SolutionDir) to $MSBuildThisFileDirectory
- Changes to make CefSharp easier to use as a git submodule
- BrowserSubProcess now builds for net6.0-windows for use with WinForms example
2023-03-13 19:02:18 +10:00
Alex Maitland b5334f8d31 Net Core - Update RefAssembly
- PopupFeatures was updated

Issue #4383
2023-02-02 11:49:33 +10:00
Alex Maitland f8530064b1 Core - Add Cef.PostAction and Cef.PostDelayedAction 2022-06-22 10:52:17 +10:00
Alex Maitland 2cd1c9b5ae Core - Add Cef.WaitForBrowsersToClose(int) overload
- Allow for specifying the timeout in ms
- Update the tests to 5000ms timeout
2022-06-20 13:03:15 +10:00
Alex Maitland f0a72fbe6b Core - Add IWindowInfo.WindowName
Allows setting of the window_name property
2022-06-06 11:08:52 +10:00
Alex Maitland 2ecea01bb0 Net Core - Update Ref Assembly 2022-05-05 12:54:57 +10:00
Alex Maitland e895c41796 Core - Remove CefSettings.ApplicationClientIdForFileScanning
- Was removed upstream.

This is a breaking change.

Resolves https://github.com/cefsharp/CefSharp/issues/4070
2022-04-21 09:18:23 +10:00
Alex Maitland e0bad6387c NetCore - Update RefAssembly 2022-04-04 15:25:27 +10:00
Alex Maitland 0ac43cf69f Core - Remove Remaining Plugin APIs
- Remove plugin references
- Update xml doc comments
- Update ref assembly (netcore)
- Update examples

Issue #4045
2022-03-21 10:01:26 +10:00
Alex Maitland a79e83940b Net Core - Update Ref Assembly 2021-12-08 10:32:33 +10:00
Alex Maitland 5bf5d98fac Net Core - Update ref assembly 2021-10-22 14:48:31 +10:00
Alex Maitland 0e242a8706 Upgrade to CEF 95.7.10+g00d4ad5+chromium-95.0.4638.54 / Chromium 95.0.4638.54
Remove CefBrowserSettings.universal_access_from_file_urls and CefBrowserSettings.file_access_from_file_urls.
https://bitbucket.org/chromiumembedded/cef/commits/ff33d7f72144

Remove CefBrowserSettings.application_cache
https://bitbucket.org/chromiumembedded/cef/commits/370a7749e950ef6784c29a666d07a0b67148dd5f

Remove ignore_certificate_errors setting
https://bitbucket.org/chromiumembedded/cef/commits/aabe4ce466766f8bd9907e7fa30546a3afada214

RequestContextSettings.IgnoreCertificateErrors was removed, the CefSettings.IgnoreCertificateErrors property
now set the command line arg

Use CefRect for CefWindowInfo bounds
https://bitbucket.org/chromiumembedded/cef/commits/8587cc4e4bbc187aa989152e521318818b3f41d3

Additional overload has been added to pass in a Rect directly to SetAsChild

Rename SendFocusEvent to SetFocus
https://bitbucket.org/chromiumembedded/cef/commits/49a4611e28d7bbc221cff816d7c4a96c55ba2721

SendFocusEvent will now call SetFocus internally, the project internally has been updated to use SetFocus for WPF

Replace CefRequestCallback with CefCallback
https://bitbucket.org/chromiumembedded/cef/commits/3e7f1bb529442a6c7674262d9219df57964e9524

No changes to the API for this, I've kept the same interface and just mapped internally

Resolves #3857, #3667, #3668
2021-10-22 14:45:12 +10:00
campersau 443b47e8e9 Core - Add ParseUrl to RefAssembly (#3827) 2021-09-26 06:07:55 +10:00
Alex Maitland f5bbb88522 Net Core - Update Ref Assembly Generated Code 2021-09-05 10:51:49 +10:00
Alex Maitland d350cad52a Update to M93 (#3781)
* Upgrade to CEF 93.1.7+g9117d6a+chromium-93.0.4577.42 / Chromium 93.0.4577.42

- Core - Add basic ref counting implementation

IMPLEMENT_REFCOUNTING implementation uses atomic which
forces the VC++ compiler to compile as native which doesn't work for our managed ref classes.

    - Use InterlockedCompareExchange for custom ref count reads
    - Use InterlockedIncrement/InterlockedDecrement directly
    - There's no memory barrier for HasOneRef/HasAtLeastOneRef as the read of a LONG should happen in one operation
on 32/64 bit architectures (at least that's my understanding at this point in time).

    References:
    https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_x86_msvc.h#L125
    https://github.com/chromiumembedded/cef/blob/4472/include/base/internal/cef_atomicops_arm64_msvc.h#L107
    https://github.com/chromiumembedded/cef/blob/4472/include/base/cef_atomic_ref_count.h#L114
    https://github.com/chromiumembedded/cef/blob/4472/include/cef_base.h#L91

-  Remove Microsoft.Net.Compilers package from projects
Now that we require a min of VS2019 to build there's no need for a custom compiler package
- Start removing VS2015/VC++2015 references
- Remove RegisterWidevineCdm
This is a breaking change. CEF will now automatically download the Widevine CDM component
Resolves #3767

- RequestContext.LoadExtension now uses managed to code spawn on CEF UI Thread
Avoid having to use cef_callback.h which was causing problems for x86 builds
2021-09-03 10:51:18 +10:00
Alex Maitland ff19eaa005 Net Core - Update RefAssembly source 2021-06-18 16:22:07 +10:00
campersau 1723288533 Add ChromeRuntime to RefAssembly CefSharp.Core.Runtime.netcore (#3486) 2021-04-09 05:31:29 +10:00
Konstantin Preißer 462bc747bd Add support for Windows ARM64 to CefSharp.NETCore packages (#3359)
* Add support for Windows ARM64 for the NETCore packages.

Note: .NET 5.0 or higher is required to build a WinForms/WPF application for win-arm64.

Fixes cefsharp/CefSharp#2944

* PR feedback: Remove "WIN32" define as it is already defined by minwindef.h.

* PR feedback: Switch the CefSharp.*.Example.netcore and CefSharp.Test.netcore projects from cef.redist to chromiumembeddedframework.runtime.

Note: These projects are excluded for build when platform is 'arm64', as otherwise the build fails as WinForms and WPF are not yet available for ARM64 in .NET 5.0.

* Follow-Up: Update path to CefSharp.Test.dll.

* PR feedback: Also use RuntimeInformation for the .NET Framework example projects.

* PR feedback:
- Remove copying of CefRedist files in CefSharp.AfterBuild.targets which is no longer needed.
- Update .vsconfig to include the VC ARM64 build tools.
2021-04-01 17:27:48 +10:00
Alex Maitland 223af40803 Core - Remove IBrowserSettings.WebSecurity
Web Security can be disabled via the "disable-web-security" command-line switch.

This is a breaking change.

Resolves #3312
2021-03-27 13:05:06 +10:00
Alex Maitland 2b5aed7e78 Net Core - Update RefAssemblty (Add Cef.GetMinLogLevel) 2021-03-23 15:14:21 +10:00
Alex Maitland 536c49629c Core - Remove CefSharp.Core.Runtime.RefAssembly
No longer generate a ref assembly for the older net452 packages, CefSharp.Core.Runtime.dll should now purely be
a runtime dependency
2021-01-29 15:05:19 +10:00
Alex Maitland b4e189bf4f Core - Add Cef.GetMinLogLevel()
Gets the current log level
2021-01-27 13:39:04 +10:00
Alex Maitland a713c21d6b Core - Improve reference assembly generation
- Will now work with Debug/Release builds correctly

TODO: Still needs to deal with x64/x86 variants properly, currently it uses x86 first if exists, then falls back to x64
If both exist then x86 is used regardless which might not always be correct.
2021-01-15 13:40:36 +10:00
Alex Maitland 2bdb4d9702 Net Core - Update Core Runtime RefAssembly 2021-01-13 19:29:33 +10:00
Alex Maitland 12e583d2ef Core - PublicApi remove references to CefSharp.Core.Runtime
- Add an UnWrap method to the interfaces (should be hidden from IntelliSense)
- For .Net 4.5.2 projects they're  not a decorator class which an inner instance of the CefSharp.Core.Runtime Type
- For Net Core we have a ref assembly which allows us to reference the CefSharp.Core.Runtime without issues
  We can potentially remove the ref assembly now and forgo any direct reference.
2021-01-13 16:56:57 +10:00
Alex Maitland 580042e58d Update version number to 88.1.0 2021-01-11 10:58:53 +10:00
Alex Maitland 3bba4222a6 Core - Update CefSharp.Core.RunTime Ref Assembly
The generated code keeps wanting to add a blank line
2021-01-09 15:12:20 +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