Commit Graph

6294 Commits

Author SHA1 Message Date
Alex Maitland 8e2d66b0b2 Nuget - FIX Change default CefSharpBuildAction for Exe/WinExe projects when using packages.config
- Reorder statements
- Original testing was misleading, the MinimalExample already has CefSharpBuildAction set to true

Resolves #4062
2022-05-09 10:22:27 +10:00
Alex Maitland 20f836e2f2 Core - Add space to Cef.Shutdown thread check
- Improve readability
2022-05-09 10:10:13 +10:00
Alex Maitland c6a9f69270 README.md - Update as M101 released 2022-05-06 09:21:29 +10:00
Alex Maitland 7eb6d6f3b7 OffScreen - CaptureScreenshotAsync change to Scale default
- Previously when no Scale was specified, then the previous ChromiumWebBrowser scale was used.
- Now Viewport defaults to a scale of 1, so the behaviour has been changed so the scale passed as
  the param is always used.
- Test updated

This is a minor breaking change.

Resolves #4091
2022-05-05 19:27:29 +10:00
Alex Maitland 2ecea01bb0 Net Core - Update Ref Assembly 2022-05-05 12:54:57 +10:00
Alex Maitland ec25c08905 WPF - Remove EmbeddedCursor workaround
- Forgot to remove the WPF code, not needed anymore

Follow up to https://github.com/cefsharp/CefSharp/commit/dce81299feab534d4766c7a93d7c403f30d984b9
2022-05-05 12:51:57 +10:00
Alex Maitland dce81299fe WPF - Remove EmbeddedCursor workaround
Bug was fixed upstream and now no longer required.

Related issue #4021
2022-05-05 12:40:55 +10:00
Alex Maitland b4c4913b35 Core - Add IDownloadHandler.CanDownload
- Add IDownloadHandler.CanDownload
- Add to Fluent implementation
- Update examples

https://bitbucket.org/chromiumembedded/cef/commits/6d7a6801871cd4fcceb174dfa99a5b46da6253c1

Resolves #4090
2022-05-05 12:40:33 +10:00
Alex Maitland 13f06aa90a Core - Fix IAudioHandler xml doc typo 2022-05-05 12:40:33 +10:00
Alex Maitland 4e01290091 Core - Update WindowOpenDisposition (101.0.4951.54) 2022-05-05 12:40:33 +10:00
Alex Maitland be4f3d60ef Core - Add IDragData.ClearFilenames 2022-05-05 12:40:32 +10:00
Alex Maitland 5c61ea4191 Core - Update TransitionType (101.0.4951.54)
https://github.com/chromiumembedded/cef/commit/b524edc2099315987a29d8664752e4c3dc62825d#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26b
2022-05-05 12:40:32 +10:00
Alex Maitland bebb39e2ce Core - Update CefErrorCode (101.0.4951.54) 2022-05-05 12:40:32 +10:00
Alex Maitland 40b285fbc3 Upgrade to CEF 101.0.15+gca159c5+chromium-101.0.4951.54 / Chromium 101.0.4951.54 2022-05-04 10:46:36 +10:00
Alex Maitland df8a6086a6 WPF Example - Add JsDialogHandler that uses custom WPF implementation 2022-05-04 10:36:51 +10:00
Alex Maitland ed217aba59 DevTools Client - Viewport default Scale to 1.0 2022-05-03 11:48:52 +10:00
Alex Maitland c5d1cec843 DevTools Client - Upgrade to 101.0.4951.34
- DevToolsDomainEntityBase derived classes are now partial
2022-05-03 11:42:29 +10:00
Alex Maitland f201c694c6 WinForms - Add CaptureScreenshotAsync
- Simplification of calling the DevTools method
- Moved GetContentSizeAsync from OffScreen into partial class (now accessible from WinForms/WPF/OffScreen).
- Added menu option

