Commit Graph

6117 Commits

Author SHA1 Message Date
Alex Maitland aa7460ed28 Upgrade to CEF 102.0.10+gf249b2e+chromium-102.0.5005.115 / Chromium 102.0.5005.115 v102.0.100 2022-06-16 10:20:42 +10:00
Alex Maitland bea4307f87 Core - Add IWindowInfo.WindowName
Allows setting of the window_name property
2022-06-06 11:09:45 +10:00
Alex Maitland 666a1154d8 Core - Cef.WaitForBrowsersToClose increase Wait Timeout
- After upgrading to M102 shutdown appears to be taking longer, so we'll increase
  the Wait timeout from 500ms to 750ms to allow CEF a little more time to finish processing.
v102.0.90
2022-05-31 15:13:55 +10:00
Alex Maitland 46e9249683 Test - Increase BrowserRefCountDecrementedOnDispose reliability 2022-05-31 14:32:23 +10:00
Alex Maitland 527aab227a Test - Skip LoadJavaScriptBindingQunitTestsSuccessfulCompletion
Issue #3867
2022-05-31 11:16:49 +10:00
Alex Maitland 9dbb9003c6 README.md - Add M102 branch details 2022-05-31 11:16:28 +10:00
Alex Maitland 877f29ea28 appveyor.yml - Update build version number 2022-05-31 11:16:15 +10:00
Alex Maitland 8938d9ef0a DevTools Client - Upgrade to 102.0.5005.63 2022-05-31 11:08:40 +10:00
Alex Maitland cbbd57e435 Core - Fix some exception messages 2022-05-31 11:05:03 +10:00
Alex Maitland 787665bcfe Core - WebBrowserExtensions throw explicit ObjectDisposedException if IsDisposed
- Make it clear that the ChromiumWebBrowser instance has been disposed.
  Previously when the browser was disposed BrowserCore would be null.
  An explicit ObjectDisposedException is now thrown.
2022-05-31 10:56:13 +10:00
Alex Maitland cae407f9f1 WPF/OffScreen - Add WaitForRenderIdleAsync CancellationToken test 2022-05-30 19:22:25 +10:00
Alex Maitland 22de75f1be WaitForNavigationAsync - Change timeout handling 2022-05-30 19:14:06 +10:00
Alex Maitland b8b27f6885 WPF/OffScreen - Add WaitForRenderIdleAsync (#4080)
* WPF/OffScreen - Add WaitForRenderIdleAsync

- Task resolves when render has been idle for the specified time
- Make TaskTimeoutExtensions public (they're not extension methods as this was expected)
2022-05-30 19:11:17 +10:00
Alex Maitland 29c7473b77 Core - WaitForNavigationAsync cleanup events on timeout
Unsubscribe to events when timeout occurs
2022-05-30 14:24:55 +10:00
Alex Maitland 83c8e009d9 DevTools - Add IWebBrowserInternal.DevToolsContext
- For use with next version of CefSharp.Puppeteer
2022-05-30 14:20:22 +10:00
Alex Maitland 923e687fda Upgrade to CEF 102.0.9+g1c5e658+chromium-102.0.5005.63 / Chromium 102.0.5005.63 2022-05-30 13:37:46 +10:00
Alex Maitland d701cee655 Enhancement - Add WaitForSelectorAsync extension method. (#4095)
* Enhancement - Add WaitForSelectorAsync extension method.

string script = "const newDiv = document.createElement('div'); newDiv.id = 'myElement'; document.body.append(newDiv);";
await Task.WhenAll(
     browser.WaitForSelectorAsync("#myElement");,
     chromiumWebBrowser.EvaluateScriptAsync(script));

Resolves #4094
2022-05-30 12:00:18 +10:00
Alex Maitland 61f581346a Remove Legacy Swiftshader
- Update readme files
- Remove from targets
- Remove text references

Issue https://github.com/cefsharp/CefSharp/issues/4085
2022-05-24 15:13:31 +10:00
Alex Maitland 0c6289322f Upgrade to CEF 102.0.6+g4209780+chromium-102.0.5005.61 / Chromium 102.0.5005.61 2022-05-24 14:54:48 +10:00
Alex Maitland 6c18e0e863 Update IDialogHandler.OnFileDialog method declaration
CEF is now using Chrome file dialogs on all platforms and runtimes, this brings a number of fixes and also some API changes.

- The selectedAcceptFilter filter arg has now been removed
- The CefFileDialogFlags enum has been removed as CEF no longer supports these options

This is a breaking change.

Issue #4110
2022-05-17 19:51:08 +10:00
Alex Maitland c5f861594d Upgrade to CEF 102.0.5+gf11ca74+chromium-102.0.5005.49 / Chromium 102.0.5005.49 2022-05-17 19:33:34 +10:00
Alex Maitland dbe817a899 Readme.md - Update cefclient links 2022-05-17 09:14:59 +10:00
Alex Maitland 239e5e51d6 Update bug_report.md
Update version numbers
2022-05-14 19:01:50 +10:00
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