Commit Graph

6179 Commits

Author SHA1 Message Date
Alex Maitland f092f2a398 Nuget - Improve package.config support
- Add debugging target (optional)
- Add check for file exists on disk to perform copy if required
2021-01-29 15:05:19 +10:00
Alex Maitland 536c49629c 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-29 15:05:19 +10:00
Alex Maitland b4e189bf4f Core - Add Cef.GetMinLogLevel()
Gets the current log level
2021-01-27 13:39:04 +10:00
Alex Maitland 0cdbef1d44 Test/Example - Upgrade to .Net 4.7.2
- Update .vsconfig to include the .Net 4.7.2 requirement and add the Net Core 3.1 feature.
2021-01-22 14:58:40 +10:00
Alex Maitland 6e36d7411c Update build version to 88.1.3 2021-01-21 17:58:54 +10:00
Alex Maitland 8452820a4a Upgrade to CEF 88.1.3+g5b4e0ee+chromium-88.0.4324.87 / Chromium 88.0.4324.87 2021-01-21 14:43:30 +10:00
kpreisser cda06df359 Upgrade to 88.1.2+gac8e5f0+chromium-88.0.4324.27 / Chromium 88.0.4324.27 2021-01-21 14:39:00 +10:00
Alex Maitland 3d70e6d6a8 Nuget - ReEnable AfterBuild Targets when CefSharpResourceFilesCopied false 2021-01-16 10:50:34 +10:00
Alex Maitland 497e75c267 Test - Add CanLoadRequestWithPostData test 2021-01-15 13:40:37 +10:00
Alex Maitland a713c21d6b 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 13:40:36 +10:00
Alex Maitland ce7e26404d 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 13:40:36 +10:00
Alex Maitland 92f39e421b Nuget - Fix formatting 2021-01-15 13:40:35 +10:00
Alex Maitland 2a90150078 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:02:11 +10:00
Alex Maitland 332d2d8728 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 12:47:26 +10:00
Alex Maitland 5d50ec8843 DevTools Client - Fix multiline xml doc params 2021-01-13 19:34:33 +10:00
Alex Maitland 2bdb4d9702 Net Core - Update Core Runtime RefAssembly 2021-01-13 19:29:33 +10:00
Alex Maitland 3c253b96b9 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:56:58 +10:00
Alex Maitland 12e583d2ef 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:56:57 +10:00
Alex Maitland c43d9e59d0 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:27:39 +10:00
Alex Maitland 66228eb429 Core - Make ObjectFactory types readonly
https://github.com/cefsharp/CefSharp/commit/66c95bc4997d11f212a756ed8b203e93408fe74e#r45840060
2021-01-12 10:53:13 +10:00
Alex Maitland 83d960e5cf 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:49:07 +10:00
TMOONLIGHT bf8893a58f Update WpfIMEKeyboardHandler.cs (#3346)
fix chinese IMEs ( such as "sogou pinyin", "qq pinyin" etc. ) input window position.
2021-01-11 20:30:38 +10:00
Alex Maitland 2a80b71161 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:29:54 +10:00
Alex Maitland 56afee5c09 Net Core - CefSettingsBase add missing namespace qualifier 2021-01-11 14:47:00 +10:00
Alex Maitland 580042e58d Update version number to 88.1.0 2021-01-11 10:58:53 +10:00
Alex Maitland 8858365c16 Core - Split PublicApi.cs out into separate classes
Issue #3319
2021-01-11 10:47:57 +10:00
Alex Maitland 92870eef75 Upgrade to CEF 88.1.0+g433d6e1+chromium-88.0.4324.27 / Chromium 88.0.4324.27 2021-01-10 14:38:17 +10:00
Alex Maitland a79579c7f5 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:57 +10:00
Alex Maitland 9c09932e7d Nuget - Tabs to spaces 2021-01-09 16:17:20 +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