Commit Graph

6089 Commits

Author SHA1 Message Date
Alex Maitland f8b433f285 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
v101.0.150
2022-05-05 19:28:12 +10:00
Alex Maitland 3ec3de7c26 Net Core - Update Ref Assembly 2022-05-05 12:54:28 +10:00
Alex Maitland 0932a901f0 WPF - Remove EmbeddedCursor workaround
Bug was fixed upstream and now no longer required.

Related issue #4021
2022-05-05 12:39:28 +10:00
Alex Maitland 3f7c5c8e94 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:37:44 +10:00
Alex Maitland c09328b456 Core - Fix IAudioHandler xml doc typo 2022-05-05 09:40:31 +10:00
Alex Maitland 52b02350c2 Core - Update WindowOpenDisposition (101.0.4951.54) 2022-05-05 09:39:02 +10:00
Alex Maitland a465b9cc79 Core - Add IDragData.ClearFilenames 2022-05-05 09:38:16 +10:00
Alex Maitland b5049e598a Core - Update TransitionType (101.0.4951.54)
https://github.com/chromiumembedded/cef/commit/b524edc2099315987a29d8664752e4c3dc62825d#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26b
2022-05-05 09:28:22 +10:00
Alex Maitland 5359e0af00 Core - Update CefErrorCode (101.0.4951.54) 2022-05-05 09:22:51 +10:00
Alex Maitland 725e71a1c2 DevTools Client - Viewport default Scale to 1.0 2022-05-04 10:53:39 +10:00
Alex Maitland 03ab08241b DevTools Client - Upgrade to 101.0.4951.34
- DevToolsDomainEntityBase derived classes are now partial
2022-05-04 10:53:39 +10:00
Alex Maitland c37c3334b0 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-04 10:53:00 +10:00
Alex Maitland 98cb4cfc14 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-05-04 10:53:00 +10:00
Alex Maitland 93e5161bbb Example - Remove Newtonsoft.Json
Wasn't used
2022-05-04 10:52:59 +10:00
Alex Maitland cc9a152a39 Core - Remove CefSettings.ApplicationClientIdForFileScanning
- Was removed upstream.

This is a breaking change.

Resolves https://github.com/cefsharp/CefSharp/issues/4070
2022-05-04 10:52:59 +10:00
Alex Maitland 68e5fbbef0 Nuget - Update build diagnostics to output CefSharpAnyCpuSupport 2022-05-04 10:52:53 +10:00
Alex Maitland 91799184db Core - Add IChromiumWebBrowserBase.GetRequestContext extension method
Simplifies getting the RequestContext for a ChromiumWebBrowser instance
2022-05-04 10:52:53 +10:00
Alex Maitland 51df5493f3 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-05-04 10:52:52 +10:00
Alex Maitland 86877f7885 Upgrade to CEF 101.0.15+gca159c5+chromium-101.0.4951.54 / Chromium 101.0.4951.54 2022-05-04 10:51:33 +10:00
Alex Maitland a0ddd94873 WPF - CompositionTargetRenderHandler add null check 2022-04-20 12:16:24 +10:00
Alex Maitland ca0c0d94f5 build.ps1 - Remove cef.redist dependency when only packaging a subset of architectures
Issue #4066
2022-04-19 19:25:48 +10:00
Alex Maitland f7b593b4ca WPF - Remove workaround for Cursors not loading correctly
Leaving the EmbeddedCursor class incase there's further issues

Issue has been 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
v100.0.230
2022-04-19 09:30:25 +10:00
Alex Maitland 94b524b89d Upgrade to CEF 100.0.23+ga1e2187+chromium-100.0.4896.127 / Chromium 100.0.4896.127 2022-04-19 09:24:26 +10:00
Alex Maitland d841b9a1cd Upgrade to CEF 100.0.14+g4e5ba66+chromium-100.0.4896.75 / Chromium 100.0.4896.75 v100.0.140 2022-04-07 09:07:48 +10:00
Alex Maitland c59e51533e Test - Skip LoadJavaScriptBindingQunitTestsSuccessfulCompletion
Issue #3867
2022-04-06 10:06:05 +10:00
Alex Maitland be7318b274 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-06 09:33:38 +10:00
Alex Maitland 31b669a643 DevTools Client - Upgrade to Chromium 100.0.4896.60 v100.0.120-pre 2022-04-04 16:27:51 +10:00
Alex Maitland cc808f8c10 NetCore - Update RefAssembly 2022-04-04 15:26:30 +10:00
Alex Maitland bb7273cb9c 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:36:22 +10:00
Alex Maitland 58e61bb766 Preparation for M100 -pre release 2022-04-04 10:40:07 +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
Alex Maitland 8b9a5e21c1 WinForms - Designer avoid calling Cef.Shutdown on Application.Exit 2022-02-23 11:06:00 +10:00
Alex Maitland 8927a33503 Example - Remove some old Pepper Flash references 2022-02-22 11:56:24 +10:00
Alex Maitland 08f3a4015d Core - Update CefErrorCode (99.0.4844.27)
https://raw.githubusercontent.com/chromium/chromium/99.0.4844.27/net/base/net_error_list.h

Resolves #4015
2022-02-22 11:51:31 +10:00
Alex Maitland 6bb262e7bb Core - Update ContextMenuMediaState values to match Chromium
- Enum updated
- Other enum values added to related enums

Resolves #4014
2022-02-22 11:45:58 +10:00
Alex Maitland 009687f7dd Core - SetCrashKeyValue fix key not being passed to CEF 2022-02-22 11:33:47 +10:00