Commit Graph

5629 Commits

Author SHA1 Message Date
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
Alex Maitland 151f806534 Core - Javascript Binding Cleanup
- Move TryCallMethodResult to Internals namespace
- Fix BindingTestsAsyncTask.html (mistake in javascript)
2021-01-09 13:29:32 +10:00
Alex Maitland ab8223d4b9 Core - Add IAsyncMethodInterceptor (#3296)
Core - Add IAsyncMethodInterceptor
  - Add IAsyncMethodInterceptor
    Extension of IMethodInterceptor to allow for easier evaluation of async taskScheduler
  - Add Additional unit tests
  - Add JavascriptBindingSettings.AlwaysInterceptAsynchronously for cases where you'd like all method calls to use 
    IAsyncMethodInterceptor.InterceptAsync

Follow up to PR #3291

Co-authored-by: Andrew Sampson <andrew@rainway.com>
Co-authored-by: Emily Hudson <emily33901@gmail.com>
2021-01-09 13:17:50 +10:00
Alex Maitland 848413bb2c DevTools Client - Make Message Id globally unique
When attempting to use two DevTools Client instances the message Id
fails validation as it's not incrementing per CefBrowser instance.

This should be made unique per CefBrowser

Issue #3341 has been created to document improving this.
2021-01-08 17:03:24 +10:00
Alex Maitland 27c53ea513 Nuget - Add Build Action option (default Build Action None)
For ClickOnce specifying <CefSharpBuildAction>Content</CefSharpBuildAction> in your project file
before the .targets file should allow for resources to be included in your ClickOnce installer.
The default None copies files to a dependant project, say you have CefSharp installed in your
Class library, the files will be included in projects that directly reference this project file
(Only one level deep).

Same as the Content/None options listed at
https://docs.microsoft.com/en-us/visualstudio/ide/build-actions?view=vs-2019#build-action-values

Issue #3319
2021-01-08 15:09:37 +10:00
Alex Maitland a93d6260d0 AppVeyor - Update myget API key 2021-01-08 15:06:14 +10:00
Alex Maitland 2406a458e1 Net Core - OffScreen Add System.Drawing.Common dependency
Issue #3197
2021-01-08 14:33:19 +10:00
Alex Maitland dcf5b43dc4 Core - Add Net Core DevTools
- Add specific Net Core DevTools generated code
- Improve xml doc generation for both Net 4.x and Net Core/Net 5
2021-01-08 14:26:21 +10:00
Alex Maitland 6e881eeafc Xml Doc - Fix some mistakes 2021-01-08 14:26:21 +10:00
Alex Maitland f1efa85525 Update bug_report.md
Make the does the problem reproduce in `CEF Sample Application` wording a little nicer/clearer.
2021-01-04 15:21:34 +10:00
Alex Maitland b72f36c648 Core - ClientAdapter.OnProcessMessageReceived additional null checks
I don't have a full stack trace or a means to reproduce the actual problem, to date there have been only two reported cases.
This is a speculative fix, adds some extra null checks and a dispose check. Basically being a little more defensive.

Some of the code is duplicated in the hopes of one day refactoring out so each message has a different method/class

Issue #3322
2021-01-04 15:03:59 +10:00
Alex Maitland 02d045832b Core - CefSettings no longer implements IDisposable
**This is a breaking change**

- CefSharp.Core.CefSettingsBase is now disposed when calling Cef.Initialize
- CefSharpApp was refactored to no longer need a reference to CefSettingsBase so it can be disposed

Resolves #3220
2020-12-31 17:08:08 +10:00
GitHubPang 8afe0dfca6 Fix typos (#3329) 2020-12-31 14:47:11 +10:00
Alex Maitland 8351fac825 Nuget - Use full assemblies as Appveyor isn't building ref assemblies
https://ci.appveyor.com/project/cefsharp/cefsharp/builds/36859715/job/lmn6djbvfijk3fui#L591
2020-12-16 16:17:14 +10:00
Alex Maitland a4e42843f8 Update version numbers to 87.1.12 2020-12-16 16:09:08 +10:00
Alex Maitland 1299f56c3f Core - Trigger JavascriptMessageReceived event on ThreadPool
Instead of calling on the CEF Thread we are current on in OnProcessMessageReceived
use Task.Run to execute the event on the ThreadPool.
Instances of users calling MessageBox.Show and also problems with with uncaught exceptions
on the CEF thread.
2020-12-16 15:37:17 +10:00