Resolves #4081
2022-05-03 11:29:11 +10:00
Alex Maitland 59e0b1afdc Enhancement - Add WaitForNavigationAsync
- Add new WaitForNavigationAsync method
- Change LoadUrlAsync to return CefErrorCode.Failed for HttpStatusCode = -1 (better represents there was an error)

Example:
var navigationTask = browser.WaitForNavigationAsync();
var evaluateTask = browser.EvaluateScriptAsync($"window.location.href = '{expected}';");
await Task.WhenAll(navigationTask, evaluateTask);
var navigationResponse = navigationTask.Result;

Resolves #4073
2022-04-27 11:02:45 +10:00
Alex Maitland cd60414a64 Example - Remove Newtonsoft.Json
Wasn't used
2022-04-26 12:15:23 +10:00
Alex Maitland 452edca0ec WPF - Update EmbeddedCursor Res Ids
This is no longer actually being used and will be removed in the next version
as manually keeping the Id's up to date is unnecessary work.
2022-04-21 09:39:50 +10:00
Alex Maitland e895c41796 Core - Remove CefSettings.ApplicationClientIdForFileScanning
- Was removed upstream.

This is a breaking change.

Resolves https://github.com/cefsharp/CefSharp/issues/4070
2022-04-21 09:18:23 +10:00
Alex Maitland 684e76c836 Upgrade to CEF 101.0.11+g0692cb0+chromium-101.0.4951.34 / Chromium 101.0.4951.34 2022-04-21 09:04:37 +10:00
Alex Maitland 78b682a872 UpdateNugetPackages.ps1 - Fix EnsureNuGetPackageBuildImports and remove UpdateNupsecCommonArches
- Updating of CefSharp.Common.nuspec is handled by build.ps1
- Order code so functions come before inline code
- Fix removing EnsureNuGetPackageBuildImports
2022-04-21 08:54:44 +10:00
Mitch Capper cfa5b4185a UpdateNugetPackages takes parameters and fixes common.nuspec requirements based on arch 2022-04-21 08:52:59 +10:00
Alex Maitland 837f6ec7a6 WPF - CompositionTargetRenderHandler add null check 2022-04-20 12:15:30 +10:00
Alex Maitland 80ea9212c9 build.ps1 - Remove cef.redist dependency when only packaging a subset of architectures
Issue #4066
2022-04-19 19:24:40 +10:00
Alex Maitland 59f9608034 Nuget - Update build diagnostics to output CefSharpAnyCpuSupport 2022-04-13 09:17:19 +10:00
Alex Maitland 640672dcf9 Core - Add IChromiumWebBrowserBase.GetRequestContext extension method
Simplifies getting the RequestContext for a ChromiumWebBrowser instance
2022-04-12 14:03:51 +10:00
Alex Maitland 8a6241c9ce Nuget - Change default CefSharpBuildAction for Exe/WinExe projects when using packages.config
- For Non library projects that use packages.config the default is now Content which should simplify clickonce support
  For libraries the default will remain as None
- For NetCore projects CefSharpBuildAction Content is mapped to default to support upgrading users

Technically this is a breaking change, user impact is expected to be low and can be overridden to restore
the previous behaviour in the edge cases.

Issue #4062
2022-04-12 12:20:13 +10:00
Alex Maitland 212026ed49 README.md - Update as 100.0.140 released 2022-04-07 11:23:59 +10:00
Alex Maitland c20bc9b87f WinForms - Improve designer support for UserControl
Current DesignMode property is only true when the control is directly interacting with the designer.
This checks if an ancestor is in design mode to allow support for UserControls

Issue #4057
2022-04-05 15:52:59 +10:00
Alex Maitland 2080fd616a Example - Update RequestContextHandler 2022-04-05 11:00:41 +10:00
Alex Maitland e0bad6387c NetCore - Update RefAssembly 2022-04-04 15:25:27 +10:00
Alex Maitland df562dd251 WPF - Workaround for Cursors not loading correctly
- For cursors that are embedded in libcef.dll the OnCursorChange method is passing
 in IntPtr.Zero so we're unable to load the cursor.
 This commit adds a manual mapping of CursorType to resource Id and loads the cursors manually
