Commit Graph

6294 Commits

Author SHA1 Message Date
Alex Maitland 5204cf4105 MSBuild - change from using $(SolutionDir) to $MSBuildThisFileDirectory
- Changes to make CefSharp easier to use as a git submodule
- BrowserSubProcess now builds for net6.0-windows for use with WinForms example
2023-03-08 17:26:44 +10:00
Alex Maitland a8f20291e2 build.ps1 - Update version number via UpdateNugetPackages.ps1
Resolves #4418
2023-03-08 06:44:23 +10:00
Alex Maitland b17cd2a1b2 Core - High-DPI support is now enabled by default in Chromium.
- Chromium now enables DPI awareness programmatically by default
- Remove Cef.EnableHighDPISupport calls and mark as obsolete
- Remove dpiawareness entries from app.manifest

Issues #4417 #4410
2023-03-07 13:03:53 +10:00
Alex Maitland 5b61574a51 Net Core - Support Central Package Management
- Use VersionOverride in .targets file when ManagePackageVersionsCentrally == true

Resolves #4362
2023-03-07 11:07:44 +10:00
Alex Maitland edf99b5c24 Net Core - ManagePackageVersionsCentrally exclude chromiumembeddedframework.runtime packages
- When Nuget packages are managed centrally the build will break when no RuntimeIdentifier is specified
  as the .targets file includes <PackageReference/> entries for the chromiumembeddedframework.runtime packages.
  For now when ManagePackageVersionsCentrally exclude the <ItemGroup />

Issue #4362
2023-03-07 10:53:16 +10:00
Alex Maitland 4f6fdf85c8 Upgrade to 111.0.11+geb023d1+chromium-111.0.5563.50 / Chromium 111.0.5563.50 2023-03-04 10:19:50 +10:00
Alex Maitland a39686b339 Core - Cleanup WebBrowserExtensions
- Add null check
- Rename params
- Reduce code duplication
2023-02-27 11:09:17 +10:00
Alex Maitland 75d49a9d81 Bug Report - Update links 2023-02-27 06:40:02 +10:00
Alex Maitland 916b7e01a6 Test - Add PostMessage IJavascriptCallback test 2023-02-25 05:36:56 +10:00
Alex Maitland 6df59e0cf2 Core - Fix some xml doc mistakes 2023-02-23 13:05:53 +10:00
Alex Maitland 89da873101 Core - Make WebBrowserExtensions.ThrowExceptionIfBrowserNull public
- Make public
- No longer extension method so it doesn't pollute the public API
2023-02-23 12:40:16 +10:00
Alex Maitland f7cc1d4b63 Upgrade to 110.0.28+g16a2153+chromium-110.0.5481.104 / Chromium 110.0.5481.104 2023-02-22 05:53:01 +10:00
Alex Maitland 1f25de839c Test - JavascriptBindingTests.ShouldReturnRenderProcessId assert page loaded 2023-02-17 19:07:56 +10:00
Alex Maitland d960f98dd4 Test - CookieManagerTests.ShouldSetAndGetCookie adjust Date comparison
- Test was failing when run on Appveyor, use Assert.Equal with a 1second tolerance
2023-02-17 18:48:39 +10:00
Alex Maitland abefe829ae Test - Improvements
- Use LangVersion to 8.0
- Minor cleanup
2023-02-17 18:04:30 +10:00
Alex Maitland d0b06b3105 Test - CookieManagerTests rename method 2023-02-17 16:52:03 +10:00
Alex Maitland 75a564bdff Test - ConcurrentMethodRunnerQueueTest cleanup
Issue #3067
2023-02-17 16:48:28 +10:00
Alex Maitland cafd378859 Test - Code Cleanup
- Start splitting tests out into own files where relevant
- Improve call ordering
- Use Assert.RaisesAsync where possible
- Classes have been renamed (Tests is now the standard suffix)

TODO: Some of the classes still need their method names changed
2023-02-17 13:53:23 +10:00
Alex Maitland 7edc164206 Upgrade to 110.0.25+g75b1c96+chromium-110.0.5481.78 / Chromium 110.0.5481.78 2023-02-10 06:17:40 +10:00
Alex Maitland 2c141e0fc7 DevTools Client - Update to 110.0.5481.77 2023-02-07 05:59:19 +10:00
Alex Maitland 929039e9e3 README.md - Update M110 release imminent 2023-02-07 05:51:31 +10:00
Alex Maitland 91d9981ff2 Upgrade to 110.0.22+gb3f93d5+chromium-110.0.5481.77 / Chromium 110.0.5481.77 2023-02-06 12:08:02 +10:00
Alex Maitland 0916c757dd WPF - Tooltip minor cleanup
- Ignore tooltip change if both new/old values are null/empty
- Change order so timer is stopped before hiding tooltip
2023-02-03 13:08:28 +10:00
Alex Maitland 7021a7da52 WPF - Allow overriding of TooltipTextProperty change
- Override the OnTooltipTextChanged method to customise display of browser tooltip

Related to issue #4048
2023-02-03 13:08:28 +10:00
Alex Maitland b5334f8d31 Net Core - Update RefAssembly
- PopupFeatures was updated

Issue #4383
2023-02-02 11:49:33 +10:00
Alex Maitland ee0c75368c Core - Update IPopupFeatures
Upstream change see https://github.com/chromiumembedded/cef/commit/d04b5d4f8747ec68370740729922a9cd6868b8f5#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26bL2182

