Commit Graph

5644 Commits

Author SHA1 Message Date
Alex Maitland f929914432 Core - ManagedCefBrowserAdapter::CreateBrowser add missing UnWrap call
Add UnWrap call to allow for passing in CefSharp.WindowInfo (the wrapper object)

Resolves #3399
2021-02-09 21:05:49 +10:00
Alex Maitland 47a3fe142d Revert "WPF - Resize Hack for when browser switches from hidden to visible (#2779)"
This reverts commit a83c8b35f2.
2021-02-09 10:07:13 +10:00
Alex Maitland c5669068cc Upgrade to CEF 88.2.4+gf3c4ca9+chromium-88.0.4324.150 / Chromium 88.0.4324.150 2021-02-09 09:48:12 +10:00
Daniel Bitterlich 32248d5fbd Add app.config file check to CefSharpPlatformCheck target.
Fixed #3390 - Resolves build issues for projects where app.config transformation would fail, because app.config doesn't exists.
2021-02-09 09:44:33 +10:00
Alex Maitland dc0e11da0b Nuget - Re-Add CefSharpDeleteCoreRuntimeAfterCopyFilesToOutputDirectory target
For Non SDK Style projects CefSharp.Core.Runtime.dll is copied by the _CopyFilesMarkedCopyLocal
MSBuild target.
2021-02-09 09:44:33 +10:00
Alex Maitland ad8822118e Nuget - Add CefSharpTargetPlatform property
As MSBuild doesn't always set PlatformTarget correctly for SDK style projects we have to add some extra checks
2021-02-09 09:44:32 +10:00
Alex Maitland ed5291a7a3 Nuget - Non-SDK Projects when targeting AnyCPU delete CefSharp.Core.Runtime.dll
Nuget/Msbuild is copying the CefSharp.Core.Runtime.dll into the output folder as part of the build
process (not sure which bitness it's actually copying).

This breaks `AnyCPU` as the dll won't work when using Assembly.Resolve
2021-02-08 09:29:55 +10:00
Alex Maitland 47cf10ada8 Core - DependencyChecker add CefSharp.Core.Runtime to list of required files
- Should have been added as part of #3319
- Remove CefSharp.Core.dll from BrowserSubprocessDependencies as it's not required for the BrowserSubprocess
2021-02-05 15:00:16 +10:00
Alex Maitland 1661b2f955 Upgrade to CEF 88.2.1+g0b18d0b+chromium-88.0.4324.146 / Chromium 88.0.4324.146 2021-02-05 15:00:16 +10:00
Alex Maitland ec42cb6abc Nuget - Switch from using UsingMicrosoftNETSdk to NuGetProjectStyle
To detect PackageReference vs packages.config we now use NuGetProjectStyle which is more accurate.
This should allow us to support Paket (not tested)
2021-02-05 14:56:26 +10:00
Alex Maitland 50ffc8d4e2 Nuget - Formating (tabs to spaces) 2021-02-05 14:56:26 +10:00
Alex Maitland 9374ee3390 README.md - Fix typo 2021-02-05 14:56:25 +10:00
Alex Maitland 0b564069e3 README.md - Update as 87.1.132 release 2021-02-05 14:56:03 +10:00
Alex Maitland a4fdda6945 Update to CEF 88.1.6+g4fe33a1+chromium-88.0.4324.96 / Chromium 88.0.4324.96 2021-02-03 15:53:00 +10:00
Alex Maitland 5654fd45c2 Sandcastle - Update to reflect restructure
https://github.com/cefsharp/CefSharp/issues/3319
2021-02-03 10:31:26 +10:00
Alex Maitland 35c997f268 Core - Make LegacyJavascriptBindingEnabled obsolete
Will likely be removed in the future as it's been replaced.
Setting after creating your ChromiumWebBrowser instance also doesn't work

Issue https://github.com/cefsharp/CefSharp/issues/2977
v87.1.132
2021-02-03 10:04:38 +10:00
Alex Maitland c43aec1733 Core - Disable Windows Native spell checker
Workaround for issue https://bitbucket.org/chromiumembedded/cef/issues/3055/windows-spell-checker-not-working-add

https://github.com/cefsharp/CefSharp/issues/3343#issuecomment-768591711
2021-01-29 17:02:02 +10:00
Alex Maitland 7e1567b451 Nuget - Add support for buildTransitive
- Add support for buildTransitive folder
- Show error when MSBuild didn't copy files (unable to use a Copy Task as props files aren't imported at that point)
- Remove FrameworkVersionCheck (we now have our dlls in a lib\net452) folder so nuget should complain without our custom check)

