Commit Graph

6179 Commits

Author SHA1 Message Date
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
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
Alex Maitland 3d39238a93 Core - Code cleanup
- Make more classes sealed
- Add xml doc
- Add serializable constructor
2022-02-22 11:33:18 +10:00
Alex Maitland 597e54fc11 IBrowserHost.Find remove identifier param
Resolves #4013
2022-02-22 11:17:56 +10:00
Alex Maitland 54bd29a551 Core - Fix typo 2022-02-22 11:17:40 +10:00
Alex Maitland 0d5e830c27 Upgrade to CEF CEF 99.2.3+g962d9c9+chromium-99.0.4844.27 / Chromium 99.0.4844.27 2022-02-22 10:41:32 +10:00
Alex Maitland b50f7b40a8 README.md/CONTRIBUTING.md - Update as M98 has been released 2022-02-17 12:45:53 +10:00
Alex Maitland e4e6cb8f7a IResourceRequestHandlerFactory - Clarify HasHandlers documentation
Follow up to #3998
2022-02-14 13:59:02 +10:00
Alex Maitland ad41e1d6aa Nuget - Add CefSharpTransformXmlDllPathOverride
Allow for setting a custom location for CefSharpTransformXmlDllPath
2022-02-14 13:59:02 +10:00
Santosh M Ghanti 9e0236876c Sync Javascript Binding - Add support for property interception (#3935)
* Core - added support for property interceptor

* Incorporated the review comments

* Incorporated the review comments 2

* Review comments exclude trygetproperty and trysetproperty for .netcore app

* Added the unit test cases for trygetproperty and trysetproperty

* Fixed .net core app build failure

* Added the separate test case for property interceptor

Co-authored-by: sghanti <santosh_ghanti@intuit.com>
2022-02-14 13:58:35 +10:00
Craig Fowler 535671658c Update docs for IResourceRequestHandlerFactory (#3998)
I have just discovered that when HasHandlers returns false, the GetResourceRequestHandler method is never executed.  Presumably this is an optimisation which happens inside of Chromium, as I can see that the HasHandlers property value goes all way back to the C++ native project.

I was about to suggest removing this optimisation because it'd be trivial to optimise and return early inside the default factory impl in C# world.  If it goes all the way down to Chromium then that's less easy and so the next best thing would be to document it.
2022-02-14 13:50:00 +10:00
Alex Maitland 3b1c46aab9 Code Cleanup - Minor code cleanup
- Add Microsoft.CodeAnalysis.NetAnalyzers package
- Make some classes sealed
- Fix/Add xml doc
2022-02-01 14:07:01 +10:00