6047 Commits

Author SHA1 Message Date
Alex Maitland 646d657303 DevTools Client - Upgrade to 99.0.4844.51 v99.2.90 2022-03-07 12:05:51 +10:00
Alex Maitland a1417cdf02 WinForms - Designer avoid calling Cef.Shutdown on Application.Exit 2022-03-07 11:39:31 +10:00
Alex Maitland 4fef9ce490 Example - Remove some old Pepper Flash references 2022-03-07 11:39:04 +10:00
Alex Maitland 6954490106 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-03-07 11:38:58 +10:00
Alex Maitland 2a94e8a144 Core - Update ContextMenuMediaState values to match Chromium
- Enum updated
- Other enum values added to related enums

Resolves #4014
2022-03-07 11:38:52 +10:00
Alex Maitland 26f415fd37 Core - SetCrashKeyValue fix key not being passed to CEF 2022-03-07 11:38:44 +10:00
Alex Maitland 1d88a66848 IBrowserHost.Find remove identifier param
Resolves #4013
2022-03-07 11:38:38 +10:00
Alex Maitland 9d251a398e Upgrade to CEF 99.2.9+gf426765+chromium-99.0.4844.51 / Chromium 99.0.4844.51 2022-03-07 11:38:04 +10:00
Alex Maitland 2abe415010 Core - Fix typo 2022-03-07 11:33:21 +10:00
Alex Maitland 4fce1c69ef Upgrade to CEF 98.1.21+g9782362+chromium-98.0.4758.102 / Chromium 98.0.4758.102 v98.1.210 2022-02-17 12:39:52 +10:00
Alex Maitland 3f759a78c6 WPF - CompositionTargetRenderHandler add null check v98.1.190 2022-02-15 14:06:35 +10:00
Alex Maitland 28b74069ff DevTools Client - Upgrade to 98.0.4758.80 2022-02-15 14:04:13 +10:00
Alex Maitland 8bf5a7a7c0 Upgrade to CEF 98.1.19+g57be9e2+chromium-98.0.4758.80 / Chromium 98.0.4758.80 2022-02-15 13:30:31 +10:00
Santosh M Ghanti c417970e5d 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:59:49 +10:00
Alex Maitland 20aba5cb7d IResourceRequestHandlerFactory - Clarify HasHandlers documentation
Follow up to #3998
2022-02-14 13:56:34 +10:00
Craig Fowler 0fb3c50d04 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:38 +10:00
chylex 1663b19c87 Fix not disposing callback in ResourceHandler.Skip (#3978) 2022-02-10 13:30:11 +10:00
Alex Maitland bedccd2718 Async JavascriptBinding - Return null instead of empty object for async Task methods
Resolves #3980
2022-02-10 13:29:50 +10:00
Alex Maitland 870dbb527f WinForms - Add new IWinFormsChromiumWebBrowser interface
- Common interface of ChromiumHostControl and ChromiumWebBrowser
- WinForms Example Fix removing of Tab
2022-02-10 13:28:49 +10:00
Alex Maitland 7906919fec WinForms - Make ChromiumHostControlBase.FromBrowser public
- Can be used to get the ChromiumHostControlBase instances from the IBrowser instance
2022-02-10 13:28:49 +10:00
Alex Maitland ebd298f070 Nuget - Add CefSharpTransformXmlDllPathOverride
Allow for setting a custom location for CefSharpTransformXmlDllPath
2022-02-10 13:28:36 +10:00
Alex Maitland 74100d5b76 Upgrade to CEF 98.1.12+gd87e3f4+chromium-98.0.4758.55 / Chromium 98.0.4758.55 2022-02-10 13:28:18 +10:00
Alex Maitland c5a7162860 Net Core - Fix failing test
- WaitForQUnitTestExeuctionToComplete was renamed to CreateBrowserAndWaitForQUnitTestExeuctionToComplete
v97.1.61
2022-01-30 09:01:16 +10:00
Alex Maitland a1b5d87f06 Test - Fix IntegrationTestFacts.LoadJavaScriptBindingAsyncTaskQunitTestsSuccessfulCompletion
Add method interceptor so tests pass. Without it we get an VoidTaskResult object.
2022-01-27 16:41:29 +10:00
Alex Maitland a9ac70ee91 Test - Add IntegrationTestFacts.LoadJavaScriptBindingAsyncTaskQunitTestsSuccessfulCompletion
- Runs the AsyncTask binding tests
2022-01-27 16:17:42 +10:00
Alex Maitland 02c39917b8 Javascript Binding - IJavascriptCallbackProxy.ExecuteAsync correctly creates pending task using callback Id
- Previously a new PendingTask(TaskCompletionSource) was created using a new Id which worked when the Ids matched
  between the browser and render process. If you skipped executing a callback then the Ids would get out of sync.

Issue #3979
2022-01-27 15:23:21 +10:00
Alex Maitland b50c60e065 Upgrade to CEF 97.1.6+g8961cdb+chromium-97.0.4692.99 / Chromium 97.0.4692.99 v97.1.60 2022-01-22 12:44:09 +10:00
Alex Maitland 49707da5a7 Core - CefResourceRequestHandlerAdapter.GetCookieAccessFilter object reference not set to an instance of an object.
For resource requests that are handled by CefRequestContextHandlerAdapter::GetResourceRequestHandler
then _browserControl field will be null, added additional checks before calling TryGetBrowserCoreById

Follow up to https://github.com/cefsharp/CefSharp/commit/4ade0b8284d4f95f763c471a867139bff2bac2a9

Issue #3967
v97.1.12
2022-01-18 11:04:59 +10:00
campersau e31faa6ca9 OffScreen - Fix ResizeAsync with deviceScalingFactor (#3964)
* OffScreen - Fix ResizeAsync with deviceScalingFactor

* OffScreen - Fix CaptureScreenshotAsync Width / Height calculation to include X and Y

Always apply Scale changes
2022-01-18 11:04:59 +10:00
campersau 7f1aa6ee5a Core - Update CefErrorCode (#3965)
Using https://raw.githubusercontent.com/chromium/chromium/97.0.4692.71/net/base/net_error_list.h
2022-01-18 11:04:59 +10:00
campersau 10ade486a2 Test - Fix CanEvaluateDoubleValues by not relying on the current culture (#3966) 2022-01-18 11:04:59 +10:00
Alex Maitland 1f79515359 WPF - Update CleanupElement when PresentationSource changes
- If the CleanupElement is a Window then move it to the new Window
v97.1.11
2022-01-15 11:19:16 +10:00
Alex Maitland ec7c4f7b04 OffScreen - CaptureScreenshotAsync only resize if larger and support clip 2022-01-15 10:24:24 +10:00
Alex Maitland 4ee889f6d0 Test - Skip LoadJavaScriptBindingQunitTestsSuccessfulCompletion
Issue #3867
v97.1.10-pre
2022-01-11 12:12:38 +10:00
Alex Maitland 06d485b4d0 DevTools Client - Upgrade to 97.0.4692.71 2022-01-11 09:55:05 +10:00
Alex Maitland 086d02e62e WinForms - Add ChromiumWebBrowser.FromBrowser static method
- Can be used to get ChromiumWebBrowser instance from IBrowser instance
- Added generic base implementation to reduce code duplication
2022-01-10 14:10:57 +10:00
Alex Maitland 1c29eda942 README.md - Update release tab as version 97 is coming soon 2022-01-10 13:41:43 +10:00
Alex Maitland 0243876795 WinForms - Add LifeSpanHandler.OnBeforePopupCreated
- Allow for cancelling of popup creation

browser.LifeSpanHandler = CefSharp.WinForms.Handler.LifeSpanHandler
	.Create()
	.OnBeforePopupCreated((chromiumWebBrowser, b, frame, targetUrl, targetFrameName, targetDisposition, userGesture, browserSettings) =>
	{
		//Can cancel opening popup based on Url if required.
		if(targetUrl?.StartsWith(CefExample.BaseUrl + "/cancelme.html") == true)
		{
			return PopupCreation.Cancel;
		}

		return PopupCreation.Continue;
	})
2022-01-10 13:40:42 +10:00
Alex Maitland 455c6f2c52 Core - ResourceRequestHandler now passes a long lived instance of IBrowser
- The methods in CefResourceRequestHandlerAdapter previously passed on a scoped instance of
  IBrowser which would have been disposed when the method was executed. This made it very
  difficult to use the callback in OnBeforeResourceLoad so now we check to see if we
  already have an IBrowser instance with the matching Id and only use a scoped instance
  if we don't have a match.
2022-01-10 10:36:39 +10:00
Alex Maitland 8b23c616b4 WinForms - Allow creation of custom ChromiumHostControl instance
- Add new CreatePopupChromiumHostControl delegate which can be passed to
  LifeSpanHandler.Create to create a new ChromiumHostControl instance.
  You can create a class that inherits from ChromiumHostControl and add
  additional functionality.

LifeSpanHandler
  .Create(() =>
  {
     return new ChromiumHostControl
     {
       Dock = DockStyle.Fill
     };
})
2022-01-10 10:17:14 +10:00
Alex Maitland d91cf0515b Core - Further migration of extensions methods from IWebBrowser to IChromiumWebBrowserBase
- EvaluateScriptAsync can now be used from IChromiumWebBrowserBase, if also IWebBrowser then
main frame check will occur as previous.

Related to #3944
2022-01-10 10:02:09 +10:00
Alex Maitland 123e4b7daf Core - IFrame.EvaluateScriptAsPromiseAsync add javascriptBindingApiGlobalObjectName
- Defaults to null, only required if you set JavascriptBindingSettings.JavascriptBindingApiGlobalObjectName
2022-01-10 09:53:46 +10:00
Alex Maitland 45d9ec43cc appveyor.yml - Update as release branch 2022-01-10 09:50:30 +10:00
Alex Maitland fc08c462dc Upgrade to CEF 97.1.1+g50067f2+chromium-97.0.4692.71 / Chromium 97.0.4692.71 2022-01-10 09:49:57 +10:00
Alex Maitland 487723b080 Core - Change WebBrowserExtensions replace IWebBrowser with IChromiumWebBrowserBase where possible
- Improve xml doc comments also
2022-01-10 09:43:54 +10:00
Alex Maitland eb225f6252 Core - ExecuteScriptAsync(script) incorrectly appends braces and semicolon to script.
Issue #3944
2022-01-10 09:43:54 +10:00
Alex Maitland 604e9570f7 WinForms - Improve xml doc 2022-01-05 13:20:33 +10:00
Alex Maitland 00254b9377 README.md - Add CefSharp.Wpf.HwndHost package links 2022-01-05 13:14:17 +10:00
Alex Maitland d45aaff7ca Upgrade to CEF 97.0.11+g695453b+chromium-97.0.4692.71 / Chromium 97.0.4692.71 2022-01-05 10:54:41 +10:00
Alex Maitland 463df86f3c UpdateNugetPackages.ps1 - Update assembly/build version as part of script
- UpdateNugetPackages.ps1 now calls .\build.ps1 -Target update-build-version
2022-01-05 10:52:14 +10:00