Resolves #4383
2023-02-02 11:27:51 +10:00
Alex Maitland 2cb65efeed Upgrade to 110.0.21+g6054757+chromium-110.0.5481.52 / Chromium 110.0.5481.52 2023-02-02 11:13:47 +10:00
Alex Maitland ca905157f7 Test - Simplify callback promise tests
Issue #4276
2023-01-30 11:35:43 +10:00
Alex Maitland b8dbb0c0c5 WinForms - Throw InvalidOperationException if Load() called on invalid IBrowser
- When IBrowser.IsValid == false throw an InvalidOperationException when an attempt to
  call Load() is made.

Resolves #4368
2023-01-24 10:55:03 +10:00
Alex Maitland 17173587fe Core - Improve IBrowser.MainFrame and IBrowser.FocusedFrame null handling
- When CEF added CefFrameManager support the lifespan of a frame changed, it's now possible for MainFrame/FocusedFrame
  to be null when the browser is closed.

Issue #4368
2023-01-24 10:55:02 +10:00
Alex Maitland a51cdd3723 Core - OnSelectClientCertificate copy certificate vector
- Attempt to fix AccessViolationException by making a copy of
  the vector

Issue #2948
2023-01-17 10:22:59 +10:00
Alex Maitland a51da76ad9 OffScreen - Add useLegacyRenderHandler optional param to constructor
- Defaults to true
- For those using CaptureScreenshotAsync set to false to avoid
  creating DefaultRenderHandler
2023-01-15 11:33:08 +10:00
Alex Maitland 0d790cdf8f Revert "OffScreen - Lazy Initialize RenderHandler"
This reverts commit 664406869a.
2023-01-15 11:05:27 +10:00
Alex Maitland 664406869a OffScreen - Lazy Initialize RenderHandler
- Instead of assigning RenderHandler directly in the constructor, only assign when
  the new instance in ScreenshotOrNull. Avoid allocating the buffer for those
  using the new CaptureScreenshotAsync method.
2023-01-15 10:23:10 +10:00
Alex Maitland 2585e7de30 Core - Update CefErrorCode (109.0.5414.87) 2023-01-14 09:58:15 +10:00
Alex Maitland aa3d060639 DevTools Client - Update to 109.0.5414.87 2023-01-14 09:54:04 +10:00
Alex Maitland 2ee7e9d442 Upgrade to 109.1.11+g6d4fdb2+chromium-109.0.5414.87 / Chromium 109.0.5414.87 2023-01-14 07:16:02 +10:00
Alex Maitland ceb347988d Upgrade to 109.1.8+g44ba3e7+chromium-109.0.5414.87 / Chromium 109.0.5414.87 2023-01-13 20:35:52 +10:00
Alex Maitland f68616c54e Nuget - Update Readme.txt 2023-01-13 05:53:05 +10:00
Alex Maitland ec282d4c4f WinForms - Set Initial Focus on UI Thread
- Call CefBrowserHost.SetFocus(true) on the WinForms UI Thread to
  workaround upstream issue, see code comment for more detail.
- Add OnSetInitialFocus to allow for providing custom behaviour
- MultiThreadedMessageLoop = false gets focus correctly from parent, no need
  to call SetFocus(true)

https://bitbucket.org/chromiumembedded/cef/issues/3436/chromium-based-browser-loses-focus-when
2023-01-11 06:51:09 +10:00
Alex Maitland 3cb6bbfc66 Test - Renable RequestContext tests
- Upstream issue has reportedly been resolved

https://bitbucket.org/chromiumembedded/cef/issues/3434/cef-108-creates-web-data-and-web-data
2023-01-08 11:53:54 +10:00
Alex Maitland c2edd111eb Core - Remove IRequestHandler.OnQuotaRequest
persistent quota is no longer supported (see https://crbug.com/1208141)

Resolves #4357
2023-01-08 11:53:54 +10:00
Alex Maitland 4e2612a3be Upgrade to 109.1.7+gb7b1fdc+chromium-109.0.5414.74 / Chromium 109.0.5414.74 2023-01-08 11:53:53 +10:00
Alex Maitland a382725dca WinForms Example - Fix SimpleBrowserForm constructor 2023-01-08 11:53:53 +10:00
Alex Maitland a7af5294ef Cleanup - Remove old unused projects 2023-01-08 11:53:52 +10:00
Alex Maitland 1b77997471 Update README.md
- Fix financial support link
- Rewrite financial support section
2023-01-02 10:16:52 +10:00
mistoll 64fbf2578b Fix Visual Studio 2022 support (#4346)
Co-authored-by: Michael Stoll <michael.stoll@stolltec.com>
2022-12-21 05:27:02 +10:00
mistoll a69e6ee2a4 Add Visual Studio Build Tools support (#4339)
Co-authored-by: Michael Stoll <michael.stoll@stolltec.com>
2022-12-19 12:33:35 +10:00
Alex Maitland 233586b50d README.md - Update as M108 release is imminent 2022-12-16 12:22:29 +10:00
Alex Maitland d5813846fc Upgrade to 108.4.13+ga98cd4c+chromium-108.0.5359.125 / Chromium 108.0.5359.125 2022-12-16 11:59:03 +10:00