Commit Graph

6179 Commits

Author SHA1 Message Date
Alex Maitland db9e041a3e build.ps1 - Remove TernaryReturn as no longer used 2021-10-14 12:58:42 +10:00
Alex Maitland f904b88387 build.ps1 - Improve vswhere programfiles check 2021-10-14 12:43:35 +10:00
Alex Maitland 221185bf28 WinForms/WPF/OffScreen - Enable Chromium Site Isolation by default
Previously was disabled by default

Can still be disabled via disable-site-isolation-trials command line argument

Issue #2967
2021-10-14 10:16:27 +10:00
Alex Maitland fd78c0cffc Test - CanLoadRequestWithPostData now navigates to domain of same origin first
When Chromium Site Isolation is enabled we must first navigate to
a web page of the same origin to use LoadRequest
When Site Isolation is disabled we can navigate to any web page
https://magpcss.org/ceforum/viewtopic.php?f=10&t=18672&p=50266#p50249

Issue #2967
2021-10-14 10:11:33 +10:00
Alex Maitland c72e21cb36 build.ps1 - Nuget Package only a subset of architectures
- Can now build/package only a subset of architectures
- Remove file elements from nuspec if arch wasn't specified
- Reorder and simplify script

.\build.ps1 -BuildArches "x64"

Issue #3706
2021-10-14 09:39:12 +10:00
Alex Maitland 7c2226caff Nuget - Update dependency groups
Resolves nuget pack warning
2021-10-14 09:39:12 +10:00
Alex Maitland 8aa0ee5e9f build.ps1 - Cleanup
- Fail fast if nuget.exe not found
- Check for VSWhere at build start
  (should always be installed as it's included in VS2019 and above)
- Remove netcore31 from $Target valid set, we'll just rely on the
  $TargetFramework
- Push-Location to working directory for easier debugging
2021-10-14 09:39:12 +10:00
Alex Maitland 13c725c1ce build.ps1 - Reorder scripts so functions are declared first 2021-10-14 09:39:11 +10:00
Mitch Capper 7c57c106e5 Add netcore to toolchain (it uses same VS version) 2021-10-14 09:39:11 +10:00
Mitch Capper da0f33bf98 Added vs2022 support and v143 targetting. VS2022 can also build V142 but requires some additions to the project files to indicate targeting it instead. This should not change behavior for anyone as you must specific specify the 2022 target for it to work. 2021-10-14 09:39:11 +10:00
Mitch Capper 2af10bfd8f build.ps1 and build.netcore.ps1 merge and architecture target added 2021-10-14 09:39:11 +10:00
Alex Maitland 66bb6c0f68 Nuget - Remove netcoreapp3.0 hacks
For those unable to upgrade to .Net Core 3.1 then the old packages should still be usable by specifying AssetTargetFallback as detailed in https://docs.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files#assettargetfallback

Resolves #3444
2021-10-13 11:50:00 +10:00
Alex Maitland 42e7b902b3 appveyor.yml - Update CefSharp.Test.dll path
Runtime identifier was changed to win7-x64 so the path changed
2021-10-13 09:14:22 +10:00
Alex Maitland bd88019327 Test - Add RuntimeIdentifiers and fix build.ps1
- Seems the Nuget restore doesn't work correctly without having RuntimeIdentifiers set
  Must also set RuntimeIdentifier manually so the files are copied correctly.
- Move the msbuild restore after the vcvarsall.bat call so the script runs successfully
2021-10-13 09:04:13 +10:00
Alex Maitland ee431d7add Test - Add RuntimeIdentifiers so libcef.dll etc copied to output folder
- Adding <RuntimeIdentifiers/> didn't work as expected so set RuntimeIdentifier based on PlatformTarget
- Updated appveyor.yml as output path for CefSharp.Test.dll changed
2021-10-13 07:06:59 +10:00
Alex Maitland 5356e1b89e Test - Update Nuget PackageReferences
- Forgot to change to the chromiumembeddedframework.runtime package
- Simplify references

Follow up to https://github.com/cefsharp/CefSharp/commit/67a08c47eedf0bb76493a63e99a467f23cf7cf73

Issue #3706
2021-10-13 05:15:34 +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 6953d82f25 Net Core - Nupkg Include xml files
Issue #3843
2021-10-11 10:27:49 +10:00
Andrew Smith bfa8ccf24c WPF - IME Only use GCS_CURSORPOS if an adjacent character is new input (#3846)
* Change Wpf IME handling to only use the cursor pos when an adjacent character is new input

* Meant to change both character before and after

* Ensure the cursor pos is > 0 when checking the character before
2021-10-11 10:16:07 +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 8bbe6a45ef WPF - Fix Address Load being called multiple times after browser created 2021-10-11 10:14:31 +10:00
Konstantin Preißer 0812ea938a Don't check for presence of "d3dcompiler_47.dll" when running as ARM64, because that file isn't present in the CEF Redist for this architecture. (#3841)
Issue #2944
2021-10-10 19:56:50 +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
Alex Maitland 15cf58c273 Core - Add IRequestContext.GetCookieManagerAsync extension method
- Will return the cookie manager when the backing store has loaded
  otherwise returns null
2021-10-08 13:08:31 +10:00
Alex Maitland b82fa05291 WinForms/WPF/OffScreen - Update Load(string url) behaviour
- All three implementations updated to include an IsDisposed check which
  will simply return immediately
- OffScreen updated to match the WinForms behaviour
- WPF is more complex because of the initialAddress and Address properties
  initialAddress will be set if the browser hasn't been created, if the browserCreated
  has been created and OnAfterBrowserCreated hasn't been called then we'll set the Address
  dependency property.

NOTE: For WinForms/OffScreen there's a small window
here between CreateBrowser and OnAfterBrowserCreated
where the Address prop will be updated, though LoadUrl
won't be called.
2021-10-08 12:40:54 +10:00
Alex Maitland c226d344b1 WinForms/WPF/OffScreen - Add LoadUrl method (Same as Load(string)).
A more meaningful name for the method, matches the LoadUrlAsync method
that was added recently.
2021-10-08 10:21:31 +10:00
Alex Maitland 7722881772 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
2021-10-04 15:01:54 +11:00
Alex Maitland 7ef2a47c59 README.md - Update as 94.4.20 has been released 2021-09-29 09:57:37 +10:00
Alex Maitland 2e55f7d1aa Upgrade to CEF 94.4.2+g6a963ca+chromium-94.0.4606.61 / Chromium 94.0.4606.61 2021-09-29 09:49:40 +10:00
campersau 443b47e8e9 Core - Add ParseUrl to RefAssembly (#3827) 2021-09-26 06:07:55 +10:00
campersau 5fed32012a Core - Ignore netcore output in netframework projects (#3828) 2021-09-25 21:09:01 +10:00
Alex Maitland a3504aa5ad Tests - Add CanEvaluateScriptInParallel 2021-09-25 11:01:43 +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