5904 Commits

Author SHA1 Message Date
Alex Maitland 8a8c12a720 GetSource/GetText - Copy string rather than using ptr
New Mojo IPC implementation uses shared memory rather than a string copy
Attempt to workaround the access violation that's been reported in a few isolated cases
by copying the string rather than using directly.
https://github.com/chromiumembedded/cef/commit/ebee84755ed14e71388b343231d3a419f1c5c1fd
v94.4.50
2021-10-05 10:48:06 +10:00
Alex Maitland 4bafd15483 Upgrade to CEF 94.4.5+g0fd0d6f+chromium-94.0.4606.71 / Chromium 94.0.4606.71 2021-10-04 16:14:35 +10:00
campersau 62da13b453 Core - Add ParseUrl to RefAssembly (#3827) v94.4.20 2021-09-29 09:29:09 +10:00
campersau 36d81c26e6 Core - Ignore netcore output in netframework projects (#3828) 2021-09-29 09:29:09 +10:00
Alex Maitland e09139a94a Upgrade to CEF 94.4.2+g6a963ca+chromium-94.0.4606.61 / Chromium 94.0.4606.61 2021-09-29 09:28:15 +10:00
Alex Maitland 6ecdec0a53 Tests - Add CanEvaluateScriptInParallel 2021-09-25 11:01:13 +10:00
Alex Maitland cda9648dd8 appveyor.yml - Update build number from CI to RCI v94.3.0-pre 2021-09-24 13:40:37 +10:00
Alex Maitland ea672763b4 README.md - Update release branches in preparation for cefsharp/94 creation 2021-09-24 13:39:21 +10:00
Alex Maitland 4cc758029b Nuget - Simplify CefSharpCopyFilesAfterNugetRestore targets
- Now there are just two targets that actually copy files as the AnyCPU was just a duplicate of
  the x86/x64 ones.
- Remove file exists checks and just rely on the CefSharpPropertiesLoaded not being set
- Added a duplicate copy of CefSharpPlatformTarget (as _CefSharpPlatformTarget) to make
  sure we copy the correct files.
2021-09-24 11:52:44 +10:00
Alex Maitland 90171e113b Core - Update ResourceType enum
Add new values

https://github.com/chromiumembedded/cef/commit/0cbc0a757ea11655f61ba4b8a93a9aa9b172a638
2021-09-24 10:52:24 +10:00
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