Commit Graph

6294 Commits

Author SHA1 Message Date
Alex Maitland c7e477b306 WebBrowserExtensions - Hide RegisterJsObject and RegisterAsyncJsObject from intellisense
They're obsolete and will throw exceptions anyway, only exist to point upgrading users to the correct doco
2021-10-22 16:29:21 +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
Alex Maitland 4df57e32bb Net Core - Nuget CefSharpBuildAction default to NoAction for Library projects
This should cleanup Library projects bin folders and eliminate stray copies of project files
when a Library RuntimeIdentifier/PlatformTarget doesn't match the WinExe/Exe project

For plugins the files will be included when EnableDynamicLoading = true

Can be overridden be adding <CefSharpBuildAction>Default</CefSharpBuildAction> to your project file

https://docs.microsoft.com/en-us/dotnet/core/tutorials/creating-app-with-plugin-support#plugin-with-library-dependencies
2021-10-22 10:37:20 +10:00
Alex Maitland c3f48fef3d Nuget - VS2022 remove extra CefSharp.Core.Runtime.dll copy from bin folder
VS2022 differs from previous versions in how the file paths appear to work. Use a filter to match based on filename + extension
rather than an exact file path match.

I've also updated the CefSharpAnyCPUExcludeCoreRuntimeBeforeGenerateApplicationManifest target to include a similar filter.
Leaving CefSharpExcludeCoreRuntimeBeforeGenerateApplicationManifest as is because it's only for VS2017

In VS2019:

C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\buildTransitive\..\CefSharp\x86\CefSharp.Core.Runtime.dll;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\buildTransitive\..\CefSharp\x86\CefSharp.Core.Runtime.pdb;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\buildTransitive\..\CefSharp\x86\CefSharp.Core.Runtime.xml

In VS2022:
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\CefSharp\x86\CefSharp.Core.Runtime.dll;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\CefSharp\x86\CefSharp.Core.Runtime.pdb;
C:\Projects\CefSharp.MinimalExample\packages\CefSharp.Common.94.4.50\CefSharp\x86\CefSharp.Core.Runtime.xml

Issue #3854
2021-10-22 10:04:46 +10:00
Alex Maitland f8b96ecf5d Nuget - Fix formatting 2021-10-22 09:42:11 +10:00
Alex Maitland dfa6d979da Test - Update WaitForQUnitTestExeuctionToComplete to ignore other messages 2021-10-21 13:36:50 +10:00
Alex Maitland 4f51b8a4b2 Upgrade to CEF 94.4.11+gc4d96f0+chromium-94.0.4606.81 / Chromium 94.0.4606.81 2021-10-21 10:25:42 +10:00
Alex Maitland ae1d38437d Update build version to 94.4.90 2021-10-16 17:53:44 +10:00
Alex Maitland a441c1a318 Test - Attempt to log more detailed failure from JSB Tests
Currently only some of the legacy tests are failing with Chromium Site isolation enabled
2021-10-16 17:52:39 +10:00
Alex Maitland 188a1b9cf4 CefSharp3.sln - Change CefSharp.Example to AnyCPU for release builds 2021-10-16 17:36:16 +10:00
Alex Maitland aedd60e3ff Upgrade to 94.4.9+g09ee681+chromium-94.0.4606.71 / Chromium 94.0.4606.71 2021-10-16 13:40:20 +10:00
Alex Maitland aac5439a5c Test - Fix compile error 2021-10-14 19:37:15 +10:00
Alex Maitland 439970d8cc Test - Fix NetCore test case 2021-10-14 19:28:53 +10:00
Alex Maitland 1a854192e5 Test - Output QUnit results if tests failed 2021-10-14 13:00:08 +10:00
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