Issue #3319
2021-01-29 15:01:24 +10:00
Alex Maitland 995512d9f0 Upgrade build version to 87.1.132 2021-01-27 20:14:43 +10:00
Alex Maitland 354d88b072 Nuget - Improve package.config support
- Add debugging target (optional)
- Add check for file exists on disk to perform copy if required
2021-01-27 15:29:10 +10:00
Alex Maitland a04af915e1 Core - Remove CefSharp.Core.Runtime.RefAssembly
No longer generate a ref assembly for the older net452 packages, CefSharp.Core.Runtime.dll should now purely be
a runtime dependency
2021-01-27 14:14:23 +10:00
Alex Maitland d526699789 Core - Add Cef.GetMinLogLevel()
Gets the current log level
2021-01-27 13:40:37 +10:00
Alex Maitland f76c6bea86 Nuget - ReEnable AfterBuild Targets when CefSharpResourceFilesCopied false 2021-01-15 14:41:23 +10:00
Alex Maitland 0ebdc456b4 Test - Add CanLoadRequestWithPostData test v87.1.131-pre 2021-01-15 13:39:34 +10:00
Alex Maitland ad76ddfd5c Core - Improve reference assembly generation
- Will now work with Debug/Release builds correctly

TODO: Still needs to deal with x64/x86 variants properly, currently it uses x86 first if exists, then falls back to x64
If both exist then x86 is used regardless which might not always be correct.
2021-01-15 11:05:38 +10:00
Alex Maitland 50b35a3262 Core - CefSharp3.sln remove AnyCPU platform config from solution
It's not usable, can only build with x86/x64, must have been added by mistake when adding the AnyCPU targets for the projects
2021-01-15 10:25:44 +10:00
Alex Maitland d17ffbf5d7 Nuget - Fix formatting 2021-01-14 15:06:57 +10:00
Alex Maitland 585bead745 Update build version to 87.1.131 2021-01-14 15:04:16 +10:00
Alex Maitland 2ccb953b40 Nuget - When CefSharpTargetDir set copy CefSharp.dll to subfolder
When CefSharpTargetDir is specified for x86/x64 platforms the files are included in a sub directory,
the CefSharp.dll file required by the BrowserSubProcess isn't copied by default and won't start, so we include an extra
2021-01-14 15:03:07 +10:00
Alex Maitland dd17a9d67c Nuget - SdkStyle(PackageReference) default to Content and adjust CefSharpTargetDir path
- SdkStyle(PackageReference) projects now default to CefSharpBuildAction Content
- CefSharpTargetDir is now empty by default instead of a `.` and a trailing slash appended if required
2021-01-14 15:03:07 +10:00
Alex Maitland a55858cef4 DevTools Client - Fix multiline xml doc params 2021-01-13 19:32:43 +10:00
Alex Maitland e8dc19d1b4 Net Core - Update Core Runtime RefAssembly 2021-01-13 19:30:01 +10:00
Alex Maitland 08f76ebd5b Net Core - Nupkg move CefSharp.BrowserSubprocess.Core.pdb into lib folder
Leave the pdb in the lib folder for now, won't be copied, it will be in the package if required

https://github.com/cefsharp/CefSharp/issues/3197#issuecomment-758546177
2021-01-13 16:55:40 +10:00
Alex Maitland 2b4a8cb18e Core - PublicApi remove references to CefSharp.Core.Runtime
- Add an UnWrap method to the interfaces (should be hidden from IntelliSense)
- For .Net 4.5.2 projects they're  not a decorator class which an inner instance of the CefSharp.Core.Runtime Type
- For Net Core we have a ref assembly which allows us to reference the CefSharp.Core.Runtime without issues
  We can potentially remove the ref assembly now and forgo any direct reference.
