Commit Graph

6294 Commits

Author SHA1 Message Date
Alex Maitland 4808f4129d Devtools Client - Upgrade to Chromium 94.0.4606.54 2021-09-24 10:47:45 +10:00
Alex Maitland d1c7b8b998 Upgrade to CEF 94.3.0+gffef496+chromium-94.0.4606.54 / Chromium 94.0.4606.54 2021-09-24 10:23:33 +10:00
Alex Maitland 3f27c9d7ae ClickOnce - Remove attempt at AnyCPU workaround
Wasn't working so reverting for now
2021-09-23 14:36:08 +10:00
Alex Maitland a566c284aa ClickOnce - AnyCPU Use full path 2021-09-23 13:46:15 +10:00
Alex Maitland 6ce9958d2d WPF - Add System.Windows.Controls.ContextMenu based ContextMenuHandler (#3815)
* WPF - Add System.Windows.Controls.ContextMenu based ContextMenuHandler

Based of https://github.com/chromiumembedded/cef/blob/ba46b8c53ed0f46cec82a1aebaec173784deb6e4/libcef/browser/menu_manager.cc#L385

* Add model class instead of passing in params
2021-09-23 13:43:28 +10:00
Alex Maitland 2b8f1f4b1a ClickOnce - Load CefSharp.dll from parent directory if not in current directory
Assembly.LoadFile wasn't working for some reason, switch to using AppDomain.CurrentDomain.AssemblyResolve
Only attach to even if file doesn't exist within the current project

Follow up to https://github.com/cefsharp/CefSharp/commit/6f4fe5e12ad81297218da0d8e43a629af77879cc#diff-2bf0d9d6d03aa9b6327ddacd7d82698462654236f558191054e7ed274b6addd9
2021-09-23 13:12:38 +10:00
campersau 90bbb57e91 Core - Update CefErrorCode (#3819)
Using https://raw.githubusercontent.com/chromium/chromium/94.0.4606.50/net/base/net_error_list.h
2021-09-21 19:20:54 +10:00
Alex Maitland db877d73ec Core - IFrameHandler.OnFrameAttached add reattached param
Resolves #3816
2021-09-20 11:51:10 +10:00
Alex Maitland 0f2e213576 Upgrade to CEF 94.2.2+g0c2cc26+chromium-94.0.4606.50 / Chromium 94.0.4606.50 2021-09-20 11:40:45 +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 fa2b6e22e3 Test - Rewrite test case to use Theory with Inline data
- Use inline data
- Move test into OffScreenBrowserBasicFacts as it's not actually javascript binding
  at a later point all the tests should be rearranged so they're  not just all lumped into OffScreenBrowserBasicFacts

Issue  #3808
2021-09-16 10:13:33 +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
Romout 1847c89b37 Fix for arrays with empty elements (#3811)
* Fix for arrays with empty elements

* Changed implementation so that it doesn't require the keys at all and added a unit-test
2021-09-16 10:05:14 +10:00
Alex Maitland d4a9e20a90 Upgrade to CEF 94.0.5+g506b164+chromium-94.0.4606.41 / Chromium 94.0.4606.41 2021-09-12 16:40:10 +10:00
Alex Maitland 4170dc97fe Update cefclient links (93.1.111 release)
- Add arm64 link
2021-09-12 11:35:54 +10:00
Alex Maitland bc0086c757 README.md - Update as 93.1.111 has been released 2021-09-10 16:15:19 +10:00
Alex Maitland db6e118cbc Nuget - Use PlatformTarget instead of CefSharpPlatformTarget for copy targets
CefSharpPlatformTarget isn't defined on initial load
2021-09-10 15:59:36 +10:00
Alex Maitland 738e90dbc2 Upgrade build version to 94.0.30 2021-09-10 15:50:55 +10:00
Alex Maitland 9f2096449a build.ps1 - Remove older VS support
VS2019 is required to build now

Issue #3636
2021-09-10 15:33:31 +10:00
Alex Maitland 7f870db945 Core - FrameHandler track frame lifecycle
- FrameHandler now tracks frame creation and removal and reuses the IFrame reference
- CefFrameWrapper no longer throws exception if accessing Identifier for invalid frame, this appears
to be a valid use case now which makes sense otherwise we'd never be able to identify the frame.

Resolves #3588
2021-09-10 14:32:04 +10:00
Alex Maitland 0804a404c7 DevTools Client - Add Event error handling
- New event that is raised when an exception occurs during converting a response to JSON
- Test cleanup
- New unit test to validate IEventProxy has been removed from ConcurrentDictionary

Resolves #3787
2021-09-10 14:15:57 +10:00
Alex Maitland 4596d33f1e BrowserSubprocess - TreatWarningAsError for debug builds
Statically cast size_t to int to remove warnings
2021-09-10 10:08:40 +10:00
Alex Maitland b3fd1f598c WinForms Example - Set BrowserTabUserControl Bounds on creation to create browser at final size
Previously the ChromiumWebBrowser instance was created smaller and resized to fill, this would
show a black region that's resized.
Set the initial Bounds to improve the sizing
2021-09-08 10:23:40 +10:00
campersau f7ba46e808 Readme - Make API reference link version independent (#3797) 2021-09-08 05:03:51 +10:00
Alex Maitland 915063894c Migrate VC++ projects from GitLink to Source link
Forgot to migrate VC++ projects in previous commit

Resolves #3036
2021-09-07 12:14:02 +10:00
Alex Maitland 172ee5afe8 Migrate from GitLink to Source link
Resolves #3036
2021-09-07 12:08:56 +10:00
Alex Maitland 4cd8c11f49 Upgrade to CEF 94.0.3+g5c40d9f+chromium-94.0.4606.31 / Chromium 94.0.4606.31 2021-09-07 11:09:51 +10:00
Alex Maitland b244f539e8 README.md - Add cefsharp/93 branch 2021-09-07 11:03:09 +10:00
Alex Maitland 68dc297e68 Core - IStringVisitor.Visit check for empty string
Speculative fix for #3779
2021-09-05 15:41:15 +10:00
Alex Maitland f9089b0cf8 WPF Example - Update app.manifest for PerMonitorV2 DPI awareness
https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process

Resolves #1535
2021-09-05 15:26:51 +10:00
Alex Maitland 138d6e94cd WPF - Support DPI change notification for .Net 4.6.2 or higher 2021-09-05 15:22:00 +10:00
Alex Maitland e4e0f22ca7 WinForms/WPF/OffScreen - Upgrade to SDK style projects and multi-target net452 and net462
Haven't tested the output nuget packages yet, we might still need to change the nuspec files to add a
dependency group.

Issue #3791
2021-09-05 15:09:35 +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
Alex Maitland 2ddb0cb1ed Net Core - Update Nuget Readme.txt to include ARM64 2021-09-05 10:54:53 +10:00
Alex Maitland f5bbb88522 Net Core - Update Ref Assembly Generated Code 2021-09-05 10:51:49 +10:00
Alex Maitland ca667c77b3 DevTools Client - Upgrade to Chromium 93.0.4577.63 2021-09-05 10:51:29 +10:00
Alex Maitland 464232538a Net Core/Net 5 - Improve CefSharp.Common.NETCore.targets RID handling
Resolves #3773
2021-09-04 14:08:05 +10:00
Alex Maitland 9567d14ab2 Core - FrameHandler update object lifespan (again)
- Only OnFrameCreated provides a heap managed IFrame reference
  this should be sufficient to keep track of frames using a
  Dictionary in FrameHandler
- Xml doc updates
- Reorder IFrameHandler methods

Issue #3588
2021-09-03 20:41:48 +10:00
Alex Maitland 7937f78b6f Core - OnFrameCreated/OnFrameAttached/OnFrameDetached allocate IFrame on managed heap
- Previously they were stack allocated and disposed when out of scope, they're now managed heap allocated
  to allow for users to keep a long lived reference.

FrameHandler still needs to be updated to deal with Disposing of the references.

Follow up to #3757

Issue #3588
2021-09-03 20:21:22 +10:00
campersau 8d98043000 Core - Add IFrameHandler (#3757)
* Core - Add IFrameHandler/FrameHandler
* Update comments
2021-09-03 20:13:42 +10:00
Alex Maitland cf00a45833 DevTools Client - Simplify Strongly Typed Event handling (#3777)
* DevTools Client - Simplify Strongly Typed Event handling

Now it's only possible to register one System.Type per event.

- Remove RegisterEventHandler
- Add AddEventHandler and RemoveEventHandler
- Change constraint from DevToolsDomainEventArgsBase to EventArgs

https://github.com/cefsharp/CefSharp/issues/3666

* Changes were based on https://github.com/CefNet/CefNet.DevTools.Protocol

Add links to original source files

* Reset stream position

* AddEventHandler - Use GetOrAdd for Thread safety

* AddEventHandler - Fix double event handler registration for first call

* RemoveEventHandler - Remove IEventProxy when handler null
2021-09-03 20:10:42 +10:00
Alex Maitland 704f24bab9 Update build version number to 93.1.110 2021-09-03 19:39:40 +10:00
Alex Maitland 90b631a5ad WPF - Add TODO regarding shutdown support for multiple dispatchers 2021-09-03 14:51:17 +10:00
Alex Maitland c62563c52c Upgrade to CEF CEF 93.1.11+g9e254fa+chromium-93.0.4577.63 / Chromium 93.0.4577.63 2021-09-03 11:42:32 +10:00
campersau 1cdb21960c Core - Update CefErrorCodes (#3785)
Using https://raw.githubusercontent.com/chromium/chromium/92.0.4515.176/net/base/net_error_list.h
2021-09-03 10:54:41 +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 46e9a1b34e Example - Update CaptureScreenShotAsPng to use strongly typed DevTools client 2021-08-28 14:08:43 +10:00
campersau 898b843d5d DevTools - Add GetNextDevToolsMessageId to IBrowserHost (#3774) 2021-08-28 11:44:12 +10:00