Alex Maitland
b17cd2a1b2
Core - High-DPI support is now enabled by default in Chromium.
...
- Chromium now enables DPI awareness programmatically by default
- Remove Cef.EnableHighDPISupport calls and mark as obsolete
- Remove dpiawareness entries from app.manifest
Issues #4417 #4410
2023-03-07 13:03:53 +10:00
Alex Maitland
852b0f2d7f
Core - RequestContext add ArgumentNull checks
2022-12-06 10:03:47 +10:00
Alex Maitland
2bf95438a9
Core - Add Cef.ShutdownStarted event
2022-11-08 14:42:12 +10:00
Alex Maitland
92892c9b85
WPF - Add ChromiumWebBrowser.ToggleAudioMuteCommand
...
- Add new extension method to toggle audio mute
- Add new command to toggle audio mute
- Add new menu item to WPF Example
Resolves #3247
2022-10-25 12:32:01 +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
61f581346a
Remove Legacy Swiftshader
...
- Update readme files
- Remove from targets
- Remove text references
Issue https://github.com/cefsharp/CefSharp/issues/4085
2022-05-24 15:13:31 +10:00
Alex Maitland
b4c4913b35
Core - Add IDownloadHandler.CanDownload
...
- Add IDownloadHandler.CanDownload
- Add to Fluent implementation
- Update examples
https://bitbucket.org/chromiumembedded/cef/commits/6d7a6801871cd4fcceb174dfa99a5b46da6253c1
Resolves #4090
2022-05-05 12:40:33 +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
df562dd251
WPF - Workaround for Cursors not loading correctly
...
- For cursors that are embedded in libcef.dll the OnCursorChange method is passing
in IntPtr.Zero so we're unable to load the cursor.
This commit adds a manual mapping of CursorType to resource Id and loads the cursors manually
- Adds a basic test to assert the cursors load, should validate if the resource ids change
This needs to be fixed upstream https://bitbucket.org/chromiumembedded/cef/issues/3270/osr-pan-icon-missing-when-pressing-the
Test url https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values
Issue #4021
2022-04-04 14:45: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
009687f7dd
Core - SetCrashKeyValue fix key not being passed to CEF
2022-02-22 11:33:47 +10:00
Alex Maitland
54bd29a551
Core - Fix typo
2022-02-22 11:17:40 +10:00
Alex Maitland
571a1db548
Core - Further migration of extensions methods from IWebBrowser to IChromiumWebBrowserBase
...
- EvaluateScriptAsync can now be used from IChromiumWebBrowserBase, if also IWebBrowser then
main frame check will occur as previous.
Related to #3944
2022-01-10 13:44:29 +10:00
Alex Maitland
8160ec1ce4
Remove IRequestContextHandler.OnBeforePluginLoad and IRequestContext.PurgePluginListCache
...
Resolves #3924
2021-12-07 14:54:11 +10:00
Alex Maitland
0fc3ae2323
Core - Add CefSettingsBase.IsDisposed
...
- Dispose CefSettingsBase
- Take a copy of the CefSettings struct and free our pointer
2021-11-25 09:45:29 +10:00
Alex Maitland
d46f6380ad
Core - Cef.InitializeAsync add optional IBrowserProcessHandler param
...
Issue #3634
2021-10-28 11:10:08 +10:00
Alex Maitland
4a07af26e9
Core - Rename WaitForBrowserInitialLoadAsync to WaitForInitialLoadAsync and simplify
...
- Initial intention was to have a reusable method that could be used CefSharp.Wpf.HwndHost,
upon further deliberation I've decided to build the functionality into the ChromiumWebBrowser.Partial.cs
and will need to duplicate the functionality in CefSharp.Wpf.HwndHost. This guarantees that the
Task will be resolved in all cases. The previous implementation there was a theoretical change we'd
miss subscribing to the relevant events
- Remove CancellationToken as it's not possible to cancel
Issue #3842
2021-10-28 10:31:03 +10:00
Alex Maitland
91b7514a1c
WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync
...
Second attempt at WaitForBrowserInitialLoadAsync, includes optional
CancellationToken param.
Issue #3842
2021-10-27 13:58:57 +10:00
Alex Maitland
9993aa78e0
OffScreen - Create Browser when Global CefRequestContext initialized.
...
- GlobalContextInitialized wraps a TaskCompletionSource which is resolved
when the Global CefRequestContext has been created
- Reduce code duplication
If successful we can apply the same changes to WinForms/WPF though they're less likely to have
issues than the OffScreen implementation as the CreateBrowser doesn't happen until much later
Issue #3850 #3634
2021-10-26 14:31:10 +10:00
Alex Maitland
1524482ede
Core - Add Cef.InitializeAsync
...
- InitializeAsyncBrowserProcessHandler is used to complete the taskCompletionSource
when OnContextInitialized is called
- Update the OffScreen example to be async with a simply SingleThreadSynchronizationContext
to ensure we continue on our main thread.
Issue #3634
2021-10-22 20:10:38 +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
Alex Maitland
67a08c47ee
BrowserSubProcess/Examples/Tests - Migrate to newer SDK Style projects
...
- Migrate to new SDK style projects
- Migrate to chromiumembeddedframework.runtime packages
- Remove old packages.config files
- Update post build event for BrowserSubprocess to set TSAware/LargeAddressAware
- Change project build order
Issue #3706
2021-10-12 19:48:11 +10:00
Alex Maitland
544abc68d1
Revert "WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync"
...
Tests started failing so will revisit later.
This reverts commit 08e5140060 .
2021-10-11 10:14:31 +10:00
Alex Maitland
08e5140060
WinForms/WPF/OffScreen - Add WaitForBrowserInitialLoadAsync
...
Change all the tests to use WaitForBrowserInitialLoadAsync instead of LoadUrlAsync
as LoadUrlAsync will require a Url as part of #3842
2021-10-10 14:41:04 +10:00
campersau
5fed32012a
Core - Ignore netcore output in netframework projects ( #3828 )
2021-09-25 21:09:01 +10:00
Alex Maitland
65534275b7
Core - Upgrade to newer SDK Style project
...
- Upgrade CefSharp.Core.csproj
- Upgrade CefSharp.csproj
- Ensure pdbs are generated for release builds with same settings as before
Issue #3791
2021-09-20 11:32:14 +10:00
Alex Maitland
c5ba1ce430
Core - Add Cef.ParseUrl
...
Uses GURL to parse the Url (Google's URL parsing library)
2021-09-16 10:05:34 +10:00
Alex Maitland
172ee5afe8
Migrate from GitLink to Source link
...
Resolves #3036
2021-09-07 12:08:56 +10:00
Alex Maitland
dcfce1b5d4
Core - Update CefSettings.UserDataPath xml doc
...
Updated to reflect Widevide CDM changes
Issue #3767
2021-09-05 14:23:21 +10:00
campersau
449cb30b0b
AppVeyor - Build both solutions and use dotnet test
2021-09-03 10:53:28 +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
Jozef Izso
5d14f7c159
Add property Cef.IsShutdown to allow checks for the shutdown state of Cef runtime ( #3782 ) ( #3783 )
2021-08-31 07:15:55 +10:00
Alex Maitland
e03b166c0c
.Net Core/.Net 5 - Module Initializer When CurrentFolder IsNullOrEmpty use AppContext.BaseDirectory
...
Resolves #3772
2021-08-25 09:58:03 +10:00
Alex Maitland
bec06b2495
Add Fluent DownloadHandler ( #3576 )
...
* Core - Add Fluent DownloadHandler implementation and IFrame.DownloadUrlAsync
Resolves #3550
2021-06-01 13:34:21 +10:00
Alex Maitland
f4dc756597
Net Core - ModuleInitializer add null check for Assembly.Location
...
In .NET 5.0 and later versions, for bundled assemblies, Assembly.Location is an empty string.
https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.location?view=net-5.0
Which results in Path.GetDirectoryName returning null, in that case use use AppContext.BaseDirectory
otherwise Path.Combine will throw an exception.
In .NET 5.0 and later versions, for bundled assemblies, AppContext.BaseDirectory returns the containing directory of the host executable.
https://docs.microsoft.com/en-us/dotnet/api/system.appcontext.basedirectory?view=net-5.0
Related discussion https://github.com/cefsharp/CefSharp/discussions/3533
2021-05-01 16:11:51 +10:00
Alex Maitland
09652614bd
Rename CefSettings.ProductVersion to CefSettings.UserAgentProduct
...
This is a breaking change.
Resolves #3530
2021-04-30 11:39:09 +10:00
Alex Maitland
191d13bba1
Core - Make ModuleInitializerAttribute internal
...
Issue #3519
2021-04-23 16:12:00 +10:00
Alex Maitland
6ea5ac49c8
Core - Remove ICookieManager.SetSupportedSchemes
...
- The method was removed upstream.
- New properties have been added to CefSettings and RequestContextSettings
**Breaking Change**
Resolves https://github.com/cefsharp/CefSharp/issues/3497
2021-04-13 15:10:38 +10:00
Alex Maitland
94fb45766d
CefSettings - **EXPERIMENTAL** Add ChromeRuntime
...
https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks
2021-04-08 12:59:19 +10:00
Alex Maitland
fdea682b3f
Core - Add IRequestContext.IsDisposed
2021-04-06 16:39:09 +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
36de22502c
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:19 +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
5780aefda3
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-12 13:15:31 +10:00
Alex Maitland
c8968d46b7
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:22:25 +10:00
Alex Maitland
6ea651bf55
BrowserSubprocess - Update SelfHost example
2021-02-21 19:47:59 +10:00
Alex Maitland
b4e189bf4f
Core - Add Cef.GetMinLogLevel()
...
Gets the current log level
2021-01-27 13:39:04 +10:00
Alex Maitland
497e75c267
Test - Add CanLoadRequestWithPostData test
2021-01-15 13:40:37 +10:00