2021-01-13 16:51:30 +10:00
Alex Maitland 980b6b0f2a Net Core - Don't include CefSharp.BrowserSubprocess.Core.pdb in Nupkg
Short term workaround for https://github.com/cefsharp/CefSharp/issues/3197#issuecomment-758546177
2021-01-13 11:28:14 +10:00
Alex Maitland 912baef5f0 Core - Make ObjectFactory types readonly
https://github.com/cefsharp/CefSharp/commit/66c95bc4997d11f212a756ed8b203e93408fe74e#r45840060
2021-01-12 10:54:58 +10:00
Alex Maitland b5118b5646 Net Core - Fix BrowserSubProcess.SelfHost path lookup
- Add Initializer.BrowserSubProcessCorePath which is calculated the same as BrowserSubProcessPath
- Update SelfHost to use new path then fallback to old path.

Details in https://github.com/cefsharp/CefSharp/issues/3197#issuecomment-757819840
2021-01-12 10:47:52 +10:00
TMOONLIGHT e5fcb33e8d Update WpfIMEKeyboardHandler.cs (#3346)
fix chinese IMEs ( such as "sogou pinyin", "qq pinyin" etc. ) input window position.
2021-01-11 20:32:22 +10:00
Alex Maitland 66c95bc499 WinForms/WPF - Fix BrowserSettings/RequestContext type checking
- When settings BrowserSettings/RequestContext properties the type checking needs to make sure the
CefSharp.Core.BrowserSettings and CefSharp.BrowserSettings objects are acceptable
- In WPF only the RequestContext was updated as there's no check for BrowserSettings property yet (probably should be)

https://github.com/cefsharp/CefSharp/issues/3343#issuecomment-757581368
2021-01-11 20:32:22 +10:00
Alex Maitland f66910040d Net Core - CefSettingsBase add missing namespace qualifier 2021-01-11 20:32:22 +10:00
Alex Maitland 4508809912 Core - Split PublicApi.cs out into separate classes
Issue #3319
2021-01-11 20:32:21 +10:00
Alex Maitland 1ffa9d72e6 Net Core - Nuget update minClientVersion and License
- Requires a minimum of version 5.0
- License embedded in package as is preferred by Nuget (licenseUrl is deprecated)
2021-01-09 20:54:18 +10:00
amaitland a83c8b35f2 WPF - Resize Hack for when browser switches from hidden to visible (#2779)
- Add 1 to the width/height rather than subtracts like the hack in the previous
versions
- Delay between resizes is now configurable via ResizeHackForIssue2279DelayInMs
v87.1.130-pre
2021-01-09 16:14:03 +10:00
Alex Maitland 0f11331865 appveyor.yml - Update build version (RCI) for release branch 2021-01-09 16:13:06 +10:00
Alex Maitland e319b405a9 README.md - Add upcoming 87 branch details 2021-01-09 16:11:45 +10:00
Alex Maitland a29a1df414 Nuget - Copy files on Nuget install/restore
Adding a PropertyGroup to each Chose/When block appears to be enough to get the files copied successfully.

Still needs more testing

Issue #3319
2021-01-09 16:00:14 +10:00
Alex Maitland 3bba4222a6 Core - Update CefSharp.Core.RunTime Ref Assembly
The generated code keeps wanting to add a blank line
2021-01-09 15:12:20 +10:00
Alex Maitland 3a29c70d81 Upgrade build version to 87.1.13 2021-01-09 14:20:11 +10:00
Alex Maitland ff77f024ad Upgrade to CEF 87.1.13+g481a82a+chromium-87.0.4280.141 / Chromium 87.0.4280.141 2021-01-09 13:52:28 +10:00
Alex Maitland 7b454159f8 Tools - Fix UpdateNugetPackages.ps1 paths
Updated to reflect changes made in #3311
2021-01-09 13:39:06 +10:00