- Adds a basic test to assert the cursors load, should validate if the resource ids change

This needs to be fixed upstream https://bitbucket.org/chromiumembedded/cef/issues/3270/osr-pan-icon-missing-when-pressing-the

Test url https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#values

Issue #4021
2022-04-04 14:45:27 +10:00
Alex Maitland 77b20c71ae Examples - Add .Net 5.0 and conditionally .Net 6.0 as target frameworks
- .Net 6.0 requires VS2022

This may need to be changed if Appveyor doesn't like building the .Net 5.0 targets
2022-04-01 17:44:45 +10:00
Alex Maitland b160c1dd4d Upgrade to CEF 100.0.12+g734f820+chromium-100.0.4896.60 / Chromium 100.0.4896.60 2022-04-01 17:30:31 +10:00
Alex Maitland 1a162573fc Core - Remove remaining Plugin API (followup)
- Remove CefWebPluginInfoVisitorAdapter. from Net Core vcxproj
- Update BrowserProcessHandler example to set a different preference (the plugin ones will eventually be removed from Chromium)

Follow up to https://github.com/cefsharp/CefSharp/commit/0ac43cf69f11d2e6351eca51c81914d70b259be9

Issue #4045
2022-03-25 11:16:31 +10:00
Alex Maitland d26789bfc2 Test - Add DevToolsClientFacts MediaQuery test 2022-03-22 16:46:04 +10:00
Alex Maitland 0ac43cf69f Core - Remove Remaining Plugin APIs
- Remove plugin references
- Update xml doc comments
- Update ref assembly (netcore)
- Update examples

Issue #4045
2022-03-21 10:01:26 +10:00
Alex Maitland e6d9aba3f6 Upgrade to CEF 100.0.11+g45b9728+chromium-100.0.4896.46 / Chromium 100.0.4896.46 2022-03-21 09:10:44 +10:00
Alex Maitland 81fc828c1b README.md - Update as 99.2.120 has been released 2022-03-19 13:33:55 +10:00
Alex Maitland 181271630c Upgrade to CEF 99.2.12+g2977b3a+chromium-99.0.4844.74 / Chromium 99.0.4844.74 2022-03-18 09:29:12 +10:00
Alex Maitland b9447740c8 WinForms - Hide ChromiumHostControlBase.BrowserHwnd property from designer 2022-03-18 09:28:24 +10:00
Alex Maitland 71d07dfd41 WinForms - Remove obsolete from Paramater less constructor
- Causes a warning in the build log when used via the designer
- Instead update the comment and set EditorBrowsableState.Never
2022-03-18 09:28:24 +10:00
Alex Maitland f52740b796 DevTools Client - Upgrade to 99.0.4844.51 2022-03-07 13:19:36 +10:00
Alex Maitland 4060917f36 WinForms Example - Add Hide Scrollbars menu item
- Use DevTools to hide scrollbars
2022-03-07 13:18:42 +10:00
Alex Maitland 87f161dd0f Upgrade to CEF 99.2.9+gf426765+chromium-99.0.4844.51 / Chromium 99.0.4844.51 2022-03-06 09:21:16 +10:00
Alex Maitland f6aff4f075 Upgrade to CEF 99.2.7+g674fc01+chromium-99.0.4844.51 / Chromium 99.0.4844.51 2022-03-04 20:46:59 +10:00
Alex Maitland 0d15db9e90 BrowserSubProcess - Increase x64/arm64 stack size
- For Net 4.5.2 it appears we need to resign the exe
- For .Net Core as the exes are native it doesn't look
 like we need to sign them (the CefSharp.BrowserSubprocess.dll is actually
 the one that's signed).
- Remove unused CefSharpBrowserSubprocessPostBuildEvent

Issue #3986
2022-03-01 15:29:57 +10:00