From cd60414a64a05377e9ccc252165184f4ef33eb0e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 26 Apr 2022 12:15:23 +1000 Subject: [PATCH 001/543] Example - Remove Newtonsoft.Json Wasn't used --- CefSharp.Example/CefSharp.Example.csproj | 5 +---- CefSharp.Example/CefSharp.Example.netcore.csproj | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CefSharp.Example/CefSharp.Example.csproj b/CefSharp.Example/CefSharp.Example.csproj index 6a8530ed3..a6ff1e596 100644 --- a/CefSharp.Example/CefSharp.Example.csproj +++ b/CefSharp.Example/CefSharp.Example.csproj @@ -1,4 +1,4 @@ - + net472 Library @@ -67,9 +67,6 @@ - - - diff --git a/CefSharp.Example/CefSharp.Example.netcore.csproj b/CefSharp.Example/CefSharp.Example.netcore.csproj index fa2ddc79f..1a55fb176 100644 --- a/CefSharp.Example/CefSharp.Example.netcore.csproj +++ b/CefSharp.Example/CefSharp.Example.netcore.csproj @@ -19,10 +19,6 @@ true - - - - From 59e0b1afdca7a5bba4fa9c2749913c9ec8da847a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 27 Apr 2022 11:02:45 +1000 Subject: [PATCH 002/543] 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 --- .../Navigation/WaitForNavigationAsyncTests.cs | 127 ++++++++++++++++++ CefSharp.WinForms/Host/ChromiumHostControl.cs | 8 ++ CefSharp/IChromiumWebBrowserBase.cs | 28 ++++ .../Partial/ChromiumWebBrowser.Partial.cs | 7 + CefSharp/Internals/TaskTimeoutExtensions.cs | 37 +++++ CefSharp/LoadUrlAsyncResponse.cs | 2 +- CefSharp/WaitForNavigationAsyncResponse.cs | 45 +++++++ CefSharp/WebBrowserExtensions.cs | 95 ++++++++++++- 8 files changed, 347 insertions(+), 2 deletions(-) create mode 100644 CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs create mode 100644 CefSharp/Internals/TaskTimeoutExtensions.cs create mode 100644 CefSharp/WaitForNavigationAsyncResponse.cs diff --git a/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs b/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs new file mode 100644 index 000000000..904acdb3b --- /dev/null +++ b/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs @@ -0,0 +1,127 @@ +using Xunit.Abstractions; +using Xunit; +using System.Threading.Tasks; +using CefSharp.OffScreen; +using CefSharp.Example; +using Nito.AsyncEx; +using System; +using System.Threading; + +namespace CefSharp.Test.Navigation +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class WaitForNavigationAsyncTests + { + + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public WaitForNavigationAsyncTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task CanWork() + { + const string expected = CefExample.HelloWorldUrl; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var navigationTask = browser.WaitForNavigationAsync(); + var evaluateTask = browser.EvaluateScriptAsync($"window.location.href = '{expected}';"); + + await Task.WhenAll(navigationTask, evaluateTask); + + var navigationResponse = navigationTask.Result; + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + Assert.Equal(expected, mainFrame.Url); + Assert.Equal(200, navigationResponse.HttpStatusCode); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [Fact] + public async Task CanWaitForInvalidDomain() + { + const string expected = "https://notfound.cefsharp.test"; + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var navigationTask = browser.WaitForNavigationAsync(); + var evaluateTask = browser.EvaluateScriptAsync($"window.location.href = '{expected}';"); + + await Task.WhenAll(navigationTask, evaluateTask); + + var navigationResponse = navigationTask.Result; + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + Assert.False(navigationResponse.Success); + Assert.Contains(expected, mainFrame.Url); + Assert.Equal(CefErrorCode.NameNotResolved, navigationResponse.ErrorCode); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [Fact] + public async Task CanTimeout() + { + const string expected = "The operation has timed out."; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var exception = await Assert.ThrowsAnyAsync(async () => + { + await browser.WaitForNavigationAsync(timeout:TimeSpan.FromMilliseconds(100)); + }); + + Assert.Contains(expected, exception.Message); + + output.WriteLine("Exception {0}", exception.Message); + } + } + + [Fact] + public async Task CanCancel() + { + const string expected = "A task was canceled."; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + var cancellationTokenSource = new CancellationTokenSource(); + cancellationTokenSource.CancelAfter(TimeSpan.FromSeconds(1)); + + Assert.True(response.Success); + + var exception = await Assert.ThrowsAnyAsync(async () => + { + await browser.WaitForNavigationAsync(cancellationToken: cancellationTokenSource.Token); + }); + + Assert.Contains(expected, exception.Message); + + output.WriteLine("Exception {0}", exception.Message); + } + } + } +} diff --git a/CefSharp.WinForms/Host/ChromiumHostControl.cs b/CefSharp.WinForms/Host/ChromiumHostControl.cs index 6ffa9e65c..c5ae0f61a 100644 --- a/CefSharp.WinForms/Host/ChromiumHostControl.cs +++ b/CefSharp.WinForms/Host/ChromiumHostControl.cs @@ -5,6 +5,7 @@ using System; using System.ComponentModel; using System.Drawing; +using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; @@ -249,6 +250,13 @@ public Task LoadUrlAsync(string url) return CefSharp.WebBrowserExtensions.LoadUrlAsync(this, url); } + /// + public Task WaitForNavigationAsync(TimeSpan? timeout = null, CancellationToken cancellationToken = default) + { + //WaitForNavigationAsync is actually a static method so that CefSharp.Wpf.HwndHost can reuse the code + return CefSharp.WebBrowserExtensions.WaitForNavigationAsync(this, timeout, cancellationToken); + } + /// /// Returns the main (top-level) frame for the browser window. /// diff --git a/CefSharp/IChromiumWebBrowserBase.cs b/CefSharp/IChromiumWebBrowserBase.cs index 51f8bc3d7..a33efcb0b 100644 --- a/CefSharp/IChromiumWebBrowserBase.cs +++ b/CefSharp/IChromiumWebBrowserBase.cs @@ -3,6 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; +using System.Threading; using System.Threading.Tasks; namespace CefSharp @@ -95,6 +96,33 @@ public interface IChromiumWebBrowserBase : IDisposable /// Task LoadUrlAsync(string url); + /// + /// This resolves when the browser navigates to a new URL or reloads. + /// It is useful for when you run code which will indirectly cause the browser to navigate. + /// A common use case would be when executing javascript that results in a navigation. e.g. clicks a link + /// This must be called before executing the action that navigates the browser. It may not resolve correctly + /// if called after. + /// + /// + /// Usage of the History API to change the URL is considered a navigation + /// + /// optional timeout, if not specified defaults to five(5) seconds. + /// optional CancellationToken + /// Task which resolves when has been called with false. + /// or when is called to signify a load failure. + /// + /// + /// + /// + /// + /// + Task WaitForNavigationAsync(TimeSpan? timeout = null, CancellationToken cancellationToken = default); + /// /// A flag that indicates whether the WebBrowser is initialized (true) or not (false). /// diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index bdacc268e..33d7e4f3a 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -369,6 +369,13 @@ public Task LoadUrlAsync(string url) return CefSharp.WebBrowserExtensions.LoadUrlAsync(this, url); } + /// + public Task WaitForNavigationAsync(TimeSpan? timeout = null, CancellationToken cancellationToken = default) + { + //WaitForNavigationAsync is actually a static method so that CefSharp.Wpf.HwndHost can reuse the code + return CefSharp.WebBrowserExtensions.WaitForNavigationAsync(this, timeout, cancellationToken); + } + /// public Task WaitForInitialLoadAsync() { diff --git a/CefSharp/Internals/TaskTimeoutExtensions.cs b/CefSharp/Internals/TaskTimeoutExtensions.cs new file mode 100644 index 000000000..ffeaff9e0 --- /dev/null +++ b/CefSharp/Internals/TaskTimeoutExtensions.cs @@ -0,0 +1,37 @@ +// https://github.com/dotnet/runtime/blob/933988c35c172068652162adf6f20477231f815e/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs#L1 +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// https://github.com/dotnet/runtime/blob/933988c35c172068652162adf6f20477231f815e/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs#L12 + +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace CefSharp.Internals +{ + /// + /// WaitAsync polyfills imported from .Net Runtime + /// as we don't get access to this method in older .net versions + /// + internal static class TaskTimeoutExtensions + { + public static Task WaitAsync(Task task, int millisecondsTimeout) => + WaitAsync(task, TimeSpan.FromMilliseconds(millisecondsTimeout), default); + + public static Task WaitAsync(Task task, TimeSpan timeout) => + WaitAsync(task, timeout, default); + + public static Task WaitAsync(Task task, CancellationToken cancellationToken) => + WaitAsync(task, Timeout.InfiniteTimeSpan, cancellationToken); + + public static async Task WaitAsync(Task task, TimeSpan timeout, CancellationToken cancellationToken) + { + var tcs = new TaskCompletionSource(); + using (new Timer(s => ((TaskCompletionSource)s).TrySetException(new TimeoutException()), tcs, timeout, Timeout.InfiniteTimeSpan)) + using (cancellationToken.Register(s => ((TaskCompletionSource)s).TrySetCanceled(), tcs)) + { + return await (await Task.WhenAny(task, tcs.Task).ConfigureAwait(false)).ConfigureAwait(false); + } + } + } +} diff --git a/CefSharp/LoadUrlAsyncResponse.cs b/CefSharp/LoadUrlAsyncResponse.cs index e9414edfb..93a283cc8 100644 --- a/CefSharp/LoadUrlAsyncResponse.cs +++ b/CefSharp/LoadUrlAsyncResponse.cs @@ -5,7 +5,7 @@ namespace CefSharp { /// - /// Response returned from + /// Response returned from /// public class LoadUrlAsyncResponse { diff --git a/CefSharp/WaitForNavigationAsyncResponse.cs b/CefSharp/WaitForNavigationAsyncResponse.cs new file mode 100644 index 000000000..d8bc934f0 --- /dev/null +++ b/CefSharp/WaitForNavigationAsyncResponse.cs @@ -0,0 +1,45 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +namespace CefSharp +{ + /// + /// WaitForNavigationAsyncResponse + /// + public class WaitForNavigationAsyncResponse + { + /// + /// Error Code. If the network request was made successfully this value will be + /// (no error occured) + /// + public CefErrorCode ErrorCode { get; private set; } + + /// + /// Http Status Code. If is not equal to + /// then this value will be -1. + /// + public int HttpStatusCode { get; private set; } + + /// + /// If is equal to and + /// is equal to 200 (OK) then the main frame loaded without + /// critical error. + /// + public bool Success + { + get { return ErrorCode == CefErrorCode.None && HttpStatusCode == 200; } + } + + /// + /// Initializes a new instance of the WaitForNavigationAsyncResponse class. + /// + /// CEF Error Code + /// Http Status Code + public WaitForNavigationAsyncResponse(CefErrorCode errorCode, int httpStatusCode) + { + ErrorCode = errorCode; + HttpStatusCode = httpStatusCode; + } + } +} diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index f70241859..6f164dc39 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -8,6 +8,7 @@ using System.Globalization; using System.IO; using System.Text; +using System.Threading; using System.Threading.Tasks; using CefSharp.Internals; using CefSharp.Web; @@ -448,7 +449,7 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch //Ensure our continuation is executed on the ThreadPool //For the .Net Core implementation we could use //TaskCreationOptions.RunContinuationsAsynchronously - tcs.TrySetResultAsync(new LoadUrlAsyncResponse(CefErrorCode.None, statusCode)); + tcs.TrySetResultAsync(new LoadUrlAsyncResponse(statusCode == -1 ? CefErrorCode.Failed : CefErrorCode.None, statusCode)); } }; @@ -460,6 +461,98 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch return tcs.Task; } + /// + /// This resolves when the browser navigates to a new URL or reloads. + /// It is useful for when you run code which will indirectly cause the browser to navigate. + /// A common use case would be when executing javascript that results in a navigation. e.g. clicks a link + /// This must be called before executing the action that navigates the browser. It may not resolve correctly + /// if called after. + /// + /// + /// Usage of the History API to change the URL is considered a navigation + /// + /// ChromiumWebBrowser instance (cannot be null) + /// optional timeout, if not specified defaults to five(5) seconds. + /// optional CancellationToken + /// Task which resolves when has been called with false. + /// or when is called to signify a load failure. + /// + /// + /// + /// + /// + /// + public static Task WaitForNavigationAsync(IChromiumWebBrowserBase chromiumWebBrowser, TimeSpan? timeout = null, CancellationToken cancellationToken = default) + { + var tcs = new TaskCompletionSource(); + + EventHandler loadErrorHandler = null; + EventHandler loadingStateChangeHandler = null; + + loadErrorHandler = (sender, args) => + { + //Actions that trigger a download will raise an aborted error. + //Generally speaking Aborted is safe to ignore + if (args.ErrorCode == CefErrorCode.Aborted) + { + return; + } + + //If LoadError was called then we'll remove both our handlers + //as we won't need to capture LoadingStateChanged, we know there + //was an error + chromiumWebBrowser.LoadError -= loadErrorHandler; + chromiumWebBrowser.LoadingStateChanged -= loadingStateChangeHandler; + + //Ensure our continuation is executed on the ThreadPool + //For the .Net Core implementation we could use + //TaskCreationOptions.RunContinuationsAsynchronously + tcs.TrySetResultAsync(new WaitForNavigationAsyncResponse(args.ErrorCode, -1)); + }; + + loadingStateChangeHandler = (sender, args) => + { + //Wait for while page to finish loading not just the first frame + if (!args.IsLoading) + { + //If LoadingStateChanged was called then we'll remove both our handlers + //as LoadError won't be called, our site has loaded with a valid HttpStatusCode + //HttpStatusCodes can still be for example 404, this is considered a successful request, + //the server responded, it just didn't have the page you were after. + chromiumWebBrowser.LoadError -= loadErrorHandler; + chromiumWebBrowser.LoadingStateChanged -= loadingStateChangeHandler; + + var host = args.Browser.GetHost(); + + var navEntry = host?.GetVisibleNavigationEntry(); + + int statusCode = navEntry?.HttpStatusCode ?? -1; + + //By default 0 is some sort of error, we map that to -1 + //so that it's clearer that something failed. + if (statusCode == 0) + { + statusCode = -1; + } + + //Ensure our continuation is executed on the ThreadPool + //For the .Net Core implementation we could use + //TaskCreationOptions.RunContinuationsAsynchronously + tcs.TrySetResultAsync(new WaitForNavigationAsyncResponse(statusCode == -1 ? CefErrorCode.Failed : CefErrorCode.None, statusCode)); + } + }; + + chromiumWebBrowser.LoadError += loadErrorHandler; + chromiumWebBrowser.LoadingStateChanged += loadingStateChangeHandler; + + return TaskTimeoutExtensions.WaitAsync(tcs.Task, timeout ?? TimeSpan.FromSeconds(5), cancellationToken); + } + /// /// Execute Javascript code in the context of this Browser. As the method name implies, the script will be executed /// asynchronously, and the method therefore returns before the script has actually been executed. This simple helper extension From f201c694c6d60eb78479e420eeec6fa6629045fc Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 3 May 2022 11:28:25 +1000 Subject: [PATCH 003/543] 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 --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 18 --------- .../BrowserForm.Designer.cs | 22 ++++++++--- CefSharp.WinForms.Example/BrowserForm.cs | 37 +++++++++++++++++++ CefSharp.WinForms/ChromiumWebBrowser.cs | 24 ++++++++++++ CefSharp/IWebBrowser.cs | 6 +++ .../Partial/ChromiumWebBrowser.Partial.cs | 15 ++++++++ 6 files changed, 98 insertions(+), 24 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index e040f2805..7c0ad6d71 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -643,24 +643,6 @@ public Task ResizeAsync(int width, int height, float? deviceScaleFactor = null) return tcs.Task; } - /// - /// Size of scrollable area in CSS pixels - /// - /// A task that can be awaited to get the size of the scrollable area in CSS pixels. - public async Task GetContentSizeAsync() - { - ThrowExceptionIfDisposed(); - ThrowExceptionIfBrowserNotInitialized(); - - using (var devToolsClient = browser.GetDevToolsClient()) - { - //Get the content size - var layoutMetricsResponse = await devToolsClient.Page.GetLayoutMetricsAsync().ConfigureAwait(continueOnCapturedContext:false); - - return layoutMetricsResponse.CssContentSize; - } - } - /// public void Load(string url) { diff --git a/CefSharp.WinForms.Example/BrowserForm.Designer.cs b/CefSharp.WinForms.Example/BrowserForm.Designer.cs index 292cd6e5c..e562cc056 100644 --- a/CefSharp.WinForms.Example/BrowserForm.Designer.cs +++ b/CefSharp.WinForms.Example/BrowserForm.Designer.cs @@ -33,6 +33,7 @@ private void InitializeComponent() this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.newTabToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.closeTabToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.hideScrollbarsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.printToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.printToPdfToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); @@ -70,7 +71,7 @@ private void InitializeComponent() this.loadExtensionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.javascriptBindingStressTestToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.browserTabControl = new System.Windows.Forms.TabControl(); - this.hideScrollbarsMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.takeScreenShotMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // @@ -98,6 +99,7 @@ private void InitializeComponent() this.printToolStripMenuItem, this.printToPdfToolStripMenuItem, this.aboutToolStripMenuItem, + this.takeScreenShotMenuItem, this.showDevToolsMenuItem, this.showDevToolsDockedToolStripMenuItem, this.closeDevToolsMenuItem, @@ -123,6 +125,13 @@ private void InitializeComponent() this.closeTabToolStripMenuItem.Text = "&Close Tab"; this.closeTabToolStripMenuItem.Click += new System.EventHandler(this.CloseTabToolStripMenuItemClick); // + // hideScrollbarsMenuItem + // + this.hideScrollbarsMenuItem.Name = "hideScrollbarsMenuItem"; + this.hideScrollbarsMenuItem.Size = new System.Drawing.Size(207, 22); + this.hideScrollbarsMenuItem.Text = "Hide Scrollbars"; + this.hideScrollbarsMenuItem.Click += new System.EventHandler(this.HideScrollbarsToolStripMenuItemClick); + // // printToolStripMenuItem // this.printToolStripMenuItem.Name = "printToolStripMenuItem"; @@ -402,12 +411,12 @@ private void InitializeComponent() this.browserTabControl.Size = new System.Drawing.Size(730, 466); this.browserTabControl.TabIndex = 2; // - // hideScrollbarsMenuItem + // takeScreenShotMenuItem // - this.hideScrollbarsMenuItem.Name = "toolStripMenuItem1"; - this.hideScrollbarsMenuItem.Size = new System.Drawing.Size(207, 22); - this.hideScrollbarsMenuItem.Text = "Hide Scrollbars"; - this.hideScrollbarsMenuItem.Click += new System.EventHandler(this.HideScrollbarsToolStripMenuItemClick); + this.takeScreenShotMenuItem.Name = "takeScreenShotMenuItem"; + this.takeScreenShotMenuItem.Size = new System.Drawing.Size(207, 22); + this.takeScreenShotMenuItem.Text = "Take Screenshot"; + this.takeScreenShotMenuItem.Click += new System.EventHandler(this.TakeScreenShotMenuItemClick); // // BrowserForm // @@ -471,5 +480,6 @@ private void InitializeComponent() private System.Windows.Forms.ToolStripMenuItem javascriptBindingStressTestToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem showDevToolsDockedToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem hideScrollbarsMenuItem; + private System.Windows.Forms.ToolStripMenuItem takeScreenShotMenuItem; } } diff --git a/CefSharp.WinForms.Example/BrowserForm.cs b/CefSharp.WinForms.Example/BrowserForm.cs index 0aa3eec3c..7798e77e4 100644 --- a/CefSharp.WinForms.Example/BrowserForm.cs +++ b/CefSharp.WinForms.Example/BrowserForm.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Threading.Tasks; @@ -649,5 +650,41 @@ private void HideScrollbarsToolStripMenuItemClick(object sender, EventArgs e) _ = control?.HideScrollbarsAsync(); } + + private async void TakeScreenShotMenuItemClick(object sender, EventArgs e) + { + var control = GetCurrentTabControl(); + + if(control == null) + { + return; + } + + var chromiumWebBrowser = (ChromiumWebBrowser)control.Browser; + + var contentSize = await chromiumWebBrowser.GetContentSizeAsync(); + + //Capture current scrollable area + var viewPort = new DevTools.Page.Viewport + { + Width = contentSize.Width, + Height = contentSize.Height, + Scale = 1.0 + }; + + var data = await chromiumWebBrowser.CaptureScreenshotAsync(viewPort: viewPort, captureBeyondViewport: true); + + // Make a file to save it to (e.g. C:\Users\[user]\Desktop\CefSharp screenshot.png) + var screenshotPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "CefSharp screenshot" + DateTime.Now.Ticks + ".png"); + + File.WriteAllBytes(screenshotPath, data); + + // Tell Windows to launch the saved image. + Process.Start(new ProcessStartInfo(screenshotPath) + { + // UseShellExecute is false by default on .NET Core. + UseShellExecute = true + }); + } } } diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index 91d6ce4c8..086dfacba 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -12,6 +12,8 @@ using CefSharp.Web; using CefSharp.WinForms.Internals; using CefSharp.WinForms.Host; +using CefSharp.DevTools.Page; +using System.Threading.Tasks; namespace CefSharp.WinForms { @@ -477,6 +479,28 @@ public void Load(string url) } } + /// + /// Capture page screenshot. + /// + /// Image compression format (defaults to png). + /// Compression quality from range [0..100] (jpeg only). + /// Capture the screenshot of a given region only. + /// Capture the screenshot from the surface, rather than the view. Defaults to true. + /// Capture the screenshot beyond the viewport. Defaults to false. + /// A task that can be awaited to obtain the screenshot as a byte[]. + public async Task CaptureScreenshotAsync(CaptureScreenshotFormat format = CaptureScreenshotFormat.Png, int? quality = null, Viewport viewPort = null, bool fromSurface = true, bool captureBeyondViewport = false) + { + ThrowExceptionIfDisposed(); + ThrowExceptionIfBrowserNotInitialized(); + + using (var devToolsClient = browser.GetDevToolsClient()) + { + var screenShot = await devToolsClient.Page.CaptureScreenshotAsync(format, quality, viewPort, fromSurface, captureBeyondViewport).ConfigureAwait(continueOnCapturedContext: false); + + return screenShot.Data; + } + } + /// /// The javascript object repository, one repository per ChromiumWebBrowser instance. /// diff --git a/CefSharp/IWebBrowser.cs b/CefSharp/IWebBrowser.cs index 804531ac5..eaa28aa90 100644 --- a/CefSharp/IWebBrowser.cs +++ b/CefSharp/IWebBrowser.cs @@ -169,5 +169,11 @@ public interface IWebBrowser : IChromiumWebBrowserBase /// When this method returns, contains the object reference that matches the specified , or null if no matching instance found. /// true if a instance was found matching ; otherwise, false. bool TryGetBrowserCoreById(int browserId, out IBrowser browser); + + /// + /// Size of scrollable area in CSS pixels + /// + /// A task that can be awaited to get the size of the scrollable area in CSS pixels. + Task GetContentSizeAsync(); } } diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index 33d7e4f3a..8e4168363 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -399,6 +399,21 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser) return browser != null; } + /// + public async Task GetContentSizeAsync() + { + ThrowExceptionIfDisposed(); + ThrowExceptionIfBrowserNotInitialized(); + + using (var devToolsClient = browser.GetDevToolsClient()) + { + //Get the content size + var layoutMetricsResponse = await devToolsClient.Page.GetLayoutMetricsAsync().ConfigureAwait(continueOnCapturedContext: false); + + return layoutMetricsResponse.CssContentSize; + } + } + private void InitialLoad(bool? isLoading, CefErrorCode? errorCode) { if(IsDisposed) From c5d1cec84350763183186c626b52d50484c9b5c9 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 3 May 2022 11:42:29 +1000 Subject: [PATCH 004/543] DevTools Client - Upgrade to 101.0.4951.34 - DevToolsDomainEntityBase derived classes are now partial --- CefSharp/DevTools/DevToolsClient.Generated.cs | 1240 ++++++++++++----- .../DevToolsClient.Generated.netcore.cs | 1197 +++++++++++----- 2 files changed, 1670 insertions(+), 767 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index e6d631c91..33f83fe57 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 99.0.4844.51 +// CHROMIUM VERSION 101.0.4951.34 namespace CefSharp.DevTools.Accessibility { /// @@ -196,7 +196,7 @@ public enum AXValueNativeSourceType /// A single source for a computed AX property. /// [System.Runtime.Serialization.DataContractAttribute] - public class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// What type of source this is. @@ -325,7 +325,7 @@ public string InvalidReason /// AXRelatedNode /// [System.Runtime.Serialization.DataContractAttribute] - public class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The BackendNodeId of the related DOM node. @@ -362,7 +362,7 @@ public string Text /// AXProperty /// [System.Runtime.Serialization.DataContractAttribute] - public class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The name of this property. @@ -405,7 +405,7 @@ public CefSharp.DevTools.Accessibility.AXValue Value /// A single computed AX property. /// [System.Runtime.Serialization.DataContractAttribute] - public class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The type of this value. @@ -675,7 +675,7 @@ public enum AXPropertyName /// A node in the accessibility tree. /// [System.Runtime.Serialization.DataContractAttribute] - public class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique identifier for this node. @@ -862,7 +862,7 @@ public enum AnimationType /// Animation instance. /// [System.Runtime.Serialization.DataContractAttribute] - public class Animation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Animation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Animation`'s id. @@ -986,7 +986,7 @@ public string CssId /// AnimationEffect instance /// [System.Runtime.Serialization.DataContractAttribute] - public class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `AnimationEffect`'s delay. @@ -1093,7 +1093,7 @@ public string Easing /// Keyframes Rule /// [System.Runtime.Serialization.DataContractAttribute] - public class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CSS keyframed animation's name. @@ -1120,7 +1120,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Keyframe's time offset. @@ -1201,7 +1201,7 @@ namespace CefSharp.DevTools.Audits /// Information about a cookie that is affected by an inspector issue. /// [System.Runtime.Serialization.DataContractAttribute] - public class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The following three properties uniquely identify a cookie @@ -1238,7 +1238,7 @@ public string Domain /// Information about a request that is affected by an inspector issue. /// [System.Runtime.Serialization.DataContractAttribute] - public class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The unique request id. @@ -1265,7 +1265,7 @@ public string Url /// Information about the frame affected by an inspector issue. /// [System.Runtime.Serialization.DataContractAttribute] - public class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FrameId @@ -1279,9 +1279,9 @@ public string FrameId } /// - /// SameSiteCookieExclusionReason + /// CookieExclusionReason /// - public enum SameSiteCookieExclusionReason + public enum CookieExclusionReason { /// /// ExcludeSameSiteUnspecifiedTreatedAsLax @@ -1316,9 +1316,9 @@ public enum SameSiteCookieExclusionReason } /// - /// SameSiteCookieWarningReason + /// CookieWarningReason /// - public enum SameSiteCookieWarningReason + public enum CookieWarningReason { /// /// WarnSameSiteUnspecifiedCrossSiteContext @@ -1359,13 +1359,18 @@ public enum SameSiteCookieWarningReason /// WarnSameSiteLaxCrossDowngradeLax /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteLaxCrossDowngradeLax"))] - WarnSameSiteLaxCrossDowngradeLax + WarnSameSiteLaxCrossDowngradeLax, + /// + /// WarnAttributeValueExceedsMaxSize + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnAttributeValueExceedsMaxSize"))] + WarnAttributeValueExceedsMaxSize } /// - /// SameSiteCookieOperation + /// CookieOperation /// - public enum SameSiteCookieOperation + public enum CookieOperation { /// /// SetCookie @@ -1385,7 +1390,7 @@ public enum SameSiteCookieOperation /// information without the cookie. /// [System.Runtime.Serialization.DataContractAttribute] - public class SameSiteCookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// If AffectedCookie is not set then rawCookieLine contains the raw @@ -1413,11 +1418,11 @@ public string RawCookieLine /// /// CookieWarningReasons /// - public CefSharp.DevTools.Audits.SameSiteCookieWarningReason[] CookieWarningReasons + public CefSharp.DevTools.Audits.CookieWarningReason[] CookieWarningReasons { get { - return (CefSharp.DevTools.Audits.SameSiteCookieWarningReason[])(StringToEnum(typeof(CefSharp.DevTools.Audits.SameSiteCookieWarningReason[]), cookieWarningReasons)); + return (CefSharp.DevTools.Audits.CookieWarningReason[])(StringToEnum(typeof(CefSharp.DevTools.Audits.CookieWarningReason[]), cookieWarningReasons)); } set @@ -1439,11 +1444,11 @@ internal string cookieWarningReasons /// /// CookieExclusionReasons /// - public CefSharp.DevTools.Audits.SameSiteCookieExclusionReason[] CookieExclusionReasons + public CefSharp.DevTools.Audits.CookieExclusionReason[] CookieExclusionReasons { get { - return (CefSharp.DevTools.Audits.SameSiteCookieExclusionReason[])(StringToEnum(typeof(CefSharp.DevTools.Audits.SameSiteCookieExclusionReason[]), cookieExclusionReasons)); + return (CefSharp.DevTools.Audits.CookieExclusionReason[])(StringToEnum(typeof(CefSharp.DevTools.Audits.CookieExclusionReason[]), cookieExclusionReasons)); } set @@ -1466,11 +1471,11 @@ internal string cookieExclusionReasons /// Optionally identifies the site-for-cookies and the cookie url, which /// may be used by the front-end as additional context. /// - public CefSharp.DevTools.Audits.SameSiteCookieOperation Operation + public CefSharp.DevTools.Audits.CookieOperation Operation { get { - return (CefSharp.DevTools.Audits.SameSiteCookieOperation)(StringToEnum(typeof(CefSharp.DevTools.Audits.SameSiteCookieOperation), operation)); + return (CefSharp.DevTools.Audits.CookieOperation)(StringToEnum(typeof(CefSharp.DevTools.Audits.CookieOperation), operation)); } set @@ -1548,6 +1553,11 @@ public enum MixedContentResolutionStatus /// public enum MixedContentResourceType { + /// + /// AttributionSrc + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionSrc"))] + AttributionSrc, /// /// Audio /// @@ -1684,7 +1694,7 @@ public enum MixedContentResourceType /// MixedContentIssueDetails /// [System.Runtime.Serialization.DataContractAttribute] - public class MixedContentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MixedContentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The type of resource causing the mixed content issue (css, js, iframe, @@ -1825,7 +1835,7 @@ public enum BlockedByResponseReason /// some CSP errors in the future. /// [System.Runtime.Serialization.DataContractAttribute] - public class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request @@ -1927,7 +1937,7 @@ public enum HeavyAdReason /// HeavyAdIssueDetails /// [System.Runtime.Serialization.DataContractAttribute] - public class HeavyAdIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HeavyAdIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The resolution status, either blocking the content or warning. @@ -2033,7 +2043,7 @@ public enum ContentSecurityPolicyViolationType /// SourceCodeLocation /// [System.Runtime.Serialization.DataContractAttribute] - public class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ScriptId @@ -2080,7 +2090,7 @@ public int ColumnNumber /// ContentSecurityPolicyIssueDetails /// [System.Runtime.Serialization.DataContractAttribute] - public class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The url not included in allowed sources. @@ -2191,7 +2201,7 @@ public enum SharedArrayBufferIssueType /// transferred to a context that is not cross-origin isolated. /// [System.Runtime.Serialization.DataContractAttribute] - public class SharedArrayBufferIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SharedArrayBufferIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// SourceCodeLocation @@ -2266,7 +2276,7 @@ public enum TwaQualityEnforcementViolationType /// TrustedWebActivityIssueDetails /// [System.Runtime.Serialization.DataContractAttribute] - public class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The url that triggers the violation. @@ -2341,7 +2351,7 @@ public string Signature /// LowTextContrastIssueDetails /// [System.Runtime.Serialization.DataContractAttribute] - public class LowTextContrastIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LowTextContrastIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ViolatingNodeId @@ -2419,7 +2429,7 @@ public string FontWeight /// CORS RFC1918 enforcement. /// [System.Runtime.Serialization.DataContractAttribute] - public class CorsIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CorsIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CorsErrorStatus @@ -2580,7 +2590,7 @@ public enum AttributionReportingIssueType /// Explainer: https://github.com/WICG/conversion-measurement-api /// [System.Runtime.Serialization.DataContractAttribute] - public class AttributionReportingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AttributionReportingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ViolationType @@ -2654,7 +2664,7 @@ public string InvalidParameter /// or Limited Quirks Mode that affects page layouting. /// [System.Runtime.Serialization.DataContractAttribute] - public class QuirksModeIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class QuirksModeIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// If false, it means the document's mode is "quirks" @@ -2712,7 +2722,7 @@ public string LoaderId /// NavigatorUserAgentIssueDetails /// [System.Runtime.Serialization.DataContractAttribute] - public class NavigatorUserAgentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NavigatorUserAgentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Url @@ -2735,53 +2745,6 @@ public CefSharp.DevTools.Audits.SourceCodeLocation Location } } - /// - /// WasmCrossOriginModuleSharingIssueDetails - /// - [System.Runtime.Serialization.DataContractAttribute] - public class WasmCrossOriginModuleSharingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// WasmModuleUrl - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("wasmModuleUrl"), IsRequired = (true))] - public string WasmModuleUrl - { - get; - set; - } - - /// - /// SourceOrigin - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOrigin"), IsRequired = (true))] - public string SourceOrigin - { - get; - set; - } - - /// - /// TargetOrigin - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetOrigin"), IsRequired = (true))] - public string TargetOrigin - { - get; - set; - } - - /// - /// IsWarning - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isWarning"), IsRequired = (true))] - public bool IsWarning - { - get; - set; - } - } - /// /// GenericIssueErrorType /// @@ -2798,7 +2761,7 @@ public enum GenericIssueErrorType /// Depending on the concrete errorType, different properties are set. /// [System.Runtime.Serialization.DataContractAttribute] - public class GenericIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GenericIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Issues with the same errorType are aggregated in the frontend. @@ -2845,7 +2808,7 @@ public string FrameId /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md /// [System.Runtime.Serialization.DataContractAttribute] - public class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AffectedFrame @@ -2868,7 +2831,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation } /// - /// The content of the deprecation issue (this won't be translated), + /// The content of an untranslated deprecation issue, /// e.g. "window.inefficientLegacyStorageMethod will be removed in M97, /// around January 2022. Please use Web Storage or Indexed Database /// instead. This standard was abandoned in January, 1970. See @@ -2882,7 +2845,7 @@ public string Message } /// - /// DeprecationType + /// The id of an untranslated deprecation issue e.g. PrefixedStorageInfo. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("deprecationType"), IsRequired = (true))] public string DeprecationType @@ -2909,12 +2872,160 @@ public enum ClientHintIssueReason MetaTagModifiedHTML } + /// + /// FederatedAuthRequestIssueDetails + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class FederatedAuthRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FederatedAuthRequestIssueReason + /// + public CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason FederatedAuthRequestIssueReason + { + get + { + return (CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason), federatedAuthRequestIssueReason)); + } + + set + { + this.federatedAuthRequestIssueReason = (EnumToString(value)); + } + } + + /// + /// FederatedAuthRequestIssueReason + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("federatedAuthRequestIssueReason"), IsRequired = (true))] + internal string federatedAuthRequestIssueReason + { + get; + set; + } + } + + /// + /// Represents the failure reason when a federated authentication reason fails. + /// Should be updated alongside RequestIdTokenStatus in + /// third_party/blink/public/mojom/devtools/inspector_issue.mojom to include + /// all cases except for success. + /// + public enum FederatedAuthRequestIssueReason + { + /// + /// ApprovalDeclined + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ApprovalDeclined"))] + ApprovalDeclined, + /// + /// TooManyRequests + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TooManyRequests"))] + TooManyRequests, + /// + /// ManifestHttpNotFound + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestHttpNotFound"))] + ManifestHttpNotFound, + /// + /// ManifestNoResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestNoResponse"))] + ManifestNoResponse, + /// + /// ManifestInvalidResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestInvalidResponse"))] + ManifestInvalidResponse, + /// + /// ClientMetadataHttpNotFound + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataHttpNotFound"))] + ClientMetadataHttpNotFound, + /// + /// ClientMetadataNoResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataNoResponse"))] + ClientMetadataNoResponse, + /// + /// ClientMetadataInvalidResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataInvalidResponse"))] + ClientMetadataInvalidResponse, + /// + /// ClientMetadataMissingPrivacyPolicyUrl + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataMissingPrivacyPolicyUrl"))] + ClientMetadataMissingPrivacyPolicyUrl, + /// + /// DisabledInSettings + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DisabledInSettings"))] + DisabledInSettings, + /// + /// ErrorFetchingSignin + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ErrorFetchingSignin"))] + ErrorFetchingSignin, + /// + /// InvalidSigninResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSigninResponse"))] + InvalidSigninResponse, + /// + /// AccountsHttpNotFound + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsHttpNotFound"))] + AccountsHttpNotFound, + /// + /// AccountsNoResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsNoResponse"))] + AccountsNoResponse, + /// + /// AccountsInvalidResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsInvalidResponse"))] + AccountsInvalidResponse, + /// + /// IdTokenHttpNotFound + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenHttpNotFound"))] + IdTokenHttpNotFound, + /// + /// IdTokenNoResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenNoResponse"))] + IdTokenNoResponse, + /// + /// IdTokenInvalidResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenInvalidResponse"))] + IdTokenInvalidResponse, + /// + /// IdTokenInvalidRequest + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenInvalidRequest"))] + IdTokenInvalidRequest, + /// + /// ErrorIdToken + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ErrorIdToken"))] + ErrorIdToken, + /// + /// Canceled + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Canceled"))] + Canceled + } + /// /// This issue tracks client hints related issues. It's used to deprecate old /// features, encourage the use of new ones, and provide general guidance. /// [System.Runtime.Serialization.DataContractAttribute] - public class ClientHintIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ClientHintIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// SourceCodeLocation @@ -2961,10 +3072,10 @@ internal string clientHintIssueReason public enum InspectorIssueCode { /// - /// SameSiteCookieIssue + /// CookieIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCookieIssue"))] - SameSiteCookieIssue, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CookieIssue"))] + CookieIssue, /// /// MixedContentIssue /// @@ -3021,11 +3132,6 @@ public enum InspectorIssueCode [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigatorUserAgentIssue"))] NavigatorUserAgentIssue, /// - /// WasmCrossOriginModuleSharingIssue - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WasmCrossOriginModuleSharingIssue"))] - WasmCrossOriginModuleSharingIssue, - /// /// GenericIssue /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GenericIssue"))] @@ -3039,7 +3145,12 @@ public enum InspectorIssueCode /// ClientHintIssue /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientHintIssue"))] - ClientHintIssue + ClientHintIssue, + /// + /// FederatedAuthRequestIssue + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FederatedAuthRequestIssue"))] + FederatedAuthRequestIssue } /// @@ -3048,13 +3159,13 @@ public enum InspectorIssueCode /// add a new optional field to this type. /// [System.Runtime.Serialization.DataContractAttribute] - public class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// SameSiteCookieIssueDetails + /// CookieIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sameSiteCookieIssueDetails"), IsRequired = (false))] - public CefSharp.DevTools.Audits.SameSiteCookieIssueDetails SameSiteCookieIssueDetails + [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookieIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.CookieIssueDetails CookieIssueDetails { get; set; @@ -3170,16 +3281,6 @@ public CefSharp.DevTools.Audits.NavigatorUserAgentIssueDetails NavigatorUserAgen set; } - /// - /// WasmCrossOriginModuleSharingIssue - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("wasmCrossOriginModuleSharingIssue"), IsRequired = (false))] - public CefSharp.DevTools.Audits.WasmCrossOriginModuleSharingIssueDetails WasmCrossOriginModuleSharingIssue - { - get; - set; - } - /// /// GenericIssueDetails /// @@ -3209,13 +3310,23 @@ public CefSharp.DevTools.Audits.ClientHintIssueDetails ClientHintIssueDetails get; set; } + + /// + /// FederatedAuthRequestIssueDetails + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("federatedAuthRequestIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.FederatedAuthRequestIssueDetails FederatedAuthRequestIssueDetails + { + get; + set; + } } /// /// An inspector issue reported from the back-end. /// [System.Runtime.Serialization.DataContractAttribute] - public class InspectorIssue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InspectorIssue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Code @@ -3328,7 +3439,7 @@ public enum ServiceName /// A key-value pair for additional event information to pass along. /// [System.Runtime.Serialization.DataContractAttribute] - public class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key @@ -3355,7 +3466,7 @@ public string Value /// BackgroundServiceEvent /// [System.Runtime.Serialization.DataContractAttribute] - public class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timestamp of the event (in seconds). @@ -3539,7 +3650,7 @@ public enum WindowState /// Browser window bounds information /// [System.Runtime.Serialization.DataContractAttribute] - public class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The offset from the left edge of the screen to the window in pixels. @@ -3757,7 +3868,7 @@ public enum PermissionSetting /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. /// [System.Runtime.Serialization.DataContractAttribute] - public class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of permission. @@ -3833,7 +3944,7 @@ public enum BrowserCommandId /// Chrome histogram bucket. /// [System.Runtime.Serialization.DataContractAttribute] - public class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Minimum value (inclusive). @@ -3870,7 +3981,7 @@ public int Count /// Chrome histogram. /// [System.Runtime.Serialization.DataContractAttribute] - public class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name. @@ -4081,7 +4192,7 @@ public enum StyleSheetOrigin /// CSS rule collection for a single pseudo style. /// [System.Runtime.Serialization.DataContractAttribute] - public class PseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Pseudo element type. @@ -4124,7 +4235,7 @@ public System.Collections.Generic.IList Matches /// Inherited CSS rule collection from ancestor node. /// [System.Runtime.Serialization.DataContractAttribute] - public class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The ancestor node's inline style, if any, in the style inheritance chain. @@ -4147,11 +4258,28 @@ public System.Collections.Generic.IList Matched } } + /// + /// Inherited pseudo element matches from pseudos of an ancestor node. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class InheritedPseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Matches of pseudo styles from the pseudos of an ancestor node. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElements"), IsRequired = (true))] + public System.Collections.Generic.IList PseudoElements + { + get; + set; + } + } + /// /// Match data for a CSS rule. /// [System.Runtime.Serialization.DataContractAttribute] - public class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CSS rule in the match. @@ -4178,7 +4306,7 @@ public int[] MatchingSelectors /// Data for a simple selector (these are delimited by commas in a selector list). /// [System.Runtime.Serialization.DataContractAttribute] - public class Value : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Value : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value text. @@ -4205,7 +4333,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// Selector list data. /// [System.Runtime.Serialization.DataContractAttribute] - public class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Selectors in the list. @@ -4232,7 +4360,7 @@ public string Text /// CSS stylesheet metainformation. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The stylesheet identifier. @@ -4432,7 +4560,7 @@ public double EndColumn /// CSS rule representation. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -4512,13 +4640,35 @@ public System.Collections.Generic.IList get; set; } + + /// + /// @supports CSS at-rule array. + /// The array enumerates @supports at-rules starting with the innermost one, going outwards. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("supports"), IsRequired = (false))] + public System.Collections.Generic.IList Supports + { + get; + set; + } + + /// + /// Cascade layer array. Contains the layer hierarchy that this rule belongs to starting + /// with the innermost layer and going outwards. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("layers"), IsRequired = (false))] + public System.Collections.Generic.IList Layers + { + get; + set; + } } /// /// CSS coverage information. /// [System.Runtime.Serialization.DataContractAttribute] - public class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -4566,7 +4716,7 @@ public bool Used /// Text range within a resource. All numbers are zero-based. /// [System.Runtime.Serialization.DataContractAttribute] - public class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Start line of range. @@ -4613,7 +4763,7 @@ public int EndColumn /// ShorthandEntry /// [System.Runtime.Serialization.DataContractAttribute] - public class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Shorthand name. @@ -4650,7 +4800,7 @@ public bool? Important /// CSSComputedStyleProperty /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed style property name. @@ -4677,7 +4827,7 @@ public string Value /// CSS style representation. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -4735,7 +4885,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// CSS property declaration data. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The property name. @@ -4852,7 +5002,7 @@ public enum CSSMediaSource /// CSS media rule descriptor. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query text. @@ -4942,7 +5092,7 @@ public System.Collections.Generic.IList MediaL /// Media query descriptor. /// [System.Runtime.Serialization.DataContractAttribute] - public class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Array of media query expressions. @@ -4969,7 +5119,7 @@ public bool Active /// Media query expression descriptor. /// [System.Runtime.Serialization.DataContractAttribute] - public class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query expression value. @@ -5026,7 +5176,7 @@ public double? ComputedLength /// CSS container query rule descriptor. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSContainerQuery : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSContainerQuery : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Container query text. @@ -5070,11 +5220,135 @@ public string Name } } + /// + /// CSS Supports at-rule descriptor. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSSupports : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Supports rule text. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + public string Text + { + get; + set; + } + + /// + /// Whether the supports condition is satisfied. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("active"), IsRequired = (true))] + public bool Active + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + public string StyleSheetId + { + get; + set; + } + } + + /// + /// CSS Layer at-rule descriptor. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSLayer : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Layer name. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + public string Text + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + public string StyleSheetId + { + get; + set; + } + } + + /// + /// CSS Layer data. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSLayerData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Layer name. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// Direct sub-layers + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("subLayers"), IsRequired = (false))] + public System.Collections.Generic.IList SubLayers + { + get; + set; + } + + /// + /// Layer order. The order determines the order of the layer in the cascade order. + /// A higher number has higher priority in the cascade order. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("order"), IsRequired = (true))] + public double Order + { + get; + set; + } + } + /// /// Information about amount of glyphs that were rendered with given font. /// [System.Runtime.Serialization.DataContractAttribute] - public class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Font's family name reported by platform. @@ -5111,7 +5385,7 @@ public double GlyphCount /// Information about font variation axes for variable fonts /// [System.Runtime.Serialization.DataContractAttribute] - public class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The font-variation-setting tag (a.k.a. "axis tag"). @@ -5169,7 +5443,7 @@ public double DefaultValue /// and additional information such as platformFontFamily and fontVariationAxes. /// [System.Runtime.Serialization.DataContractAttribute] - public class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The font-family. @@ -5266,7 +5540,7 @@ public System.Collections.Generic.IList /// CSS keyframes rule representation. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Animation name. @@ -5293,7 +5567,7 @@ public System.Collections.Generic.IList K /// CSS keyframe rule representation. /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -5357,7 +5631,7 @@ public CefSharp.DevTools.CSS.CSSStyle Style /// A descriptor of operation to mutate style declaration text. /// [System.Runtime.Serialization.DataContractAttribute] - public class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier. @@ -5503,7 +5777,7 @@ public enum CachedResponseType /// Data entry. /// [System.Runtime.Serialization.DataContractAttribute] - public class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request URL. @@ -5606,7 +5880,7 @@ public System.Collections.Generic.IList R /// Cache identifier. /// [System.Runtime.Serialization.DataContractAttribute] - public class Cache : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Cache : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// An opaque unique id of the cache. @@ -5643,7 +5917,7 @@ public string CacheName /// Header /// [System.Runtime.Serialization.DataContractAttribute] - public class Header : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Header : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -5670,7 +5944,7 @@ public string Value /// Cached response /// [System.Runtime.Serialization.DataContractAttribute] - public class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Entry content, base64-encoded. @@ -5690,7 +5964,7 @@ namespace CefSharp.DevTools.Cast /// Sink /// [System.Runtime.Serialization.DataContractAttribute] - public class Sink : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Sink : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -5767,7 +6041,7 @@ namespace CefSharp.DevTools.DOM /// Backend node with a friendly name. /// [System.Runtime.Serialization.DataContractAttribute] - public class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Node`'s nodeType. @@ -5906,25 +6180,30 @@ public enum PseudoType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("input-list-button"))] InputListButton, /// - /// transition + /// page-transition + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition"))] + PageTransition, + /// + /// page-transition-container /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("transition"))] - Transition, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-container"))] + PageTransitionContainer, /// - /// transition-container + /// page-transition-image-wrapper /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("transition-container"))] - TransitionContainer, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-image-wrapper"))] + PageTransitionImageWrapper, /// - /// transition-old-content + /// page-transition-outgoing-image /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("transition-old-content"))] - TransitionOldContent, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-outgoing-image"))] + PageTransitionOutgoingImage, /// - /// transition-new-content + /// page-transition-incoming-image /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("transition-new-content"))] - TransitionNewContent + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-incoming-image"))] + PageTransitionIncomingImage } /// @@ -5976,7 +6255,7 @@ public enum CompatibilityMode /// DOMNode is a base node mirror type. /// [System.Runtime.Serialization.DataContractAttribute] - public class Node : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Node : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend @@ -6325,7 +6604,7 @@ internal string compatibilityMode /// A structure holding an RGBA color. /// [System.Runtime.Serialization.DataContractAttribute] - public class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The red component, in the [0-255] range. @@ -6372,7 +6651,7 @@ public double? A /// Box model. /// [System.Runtime.Serialization.DataContractAttribute] - public class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Content box @@ -6449,7 +6728,7 @@ public CefSharp.DevTools.DOM.ShapeOutsideInfo ShapeOutside /// CSS Shape Outside details. /// [System.Runtime.Serialization.DataContractAttribute] - public class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Shape bounds @@ -6486,7 +6765,7 @@ public object[] MarginShape /// Rectangle. /// [System.Runtime.Serialization.DataContractAttribute] - public class Rect : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Rect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X coordinate @@ -6533,7 +6812,7 @@ public double Height /// CSSComputedStyleProperty /// [System.Runtime.Serialization.DataContractAttribute] - public class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed style property name. @@ -6964,7 +7243,7 @@ public enum CSPViolationType /// Object event listener. /// [System.Runtime.Serialization.DataContractAttribute] - public class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `EventListener`'s type. @@ -7074,7 +7353,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// A Node in the DOM tree. /// [System.Runtime.Serialization.DataContractAttribute] - public class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Node`'s nodeType. @@ -7400,7 +7679,7 @@ public double? ScrollOffsetY /// stable and may change between versions. /// [System.Runtime.Serialization.DataContractAttribute] - public class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. @@ -7439,7 +7718,7 @@ public int NumCharacters /// Details of an element in the DOM tree with a LayoutObject. /// [System.Runtime.Serialization.DataContractAttribute] - public class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The index of the related DOM node in the `domNodes` array returned by `getSnapshot`. @@ -7518,7 +7797,7 @@ public bool? IsStackingContext /// A subset of the full ComputedStyle as defined by the request whitelist. /// [System.Runtime.Serialization.DataContractAttribute] - public class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name/value pairs of computed style properties. @@ -7535,7 +7814,7 @@ public System.Collections.Generic.IList /// A name/value pair. /// [System.Runtime.Serialization.DataContractAttribute] - public class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Attribute/property name. @@ -7562,7 +7841,7 @@ public string Value /// Data that is only present on rare nodes. /// [System.Runtime.Serialization.DataContractAttribute] - public class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index @@ -7589,7 +7868,7 @@ public int[] Value /// RareBooleanData /// [System.Runtime.Serialization.DataContractAttribute] - public class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index @@ -7606,7 +7885,7 @@ public int[] Index /// RareIntegerData /// [System.Runtime.Serialization.DataContractAttribute] - public class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index @@ -7633,7 +7912,7 @@ public int[] Value /// Document snapshot. /// [System.Runtime.Serialization.DataContractAttribute] - public class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Document URL that `Document` or `FrameOwner` node points to. @@ -7790,7 +8069,7 @@ public double? ContentHeight /// Table containing nodes. /// [System.Runtime.Serialization.DataContractAttribute] - public class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Parent node index. @@ -7959,7 +8238,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData OriginURL /// Table of details of an element in the DOM tree with a LayoutObject. /// [System.Runtime.Serialization.DataContractAttribute] - public class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. @@ -8079,7 +8358,7 @@ public double[] TextColorOpacities /// stable and may change between versions. /// [System.Runtime.Serialization.DataContractAttribute] - public class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index of the layout tree node that owns this box collection. @@ -8131,7 +8410,7 @@ namespace CefSharp.DevTools.DOMStorage /// DOM Storage identifier. /// [System.Runtime.Serialization.DataContractAttribute] - public class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Security origin for the storage. @@ -8289,7 +8568,7 @@ namespace CefSharp.DevTools.Database /// Database object. /// [System.Runtime.Serialization.DataContractAttribute] - public class Database : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Database : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Database ID. @@ -8336,7 +8615,7 @@ public string Version /// Database error. /// [System.Runtime.Serialization.DataContractAttribute] - public class Error : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Error : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. @@ -8410,7 +8689,7 @@ public enum ScreenOrientationType /// Screen orientation. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScreenOrientation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScreenOrientation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Orientation type. @@ -8470,7 +8749,7 @@ public enum DisplayFeatureOrientation /// DisplayFeature /// [System.Runtime.Serialization.DataContractAttribute] - public class DisplayFeature : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DisplayFeature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Orientation of a display feature in relation to screen @@ -8526,7 +8805,7 @@ public int MaskLength /// MediaFeature /// [System.Runtime.Serialization.DataContractAttribute] - public class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -8578,7 +8857,7 @@ public enum VirtualTimePolicy /// Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints /// [System.Runtime.Serialization.DataContractAttribute] - public class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Brand @@ -8606,7 +8885,7 @@ public string Version /// Missing optional values will be filled in by the target with what it would normally use. /// [System.Runtime.Serialization.DataContractAttribute] - public class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Brands @@ -8735,7 +9014,7 @@ public enum ScreenshotParamsFormat /// Encoding options for a screenshot. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScreenshotParams : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScreenshotParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Image compression format (defaults to png). @@ -8800,7 +9079,7 @@ namespace CefSharp.DevTools.IndexedDB /// Database with an array of object stores. /// [System.Runtime.Serialization.DataContractAttribute] - public class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Database name. @@ -8838,7 +9117,7 @@ public System.Collections.Generic.IList /// Object store. /// [System.Runtime.Serialization.DataContractAttribute] - public class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object store name. @@ -8885,7 +9164,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index name. @@ -8959,7 +9238,7 @@ public enum KeyType /// Key. /// [System.Runtime.Serialization.DataContractAttribute] - public class Key : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Key : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key type. @@ -9032,7 +9311,7 @@ public System.Collections.Generic.IList Array /// Key range. /// [System.Runtime.Serialization.DataContractAttribute] - public class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Lower bound. @@ -9079,7 +9358,7 @@ public bool UpperOpen /// Data entry. /// [System.Runtime.Serialization.DataContractAttribute] - public class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key object. @@ -9138,7 +9417,7 @@ public enum KeyPathType /// Key path. /// [System.Runtime.Serialization.DataContractAttribute] - public class KeyPath : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyPath : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key path type. @@ -9194,7 +9473,7 @@ namespace CefSharp.DevTools.Input /// TouchPoint /// [System.Runtime.Serialization.DataContractAttribute] - public class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X coordinate of the event relative to the main frame's viewport in CSS pixels. @@ -9371,7 +9650,7 @@ public enum MouseButton /// DragDataItem /// [System.Runtime.Serialization.DataContractAttribute] - public class DragDataItem : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DragDataItem : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Mime type of the dragged data. @@ -9420,7 +9699,7 @@ public string BaseURL /// DragData /// [System.Runtime.Serialization.DataContractAttribute] - public class DragData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DragData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Items @@ -9520,7 +9799,7 @@ public enum ScrollRectType /// Rectangle where scrolling happens on the main thread. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Rectangle itself. @@ -9563,7 +9842,7 @@ internal string type /// Sticky position constraints. /// [System.Runtime.Serialization.DataContractAttribute] - public class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Layout rectangle of the sticky element before being shifted @@ -9610,7 +9889,7 @@ public string NearestLayerShiftingContainingBlock /// Serialized fragment of layer picture along with its offset within the layer. /// [System.Runtime.Serialization.DataContractAttribute] - public class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Offset from owning layer left boundary @@ -9647,7 +9926,7 @@ public byte[] Picture /// Information about a compositing layer. /// [System.Runtime.Serialization.DataContractAttribute] - public class Layer : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Layer : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The unique id for this layer. @@ -9973,7 +10252,7 @@ public enum LogEntryCategory /// Log entry. /// [System.Runtime.Serialization.DataContractAttribute] - public class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Log entry source. @@ -10180,7 +10459,7 @@ public enum ViolationSettingName /// Violation configuration setting. /// [System.Runtime.Serialization.DataContractAttribute] - public class ViolationSetting : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ViolationSetting : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Violation type. @@ -10260,7 +10539,7 @@ public enum PressureLevel /// Heap profile sample. /// [System.Runtime.Serialization.DataContractAttribute] - public class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Size of the sampled allocation. @@ -10297,7 +10576,7 @@ public string[] Stack /// Array of heap profile samples. /// [System.Runtime.Serialization.DataContractAttribute] - public class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Samples @@ -10324,7 +10603,7 @@ public System.Collections.Generic.IList Modules /// Executable module information /// [System.Runtime.Serialization.DataContractAttribute] - public class Module : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Module : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of the module. @@ -10666,7 +10945,7 @@ public enum CookieSourceScheme /// Timing information for the request. /// [System.Runtime.Serialization.DataContractAttribute] - public class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in @@ -10886,7 +11165,7 @@ public enum ResourcePriority /// Post data entry for HTTP request /// [System.Runtime.Serialization.DataContractAttribute] - public class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Bytes @@ -10950,7 +11229,7 @@ public enum RequestReferrerPolicy /// HTTP request data. /// [System.Runtime.Serialization.DataContractAttribute] - public class Request : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Request : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request URL (without fragment). @@ -11137,7 +11416,7 @@ public bool? IsSameSite /// Details of a signed certificate timestamp (SCT). /// [System.Runtime.Serialization.DataContractAttribute] - public class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Validation status. @@ -11225,7 +11504,7 @@ public string SignatureData /// Security details about a request. /// [System.Runtime.Serialization.DataContractAttribute] - public class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). @@ -11624,7 +11903,7 @@ public enum CorsError /// CorsErrorStatus /// [System.Runtime.Serialization.DataContractAttribute] - public class CorsErrorStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CorsErrorStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CorsError @@ -11714,7 +11993,7 @@ public enum TrustTokenParamsRefreshPolicy /// are specified in third_party/blink/renderer/core/fetch/trust_token.idl. /// [System.Runtime.Serialization.DataContractAttribute] - public class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type @@ -11808,7 +12087,7 @@ public enum TrustTokenOperationType /// HTTP response data. /// [System.Runtime.Serialization.DataContractAttribute] - public class Response : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Response : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Response URL. This URL can be different from CachedResource.url in case of redirect. @@ -12077,7 +12356,7 @@ public CefSharp.DevTools.Network.SecurityDetails SecurityDetails /// WebSocket request data. /// [System.Runtime.Serialization.DataContractAttribute] - public class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// HTTP request headers. @@ -12094,7 +12373,7 @@ public CefSharp.DevTools.Network.Headers Headers /// WebSocket response data. /// [System.Runtime.Serialization.DataContractAttribute] - public class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// HTTP response status code. @@ -12161,7 +12440,7 @@ public string RequestHeadersText /// WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. /// [System.Runtime.Serialization.DataContractAttribute] - public class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// WebSocket message opcode. @@ -12200,7 +12479,7 @@ public string PayloadData /// Information about the cached resource. /// [System.Runtime.Serialization.DataContractAttribute] - public class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Resource URL. This is the url of the original network request. @@ -12300,7 +12579,7 @@ public enum InitiatorType /// Information about the request initiator. /// [System.Runtime.Serialization.DataContractAttribute] - public class Initiator : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Initiator : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of this initiator. @@ -12385,7 +12664,7 @@ public string RequestId /// Cookie object /// [System.Runtime.Serialization.DataContractAttribute] - public class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Cookie name. @@ -12777,7 +13056,7 @@ public enum CookieBlockedReason /// A cookie which was not stored from a response with the corresponding reason. /// [System.Runtime.Serialization.DataContractAttribute] - public class BlockedSetCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BlockedSetCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The reason(s) this cookie was blocked. @@ -12833,7 +13112,7 @@ public CefSharp.DevTools.Network.Cookie Cookie /// A cookie with was not sent with a request with the corresponding reason. /// [System.Runtime.Serialization.DataContractAttribute] - public class BlockedCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BlockedCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The reason(s) the cookie was blocked. @@ -12876,7 +13155,7 @@ public CefSharp.DevTools.Network.Cookie Cookie /// Cookie parameter object /// [System.Runtime.Serialization.DataContractAttribute] - public class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Cookie name. @@ -13093,7 +13372,7 @@ public enum AuthChallengeSource /// Authorization challenge for HTTP status code 401 or 407. /// [System.Runtime.Serialization.DataContractAttribute] - public class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source of the authentication challenge. @@ -13180,7 +13459,7 @@ public enum AuthChallengeResponseResponse /// Response to an AuthChallenge. /// [System.Runtime.Serialization.DataContractAttribute] - public class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The decision on what to do in response to the authorization challenge. Default means @@ -13257,7 +13536,7 @@ public enum InterceptionStage /// Request pattern for interception. /// [System.Runtime.Serialization.DataContractAttribute] - public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is @@ -13328,7 +13607,7 @@ internal string interceptionStage /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 /// [System.Runtime.Serialization.DataContractAttribute] - public class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Signed exchange signature label. @@ -13426,7 +13705,7 @@ public string[] Certificates /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation /// [System.Runtime.Serialization.DataContractAttribute] - public class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Signed exchange request URL. @@ -13520,7 +13799,7 @@ public enum SignedExchangeErrorField /// Information about a signed exchange response. /// [System.Runtime.Serialization.DataContractAttribute] - public class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. @@ -13573,7 +13852,7 @@ internal string errorField /// Information about a signed exchange response. /// [System.Runtime.Serialization.DataContractAttribute] - public class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The outer response of signed HTTP exchange which was received from network. @@ -13701,7 +13980,7 @@ public enum IPAddressSpace /// ConnectTiming /// [System.Runtime.Serialization.DataContractAttribute] - public class ConnectTiming : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ConnectTiming : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in @@ -13720,7 +13999,7 @@ public double RequestTime /// ClientSecurityState /// [System.Runtime.Serialization.DataContractAttribute] - public class ClientSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ClientSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// InitiatorIsSecureContext @@ -13809,14 +14088,19 @@ public enum CrossOriginOpenerPolicyValue /// SameOriginPlusCoep /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameOriginPlusCoep"))] - SameOriginPlusCoep + SameOriginPlusCoep, + /// + /// SameOriginAllowPopupsPlusCoep + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameOriginAllowPopupsPlusCoep"))] + SameOriginAllowPopupsPlusCoep } /// /// CrossOriginOpenerPolicyStatus /// [System.Runtime.Serialization.DataContractAttribute] - public class CrossOriginOpenerPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CrossOriginOpenerPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value @@ -13917,7 +14201,7 @@ public enum CrossOriginEmbedderPolicyValue /// CrossOriginEmbedderPolicyStatus /// [System.Runtime.Serialization.DataContractAttribute] - public class CrossOriginEmbedderPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CrossOriginEmbedderPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value @@ -13996,7 +14280,7 @@ public string ReportOnlyReportingEndpoint /// SecurityIsolationStatus /// [System.Runtime.Serialization.DataContractAttribute] - public class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Coop @@ -14050,7 +14334,7 @@ public enum ReportStatus /// An object representing a report generated by the Reporting API. /// [System.Runtime.Serialization.DataContractAttribute] - public class ReportingApiReport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ReportingApiReport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id @@ -14163,7 +14447,7 @@ internal string status /// ReportingApiEndpoint /// [System.Runtime.Serialization.DataContractAttribute] - public class ReportingApiEndpoint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ReportingApiEndpoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The URL of the endpoint to which reports may be delivered. @@ -14190,7 +14474,7 @@ public string GroupName /// An object providing the result of a network resource load. /// [System.Runtime.Serialization.DataContractAttribute] - public class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Success @@ -14258,7 +14542,7 @@ public CefSharp.DevTools.Network.Headers Headers /// CORB and streaming. /// [System.Runtime.Serialization.DataContractAttribute] - public class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// DisableCache @@ -15942,7 +16226,7 @@ namespace CefSharp.DevTools.Overlay /// Configuration data for drawing the source order of an elements children. /// [System.Runtime.Serialization.DataContractAttribute] - public class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// the color to outline the givent element in. @@ -15969,7 +16253,7 @@ public CefSharp.DevTools.DOM.RGBA ChildOutlineColor /// Configuration data for the highlighting of Grid elements. /// [System.Runtime.Serialization.DataContractAttribute] - public class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Whether the extension lines from grid cells to the rulers should be shown (default: false). @@ -16176,7 +16460,7 @@ public CefSharp.DevTools.DOM.RGBA GridBackgroundColor /// Configuration data for the highlighting of Flex container elements. /// [System.Runtime.Serialization.DataContractAttribute] - public class FlexContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FlexContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the container border @@ -16263,7 +16547,7 @@ public CefSharp.DevTools.Overlay.LineStyle CrossAlignment /// Configuration data for the highlighting of Flex item elements. /// [System.Runtime.Serialization.DataContractAttribute] - public class FlexItemHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FlexItemHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Style of the box representing the item's base size @@ -16317,7 +16601,7 @@ public enum LineStylePattern /// Style information for drawing a line. /// [System.Runtime.Serialization.DataContractAttribute] - public class LineStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LineStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The color of the line (default: transparent) @@ -16360,7 +16644,7 @@ internal string pattern /// Style information for drawing a box. /// [System.Runtime.Serialization.DataContractAttribute] - public class BoxStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BoxStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The background color for the box (default: transparent) @@ -16409,7 +16693,7 @@ public enum ContrastAlgorithm /// Configuration data for the highlighting of page elements. /// [System.Runtime.Serialization.DataContractAttribute] - public class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Whether the node info tooltip should be shown (default: false). @@ -16650,6 +16934,11 @@ public enum ColorFormat [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hsl"))] Hsl, /// + /// hwb + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hwb"))] + Hwb, + /// /// hex /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hex"))] @@ -16660,7 +16949,7 @@ public enum ColorFormat /// Configurations for Persistent Grid Highlight /// [System.Runtime.Serialization.DataContractAttribute] - public class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance. @@ -16687,7 +16976,7 @@ public int NodeId /// FlexNodeHighlightConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class FlexNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FlexNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of flex containers. @@ -16714,7 +17003,7 @@ public int NodeId /// ScrollSnapContainerHighlightConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class ScrollSnapContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScrollSnapContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the snapport border (default: transparent) @@ -16761,7 +17050,7 @@ public CefSharp.DevTools.DOM.RGBA ScrollPaddingColor /// ScrollSnapHighlightConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class ScrollSnapHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScrollSnapHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of scroll snap containers. @@ -16788,7 +17077,7 @@ public int NodeId /// Configuration for dual screen hinge /// [System.Runtime.Serialization.DataContractAttribute] - public class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A rectangle represent hinge @@ -16825,7 +17114,7 @@ public CefSharp.DevTools.DOM.RGBA OutlineColor /// ContainerQueryHighlightConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class ContainerQueryHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContainerQueryHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of container query containers. @@ -16852,7 +17141,7 @@ public int NodeId /// ContainerQueryContainerHighlightConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class ContainerQueryContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContainerQueryContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the container border. @@ -16879,7 +17168,7 @@ public CefSharp.DevTools.Overlay.LineStyle DescendantBorder /// IsolatedElementHighlightConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class IsolatedElementHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class IsolatedElementHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of an element in isolation mode. @@ -16906,7 +17195,7 @@ public int NodeId /// IsolationModeHighlightConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class IsolationModeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class IsolationModeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The fill color of the resizers (default: transparent). @@ -17074,7 +17363,7 @@ public enum AdFrameExplanation /// Indicates whether a frame has been identified as an ad and why. /// [System.Runtime.Serialization.DataContractAttribute] - public class AdFrameStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AdFrameStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AdFrameType @@ -17232,6 +17521,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoplay"))] Autoplay, /// + /// browsing-topics + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("browsing-topics"))] + BrowsingTopics, + /// /// camera /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("camera"))] @@ -17297,6 +17591,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-mobile"))] ChUaMobile, /// + /// ch-ua-full + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-full"))] + ChUaFull, + /// /// ch-ua-full-version /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-full-version"))] @@ -17317,6 +17616,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-reduced"))] ChUaReduced, /// + /// ch-ua-wow64 + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-wow64"))] + ChUaWow64, + /// /// ch-viewport-height /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-viewport-height"))] @@ -17332,6 +17636,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-width"))] ChWidth, /// + /// ch-partitioned-cookies + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-partitioned-cookies"))] + ChPartitionedCookies, + /// /// clipboard-read /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clipboard-read"))] @@ -17554,7 +17863,7 @@ public enum PermissionsPolicyBlockReason /// PermissionsPolicyBlockLocator /// [System.Runtime.Serialization.DataContractAttribute] - public class PermissionsPolicyBlockLocator : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PermissionsPolicyBlockLocator : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FrameId @@ -17597,7 +17906,7 @@ internal string blockReason /// PermissionsPolicyFeatureState /// [System.Runtime.Serialization.DataContractAttribute] - public class PermissionsPolicyFeatureState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PermissionsPolicyFeatureState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Feature @@ -17762,7 +18071,7 @@ public enum OriginTrialUsageRestriction /// OriginTrialToken /// [System.Runtime.Serialization.DataContractAttribute] - public class OriginTrialToken : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class OriginTrialToken : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Origin @@ -17845,7 +18154,7 @@ internal string usageRestriction /// OriginTrialTokenWithStatus /// [System.Runtime.Serialization.DataContractAttribute] - public class OriginTrialTokenWithStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class OriginTrialTokenWithStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RawTokenText @@ -17899,7 +18208,7 @@ internal string status /// OriginTrial /// [System.Runtime.Serialization.DataContractAttribute] - public class OriginTrial : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class OriginTrial : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TrialName @@ -17952,7 +18261,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class Frame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Frame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame unique identifier. @@ -18150,7 +18459,7 @@ internal string gatedAPIFeatures /// Information about the Resource on the page. /// [System.Runtime.Serialization.DataContractAttribute] - public class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Resource URL. @@ -18243,7 +18552,7 @@ public bool? Canceled /// Information about the Frame hierarchy along with their cached resources. /// [System.Runtime.Serialization.DataContractAttribute] - public class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame information for this tree item. @@ -18280,7 +18589,7 @@ public System.Collections.Generic.IList Re /// Information about the Frame hierarchy. /// [System.Runtime.Serialization.DataContractAttribute] - public class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame information for this tree item. @@ -18379,7 +18688,7 @@ public enum TransitionType /// Navigation history entry. /// [System.Runtime.Serialization.DataContractAttribute] - public class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the navigation history entry. @@ -18452,7 +18761,7 @@ internal string transitionType /// Screencast frame metadata. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Top offset in DIP. @@ -18556,7 +18865,7 @@ public enum DialogType /// Error while paring app manifest. /// [System.Runtime.Serialization.DataContractAttribute] - public class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. @@ -18603,7 +18912,7 @@ public int Column /// Parsed app manifest properties. /// [System.Runtime.Serialization.DataContractAttribute] - public class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed scope value @@ -18620,7 +18929,7 @@ public string Scope /// Layout viewport position and dimensions. /// [System.Runtime.Serialization.DataContractAttribute] - public class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Horizontal offset relative to the document (CSS pixels). @@ -18667,7 +18976,7 @@ public int ClientHeight /// Visual viewport position, dimensions, and scale. /// [System.Runtime.Serialization.DataContractAttribute] - public class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Horizontal offset relative to the layout viewport (CSS pixels). @@ -18754,7 +19063,7 @@ public double? Zoom /// Viewport for capturing screenshot. /// [System.Runtime.Serialization.DataContractAttribute] - public class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X offset in device independent pixels (dip). @@ -18811,7 +19120,7 @@ public double Scale /// Generic font families collection. /// [System.Runtime.Serialization.DataContractAttribute] - public class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The standard font-family. @@ -18888,7 +19197,7 @@ public string Pictograph /// Font families collection for a script. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScriptFontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptFontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of the script which these font families are defined for. @@ -18915,7 +19224,7 @@ public CefSharp.DevTools.Page.FontFamilies FontFamilies /// Default font sizes. /// [System.Runtime.Serialization.DataContractAttribute] - public class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Default standard font size. @@ -19016,7 +19325,7 @@ public enum ClientNavigationDisposition /// InstallabilityErrorArgument /// [System.Runtime.Serialization.DataContractAttribute] - public class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). @@ -19043,7 +19352,7 @@ public string Value /// The installability error /// [System.Runtime.Serialization.DataContractAttribute] - public class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The error id (e.g. 'manifest-missing-suitable-icon'). @@ -19117,7 +19426,7 @@ public enum ReferrerPolicy /// Per-script compilation cache parameters for `Page.produceCompilationCache` /// [System.Runtime.Serialization.DataContractAttribute] - public class CompilationCacheParams : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CompilationCacheParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The URL of the script to produce a compilation cache entry for. @@ -19164,10 +19473,10 @@ public enum NavigationType public enum BackForwardCacheNotRestoredReason { /// - /// NotMainFrame + /// NotPrimaryMainFrame /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotMainFrame"))] - NotMainFrame, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotPrimaryMainFrame"))] + NotPrimaryMainFrame, /// /// BackForwardCacheDisabled /// @@ -19429,6 +19738,11 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationNavigationsDisallowedForBug1234857"))] ActivationNavigationsDisallowedForBug1234857, /// + /// ErrorDocument + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ErrorDocument"))] + ErrorDocument, + /// /// WebSocket /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebSocket"))] @@ -19806,7 +20120,7 @@ public enum BackForwardCacheNotRestoredReasonType /// BackForwardCacheNotRestoredExplanation /// [System.Runtime.Serialization.DataContractAttribute] - public class BackForwardCacheNotRestoredExplanation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackForwardCacheNotRestoredExplanation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of the reason @@ -19859,13 +20173,25 @@ internal string reason get; set; } + + /// + /// Context associated with the reason. The meaning of this context is + /// dependent on the reason: + /// - EmbedderExtensionSentMessageToCachedFrame: the extension ID. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (false))] + public string Context + { + get; + set; + } } /// /// BackForwardCacheNotRestoredExplanationTree /// [System.Runtime.Serialization.DataContractAttribute] - public class BackForwardCacheNotRestoredExplanationTree : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackForwardCacheNotRestoredExplanationTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// URL of each frame @@ -20853,7 +21179,7 @@ namespace CefSharp.DevTools.Performance /// Run-time execution metric. /// [System.Runtime.Serialization.DataContractAttribute] - public class Metric : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Metric : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Metric name. @@ -20910,7 +21236,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl /// [System.Runtime.Serialization.DataContractAttribute] - public class LargestContentfulPaint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LargestContentfulPaint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RenderTime @@ -20977,7 +21303,7 @@ public int? NodeId /// LayoutShiftAttribution /// [System.Runtime.Serialization.DataContractAttribute] - public class LayoutShiftAttribution : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutShiftAttribution : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PreviousRect @@ -21014,7 +21340,7 @@ public int? NodeId /// See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl /// [System.Runtime.Serialization.DataContractAttribute] - public class LayoutShift : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutShift : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Score increment produced by this event. @@ -21061,7 +21387,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class TimelineEvent : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TimelineEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Identifies the frame that this event is related to. Empty for non-frame targets. @@ -21219,7 +21545,7 @@ public enum SecurityState /// Details about the security state of the page certificate. /// [System.Runtime.Serialization.DataContractAttribute] - public class CertificateSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CertificateSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). @@ -21423,7 +21749,7 @@ public enum SafetyTipStatus /// SafetyTipInfo /// [System.Runtime.Serialization.DataContractAttribute] - public class SafetyTipInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SafetyTipInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Describes whether the page triggers any safety tips or reputation warnings. Default is unknown. @@ -21466,7 +21792,7 @@ public string SafeUrl /// Security state information about the page. /// [System.Runtime.Serialization.DataContractAttribute] - public class VisibleSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VisibleSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The security level of the page. @@ -21529,7 +21855,7 @@ public string[] SecurityStateIssueIds /// An explanation of an factor contributing to the security state. /// [System.Runtime.Serialization.DataContractAttribute] - public class SecurityStateExplanation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SecurityStateExplanation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Security state representing the severity of the factor being explained. @@ -21638,7 +21964,7 @@ public string[] Recommendations /// Information about insecure content on the page. /// [System.Runtime.Serialization.DataContractAttribute] - public class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Always false. @@ -21899,7 +22225,7 @@ namespace CefSharp.DevTools.ServiceWorker /// ServiceWorker registration. /// [System.Runtime.Serialization.DataContractAttribute] - public class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RegistrationId @@ -22000,7 +22326,7 @@ public enum ServiceWorkerVersionStatus /// ServiceWorker version. /// [System.Runtime.Serialization.DataContractAttribute] - public class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// VersionId @@ -22130,7 +22456,7 @@ public string TargetId /// ServiceWorker error message. /// [System.Runtime.Serialization.DataContractAttribute] - public class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ErrorMessage @@ -22318,7 +22644,7 @@ public enum StorageType /// Usage for a storage type. /// [System.Runtime.Serialization.DataContractAttribute] - public class UsageForType : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class UsageForType : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of storage type. @@ -22362,7 +22688,7 @@ public double Usage /// Tokens from that issuer. /// [System.Runtime.Serialization.DataContractAttribute] - public class TrustTokens : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TrustTokens : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// IssuerOrigin @@ -22421,7 +22747,7 @@ public enum InterestGroupAccessType /// Ad advertising element inside an interest group. /// [System.Runtime.Serialization.DataContractAttribute] - public class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RenderUrl @@ -22448,7 +22774,7 @@ public string Metadata /// The full details of an interest group. /// [System.Runtime.Serialization.DataContractAttribute] - public class InterestGroupDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InterestGroupDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// OwnerOrigin @@ -22675,6 +23001,16 @@ public string Origin [System.Runtime.Serialization.DataContractAttribute] public class InterestGroupAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { + /// + /// AccessTime + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("accessTime"), IsRequired = (true))] + public double AccessTime + { + get; + private set; + } + /// /// Type /// @@ -22729,7 +23065,7 @@ namespace CefSharp.DevTools.SystemInfo /// Describes a single graphics processor (GPU). /// [System.Runtime.Serialization.DataContractAttribute] - public class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PCI ID of the GPU vendor, if available; 0 otherwise. @@ -22816,7 +23152,7 @@ public string DriverVersion /// Describes the width and height dimensions of an entity. /// [System.Runtime.Serialization.DataContractAttribute] - public class Size : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Size : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Width in pixels. @@ -22844,7 +23180,7 @@ public int Height /// maximum resolutions. /// [System.Runtime.Serialization.DataContractAttribute] - public class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Video codec profile that is supported, e.g. VP9 Profile 2. @@ -22882,7 +23218,7 @@ public CefSharp.DevTools.SystemInfo.Size MinResolution /// resolution and maximum framerate. /// [System.Runtime.Serialization.DataContractAttribute] - public class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Video codec profile that is supported, e.g H264 Main. @@ -22976,7 +23312,7 @@ public enum ImageType /// maximum resolutions and subsampling. /// [System.Runtime.Serialization.DataContractAttribute] - public class ImageDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ImageDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Image coded, e.g. Jpeg. @@ -23055,7 +23391,7 @@ internal string subsamplings /// Provides information about the GPU(s) on the system. /// [System.Runtime.Serialization.DataContractAttribute] - public class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The graphics devices on the system. Element 0 is the primary GPU. @@ -23132,7 +23468,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Specifies process type. @@ -23173,7 +23509,7 @@ namespace CefSharp.DevTools.Target /// TargetInfo /// [System.Runtime.Serialization.DataContractAttribute] - public class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TargetId @@ -23270,7 +23606,7 @@ public string BrowserContextId /// RemoteLocation /// [System.Runtime.Serialization.DataContractAttribute] - public class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Host @@ -23549,7 +23885,7 @@ public enum TraceConfigRecordMode /// TraceConfig /// [System.Runtime.Serialization.DataContractAttribute] - public class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Controls how the trace buffer stores data. @@ -23897,7 +24233,7 @@ public enum RequestStage /// RequestPattern /// [System.Runtime.Serialization.DataContractAttribute] - public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is @@ -23967,7 +24303,7 @@ internal string requestStage /// Response HTTP header entry /// [System.Runtime.Serialization.DataContractAttribute] - public class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -24011,7 +24347,7 @@ public enum AuthChallengeSource /// Authorization challenge for HTTP status code 401 or 407. /// [System.Runtime.Serialization.DataContractAttribute] - public class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source of the authentication challenge. @@ -24098,7 +24434,7 @@ public enum AuthChallengeResponseResponse /// Response to an AuthChallenge. /// [System.Runtime.Serialization.DataContractAttribute] - public class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The decision on what to do in response to the authorization challenge. Default means @@ -24466,7 +24802,7 @@ public enum AutomationRate /// Fields in AudioContext that change in real-time. /// [System.Runtime.Serialization.DataContractAttribute] - public class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The current context time in second in BaseAudioContext. @@ -24515,7 +24851,7 @@ public double CallbackIntervalVariance /// Protocol object for BaseAudioContext /// [System.Runtime.Serialization.DataContractAttribute] - public class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ContextId @@ -24624,7 +24960,7 @@ public double SampleRate /// Protocol object for AudioListener /// [System.Runtime.Serialization.DataContractAttribute] - public class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ListenerId @@ -24651,7 +24987,7 @@ public string ContextId /// Protocol object for AudioNode /// [System.Runtime.Serialization.DataContractAttribute] - public class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// NodeId @@ -24770,7 +25106,7 @@ internal string channelInterpretation /// Protocol object for AudioParam /// [System.Runtime.Serialization.DataContractAttribute] - public class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ParamId @@ -25343,7 +25679,7 @@ public enum AuthenticatorTransport /// VirtualAuthenticatorOptions /// [System.Runtime.Serialization.DataContractAttribute] - public class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol @@ -25506,7 +25842,7 @@ public bool? IsUserVerified /// Credential /// [System.Runtime.Serialization.DataContractAttribute] - public class Credential : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Credential : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CredentialId @@ -25627,7 +25963,7 @@ public enum PlayerMessageLevel /// Corresponds to kMessage /// [System.Runtime.Serialization.DataContractAttribute] - public class PlayerMessage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerMessage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Keep in sync with MediaLogMessageLevel @@ -25686,7 +26022,7 @@ public string Message /// Corresponds to kMediaPropertyChange /// [System.Runtime.Serialization.DataContractAttribute] - public class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -25713,7 +26049,7 @@ public string Value /// Corresponds to kMediaEventTriggered /// [System.Runtime.Serialization.DataContractAttribute] - public class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timestamp @@ -25757,7 +26093,7 @@ public enum PlayerErrorType /// Corresponds to kMediaError /// [System.Runtime.Serialization.DataContractAttribute] - public class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type @@ -25936,7 +26272,7 @@ namespace CefSharp.DevTools.Debugger /// Location in the source code. /// [System.Runtime.Serialization.DataContractAttribute] - public class Location : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Location : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Script identifier as reported in the `Debugger.scriptParsed`. @@ -25973,7 +26309,7 @@ public int? ColumnNumber /// Location in the source code. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// LineNumber @@ -26000,7 +26336,7 @@ public int ColumnNumber /// Location range within one script. /// [System.Runtime.Serialization.DataContractAttribute] - public class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ScriptId @@ -26037,7 +26373,7 @@ public CefSharp.DevTools.Debugger.ScriptPosition End /// JavaScript call frame. Array of call frames form the call stack. /// [System.Runtime.Serialization.DataContractAttribute] - public class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Call frame identifier. This identifier is only valid while the virtual machine is paused. @@ -26183,7 +26519,7 @@ public enum ScopeType /// Scope description. /// [System.Runtime.Serialization.DataContractAttribute] - public class Scope : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Scope : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Scope type. @@ -26258,7 +26594,7 @@ public CefSharp.DevTools.Debugger.Location EndLocation /// Search match for resource. /// [System.Runtime.Serialization.DataContractAttribute] - public class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Line number in resource content. @@ -26307,7 +26643,7 @@ public enum BreakLocationType /// BreakLocation /// [System.Runtime.Serialization.DataContractAttribute] - public class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Script identifier as reported in the `Debugger.scriptParsed`. @@ -26414,7 +26750,7 @@ public enum DebugSymbolsType /// Debug symbols available for a wasm script. /// [System.Runtime.Serialization.DataContractAttribute] - public class DebugSymbols : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DebugSymbols : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of the debug symbols. @@ -27054,7 +27390,7 @@ namespace CefSharp.DevTools.HeapProfiler /// Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. /// [System.Runtime.Serialization.DataContractAttribute] - public class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Function location. @@ -27101,7 +27437,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Allocation size in bytes attributed to the sample. @@ -27139,7 +27475,7 @@ public double Ordinal /// Sampling profile. /// [System.Runtime.Serialization.DataContractAttribute] - public class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Head @@ -27271,7 +27607,7 @@ namespace CefSharp.DevTools.Profiler /// Profile node. Holds callsite information, execution statistics and child nodes. /// [System.Runtime.Serialization.DataContractAttribute] - public class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the node. @@ -27339,7 +27675,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class Profile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Profile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The list of profile nodes. First item is the root node. @@ -27397,7 +27733,7 @@ public int[] TimeDeltas /// Specifies a number of samples attributed to a certain source position. /// [System.Runtime.Serialization.DataContractAttribute] - public class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source line number (1-based). @@ -27424,7 +27760,7 @@ public int Ticks /// Coverage data for a source range. /// [System.Runtime.Serialization.DataContractAttribute] - public class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script source offset for the range start. @@ -27461,7 +27797,7 @@ public int Count /// Coverage data for a JavaScript function. /// [System.Runtime.Serialization.DataContractAttribute] - public class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript function name. @@ -27498,7 +27834,7 @@ public bool IsBlockCoverage /// Coverage data for a JavaScript script. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script id. @@ -27535,7 +27871,7 @@ public System.Collections.Generic.IList [System.Runtime.Serialization.DataContractAttribute] - public class TypeObject : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TypeObject : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of a type collected with type profiling. @@ -27552,7 +27888,7 @@ public string Name /// Source offset and types for a parameter or return value. /// [System.Runtime.Serialization.DataContractAttribute] - public class TypeProfileEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TypeProfileEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source offset of the parameter or end of function for return values. @@ -27579,7 +27915,7 @@ public System.Collections.Generic.IList T /// Type profile data collected during runtime for a JavaScript script. /// [System.Runtime.Serialization.DataContractAttribute] - public class ScriptTypeProfile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptTypeProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script id. @@ -27894,7 +28230,7 @@ public enum RemoteObjectSubtype /// Mirror object referencing original JavaScript object. /// [System.Runtime.Serialization.DataContractAttribute] - public class RemoteObject : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RemoteObject : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object type. @@ -28028,7 +28364,7 @@ public CefSharp.DevTools.Runtime.CustomPreview CustomPreview /// CustomPreview /// [System.Runtime.Serialization.DataContractAttribute] - public class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The JSON-stringified result of formatter.header(object, config) call. @@ -28207,7 +28543,7 @@ public enum ObjectPreviewSubtype /// Object containing abbreviated remote object value. /// [System.Runtime.Serialization.DataContractAttribute] - public class ObjectPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ObjectPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object type. @@ -28460,7 +28796,7 @@ public enum PropertyPreviewSubtype /// PropertyPreview /// [System.Runtime.Serialization.DataContractAttribute] - public class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Property name. @@ -28549,7 +28885,7 @@ internal string subtype /// EntryPreview /// [System.Runtime.Serialization.DataContractAttribute] - public class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Preview of the key. Specified for map-like collection entries. @@ -28576,7 +28912,7 @@ public CefSharp.DevTools.Runtime.ObjectPreview Value /// Object property descriptor. /// [System.Runtime.Serialization.DataContractAttribute] - public class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Property name or symbol description. @@ -28687,7 +29023,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Symbol /// Object internal property descriptor. This property isn't normally visible in JavaScript code. /// [System.Runtime.Serialization.DataContractAttribute] - public class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Conventional property name. @@ -28714,7 +29050,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Value /// Object private field descriptor. /// [System.Runtime.Serialization.DataContractAttribute] - public class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Private property name. @@ -28764,7 +29100,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Set /// unserializable primitive value or neither of (for undefined) them should be specified. /// [System.Runtime.Serialization.DataContractAttribute] - public class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Primitive value or serializable javascript object. @@ -28801,7 +29137,7 @@ public string ObjectId /// Description of an isolated world. /// [System.Runtime.Serialization.DataContractAttribute] - public class ExecutionContextDescription : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ExecutionContextDescription : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the execution context. It can be used to specify in which execution context @@ -28862,7 +29198,7 @@ public object AuxData /// execution. /// [System.Runtime.Serialization.DataContractAttribute] - public class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Exception id. @@ -28971,7 +29307,7 @@ public object ExceptionMetaData /// Stack entry for runtime errors and assertions. /// [System.Runtime.Serialization.DataContractAttribute] - public class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript function name. @@ -29028,7 +29364,7 @@ public int ColumnNumber /// Call frames for assertions or error messages. /// [System.Runtime.Serialization.DataContractAttribute] - public class StackTrace : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StackTrace : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// String label of this stack trace. For async traces this may be a name of the function that @@ -29077,7 +29413,7 @@ public CefSharp.DevTools.Runtime.StackTraceId ParentId /// allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages. /// [System.Runtime.Serialization.DataContractAttribute] - public class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id @@ -29725,28 +30061,22 @@ public System.Threading.Tasks.Task GetPartialAXTreeAsy return _client.ExecuteDevToolsMethodAsync("Accessibility.getPartialAXTree", dict); } - partial void ValidateGetFullAXTree(int? depth = null, int? max_depth = null, string frameId = null); + partial void ValidateGetFullAXTree(int? depth = null, string frameId = null); /// /// Fetches the entire accessibility tree for the root Document /// /// The maximum depth at which descendants of the root node should be retrieved.If omitted, the full tree is returned. - /// Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used. /// The frame for whose document the AX tree should be retrieved.If omited, the root frame is used. /// returns System.Threading.Tasks.Task<GetFullAXTreeResponse> - public System.Threading.Tasks.Task GetFullAXTreeAsync(int? depth = null, int? max_depth = null, string frameId = null) + public System.Threading.Tasks.Task GetFullAXTreeAsync(int? depth = null, string frameId = null) { - ValidateGetFullAXTree(depth, max_depth, frameId); + ValidateGetFullAXTree(depth, frameId); var dict = new System.Collections.Generic.Dictionary(); if (depth.HasValue) { dict.Add("depth", depth.Value); } - if (max_depth.HasValue) - { - dict.Add("max_depth", max_depth.Value); - } - if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); @@ -31432,6 +31762,24 @@ public System.Collections.Generic.IList inheritedPseudoElements + { + get; + set; + } + + /// + /// inheritedPseudoElements + /// + public System.Collections.Generic.IList InheritedPseudoElements + { + get + { + return inheritedPseudoElements; + } + } + [System.Runtime.Serialization.DataMemberAttribute] internal System.Collections.Generic.IList cssKeyframesRules { @@ -31536,6 +31884,34 @@ public string Text } } +namespace CefSharp.DevTools.CSS +{ + /// + /// GetLayersForNodeResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetLayersForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.CSS.CSSLayerData rootLayer + { + get; + set; + } + + /// + /// rootLayer + /// + public CefSharp.DevTools.CSS.CSSLayerData RootLayer + { + get + { + return rootLayer; + } + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -31648,6 +32024,34 @@ public CefSharp.DevTools.CSS.CSSContainerQuery ContainerQuery } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetSupportsTextResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SetSupportsTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.CSS.CSSSupports supports + { + get; + set; + } + + /// + /// supports + /// + public CefSharp.DevTools.CSS.CSSSupports Supports + { + get + { + return supports; + } + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -32093,6 +32497,23 @@ public System.Threading.Tasks.Task GetStyleSheetTextA return _client.ExecuteDevToolsMethodAsync("CSS.getStyleSheetText", dict); } + partial void ValidateGetLayersForNode(int nodeId); + /// + /// Returns all layers parsed by the rendering engine for the tree scope of a node. + /// Given a DOM element identified by nodeId, getLayersForNode returns the root + /// layer for the nearest ancestor document or shadow root. The layer root contains + /// the full layer tree for the tree scope and their ordering. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetLayersForNodeResponse> + public System.Threading.Tasks.Task GetLayersForNodeAsync(int nodeId) + { + ValidateGetLayersForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + return _client.ExecuteDevToolsMethodAsync("CSS.getLayersForNode", dict); + } + partial void ValidateTrackComputedStyleUpdates(System.Collections.Generic.IList propertiesToTrack); /// /// Starts tracking the given computed styles for updates. The specified array of properties @@ -32195,6 +32616,24 @@ public System.Threading.Tasks.Task SetContainerQu return _client.ExecuteDevToolsMethodAsync("CSS.setContainerQueryText", dict); } + partial void ValidateSetSupportsText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); + /// + /// Modifies the expression of a supports at-rule. + /// + /// styleSheetId + /// range + /// text + /// returns System.Threading.Tasks.Task<SetSupportsTextResponse> + public System.Threading.Tasks.Task SetSupportsTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) + { + ValidateSetSupportsText(styleSheetId, range, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("text", text); + return _client.ExecuteDevToolsMethodAsync("CSS.setSupportsText", dict); + } + partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); /// /// Modifies the rule selector. @@ -33457,6 +33896,23 @@ namespace CefSharp.DevTools.DOM { using System.Linq; + /// + /// Whether to include whitespaces in the children array of returned Nodes. + /// + public enum EnableIncludeWhitespace + { + /// + /// none + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + None, + /// + /// all + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("all"))] + All + } + /// /// This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object /// that has an `id`. This `id` can be used to get additional information on the Node, resolve it into @@ -33846,13 +34302,21 @@ public System.Threading.Tasks.Task DiscardSearchResultsA return _client.ExecuteDevToolsMethodAsync("DOM.discardSearchResults", dict); } + partial void ValidateEnable(CefSharp.DevTools.DOM.EnableIncludeWhitespace? includeWhitespace = null); /// /// Enables DOM agent for the given page. /// + /// Whether to include whitespaces in the children array of returned Nodes. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync() + public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.DOM.EnableIncludeWhitespace? includeWhitespace = null) { - System.Collections.Generic.Dictionary dict = null; + ValidateEnable(includeWhitespace); + var dict = new System.Collections.Generic.Dictionary(); + if (includeWhitespace.HasValue) + { + dict.Add("includeWhitespace", EnumToString(includeWhitespace)); + } + return _client.ExecuteDevToolsMethodAsync("DOM.enable", dict); } @@ -35942,7 +36406,7 @@ public System.Threading.Tasks.Task SetTouchEmulationEnab return _client.ExecuteDevToolsMethodAsync("Emulation.setTouchEmulationEnabled", dict); } - partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, double? initialVirtualTime = null); + partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, double? initialVirtualTime = null); /// /// Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets /// the current virtual time policy. Note this supersedes any previous time budget. @@ -35950,12 +36414,11 @@ public System.Threading.Tasks.Task SetTouchEmulationEnab /// policy /// If set, after this many virtual milliseconds have elapsed virtual time will be paused and avirtualTimeBudgetExpired event is sent. /// If set this specifies the maximum number of tasks that can be run before virtual is forcedforwards to prevent deadlock. - /// If set the virtual time policy change should be deferred until any frame starts navigating.Note any previous deferred policy change is superseded. /// If set, base::Time::Now will be overridden to initially return this value. /// returns System.Threading.Tasks.Task<SetVirtualTimePolicyResponse> - public System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, double? initialVirtualTime = null) + public System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, double? initialVirtualTime = null) { - ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, waitForNavigation, initialVirtualTime); + ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, initialVirtualTime); var dict = new System.Collections.Generic.Dictionary(); dict.Add("policy", EnumToString(policy)); if (budget.HasValue) @@ -35968,11 +36431,6 @@ public System.Threading.Tasks.Task SetVirtualTimeP dict.Add("maxVirtualTimeTaskStarvationCount", maxVirtualTimeTaskStarvationCount.Value); } - if (waitForNavigation.HasValue) - { - dict.Add("waitForNavigation", waitForNavigation.Value); - } - if (initialVirtualTime.HasValue) { dict.Add("initialVirtualTime", initialVirtualTime.Value); @@ -36058,6 +36516,20 @@ public System.Threading.Tasks.Task SetUserAgentOverrideA return _client.ExecuteDevToolsMethodAsync("Emulation.setUserAgentOverride", dict); } + + partial void ValidateSetAutomationOverride(bool enabled); + /// + /// Allows overriding the automation flag. + /// + /// Whether the override should be enabled. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAutomationOverrideAsync(bool enabled) + { + ValidateSetAutomationOverride(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + return _client.ExecuteDevToolsMethodAsync("Emulation.setAutomationOverride", dict); + } } } @@ -36908,7 +37380,7 @@ public System.Threading.Tasks.Task DispatchDragEventAsyn /// Whether the event was generated from the keypad (default: false). /// Whether the event was a system key event (default: false). /// Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:0). - /// Editing commands to send with the key event (e.g., 'selectAll') (default: []).These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. + /// Editing commands to send with the key event (e.g., 'selectAll') (default: []).These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DispatchKeyEventAsync(CefSharp.DevTools.Input.DispatchKeyEventType type, int? modifiers = null, double? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null) { diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index 586a032bc..28a2a2a74 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 99.0.4844.51 +// CHROMIUM VERSION 101.0.4951.34 namespace CefSharp.DevTools.Accessibility { /// @@ -195,7 +195,7 @@ public enum AXValueNativeSourceType /// /// A single source for a computed AX property. /// - public class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// What type of source this is. @@ -291,7 +291,7 @@ public string InvalidReason /// /// AXRelatedNode /// - public class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The BackendNodeId of the related DOM node. @@ -327,7 +327,7 @@ public string Text /// /// AXProperty /// - public class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The name of this property. @@ -354,7 +354,7 @@ public CefSharp.DevTools.Accessibility.AXValue Value /// /// A single computed AX property. /// - public class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The type of this value. @@ -607,7 +607,7 @@ public enum AXPropertyName /// /// A node in the accessibility tree. /// - public class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique identifier for this node. @@ -796,7 +796,7 @@ public enum AnimationType /// /// Animation instance. /// - public class Animation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Animation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Animation`'s id. @@ -906,7 +906,7 @@ public string CssId /// /// AnimationEffect instance /// - public class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `AnimationEffect`'s delay. @@ -1015,7 +1015,7 @@ public string Easing /// /// Keyframes Rule /// - public class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CSS keyframed animation's name. @@ -1042,7 +1042,7 @@ public System.Collections.Generic.IList /// Keyframe Style /// - public class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Keyframe's time offset. @@ -1127,7 +1127,7 @@ namespace CefSharp.DevTools.Audits /// /// Information about a cookie that is affected by an inspector issue. /// - public class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The following three properties uniquely identify a cookie @@ -1166,7 +1166,7 @@ public string Domain /// /// Information about a request that is affected by an inspector issue. /// - public class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The unique request id. @@ -1193,7 +1193,7 @@ public string Url /// /// Information about the frame affected by an inspector issue. /// - public class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FrameId @@ -1208,9 +1208,9 @@ public string FrameId } /// - /// SameSiteCookieExclusionReason + /// CookieExclusionReason /// - public enum SameSiteCookieExclusionReason + public enum CookieExclusionReason { /// /// ExcludeSameSiteUnspecifiedTreatedAsLax @@ -1245,9 +1245,9 @@ public enum SameSiteCookieExclusionReason } /// - /// SameSiteCookieWarningReason + /// CookieWarningReason /// - public enum SameSiteCookieWarningReason + public enum CookieWarningReason { /// /// WarnSameSiteUnspecifiedCrossSiteContext @@ -1288,13 +1288,18 @@ public enum SameSiteCookieWarningReason /// WarnSameSiteLaxCrossDowngradeLax /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteLaxCrossDowngradeLax")] - WarnSameSiteLaxCrossDowngradeLax + WarnSameSiteLaxCrossDowngradeLax, + /// + /// WarnAttributeValueExceedsMaxSize + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnAttributeValueExceedsMaxSize")] + WarnAttributeValueExceedsMaxSize } /// - /// SameSiteCookieOperation + /// CookieOperation /// - public enum SameSiteCookieOperation + public enum CookieOperation { /// /// SetCookie @@ -1313,7 +1318,7 @@ public enum SameSiteCookieOperation /// time finding a specific cookie. With this, we can convey specific error /// information without the cookie. /// - public class SameSiteCookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// If AffectedCookie is not set then rawCookieLine contains the raw @@ -1342,7 +1347,7 @@ public string RawCookieLine /// CookieWarningReasons /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieWarningReasons")] - public CefSharp.DevTools.Audits.SameSiteCookieWarningReason[] CookieWarningReasons + public CefSharp.DevTools.Audits.CookieWarningReason[] CookieWarningReasons { get; set; @@ -1352,7 +1357,7 @@ public CefSharp.DevTools.Audits.SameSiteCookieWarningReason[] CookieWarningReaso /// CookieExclusionReasons /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieExclusionReasons")] - public CefSharp.DevTools.Audits.SameSiteCookieExclusionReason[] CookieExclusionReasons + public CefSharp.DevTools.Audits.CookieExclusionReason[] CookieExclusionReasons { get; set; @@ -1363,7 +1368,7 @@ public CefSharp.DevTools.Audits.SameSiteCookieExclusionReason[] CookieExclusionR /// may be used by the front-end as additional context. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("operation")] - public CefSharp.DevTools.Audits.SameSiteCookieOperation Operation + public CefSharp.DevTools.Audits.CookieOperation Operation { get; set; @@ -1427,6 +1432,11 @@ public enum MixedContentResolutionStatus /// public enum MixedContentResourceType { + /// + /// AttributionSrc + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionSrc")] + AttributionSrc, /// /// Audio /// @@ -1562,7 +1572,7 @@ public enum MixedContentResourceType /// /// MixedContentIssueDetails /// - public class MixedContentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MixedContentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The type of resource causing the mixed content issue (css, js, iframe, @@ -1669,7 +1679,7 @@ public enum BlockedByResponseReason /// code. Currently only used for COEP/COOP, but may be extended to include /// some CSP errors in the future. /// - public class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request @@ -1755,7 +1765,7 @@ public enum HeavyAdReason /// /// HeavyAdIssueDetails /// - public class HeavyAdIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HeavyAdIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The resolution status, either blocking the content or warning. @@ -1829,7 +1839,7 @@ public enum ContentSecurityPolicyViolationType /// /// SourceCodeLocation /// - public class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ScriptId @@ -1876,7 +1886,7 @@ public int ColumnNumber /// /// ContentSecurityPolicyIssueDetails /// - public class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The url not included in allowed sources. @@ -1971,7 +1981,7 @@ public enum SharedArrayBufferIssueType /// Details for a issue arising from an SAB being instantiated in, or /// transferred to a context that is not cross-origin isolated. /// - public class SharedArrayBufferIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SharedArrayBufferIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// SourceCodeLocation @@ -2030,7 +2040,7 @@ public enum TwaQualityEnforcementViolationType /// /// TrustedWebActivityIssueDetails /// - public class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The url that triggers the violation. @@ -2089,7 +2099,7 @@ public string Signature /// /// LowTextContrastIssueDetails /// - public class LowTextContrastIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LowTextContrastIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ViolatingNodeId @@ -2169,7 +2179,7 @@ public string FontWeight /// Details for a CORS related issue, e.g. a warning or error related to /// CORS RFC1918 enforcement. /// - public class CorsIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CorsIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CorsErrorStatus @@ -2315,7 +2325,7 @@ public enum AttributionReportingIssueType /// Details for issues around "Attribution Reporting API" usage. /// Explainer: https://github.com/WICG/conversion-measurement-api /// - public class AttributionReportingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AttributionReportingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ViolationType @@ -2372,7 +2382,7 @@ public string InvalidParameter /// Details for issues about documents in Quirks Mode /// or Limited Quirks Mode that affects page layouting. /// - public class QuirksModeIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class QuirksModeIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// If false, it means the document's mode is "quirks" @@ -2432,7 +2442,7 @@ public string LoaderId /// /// NavigatorUserAgentIssueDetails /// - public class NavigatorUserAgentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NavigatorUserAgentIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Url @@ -2456,55 +2466,6 @@ public CefSharp.DevTools.Audits.SourceCodeLocation Location } } - /// - /// WasmCrossOriginModuleSharingIssueDetails - /// - public class WasmCrossOriginModuleSharingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// WasmModuleUrl - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasmModuleUrl")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string WasmModuleUrl - { - get; - set; - } - - /// - /// SourceOrigin - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOrigin")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string SourceOrigin - { - get; - set; - } - - /// - /// TargetOrigin - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetOrigin")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string TargetOrigin - { - get; - set; - } - - /// - /// IsWarning - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isWarning")] - public bool IsWarning - { - get; - set; - } - } - /// /// GenericIssueErrorType /// @@ -2520,7 +2481,7 @@ public enum GenericIssueErrorType /// /// Depending on the concrete errorType, different properties are set. /// - public class GenericIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GenericIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Issues with the same errorType are aggregated in the frontend. @@ -2550,7 +2511,7 @@ public string FrameId /// TODO(crbug.com/1264960): Re-work format to add i18n support per: /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md /// - public class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AffectedFrame @@ -2574,7 +2535,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation } /// - /// The content of the deprecation issue (this won't be translated), + /// The content of an untranslated deprecation issue, /// e.g. "window.inefficientLegacyStorageMethod will be removed in M97, /// around January 2022. Please use Web Storage or Indexed Database /// instead. This standard was abandoned in January, 1970. See @@ -2588,7 +2549,7 @@ public string Message } /// - /// DeprecationType + /// The id of an untranslated deprecation issue e.g. PrefixedStorageInfo. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("deprecationType")] [System.Diagnostics.CodeAnalysis.DisallowNull] @@ -2616,11 +2577,142 @@ public enum ClientHintIssueReason MetaTagModifiedHTML } + /// + /// FederatedAuthRequestIssueDetails + /// + public partial class FederatedAuthRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FederatedAuthRequestIssueReason + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("federatedAuthRequestIssueReason")] + public CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason FederatedAuthRequestIssueReason + { + get; + set; + } + } + + /// + /// Represents the failure reason when a federated authentication reason fails. + /// Should be updated alongside RequestIdTokenStatus in + /// third_party/blink/public/mojom/devtools/inspector_issue.mojom to include + /// all cases except for success. + /// + public enum FederatedAuthRequestIssueReason + { + /// + /// ApprovalDeclined + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ApprovalDeclined")] + ApprovalDeclined, + /// + /// TooManyRequests + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TooManyRequests")] + TooManyRequests, + /// + /// ManifestHttpNotFound + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestHttpNotFound")] + ManifestHttpNotFound, + /// + /// ManifestNoResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestNoResponse")] + ManifestNoResponse, + /// + /// ManifestInvalidResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestInvalidResponse")] + ManifestInvalidResponse, + /// + /// ClientMetadataHttpNotFound + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataHttpNotFound")] + ClientMetadataHttpNotFound, + /// + /// ClientMetadataNoResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataNoResponse")] + ClientMetadataNoResponse, + /// + /// ClientMetadataInvalidResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataInvalidResponse")] + ClientMetadataInvalidResponse, + /// + /// ClientMetadataMissingPrivacyPolicyUrl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataMissingPrivacyPolicyUrl")] + ClientMetadataMissingPrivacyPolicyUrl, + /// + /// DisabledInSettings + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("DisabledInSettings")] + DisabledInSettings, + /// + /// ErrorFetchingSignin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ErrorFetchingSignin")] + ErrorFetchingSignin, + /// + /// InvalidSigninResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSigninResponse")] + InvalidSigninResponse, + /// + /// AccountsHttpNotFound + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsHttpNotFound")] + AccountsHttpNotFound, + /// + /// AccountsNoResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsNoResponse")] + AccountsNoResponse, + /// + /// AccountsInvalidResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsInvalidResponse")] + AccountsInvalidResponse, + /// + /// IdTokenHttpNotFound + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenHttpNotFound")] + IdTokenHttpNotFound, + /// + /// IdTokenNoResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenNoResponse")] + IdTokenNoResponse, + /// + /// IdTokenInvalidResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenInvalidResponse")] + IdTokenInvalidResponse, + /// + /// IdTokenInvalidRequest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenInvalidRequest")] + IdTokenInvalidRequest, + /// + /// ErrorIdToken + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ErrorIdToken")] + ErrorIdToken, + /// + /// Canceled + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Canceled")] + Canceled + } + /// /// This issue tracks client hints related issues. It's used to deprecate old /// features, encourage the use of new ones, and provide general guidance. /// - public class ClientHintIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ClientHintIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// SourceCodeLocation @@ -2652,10 +2744,10 @@ public CefSharp.DevTools.Audits.ClientHintIssueReason ClientHintIssueReason public enum InspectorIssueCode { /// - /// SameSiteCookieIssue + /// CookieIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCookieIssue")] - SameSiteCookieIssue, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CookieIssue")] + CookieIssue, /// /// MixedContentIssue /// @@ -2712,11 +2804,6 @@ public enum InspectorIssueCode [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigatorUserAgentIssue")] NavigatorUserAgentIssue, /// - /// WasmCrossOriginModuleSharingIssue - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WasmCrossOriginModuleSharingIssue")] - WasmCrossOriginModuleSharingIssue, - /// /// GenericIssue /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("GenericIssue")] @@ -2730,7 +2817,12 @@ public enum InspectorIssueCode /// ClientHintIssue /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientHintIssue")] - ClientHintIssue + ClientHintIssue, + /// + /// FederatedAuthRequestIssue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FederatedAuthRequestIssue")] + FederatedAuthRequestIssue } /// @@ -2738,13 +2830,13 @@ public enum InspectorIssueCode /// specific to the kind of issue. When adding a new issue code, please also /// add a new optional field to this type. /// - public class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// SameSiteCookieIssueDetails + /// CookieIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameSiteCookieIssueDetails")] - public CefSharp.DevTools.Audits.SameSiteCookieIssueDetails SameSiteCookieIssueDetails + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieIssueDetails")] + public CefSharp.DevTools.Audits.CookieIssueDetails CookieIssueDetails { get; set; @@ -2860,16 +2952,6 @@ public CefSharp.DevTools.Audits.NavigatorUserAgentIssueDetails NavigatorUserAgen set; } - /// - /// WasmCrossOriginModuleSharingIssue - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasmCrossOriginModuleSharingIssue")] - public CefSharp.DevTools.Audits.WasmCrossOriginModuleSharingIssueDetails WasmCrossOriginModuleSharingIssue - { - get; - set; - } - /// /// GenericIssueDetails /// @@ -2899,12 +2981,22 @@ public CefSharp.DevTools.Audits.ClientHintIssueDetails ClientHintIssueDetails get; set; } + + /// + /// FederatedAuthRequestIssueDetails + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("federatedAuthRequestIssueDetails")] + public CefSharp.DevTools.Audits.FederatedAuthRequestIssueDetails FederatedAuthRequestIssueDetails + { + get; + set; + } } /// /// An inspector issue reported from the back-end. /// - public class InspectorIssue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InspectorIssue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Code @@ -3002,7 +3094,7 @@ public enum ServiceName /// /// A key-value pair for additional event information to pass along. /// - public class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key @@ -3030,7 +3122,7 @@ public string Value /// /// BackgroundServiceEvent /// - public class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timestamp of the event (in seconds). @@ -3188,7 +3280,7 @@ public enum WindowState /// /// Browser window bounds information /// - public class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The offset from the left edge of the screen to the window in pixels. @@ -3389,7 +3481,7 @@ public enum PermissionSetting /// Definition of PermissionDescriptor defined in the Permissions API: /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. /// - public class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of permission. @@ -3465,7 +3557,7 @@ public enum BrowserCommandId /// /// Chrome histogram bucket. /// - public class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Minimum value (inclusive). @@ -3501,7 +3593,7 @@ public int Count /// /// Chrome histogram. /// - public class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name. @@ -3708,7 +3800,7 @@ public enum StyleSheetOrigin /// /// CSS rule collection for a single pseudo style. /// - public class PseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Pseudo element type. @@ -3735,7 +3827,7 @@ public System.Collections.Generic.IList Matches /// /// Inherited CSS rule collection from ancestor node. /// - public class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The ancestor node's inline style, if any, in the style inheritance chain. @@ -3759,10 +3851,27 @@ public System.Collections.Generic.IList Matched } } + /// + /// Inherited pseudo element matches from pseudos of an ancestor node. + /// + public partial class InheritedPseudoElementMatches : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Matches of pseudo styles from the pseudos of an ancestor node. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElements")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList PseudoElements + { + get; + set; + } + } + /// /// Match data for a CSS rule. /// - public class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CSS rule in the match. @@ -3789,7 +3898,7 @@ public int[] MatchingSelectors /// /// Data for a simple selector (these are delimited by commas in a selector list). /// - public class Value : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Value : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value text. @@ -3816,7 +3925,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Selector list data. /// - public class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Selectors in the list. @@ -3844,7 +3953,7 @@ public string Text /// /// CSS stylesheet metainformation. /// - public class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The stylesheet identifier. @@ -4031,7 +4140,7 @@ public double EndColumn /// /// CSS rule representation. /// - public class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -4097,12 +4206,34 @@ public System.Collections.Generic.IList get; set; } + + /// + /// @supports CSS at-rule array. + /// The array enumerates @supports at-rules starting with the innermost one, going outwards. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("supports")] + public System.Collections.Generic.IList Supports + { + get; + set; + } + + /// + /// Cascade layer array. Contains the layer hierarchy that this rule belongs to starting + /// with the innermost layer and going outwards. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("layers")] + public System.Collections.Generic.IList Layers + { + get; + set; + } } /// /// CSS coverage information. /// - public class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -4150,7 +4281,7 @@ public bool Used /// /// Text range within a resource. All numbers are zero-based. /// - public class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Start line of range. @@ -4196,7 +4327,7 @@ public int EndColumn /// /// ShorthandEntry /// - public class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Shorthand name. @@ -4234,7 +4365,7 @@ public bool? Important /// /// CSSComputedStyleProperty /// - public class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed style property name. @@ -4262,7 +4393,7 @@ public string Value /// /// CSS style representation. /// - public class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -4321,7 +4452,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// CSS property declaration data. /// - public class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The property name. @@ -4439,7 +4570,7 @@ public enum CSSMediaSource /// /// CSS media rule descriptor. /// - public class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query text. @@ -4510,7 +4641,7 @@ public System.Collections.Generic.IList MediaL /// /// Media query descriptor. /// - public class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Array of media query expressions. @@ -4537,7 +4668,7 @@ public bool Active /// /// Media query expression descriptor. /// - public class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Media query expression value. @@ -4595,7 +4726,7 @@ public double? ComputedLength /// /// CSS container query rule descriptor. /// - public class CSSContainerQuery : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSContainerQuery : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Container query text. @@ -4640,10 +4771,134 @@ public string Name } } + /// + /// CSS Supports at-rule descriptor. + /// + public partial class CSSSupports : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Supports rule text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// Whether the supports condition is satisfied. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("active")] + public bool Active + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + } + + /// + /// CSS Layer at-rule descriptor. + /// + public partial class CSSLayer : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Layer name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + } + + /// + /// CSS Layer data. + /// + public partial class CSSLayerData : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Layer name. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// Direct sub-layers + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subLayers")] + public System.Collections.Generic.IList SubLayers + { + get; + set; + } + + /// + /// Layer order. The order determines the order of the layer in the cascade order. + /// A higher number has higher priority in the cascade order. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("order")] + public double Order + { + get; + set; + } + } + /// /// Information about amount of glyphs that were rendered with given font. /// - public class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Font's family name reported by platform. @@ -4680,7 +4935,7 @@ public double GlyphCount /// /// Information about font variation axes for variable fonts /// - public class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The font-variation-setting tag (a.k.a. "axis tag"). @@ -4739,7 +4994,7 @@ public double DefaultValue /// Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions /// and additional information such as platformFontFamily and fontVariationAxes. /// - public class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The font-family. @@ -4843,7 +5098,7 @@ public System.Collections.Generic.IList /// /// CSS keyframes rule representation. /// - public class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Animation name. @@ -4871,7 +5126,7 @@ public System.Collections.Generic.IList K /// /// CSS keyframe rule representation. /// - public class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier (absent for user agent stylesheet and user-specified @@ -4920,7 +5175,7 @@ public CefSharp.DevTools.CSS.CSSStyle Style /// /// A descriptor of operation to mutate style declaration text. /// - public class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The css style sheet identifier. @@ -5071,7 +5326,7 @@ public enum CachedResponseType /// /// Data entry. /// - public class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request URL. @@ -5162,7 +5417,7 @@ public System.Collections.Generic.IList R /// /// Cache identifier. /// - public class Cache : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Cache : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// An opaque unique id of the cache. @@ -5201,7 +5456,7 @@ public string CacheName /// /// Header /// - public class Header : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Header : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -5229,7 +5484,7 @@ public string Value /// /// Cached response /// - public class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Entry content, base64-encoded. @@ -5249,7 +5504,7 @@ namespace CefSharp.DevTools.Cast /// /// Sink /// - public class Sink : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Sink : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -5329,7 +5584,7 @@ namespace CefSharp.DevTools.DOM /// /// Backend node with a friendly name. /// - public class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Node`'s nodeType. @@ -5469,25 +5724,30 @@ public enum PseudoType [System.Text.Json.Serialization.JsonPropertyNameAttribute("input-list-button")] InputListButton, /// - /// transition + /// page-transition + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition")] + PageTransition, + /// + /// page-transition-container /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transition")] - Transition, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-container")] + PageTransitionContainer, /// - /// transition-container + /// page-transition-image-wrapper /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transition-container")] - TransitionContainer, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-image-wrapper")] + PageTransitionImageWrapper, /// - /// transition-old-content + /// page-transition-outgoing-image /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transition-old-content")] - TransitionOldContent, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-outgoing-image")] + PageTransitionOutgoingImage, /// - /// transition-new-content + /// page-transition-incoming-image /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transition-new-content")] - TransitionNewContent + [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-incoming-image")] + PageTransitionIncomingImage } /// @@ -5538,7 +5798,7 @@ public enum CompatibilityMode /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. /// DOMNode is a base node mirror type. /// - public class Node : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Node : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend @@ -5841,7 +6101,7 @@ public CefSharp.DevTools.DOM.CompatibilityMode? CompatibilityMode /// /// A structure holding an RGBA color. /// - public class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The red component, in the [0-255] range. @@ -5887,7 +6147,7 @@ public double? A /// /// Box model. /// - public class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Content box @@ -5963,7 +6223,7 @@ public CefSharp.DevTools.DOM.ShapeOutsideInfo ShapeOutside /// /// CSS Shape Outside details. /// - public class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Shape bounds @@ -6001,7 +6261,7 @@ public object[] MarginShape /// /// Rectangle. /// - public class Rect : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Rect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X coordinate @@ -6047,7 +6307,7 @@ public double Height /// /// CSSComputedStyleProperty /// - public class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed style property name. @@ -6502,7 +6762,7 @@ public enum CSPViolationType /// /// Object event listener. /// - public class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `EventListener`'s type. @@ -6613,7 +6873,7 @@ namespace CefSharp.DevTools.DOMSnapshot /// /// A Node in the DOM tree. /// - public class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// `Node`'s nodeType. @@ -6908,7 +7168,7 @@ public double? ScrollOffsetY /// Details of post layout rendered text positions. The exact layout should not be regarded as /// stable and may change between versions. /// - public class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. @@ -6947,7 +7207,7 @@ public int NumCharacters /// /// Details of an element in the DOM tree with a LayoutObject. /// - public class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The index of the related DOM node in the `domNodes` array returned by `getSnapshot`. @@ -7026,7 +7286,7 @@ public bool? IsStackingContext /// /// A subset of the full ComputedStyle as defined by the request whitelist. /// - public class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name/value pairs of computed style properties. @@ -7043,7 +7303,7 @@ public System.Collections.Generic.IList /// /// A name/value pair. /// - public class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Attribute/property name. @@ -7071,7 +7331,7 @@ public string Value /// /// Data that is only present on rare nodes. /// - public class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index @@ -7097,7 +7357,7 @@ public int[] Value /// /// RareBooleanData /// - public class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index @@ -7113,7 +7373,7 @@ public int[] Index /// /// RareIntegerData /// - public class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index @@ -7139,7 +7399,7 @@ public int[] Value /// /// Document snapshot. /// - public class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Document URL that `Document` or `FrameOwner` node points to. @@ -7298,7 +7558,7 @@ public double? ContentHeight /// /// Table containing nodes. /// - public class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Parent node index. @@ -7466,7 +7726,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData OriginURL /// /// Table of details of an element in the DOM tree with a LayoutObject. /// - public class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. @@ -7586,7 +7846,7 @@ public double[] TextColorOpacities /// Table of details of the post layout rendered text positions. The exact layout should not be regarded as /// stable and may change between versions. /// - public class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index of the layout tree node that owns this box collection. @@ -7637,7 +7897,7 @@ namespace CefSharp.DevTools.DOMStorage /// /// DOM Storage identifier. /// - public class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Security origin for the storage. @@ -7811,7 +8071,7 @@ namespace CefSharp.DevTools.Database /// /// Database object. /// - public class Database : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Database : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Database ID. @@ -7861,7 +8121,7 @@ public string Version /// /// Database error. /// - public class Error : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Error : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. @@ -7936,7 +8196,7 @@ public enum ScreenOrientationType /// /// Screen orientation. /// - public class ScreenOrientation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScreenOrientation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Orientation type. @@ -7979,7 +8239,7 @@ public enum DisplayFeatureOrientation /// /// DisplayFeature /// - public class DisplayFeature : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DisplayFeature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Orientation of a display feature in relation to screen @@ -8018,7 +8278,7 @@ public int MaskLength /// /// MediaFeature /// - public class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -8071,7 +8331,7 @@ public enum VirtualTimePolicy /// /// Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints /// - public class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Brand @@ -8100,7 +8360,7 @@ public string Version /// Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints /// Missing optional values will be filled in by the target with what it would normally use. /// - public class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Brands @@ -8232,7 +8492,7 @@ public enum ScreenshotParamsFormat /// /// Encoding options for a screenshot. /// - public class ScreenshotParams : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScreenshotParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Image compression format (defaults to png). @@ -8280,7 +8540,7 @@ namespace CefSharp.DevTools.IndexedDB /// /// Database with an array of object stores. /// - public class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Database name. @@ -8319,7 +8579,7 @@ public System.Collections.Generic.IList /// /// Object store. /// - public class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object store name. @@ -8368,7 +8628,7 @@ public System.Collections.Generic.IList /// Object store index. /// - public class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Index name. @@ -8443,7 +8703,7 @@ public enum KeyType /// /// Key. /// - public class Key : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Key : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key type. @@ -8499,7 +8759,7 @@ public System.Collections.Generic.IList Array /// /// Key range. /// - public class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Lower bound. @@ -8545,7 +8805,7 @@ public bool UpperOpen /// /// Data entry. /// - public class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key object. @@ -8606,7 +8866,7 @@ public enum KeyPathType /// /// Key path. /// - public class KeyPath : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class KeyPath : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Key path type. @@ -8645,7 +8905,7 @@ namespace CefSharp.DevTools.Input /// /// TouchPoint /// - public class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X coordinate of the event relative to the main frame's viewport in CSS pixels. @@ -8821,7 +9081,7 @@ public enum MouseButton /// /// DragDataItem /// - public class DragDataItem : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DragDataItem : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Mime type of the dragged data. @@ -8871,7 +9131,7 @@ public string BaseURL /// /// DragData /// - public class DragData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DragData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Items @@ -8973,7 +9233,7 @@ public enum ScrollRectType /// /// Rectangle where scrolling happens on the main thread. /// - public class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Rectangle itself. @@ -9000,7 +9260,7 @@ public CefSharp.DevTools.LayerTree.ScrollRectType Type /// /// Sticky position constraints. /// - public class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Layout rectangle of the sticky element before being shifted @@ -9048,7 +9308,7 @@ public string NearestLayerShiftingContainingBlock /// /// Serialized fragment of layer picture along with its offset within the layer. /// - public class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Offset from owning layer left boundary @@ -9085,7 +9345,7 @@ public byte[] Picture /// /// Information about a compositing layer. /// - public class Layer : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Layer : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The unique id for this layer. @@ -9414,7 +9674,7 @@ public enum LogEntryCategory /// /// Log entry. /// - public class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Log entry source. @@ -9573,7 +9833,7 @@ public enum ViolationSettingName /// /// Violation configuration setting. /// - public class ViolationSetting : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ViolationSetting : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Violation type. @@ -9637,7 +9897,7 @@ public enum PressureLevel /// /// Heap profile sample. /// - public class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Size of the sampled allocation. @@ -9674,7 +9934,7 @@ public string[] Stack /// /// Array of heap profile samples. /// - public class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Samples @@ -9702,7 +9962,7 @@ public System.Collections.Generic.IList Modules /// /// Executable module information /// - public class Module : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Module : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of the module. @@ -10046,7 +10306,7 @@ public enum CookieSourceScheme /// /// Timing information for the request. /// - public class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in @@ -10265,7 +10525,7 @@ public enum ResourcePriority /// /// Post data entry for HTTP request /// - public class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Bytes @@ -10328,7 +10588,7 @@ public enum RequestReferrerPolicy /// /// HTTP request data. /// - public class Request : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Request : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Request URL (without fragment). @@ -10469,7 +10729,7 @@ public bool? IsSameSite /// /// Details of a signed certificate timestamp (SCT). /// - public class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Validation status. @@ -10563,7 +10823,7 @@ public string SignatureData /// /// Security details about a request. /// - public class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). @@ -10952,7 +11212,7 @@ public enum CorsError /// /// CorsErrorStatus /// - public class CorsErrorStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CorsErrorStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CorsError @@ -11026,7 +11286,7 @@ public enum TrustTokenParamsRefreshPolicy /// depending on the type, some additional parameters. The values /// are specified in third_party/blink/renderer/core/fetch/trust_token.idl. /// - public class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type @@ -11086,7 +11346,7 @@ public enum TrustTokenOperationType /// /// HTTP response data. /// - public class Response : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Response : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Response URL. This URL can be different from CachedResource.url in case of redirect. @@ -11326,7 +11586,7 @@ public CefSharp.DevTools.Network.SecurityDetails SecurityDetails /// /// WebSocket request data. /// - public class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// HTTP request headers. @@ -11343,7 +11603,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// WebSocket response data. /// - public class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// HTTP response status code. @@ -11411,7 +11671,7 @@ public string RequestHeadersText /// /// WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests. /// - public class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// WebSocket message opcode. @@ -11450,7 +11710,7 @@ public string PayloadData /// /// Information about the cached resource. /// - public class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Resource URL. This is the url of the original network request. @@ -11534,7 +11794,7 @@ public enum InitiatorType /// /// Information about the request initiator. /// - public class Initiator : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Initiator : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of this initiator. @@ -11602,7 +11862,7 @@ public string RequestId /// /// Cookie object /// - public class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Cookie name. @@ -11949,7 +12209,7 @@ public enum CookieBlockedReason /// /// A cookie which was not stored from a response with the corresponding reason. /// - public class BlockedSetCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BlockedSetCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The reason(s) this cookie was blocked. @@ -11989,7 +12249,7 @@ public CefSharp.DevTools.Network.Cookie Cookie /// /// A cookie with was not sent with a request with the corresponding reason. /// - public class BlockedCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BlockedCookieWithReason : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The reason(s) the cookie was blocked. @@ -12016,7 +12276,7 @@ public CefSharp.DevTools.Network.Cookie Cookie /// /// Cookie parameter object /// - public class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Cookie name. @@ -12186,7 +12446,7 @@ public enum AuthChallengeSource /// /// Authorization challenge for HTTP status code 401 or 407. /// - public class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source of the authentication challenge. @@ -12259,7 +12519,7 @@ public enum AuthChallengeResponseResponse /// /// Response to an AuthChallenge. /// - public class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The decision on what to do in response to the authorization challenge. Default means @@ -12317,7 +12577,7 @@ public enum InterceptionStage /// /// Request pattern for interception. /// - public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is @@ -12355,7 +12615,7 @@ public CefSharp.DevTools.Network.InterceptionStage? InterceptionStage /// Information about a signed exchange signature. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1 /// - public class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Signed exchange signature label. @@ -12456,7 +12716,7 @@ public string[] Certificates /// Information about a signed exchange header. /// https://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation /// - public class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Signed exchange request URL. @@ -12553,7 +12813,7 @@ public enum SignedExchangeErrorField /// /// Information about a signed exchange response. /// - public class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. @@ -12590,7 +12850,7 @@ public CefSharp.DevTools.Network.SignedExchangeErrorField? ErrorField /// /// Information about a signed exchange response. /// - public class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The outer response of signed HTTP exchange which was received from network. @@ -12718,7 +12978,7 @@ public enum IPAddressSpace /// /// ConnectTiming /// - public class ConnectTiming : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ConnectTiming : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in @@ -12736,7 +12996,7 @@ public double RequestTime /// /// ClientSecurityState /// - public class ClientSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ClientSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// InitiatorIsSecureContext @@ -12793,13 +13053,18 @@ public enum CrossOriginOpenerPolicyValue /// SameOriginPlusCoep /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOriginPlusCoep")] - SameOriginPlusCoep + SameOriginPlusCoep, + /// + /// SameOriginAllowPopupsPlusCoep + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOriginAllowPopupsPlusCoep")] + SameOriginAllowPopupsPlusCoep } /// /// CrossOriginOpenerPolicyStatus /// - public class CrossOriginOpenerPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CrossOriginOpenerPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value @@ -12867,7 +13132,7 @@ public enum CrossOriginEmbedderPolicyValue /// /// CrossOriginEmbedderPolicyStatus /// - public class CrossOriginEmbedderPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CrossOriginEmbedderPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Value @@ -12913,7 +13178,7 @@ public string ReportOnlyReportingEndpoint /// /// SecurityIsolationStatus /// - public class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Coop @@ -12966,7 +13231,7 @@ public enum ReportStatus /// /// An object representing a report generated by the Reporting API. /// - public class ReportingApiReport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ReportingApiReport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id @@ -13067,7 +13332,7 @@ public CefSharp.DevTools.Network.ReportStatus Status /// /// ReportingApiEndpoint /// - public class ReportingApiEndpoint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ReportingApiEndpoint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The URL of the endpoint to which reports may be delivered. @@ -13095,7 +13360,7 @@ public string GroupName /// /// An object providing the result of a network resource load. /// - public class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Success @@ -13162,7 +13427,7 @@ public CefSharp.DevTools.Network.Headers Headers /// An options object that may be extended later to better support CORS, /// CORB and streaming. /// - public class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// DisableCache @@ -14829,7 +15094,7 @@ namespace CefSharp.DevTools.Overlay /// /// Configuration data for drawing the source order of an elements children. /// - public class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// the color to outline the givent element in. @@ -14857,7 +15122,7 @@ public CefSharp.DevTools.DOM.RGBA ChildOutlineColor /// /// Configuration data for the highlighting of Grid elements. /// - public class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Whether the extension lines from grid cells to the rulers should be shown (default: false). @@ -15063,7 +15328,7 @@ public CefSharp.DevTools.DOM.RGBA GridBackgroundColor /// /// Configuration data for the highlighting of Flex container elements. /// - public class FlexContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FlexContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the container border @@ -15149,7 +15414,7 @@ public CefSharp.DevTools.Overlay.LineStyle CrossAlignment /// /// Configuration data for the highlighting of Flex item elements. /// - public class FlexItemHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FlexItemHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Style of the box representing the item's base size @@ -15202,7 +15467,7 @@ public enum LineStylePattern /// /// Style information for drawing a line. /// - public class LineStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LineStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The color of the line (default: transparent) @@ -15228,7 +15493,7 @@ public CefSharp.DevTools.Overlay.LineStylePattern? Pattern /// /// Style information for drawing a box. /// - public class BoxStyle : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BoxStyle : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The background color for the box (default: transparent) @@ -15276,7 +15541,7 @@ public enum ContrastAlgorithm /// /// Configuration data for the highlighting of page elements. /// - public class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Whether the node info tooltip should be shown (default: false). @@ -15485,6 +15750,11 @@ public enum ColorFormat [System.Text.Json.Serialization.JsonPropertyNameAttribute("hsl")] Hsl, /// + /// hwb + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hwb")] + Hwb, + /// /// hex /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("hex")] @@ -15494,7 +15764,7 @@ public enum ColorFormat /// /// Configurations for Persistent Grid Highlight /// - public class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance. @@ -15521,7 +15791,7 @@ public int NodeId /// /// FlexNodeHighlightConfig /// - public class FlexNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FlexNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of flex containers. @@ -15548,7 +15818,7 @@ public int NodeId /// /// ScrollSnapContainerHighlightConfig /// - public class ScrollSnapContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScrollSnapContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the snapport border (default: transparent) @@ -15594,7 +15864,7 @@ public CefSharp.DevTools.DOM.RGBA ScrollPaddingColor /// /// ScrollSnapHighlightConfig /// - public class ScrollSnapHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScrollSnapHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of scroll snap containers. @@ -15621,7 +15891,7 @@ public int NodeId /// /// Configuration for dual screen hinge /// - public class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A rectangle represent hinge @@ -15658,7 +15928,7 @@ public CefSharp.DevTools.DOM.RGBA OutlineColor /// /// ContainerQueryHighlightConfig /// - public class ContainerQueryHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContainerQueryHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of container query containers. @@ -15685,7 +15955,7 @@ public int NodeId /// /// ContainerQueryContainerHighlightConfig /// - public class ContainerQueryContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContainerQueryContainerHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The style of the container border. @@ -15711,7 +15981,7 @@ public CefSharp.DevTools.Overlay.LineStyle DescendantBorder /// /// IsolatedElementHighlightConfig /// - public class IsolatedElementHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class IsolatedElementHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// A descriptor for the highlight appearance of an element in isolation mode. @@ -15738,7 +16008,7 @@ public int NodeId /// /// IsolationModeHighlightConfig /// - public class IsolationModeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class IsolationModeHighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The fill color of the resizers (default: transparent). @@ -15906,7 +16176,7 @@ public enum AdFrameExplanation /// /// Indicates whether a frame has been identified as an ad and why. /// - public class AdFrameStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AdFrameStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// AdFrameType @@ -16032,6 +16302,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoplay")] Autoplay, /// + /// browsing-topics + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("browsing-topics")] + BrowsingTopics, + /// /// camera /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("camera")] @@ -16097,6 +16372,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-mobile")] ChUaMobile, /// + /// ch-ua-full + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-full")] + ChUaFull, + /// /// ch-ua-full-version /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-full-version")] @@ -16117,6 +16397,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-reduced")] ChUaReduced, /// + /// ch-ua-wow64 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-wow64")] + ChUaWow64, + /// /// ch-viewport-height /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-viewport-height")] @@ -16132,6 +16417,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-width")] ChWidth, /// + /// ch-partitioned-cookies + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-partitioned-cookies")] + ChPartitionedCookies, + /// /// clipboard-read /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboard-read")] @@ -16353,7 +16643,7 @@ public enum PermissionsPolicyBlockReason /// /// PermissionsPolicyBlockLocator /// - public class PermissionsPolicyBlockLocator : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PermissionsPolicyBlockLocator : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// FrameId @@ -16380,7 +16670,7 @@ public CefSharp.DevTools.Page.PermissionsPolicyBlockReason BlockReason /// /// PermissionsPolicyFeatureState /// - public class PermissionsPolicyFeatureState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PermissionsPolicyFeatureState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Feature @@ -16528,7 +16818,7 @@ public enum OriginTrialUsageRestriction /// /// OriginTrialToken /// - public class OriginTrialToken : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class OriginTrialToken : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Origin @@ -16596,7 +16886,7 @@ public CefSharp.DevTools.Page.OriginTrialUsageRestriction UsageRestriction /// /// OriginTrialTokenWithStatus /// - public class OriginTrialTokenWithStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class OriginTrialTokenWithStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RawTokenText @@ -16634,7 +16924,7 @@ public CefSharp.DevTools.Page.OriginTrialTokenStatus Status /// /// OriginTrial /// - public class OriginTrial : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class OriginTrial : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TrialName @@ -16672,7 +16962,7 @@ public System.Collections.Generic.IList /// Information about the Frame on the page. /// - public class Frame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Frame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame unique identifier. @@ -16827,7 +17117,7 @@ public CefSharp.DevTools.Page.GatedAPIFeatures[] GatedAPIFeatures /// /// Information about the Resource on the page. /// - public class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Resource URL. @@ -16905,7 +17195,7 @@ public bool? Canceled /// /// Information about the Frame hierarchy along with their cached resources. /// - public class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame information for this tree item. @@ -16943,7 +17233,7 @@ public System.Collections.Generic.IList Re /// /// Information about the Frame hierarchy. /// - public class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Frame information for this tree item. @@ -17042,7 +17332,7 @@ public enum TransitionType /// /// Navigation history entry. /// - public class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the navigation history entry. @@ -17101,7 +17391,7 @@ public CefSharp.DevTools.Page.TransitionType TransitionType /// /// Screencast frame metadata. /// - public class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Top offset in DIP. @@ -17204,7 +17494,7 @@ public enum DialogType /// /// Error while paring app manifest. /// - public class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Error message. @@ -17251,7 +17541,7 @@ public int Column /// /// Parsed app manifest properties. /// - public class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Computed scope value @@ -17268,7 +17558,7 @@ public string Scope /// /// Layout viewport position and dimensions. /// - public class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Horizontal offset relative to the document (CSS pixels). @@ -17314,7 +17604,7 @@ public int ClientHeight /// /// Visual viewport position, dimensions, and scale. /// - public class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Horizontal offset relative to the layout viewport (CSS pixels). @@ -17400,7 +17690,7 @@ public double? Zoom /// /// Viewport for capturing screenshot. /// - public class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// X offset in device independent pixels (dip). @@ -17456,7 +17746,7 @@ public double Scale /// /// Generic font families collection. /// - public class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The standard font-family. @@ -17532,7 +17822,7 @@ public string Pictograph /// /// Font families collection for a script. /// - public class ScriptFontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptFontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of the script which these font families are defined for. @@ -17560,7 +17850,7 @@ public CefSharp.DevTools.Page.FontFamilies FontFamilies /// /// Default font sizes. /// - public class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Default standard font size. @@ -17660,7 +17950,7 @@ public enum ClientNavigationDisposition /// /// InstallabilityErrorArgument /// - public class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). @@ -17688,7 +17978,7 @@ public string Value /// /// The installability error /// - public class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The error id (e.g. 'manifest-missing-suitable-icon'). @@ -17763,7 +18053,7 @@ public enum ReferrerPolicy /// /// Per-script compilation cache parameters for `Page.produceCompilationCache` /// - public class CompilationCacheParams : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CompilationCacheParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The URL of the script to produce a compilation cache entry for. @@ -17811,10 +18101,10 @@ public enum NavigationType public enum BackForwardCacheNotRestoredReason { /// - /// NotMainFrame + /// NotPrimaryMainFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotMainFrame")] - NotMainFrame, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotPrimaryMainFrame")] + NotPrimaryMainFrame, /// /// BackForwardCacheDisabled /// @@ -18076,6 +18366,11 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationNavigationsDisallowedForBug1234857")] ActivationNavigationsDisallowedForBug1234857, /// + /// ErrorDocument + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ErrorDocument")] + ErrorDocument, + /// /// WebSocket /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebSocket")] @@ -18452,7 +18747,7 @@ public enum BackForwardCacheNotRestoredReasonType /// /// BackForwardCacheNotRestoredExplanation /// - public class BackForwardCacheNotRestoredExplanation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackForwardCacheNotRestoredExplanation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of the reason @@ -18473,12 +18768,24 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReason Reason get; set; } + + /// + /// Context associated with the reason. The meaning of this context is + /// dependent on the reason: + /// - EmbedderExtensionSentMessageToCachedFrame: the extension ID. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("context")] + public string Context + { + get; + set; + } } /// /// BackForwardCacheNotRestoredExplanationTree /// - public class BackForwardCacheNotRestoredExplanationTree : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BackForwardCacheNotRestoredExplanationTree : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// URL of each frame @@ -19412,7 +19719,7 @@ namespace CefSharp.DevTools.Performance /// /// Run-time execution metric. /// - public class Metric : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Metric : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Metric name. @@ -19472,7 +19779,7 @@ namespace CefSharp.DevTools.PerformanceTimeline /// /// See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl /// - public class LargestContentfulPaint : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LargestContentfulPaint : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RenderTime @@ -19538,7 +19845,7 @@ public int? NodeId /// /// LayoutShiftAttribution /// - public class LayoutShiftAttribution : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutShiftAttribution : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PreviousRect @@ -19576,7 +19883,7 @@ public int? NodeId /// /// See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl /// - public class LayoutShift : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LayoutShift : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Score increment produced by this event. @@ -19623,7 +19930,7 @@ public System.Collections.Generic.IList /// TimelineEvent /// - public class TimelineEvent : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TimelineEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Identifies the frame that this event is related to. Empty for non-frame targets. @@ -19784,7 +20091,7 @@ public enum SecurityState /// /// Details about the security state of the page certificate. /// - public class CertificateSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CertificateSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). @@ -19993,7 +20300,7 @@ public enum SafetyTipStatus /// /// SafetyTipInfo /// - public class SafetyTipInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SafetyTipInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Describes whether the page triggers any safety tips or reputation warnings. Default is unknown. @@ -20019,7 +20326,7 @@ public string SafeUrl /// /// Security state information about the page. /// - public class VisibleSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VisibleSecurityState : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The security level of the page. @@ -20066,7 +20373,7 @@ public string[] SecurityStateIssueIds /// /// An explanation of an factor contributing to the security state. /// - public class SecurityStateExplanation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SecurityStateExplanation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Security state representing the severity of the factor being explained. @@ -20146,7 +20453,7 @@ public string[] Recommendations /// /// Information about insecure content on the page. /// - public class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Always false. @@ -20369,7 +20676,7 @@ namespace CefSharp.DevTools.ServiceWorker /// /// ServiceWorker registration. /// - public class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RegistrationId @@ -20471,7 +20778,7 @@ public enum ServiceWorkerVersionStatus /// /// ServiceWorker version. /// - public class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// VersionId @@ -20571,7 +20878,7 @@ public string TargetId /// /// ServiceWorker error message. /// - public class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ErrorMessage @@ -20765,7 +21072,7 @@ public enum StorageType /// /// Usage for a storage type. /// - public class UsageForType : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class UsageForType : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of storage type. @@ -20792,7 +21099,7 @@ public double Usage /// Pair of issuer origin and number of available (signed, but not used) Trust /// Tokens from that issuer. /// - public class TrustTokens : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TrustTokens : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// IssuerOrigin @@ -20851,7 +21158,7 @@ public enum InterestGroupAccessType /// /// Ad advertising element inside an interest group. /// - public class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// RenderUrl @@ -20878,7 +21185,7 @@ public string Metadata /// /// The full details of an interest group. /// - public class InterestGroupDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InterestGroupDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// OwnerOrigin @@ -21120,6 +21427,17 @@ public string Origin /// public class InterestGroupAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { + /// + /// AccessTime + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("accessTime")] + public double AccessTime + { + get; + private set; + } + /// /// Type /// @@ -21162,7 +21480,7 @@ namespace CefSharp.DevTools.SystemInfo /// /// Describes a single graphics processor (GPU). /// - public class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// PCI ID of the GPU vendor, if available; 0 otherwise. @@ -21252,7 +21570,7 @@ public string DriverVersion /// /// Describes the width and height dimensions of an entity. /// - public class Size : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Size : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Width in pixels. @@ -21279,7 +21597,7 @@ public int Height /// Describes a supported video decoding profile with its associated minimum and /// maximum resolutions. /// - public class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Video codec profile that is supported, e.g. VP9 Profile 2. @@ -21319,7 +21637,7 @@ public CefSharp.DevTools.SystemInfo.Size MinResolution /// Describes a supported video encoding profile with its associated maximum /// resolution and maximum framerate. /// - public class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Video codec profile that is supported, e.g H264 Main. @@ -21414,7 +21732,7 @@ public enum ImageType /// Describes a supported image decoding profile with its associated minimum and /// maximum resolutions and subsampling. /// - public class ImageDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ImageDecodeAcceleratorCapability : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Image coded, e.g. Jpeg. @@ -21462,7 +21780,7 @@ public CefSharp.DevTools.SystemInfo.SubsamplingFormat[] Subsamplings /// /// Provides information about the GPU(s) on the system. /// - public class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The graphics devices on the system. Element 0 is the primary GPU. @@ -21543,7 +21861,7 @@ public System.Collections.Generic.IList /// Represents process info. /// - public class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Specifies process type. @@ -21584,7 +21902,7 @@ namespace CefSharp.DevTools.Target /// /// TargetInfo /// - public class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// TargetId @@ -21684,7 +22002,7 @@ public string BrowserContextId /// /// RemoteLocation /// - public class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Host @@ -21982,7 +22300,7 @@ public enum TraceConfigRecordMode /// /// TraceConfig /// - public class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Controls how the trace buffer stores data. @@ -22287,7 +22605,7 @@ public enum RequestStage /// /// RequestPattern /// - public class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is @@ -22324,7 +22642,7 @@ public CefSharp.DevTools.Fetch.RequestStage? RequestStage /// /// Response HTTP header entry /// - public class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -22369,7 +22687,7 @@ public enum AuthChallengeSource /// /// Authorization challenge for HTTP status code 401 or 407. /// - public class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source of the authentication challenge. @@ -22442,7 +22760,7 @@ public enum AuthChallengeResponseResponse /// /// Response to an AuthChallenge. /// - public class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The decision on what to do in response to the authorization challenge. Default means @@ -22762,7 +23080,7 @@ public enum AutomationRate /// /// Fields in AudioContext that change in real-time. /// - public class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The current context time in second in BaseAudioContext. @@ -22810,7 +23128,7 @@ public double CallbackIntervalVariance /// /// Protocol object for BaseAudioContext /// - public class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ContextId @@ -22887,7 +23205,7 @@ public double SampleRate /// /// Protocol object for AudioListener /// - public class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ListenerId @@ -22915,7 +23233,7 @@ public string ContextId /// /// Protocol object for AudioNode /// - public class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// NodeId @@ -23004,7 +23322,7 @@ public CefSharp.DevTools.WebAudio.ChannelInterpretation ChannelInterpretation /// /// Protocol object for AudioParam /// - public class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ParamId @@ -23607,7 +23925,7 @@ public enum AuthenticatorTransport /// /// VirtualAuthenticatorOptions /// - public class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol @@ -23721,7 +24039,7 @@ public bool? IsUserVerified /// /// Credential /// - public class Credential : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Credential : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// CredentialId @@ -23843,7 +24161,7 @@ public enum PlayerMessageLevel /// Have one type per entry in MediaLogRecord::Type /// Corresponds to kMessage /// - public class PlayerMessage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerMessage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Keep in sync with MediaLogMessageLevel @@ -23878,7 +24196,7 @@ public string Message /// /// Corresponds to kMediaPropertyChange /// - public class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name @@ -23906,7 +24224,7 @@ public string Value /// /// Corresponds to kMediaEventTriggered /// - public class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Timestamp @@ -23950,7 +24268,7 @@ public enum PlayerErrorType /// /// Corresponds to kMediaError /// - public class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type @@ -24126,7 +24444,7 @@ namespace CefSharp.DevTools.Debugger /// /// Location in the source code. /// - public class Location : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Location : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Script identifier as reported in the `Debugger.scriptParsed`. @@ -24163,7 +24481,7 @@ public int? ColumnNumber /// /// Location in the source code. /// - public class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// LineNumber @@ -24189,7 +24507,7 @@ public int ColumnNumber /// /// Location range within one script. /// - public class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// ScriptId @@ -24228,7 +24546,7 @@ public CefSharp.DevTools.Debugger.ScriptPosition End /// /// JavaScript call frame. Array of call frames form the call stack. /// - public class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Call frame identifier. This identifier is only valid while the virtual machine is paused. @@ -24379,7 +24697,7 @@ public enum ScopeType /// /// Scope description. /// - public class Scope : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Scope : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Scope type. @@ -24438,7 +24756,7 @@ public CefSharp.DevTools.Debugger.Location EndLocation /// /// Search match for resource. /// - public class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Line number in resource content. @@ -24487,7 +24805,7 @@ public enum BreakLocationType /// /// BreakLocation /// - public class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Script identifier as reported in the `Debugger.scriptParsed`. @@ -24578,7 +24896,7 @@ public enum DebugSymbolsType /// /// Debug symbols available for a wasm script. /// - public class DebugSymbols : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DebugSymbols : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type of the debug symbols. @@ -25203,7 +25521,7 @@ namespace CefSharp.DevTools.HeapProfiler /// /// Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. /// - public class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Function location. @@ -25251,7 +25569,7 @@ public System.Collections.Generic.IList /// A single sample from a sampling profile. /// - public class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Allocation size in bytes attributed to the sample. @@ -25288,7 +25606,7 @@ public double Ordinal /// /// Sampling profile. /// - public class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Head @@ -25425,7 +25743,7 @@ namespace CefSharp.DevTools.Profiler /// /// Profile node. Holds callsite information, execution statistics and child nodes. /// - public class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the node. @@ -25493,7 +25811,7 @@ public System.Collections.Generic.IList /// Profile. /// - public class Profile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class Profile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The list of profile nodes. First item is the root node. @@ -25551,7 +25869,7 @@ public int[] TimeDeltas /// /// Specifies a number of samples attributed to a certain source position. /// - public class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source line number (1-based). @@ -25577,7 +25895,7 @@ public int Ticks /// /// Coverage data for a source range. /// - public class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script source offset for the range start. @@ -25613,7 +25931,7 @@ public int Count /// /// Coverage data for a JavaScript function. /// - public class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript function name. @@ -25651,7 +25969,7 @@ public bool IsBlockCoverage /// /// Coverage data for a JavaScript script. /// - public class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script id. @@ -25690,7 +26008,7 @@ public System.Collections.Generic.IList /// Describes a type collected during runtime. /// - public class TypeObject : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TypeObject : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Name of a type collected with type profiling. @@ -25707,7 +26025,7 @@ public string Name /// /// Source offset and types for a parameter or return value. /// - public class TypeProfileEntry : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class TypeProfileEntry : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Source offset of the parameter or end of function for return values. @@ -25734,7 +26052,7 @@ public System.Collections.Generic.IList T /// /// Type profile data collected during runtime for a JavaScript script. /// - public class ScriptTypeProfile : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ScriptTypeProfile : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript script id. @@ -26065,7 +26383,7 @@ public enum RemoteObjectSubtype /// /// Mirror object referencing original JavaScript object. /// - public class RemoteObject : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class RemoteObject : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object type. @@ -26164,7 +26482,7 @@ public CefSharp.DevTools.Runtime.CustomPreview CustomPreview /// /// CustomPreview /// - public class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// The JSON-stringified result of formatter.header(object, config) call. @@ -26343,7 +26661,7 @@ public enum ObjectPreviewSubtype /// /// Object containing abbreviated remote object value. /// - public class ObjectPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ObjectPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Object type. @@ -26564,7 +26882,7 @@ public enum PropertyPreviewSubtype /// /// PropertyPreview /// - public class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Property name. @@ -26621,7 +26939,7 @@ public CefSharp.DevTools.Runtime.PropertyPreviewSubtype? Subtype /// /// EntryPreview /// - public class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Preview of the key. Specified for map-like collection entries. @@ -26648,7 +26966,7 @@ public CefSharp.DevTools.Runtime.ObjectPreview Value /// /// Object property descriptor. /// - public class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Property name or symbol description. @@ -26759,7 +27077,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Symbol /// /// Object internal property descriptor. This property isn't normally visible in JavaScript code. /// - public class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Conventional property name. @@ -26786,7 +27104,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Value /// /// Object private field descriptor. /// - public class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Private property name. @@ -26836,7 +27154,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Set /// Represents function call argument. Either remote object id `objectId`, primitive `value`, /// unserializable primitive value or neither of (for undefined) them should be specified. /// - public class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Primitive value or serializable javascript object. @@ -26872,7 +27190,7 @@ public string ObjectId /// /// Description of an isolated world. /// - public class ExecutionContextDescription : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ExecutionContextDescription : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Unique id of the execution context. It can be used to specify in which execution context @@ -26935,7 +27253,7 @@ public object AuxData /// Detailed information about exception (or error) that was thrown during script compilation or /// execution. /// - public class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Exception id. @@ -27044,7 +27362,7 @@ public object ExceptionMetaData /// /// Stack entry for runtime errors and assertions. /// - public class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// JavaScript function name. @@ -27103,7 +27421,7 @@ public int ColumnNumber /// /// Call frames for assertions or error messages. /// - public class StackTrace : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StackTrace : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// String label of this stack trace. For async traces this may be a name of the function that @@ -27152,7 +27470,7 @@ public CefSharp.DevTools.Runtime.StackTraceId ParentId /// If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This /// allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages. /// - public class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Id @@ -27756,28 +28074,22 @@ public System.Threading.Tasks.Task GetPartialAXTreeAsy return _client.ExecuteDevToolsMethodAsync("Accessibility.getPartialAXTree", dict); } - partial void ValidateGetFullAXTree(int? depth = null, int? max_depth = null, string frameId = null); + partial void ValidateGetFullAXTree(int? depth = null, string frameId = null); /// /// Fetches the entire accessibility tree for the root Document /// /// The maximum depth at which descendants of the root node should be retrieved.If omitted, the full tree is returned. - /// Deprecated. This parameter has been renamed to `depth`. If depth is not provided, max_depth will be used. /// The frame for whose document the AX tree should be retrieved.If omited, the root frame is used. /// returns System.Threading.Tasks.Task<GetFullAXTreeResponse> - public System.Threading.Tasks.Task GetFullAXTreeAsync(int? depth = null, int? max_depth = null, string frameId = null) + public System.Threading.Tasks.Task GetFullAXTreeAsync(int? depth = null, string frameId = null) { - ValidateGetFullAXTree(depth, max_depth, frameId); + ValidateGetFullAXTree(depth, frameId); var dict = new System.Collections.Generic.Dictionary(); if (depth.HasValue) { dict.Add("depth", depth.Value); } - if (max_depth.HasValue) - { - dict.Add("max_depth", max_depth.Value); - } - if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); @@ -29229,6 +29541,17 @@ public System.Collections.Generic.IList + /// inheritedPseudoElements + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("inheritedPseudoElements")] + public System.Collections.Generic.IList InheritedPseudoElements + { + get; + private set; + } + /// /// cssKeyframesRules /// @@ -29302,6 +29625,26 @@ public string Text } } +namespace CefSharp.DevTools.CSS +{ + /// + /// GetLayersForNodeResponse + /// + public class GetLayersForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// rootLayer + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("rootLayer")] + public CefSharp.DevTools.CSS.CSSLayerData RootLayer + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -29382,6 +29725,26 @@ public CefSharp.DevTools.CSS.CSSContainerQuery ContainerQuery } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetSupportsTextResponse + /// + public class SetSupportsTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// supports + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("supports")] + public CefSharp.DevTools.CSS.CSSSupports Supports + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -29780,6 +30143,23 @@ public System.Threading.Tasks.Task GetStyleSheetTextA return _client.ExecuteDevToolsMethodAsync("CSS.getStyleSheetText", dict); } + partial void ValidateGetLayersForNode(int nodeId); + /// + /// Returns all layers parsed by the rendering engine for the tree scope of a node. + /// Given a DOM element identified by nodeId, getLayersForNode returns the root + /// layer for the nearest ancestor document or shadow root. The layer root contains + /// the full layer tree for the tree scope and their ordering. + /// + /// nodeId + /// returns System.Threading.Tasks.Task<GetLayersForNodeResponse> + public System.Threading.Tasks.Task GetLayersForNodeAsync(int nodeId) + { + ValidateGetLayersForNode(nodeId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("nodeId", nodeId); + return _client.ExecuteDevToolsMethodAsync("CSS.getLayersForNode", dict); + } + partial void ValidateTrackComputedStyleUpdates(System.Collections.Generic.IList propertiesToTrack); /// /// Starts tracking the given computed styles for updates. The specified array of properties @@ -29882,6 +30262,24 @@ public System.Threading.Tasks.Task SetContainerQu return _client.ExecuteDevToolsMethodAsync("CSS.setContainerQueryText", dict); } + partial void ValidateSetSupportsText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); + /// + /// Modifies the expression of a supports at-rule. + /// + /// styleSheetId + /// range + /// text + /// returns System.Threading.Tasks.Task<SetSupportsTextResponse> + public System.Threading.Tasks.Task SetSupportsTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) + { + ValidateSetSupportsText(styleSheetId, range, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("text", text); + return _client.ExecuteDevToolsMethodAsync("CSS.setSupportsText", dict); + } + partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); /// /// Modifies the rule selector. @@ -30877,6 +31275,23 @@ namespace CefSharp.DevTools.DOM { using System.Linq; + /// + /// Whether to include whitespaces in the children array of returned Nodes. + /// + public enum EnableIncludeWhitespace + { + /// + /// none + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + None, + /// + /// all + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("all")] + All + } + /// /// This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object /// that has an `id`. This `id` can be used to get additional information on the Node, resolve it into @@ -31266,13 +31681,21 @@ public System.Threading.Tasks.Task DiscardSearchResultsA return _client.ExecuteDevToolsMethodAsync("DOM.discardSearchResults", dict); } + partial void ValidateEnable(CefSharp.DevTools.DOM.EnableIncludeWhitespace? includeWhitespace = null); /// /// Enables DOM agent for the given page. /// + /// Whether to include whitespaces in the children array of returned Nodes. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync() + public System.Threading.Tasks.Task EnableAsync(CefSharp.DevTools.DOM.EnableIncludeWhitespace? includeWhitespace = null) { - System.Collections.Generic.Dictionary dict = null; + ValidateEnable(includeWhitespace); + var dict = new System.Collections.Generic.Dictionary(); + if (includeWhitespace.HasValue) + { + dict.Add("includeWhitespace", EnumToString(includeWhitespace)); + } + return _client.ExecuteDevToolsMethodAsync("DOM.enable", dict); } @@ -33285,7 +33708,7 @@ public System.Threading.Tasks.Task SetTouchEmulationEnab return _client.ExecuteDevToolsMethodAsync("Emulation.setTouchEmulationEnabled", dict); } - partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, double? initialVirtualTime = null); + partial void ValidateSetVirtualTimePolicy(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, double? initialVirtualTime = null); /// /// Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets /// the current virtual time policy. Note this supersedes any previous time budget. @@ -33293,12 +33716,11 @@ public System.Threading.Tasks.Task SetTouchEmulationEnab /// policy /// If set, after this many virtual milliseconds have elapsed virtual time will be paused and avirtualTimeBudgetExpired event is sent. /// If set this specifies the maximum number of tasks that can be run before virtual is forcedforwards to prevent deadlock. - /// If set the virtual time policy change should be deferred until any frame starts navigating.Note any previous deferred policy change is superseded. /// If set, base::Time::Now will be overridden to initially return this value. /// returns System.Threading.Tasks.Task<SetVirtualTimePolicyResponse> - public System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, bool? waitForNavigation = null, double? initialVirtualTime = null) + public System.Threading.Tasks.Task SetVirtualTimePolicyAsync(CefSharp.DevTools.Emulation.VirtualTimePolicy policy, double? budget = null, int? maxVirtualTimeTaskStarvationCount = null, double? initialVirtualTime = null) { - ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, waitForNavigation, initialVirtualTime); + ValidateSetVirtualTimePolicy(policy, budget, maxVirtualTimeTaskStarvationCount, initialVirtualTime); var dict = new System.Collections.Generic.Dictionary(); dict.Add("policy", EnumToString(policy)); if (budget.HasValue) @@ -33311,11 +33733,6 @@ public System.Threading.Tasks.Task SetVirtualTimeP dict.Add("maxVirtualTimeTaskStarvationCount", maxVirtualTimeTaskStarvationCount.Value); } - if (waitForNavigation.HasValue) - { - dict.Add("waitForNavigation", waitForNavigation.Value); - } - if (initialVirtualTime.HasValue) { dict.Add("initialVirtualTime", initialVirtualTime.Value); @@ -33401,6 +33818,20 @@ public System.Threading.Tasks.Task SetUserAgentOverrideA return _client.ExecuteDevToolsMethodAsync("Emulation.setUserAgentOverride", dict); } + + partial void ValidateSetAutomationOverride(bool enabled); + /// + /// Allows overriding the automation flag. + /// + /// Whether the override should be enabled. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAutomationOverrideAsync(bool enabled) + { + ValidateSetAutomationOverride(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + return _client.ExecuteDevToolsMethodAsync("Emulation.setAutomationOverride", dict); + } } } @@ -34160,7 +34591,7 @@ public System.Threading.Tasks.Task DispatchDragEventAsyn /// Whether the event was generated from the keypad (default: false). /// Whether the event was a system key event (default: false). /// Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:0). - /// Editing commands to send with the key event (e.g., 'selectAll') (default: []).These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. + /// Editing commands to send with the key event (e.g., 'selectAll') (default: []).These are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.See https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task DispatchKeyEventAsync(CefSharp.DevTools.Input.DispatchKeyEventType type, int? modifiers = null, double? timestamp = null, string text = null, string unmodifiedText = null, string keyIdentifier = null, string code = null, string key = null, int? windowsVirtualKeyCode = null, int? nativeVirtualKeyCode = null, bool? autoRepeat = null, bool? isKeypad = null, bool? isSystemKey = null, int? location = null, string[] commands = null) { From ed217aba591974ef7f7f6e6770442a5709cdb2a5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 3 May 2022 11:48:52 +1000 Subject: [PATCH 005/543] DevTools Client - Viewport default Scale to 1.0 --- CefSharp.WinForms.Example/BrowserForm.cs | 1 - CefSharp/DevTools/DevToolsClient.Partial.cs | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 CefSharp/DevTools/DevToolsClient.Partial.cs diff --git a/CefSharp.WinForms.Example/BrowserForm.cs b/CefSharp.WinForms.Example/BrowserForm.cs index 7798e77e4..3942a7ed0 100644 --- a/CefSharp.WinForms.Example/BrowserForm.cs +++ b/CefSharp.WinForms.Example/BrowserForm.cs @@ -669,7 +669,6 @@ private async void TakeScreenShotMenuItemClick(object sender, EventArgs e) { Width = contentSize.Width, Height = contentSize.Height, - Scale = 1.0 }; var data = await chromiumWebBrowser.CaptureScreenshotAsync(viewPort: viewPort, captureBeyondViewport: true); diff --git a/CefSharp/DevTools/DevToolsClient.Partial.cs b/CefSharp/DevTools/DevToolsClient.Partial.cs new file mode 100644 index 000000000..2f0de8374 --- /dev/null +++ b/CefSharp/DevTools/DevToolsClient.Partial.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CefSharp.DevTools.Page +{ + public partial class Viewport + { + /// + /// Default Constructor + /// + public Viewport() + { + Scale = 1.0; + } + } +} From df8a6086a6bbb79280916c955015a1b58a421ddc Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 4 May 2022 10:36:51 +1000 Subject: [PATCH 006/543] WPF Example - Add JsDialogHandler that uses custom WPF implementation --- .../Handlers/JsDialogHandler.cs | 40 +++++++++++++++ CefSharp.Wpf.Example/PromptDialog.xaml | 21 ++++++++ CefSharp.Wpf.Example/PromptDialog.xaml.cs | 50 +++++++++++++++++++ .../Views/BrowserTabView.xaml.cs | 1 + 4 files changed, 112 insertions(+) create mode 100644 CefSharp.Wpf.Example/Handlers/JsDialogHandler.cs create mode 100644 CefSharp.Wpf.Example/PromptDialog.xaml create mode 100644 CefSharp.Wpf.Example/PromptDialog.xaml.cs diff --git a/CefSharp.Wpf.Example/Handlers/JsDialogHandler.cs b/CefSharp.Wpf.Example/Handlers/JsDialogHandler.cs new file mode 100644 index 000000000..bffacb587 --- /dev/null +++ b/CefSharp.Wpf.Example/Handlers/JsDialogHandler.cs @@ -0,0 +1,40 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Windows; + +namespace CefSharp.Wpf.Example.Handlers +{ + public class JsDialogHandler : CefSharp.Handler.JsDialogHandler + { + protected override bool OnJSDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage) + { + var b = (ChromiumWebBrowser)chromiumWebBrowser; + + b.Dispatcher.InvokeAsync(() => + { + if (dialogType == CefJsDialogType.Confirm) + { + var messageBoxResult = MessageBox.Show(messageText, $"A page at {originUrl} says:", MessageBoxButton.YesNo); + + callback.Continue(messageBoxResult == MessageBoxResult.Yes); + } + else if(dialogType == CefJsDialogType.Alert) + { + var messageBoxResult = MessageBox.Show(messageText, $"A page at {originUrl} says:", MessageBoxButton.OK); + + callback.Continue(messageBoxResult == MessageBoxResult.OK); + } + else if (dialogType == CefJsDialogType.Prompt) + { + var messageBoxResult = PromptDialog.Prompt(messageText, $"A page at {originUrl} says:", defaultPromptText); + + callback.Continue(messageBoxResult.Item1, userInput: messageBoxResult.Item2); + } + }); + + return true; + } + } +} diff --git a/CefSharp.Wpf.Example/PromptDialog.xaml b/CefSharp.Wpf.Example/PromptDialog.xaml new file mode 100644 index 000000000..4992b3495 --- /dev/null +++ b/CefSharp.Wpf.Example/PromptDialog.xaml @@ -0,0 +1,21 @@ + + + + + + QuicGoawayRequestCanBeRetried = -381, + /// + /// The ACCEPT_CH restart has been triggered too many times + /// + TooManyAcceptChRestarts = -382, + /// /// The cache does not have the requested entry. /// From 5c61ea41911e56b89267bad5af6a24299f5f27da Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 09:28:22 +1000 Subject: [PATCH 009/543] Core - Update TransitionType (101.0.4951.54) https://github.com/chromiumembedded/cef/commit/b524edc2099315987a29d8664752e4c3dc62825d#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26b --- CefSharp/Enums/TransitionType.cs | 56 ++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/CefSharp/Enums/TransitionType.cs b/CefSharp/Enums/TransitionType.cs index 5bac2fde2..7e56a6204 100644 --- a/CefSharp/Enums/TransitionType.cs +++ b/CefSharp/Enums/TransitionType.cs @@ -24,6 +24,12 @@ public enum TransitionType : uint /// Explicit = 1, + /// + /// User got to this page through a suggestion in the UI (for example, via the + /// destinations page). Chrome runtime only. + /// + AutoBookmark = 2, + /// /// Source is a subframe navigation. This is any content that is automatically /// loaded in a non-toplevel frame. For example, if a page consists of several @@ -42,6 +48,25 @@ public enum TransitionType : uint /// ManualSubFrame = 4, + /// + /// User got to this page by typing in the URL bar and selecting an entry + /// that did not look like a URL. For example, a match might have the URL + /// of a Google search result page, but appear like "Search Google for ...". + /// These are not quite the same as EXPLICIT navigations because the user + /// didn't type or see the destination URL. Chrome runtime only. + /// See also TT_KEYWORD. + /// + Generated = 5, + + /// + /// This is a toplevel navigation. This is any content that is automatically + /// loaded in a toplevel frame. For example, opening a tab to show the ASH + /// screen saver, opening the devtools window, opening the NTP after the safe + /// browsing warning, opening web-based dialog boxes are examples of + /// AUTO_TOPLEVEL navigations. Chrome runtime only. + /// + AutoToplevel = 6, + /// /// Source is a form submission by the user. NOTE: In some situations /// submitting a form does not result in this transition type. This can happen @@ -56,6 +81,25 @@ public enum TransitionType : uint /// Reload = 8, + /// + /// The url was generated from a replaceable keyword other than the default + /// search provider. If the user types a keyword (which also applies to + /// tab-to-search) in the omnibox this qualifier is applied to the transition + /// type of the generated url. TemplateURLModel then may generate an + /// additional visit with a transition type of TT_KEYWORD_GENERATED against the + /// url 'http://' + keyword. For example, if you do a tab-to-search against + /// wikipedia the generated url has a transition qualifer of TT_KEYWORD, and + /// TemplateURLModel generates a visit for 'wikipedia.org' with a transition + /// type of TT_KEYWORD_GENERATED. Chrome runtime only. + /// + Keyword = 9, + + /// + /// Corresponds to a visit generated for a keyword. See description of + /// TT_KEYWORD for more details. Chrome runtime only. + /// + KeywordGenerated = 10, + /// /// General mask defining the bits used for the source values. /// @@ -77,6 +121,18 @@ public enum TransitionType : uint /// DirectLoad = 0x02000000, + /// + /// User is navigating to the home page. Chrome runtime only. + /// + HomePage = 0x04000000, + + /// + /// The transition originated from an external application; the exact + /// definition of this is embedder dependent. Chrome runtime and + /// extension system only. + /// + FromApi = 0x08000000, + /// /// The beginning of a navigation chain. /// From be4f3d60ef2847d8a912d95cfb97e8a41619201e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 09:38:16 +1000 Subject: [PATCH 010/543] Core - Add IDragData.ClearFilenames --- CefSharp.Core.Runtime/DragData.h | 5 +++++ CefSharp/IDragData.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/CefSharp.Core.Runtime/DragData.h b/CefSharp.Core.Runtime/DragData.h index 39f201dd3..ea9b6791c 100644 --- a/CefSharp.Core.Runtime/DragData.h +++ b/CefSharp.Core.Runtime/DragData.h @@ -207,6 +207,11 @@ namespace CefSharp _wrappedDragData->ResetFileContents(); } + virtual void ClearFilenames() + { + _wrappedDragData->ClearFilenames(); + } + virtual Int64 GetFileContents(Stream^ stream) { if (stream == nullptr) diff --git a/CefSharp/IDragData.cs b/CefSharp/IDragData.cs index 10b758a88..1445a9ed8 100644 --- a/CefSharp/IDragData.cs +++ b/CefSharp/IDragData.cs @@ -119,6 +119,11 @@ public interface IDragData : IDisposable /// Returns the number of bytes written to the stream Int64 GetFileContents(Stream stream); + /// + /// Clear list of filenames. + /// + void ClearFilenames(); + /// /// Gets a value indicating whether the object has been disposed of. /// From 4e0129009120b78cd35591a6e4e4f1861026d1c7 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 09:38:42 +1000 Subject: [PATCH 011/543] Core - Update WindowOpenDisposition (101.0.4951.54) --- CefSharp/Enums/WindowOpenDisposition.cs | 35 ++++++++++++++++++------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/CefSharp/Enums/WindowOpenDisposition.cs b/CefSharp/Enums/WindowOpenDisposition.cs index c2722845b..1c06bba48 100644 --- a/CefSharp/Enums/WindowOpenDisposition.cs +++ b/CefSharp/Enums/WindowOpenDisposition.cs @@ -12,42 +12,57 @@ public enum WindowOpenDisposition /// /// An enum constant representing the unknown option. /// - Unknown, + Unknown = 0, /// /// An enum constant representing the current tab option. /// - CurrentTab, + CurrentTab = 1, /// /// Indicates that only one tab with the url should exist in the same window /// - SingletonTab, + SingletonTab = 2, /// /// An enum constant representing the new foreground tab option. /// - NewForegroundTab, + NewForegroundTab = 3, /// /// An enum constant representing the new background tab option. /// - NewBackgroundTab, + NewBackgroundTab = 4, /// /// An enum constant representing the new popup option. /// - NewPopup, + NewPopup = 5, /// /// An enum constant representing the new window option. /// - NewWindow, + NewWindow = 6, /// /// An enum constant representing the save to disk option. /// - SaveToDisk, + SaveToDisk = 7, /// /// An enum constant representing the off the record option. /// - OffTheRecord, + OffTheRecord = 8, /// /// An enum constant representing the ignore action option. /// - IgnoreAction + IgnoreAction = 9, + + /// + /// Activates an existing tab containing the url, rather than navigating. + /// This is similar to SINGLETON_TAB, but searches across all windows from + /// the current profile and anonymity (instead of just the current one); + /// closes the current tab on switching if the current tab was the NTP with + /// no session history; and behaves like CURRENT_TAB instead of + /// NEW_FOREGROUND_TAB when no existing tab is found. + /// + SwitchToTab = 10, + + /// + /// Creates a new document picture-in-picture window showing a child WebView. + /// + NewPictureInPicture = 11, } } From 13f06aa90a08bbad0a6fc88f58a51c13e0ea687c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 09:40:31 +1000 Subject: [PATCH 012/543] Core - Fix IAudioHandler xml doc typo --- CefSharp/Handler/AudioHandler.cs | 4 ++-- CefSharp/Handler/IAudioHandler.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CefSharp/Handler/AudioHandler.cs b/CefSharp/Handler/AudioHandler.cs index 69f66191e..f7992e636 100644 --- a/CefSharp/Handler/AudioHandler.cs +++ b/CefSharp/Handler/AudioHandler.cs @@ -55,7 +55,7 @@ void IAudioHandler.OnAudioStreamStarted(IWebBrowser chromiumWebBrowser, /// /// Called on a browser audio capture thread when the browser starts streaming audio. - /// OnAudioSteamStopped will always be called after OnAudioStreamStarted; both methods may be called multiple + /// OnAudioStreamStopped will always be called after OnAudioStreamStarted; both methods may be called multiple /// times for the same browser. /// /// the ChromiumWebBrowser control @@ -99,7 +99,7 @@ void IAudioHandler.OnAudioStreamStopped(IWebBrowser chromiumWebBrowser, IBrowser } /// - /// Called on the CEF UI thread when the stream has stopped. OnAudioSteamStopped will always be called after ; + /// Called on the CEF UI thread when the stream has stopped. OnAudioStreamStopped will always be called after ; /// both methods may be called multiple times for the same stream. /// /// the ChromiumWebBrowser control diff --git a/CefSharp/Handler/IAudioHandler.cs b/CefSharp/Handler/IAudioHandler.cs index 2503a7c24..b2ba698da 100644 --- a/CefSharp/Handler/IAudioHandler.cs +++ b/CefSharp/Handler/IAudioHandler.cs @@ -26,7 +26,7 @@ public interface IAudioHandler : IDisposable /// /// Called on a browser audio capture thread when the browser starts streaming audio. - /// OnAudioSteamStopped will always be called after OnAudioStreamStarted; both methods may be called multiple + /// OnAudioStreamStopped will always be called after OnAudioStreamStarted; both methods may be called multiple /// times for the same browser. /// /// the ChromiumWebBrowser control @@ -52,7 +52,7 @@ void OnAudioStreamStarted(IWebBrowser chromiumWebBrowser, void OnAudioStreamPacket(IWebBrowser chromiumWebBrowser, IBrowser browser, IntPtr data, int noOfFrames, long pts); /// - /// Called on the CEF UI thread when the stream has stopped. OnAudioSteamStopped will always be called after ; + /// Called on the CEF UI thread when the stream has stopped. OnAudioStreamStopped will always be called after ; /// both methods may be called multiple times for the same stream. /// /// the ChromiumWebBrowser control From b4c4913b359c6dcf5a5f3f675ba43b81c4198cde Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 12:37:44 +1000 Subject: [PATCH 013/543] Core - Add IDownloadHandler.CanDownload - Add IDownloadHandler.CanDownload - Add to Fluent implementation - Update examples https://bitbucket.org/chromiumembedded/cef/commits/6d7a6801871cd4fcceb174dfa99a5b46da6253c1 Resolves #4090 --- .../Internals/ClientAdapter.cpp | 14 ++++++++ .../Internals/ClientAdapter.h | 1 + CefSharp.Core/Fluent/DownloadHandler.cs | 24 ++++++++++++++ .../Fluent/DownloadHandlerBuilder.cs | 16 +++++++++ CefSharp.Example/Handlers/DownloadHandler.cs | 33 ------------------- .../BrowserTabUserControl.cs | 2 +- .../Views/BrowserTabView.xaml.cs | 33 +++++++++++-------- CefSharp/Handler/DownloadHandler.cs | 21 ++++++++++++ CefSharp/Handler/IDownloadHandler.cs | 12 +++++++ 9 files changed, 108 insertions(+), 48 deletions(-) delete mode 100644 CefSharp.Example/Handlers/DownloadHandler.cs diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index 7241ee133..f02d0eed4 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -990,6 +990,20 @@ namespace CefSharp } } + bool ClientAdapter::CanDownload(CefRefPtr browser, const CefString& url, const CefString& request_method) + { + auto handler = _browserControl->DownloadHandler; + + if (handler == nullptr) + { + return true; + } + + auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); + + return handler->CanDownload(_browserControl, browserWrapper, StringUtils::ToClr(url), StringUtils::ToClr(request_method)); + } + void ClientAdapter::OnBeforeDownload(CefRefPtr browser, CefRefPtr download_item, const CefString& suggested_name, CefRefPtr callback) { diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.h b/CefSharp.Core.Runtime/Internals/ClientAdapter.h index 8c6bfaa82..5a188e718 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.h +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.h @@ -187,6 +187,7 @@ namespace CefSharp virtual DECL void OnDraggableRegionsChanged(CefRefPtr browser, CefRefPtr frame, const std::vector& regions) override; //CefDownloadHandler + virtual DECL bool CanDownload(CefRefPtr browser, const CefString & url, const CefString & request_method) override; virtual DECL void OnBeforeDownload(CefRefPtr browser, CefRefPtr download_item, const CefString& suggested_name, CefRefPtr callback) override; virtual DECL void OnDownloadUpdated(CefRefPtr browser, CefRefPtr download_item, diff --git a/CefSharp.Core/Fluent/DownloadHandler.cs b/CefSharp.Core/Fluent/DownloadHandler.cs index c64dbee0f..5de602587 100644 --- a/CefSharp.Core/Fluent/DownloadHandler.cs +++ b/CefSharp.Core/Fluent/DownloadHandler.cs @@ -6,6 +6,18 @@ namespace CefSharp.Fluent { + /// + /// Called before a download begins in response to a user-initiated action + /// (e.g. alt + link click or link click that returns a `Content-Disposition: + /// attachment` response from the server). + /// + /// the ChromiumWebBrowser control + /// The browser instance + /// is the target download URL + /// is the target method (GET, POST, etc) + /// Return true to proceed with the download or false to cancel the download. + public delegate bool CanDownloadDelegate(IWebBrowser chromiumWebBrowser, IBrowser browser, string url, string requestMethod); + /// /// Called before a download begins. /// @@ -30,6 +42,7 @@ namespace CefSharp.Fluent /// public class DownloadHandler : Handler.DownloadHandler { + private CanDownloadDelegate canDownload; private OnBeforeDownloadDelegate onBeforeDownload; private OnDownloadUpdatedDelegate onDownloadUpdated; @@ -94,6 +107,11 @@ internal DownloadHandler() } + internal void SetCanDownload(CanDownloadDelegate action) + { + canDownload = action; + } + internal void SetOnBeforeDownload(OnBeforeDownloadDelegate action) { onBeforeDownload = action; @@ -104,6 +122,12 @@ internal void SetOnDownloadUpdated(OnDownloadUpdatedDelegate action) onDownloadUpdated = action; } + /// + protected override bool CanDownload(IWebBrowser chromiumWebBrowser, IBrowser browser, string url, string requestMethod) + { + return canDownload?.Invoke(chromiumWebBrowser, browser, url, requestMethod) ?? true; + } + /// protected override void OnBeforeDownload(IWebBrowser chromiumWebBrowser, IBrowser browser, DownloadItem downloadItem, IBeforeDownloadCallback callback) { diff --git a/CefSharp.Core/Fluent/DownloadHandlerBuilder.cs b/CefSharp.Core/Fluent/DownloadHandlerBuilder.cs index 826016abd..f37eb71b7 100644 --- a/CefSharp.Core/Fluent/DownloadHandlerBuilder.cs +++ b/CefSharp.Core/Fluent/DownloadHandlerBuilder.cs @@ -11,6 +11,22 @@ public class DownloadHandlerBuilder { private readonly DownloadHandler handler = new DownloadHandler(); + /// + /// See for details. + /// + /// Action to be executed when + /// is called + /// + /// Fluent Builder, call to create + /// a new instance + /// + public DownloadHandlerBuilder CanDownload(CanDownloadDelegate action) + { + handler.SetCanDownload(action); + + return this; + } + /// /// See for details. /// diff --git a/CefSharp.Example/Handlers/DownloadHandler.cs b/CefSharp.Example/Handlers/DownloadHandler.cs deleted file mode 100644 index feb476ddb..000000000 --- a/CefSharp.Example/Handlers/DownloadHandler.cs +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright © 2013 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; - -namespace CefSharp.Example.Handlers -{ - public class DownloadHandler : IDownloadHandler - { - public event EventHandler OnBeforeDownloadFired; - - public event EventHandler OnDownloadUpdatedFired; - - public void OnBeforeDownload(IWebBrowser chromiumWebBrowser, IBrowser browser, DownloadItem downloadItem, IBeforeDownloadCallback callback) - { - OnBeforeDownloadFired?.Invoke(this, downloadItem); - - if (!callback.IsDisposed) - { - using (callback) - { - callback.Continue(downloadItem.SuggestedFileName, showDialog: true); - } - } - } - - public void OnDownloadUpdated(IWebBrowser chromiumWebBrowser, IBrowser browser, DownloadItem downloadItem, IDownloadItemCallback callback) - { - OnDownloadUpdatedFired?.Invoke(this, downloadItem); - } - } -} diff --git a/CefSharp.WinForms.Example/BrowserTabUserControl.cs b/CefSharp.WinForms.Example/BrowserTabUserControl.cs index b31094b98..34416586e 100644 --- a/CefSharp.WinForms.Example/BrowserTabUserControl.cs +++ b/CefSharp.WinForms.Example/BrowserTabUserControl.cs @@ -57,7 +57,7 @@ public BrowserTabUserControl(Action openNewTab, string url, bool m browser.MenuHandler = new MenuHandler(); browser.RequestHandler = new WinFormsRequestHandler(openNewTab); browser.JsDialogHandler = new JsDialogHandler(); - browser.DownloadHandler = new DownloadHandler(); + browser.DownloadHandler = Fluent.DownloadHandler.AskUser(); browser.AudioHandler = new CefSharp.Handler.AudioHandler(); browser.FrameHandler = new CefSharp.Handler.FrameHandler(); diff --git a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs index ab5b74827..294e1dc90 100644 --- a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs +++ b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs @@ -13,6 +13,7 @@ using CefSharp.Example.JavascriptBinding; using CefSharp.Example.ModelBinding; using CefSharp.Example.PostMessage; +using CefSharp.Fluent; using CefSharp.Wpf.Example.Handlers; using CefSharp.Wpf.Example.ViewModels; using CefSharp.Wpf.Experimental.Accessibility; @@ -131,10 +132,24 @@ public BrowserTabView() } }; - var downloadHandler = new DownloadHandler(); - downloadHandler.OnBeforeDownloadFired += OnBeforeDownloadFired; - downloadHandler.OnDownloadUpdatedFired += OnDownloadUpdatedFired; - browser.DownloadHandler = downloadHandler; + browser.DownloadHandler = DownloadHandler + .Create() + .CanDownload((chromiumWebBrowser, browser, url, requestMethod) => + { + //All all downloads + return true; + }) + .OnBeforeDownload((chromiumWebBrowser, browser, downloadItem, callback) => + { + UpdateDownloadAction("OnBeforeDownload", downloadItem); + + callback.Continue("", showDialog: true); + + }).OnDownloadUpdated((chromiumWebBrowser, browser, downloadItem, callback) => + { + UpdateDownloadAction("OnDownloadUpdated", downloadItem); + }) + .Build(); browser.AudioHandler = new CefSharp.Handler.AudioHandler(); browser.JsDialogHandler = new Handlers.JsDialogHandler(); @@ -239,16 +254,6 @@ private void OnBrowserJavascriptMessageReceived(object sender, JavascriptMessage } - private void OnBeforeDownloadFired(object sender, DownloadItem e) - { - this.UpdateDownloadAction("OnBeforeDownload", e); - } - - private void OnDownloadUpdatedFired(object sender, DownloadItem e) - { - this.UpdateDownloadAction("OnDownloadUpdated", e); - } - private void UpdateDownloadAction(string downloadAction, DownloadItem downloadItem) { this.Dispatcher.InvokeAsync(() => diff --git a/CefSharp/Handler/DownloadHandler.cs b/CefSharp/Handler/DownloadHandler.cs index 7cd6df3f2..e7386aad0 100644 --- a/CefSharp/Handler/DownloadHandler.cs +++ b/CefSharp/Handler/DownloadHandler.cs @@ -10,6 +10,27 @@ namespace CefSharp.Handler /// public class DownloadHandler : IDownloadHandler { + /// + bool IDownloadHandler.CanDownload(IWebBrowser chromiumWebBrowser, IBrowser browser, string url, string requestMethod) + { + return CanDownload(chromiumWebBrowser, browser, url, requestMethod); + } + + /// + /// Called before a download begins in response to a user-initiated action + /// (e.g. alt + link click or link click that returns a `Content-Disposition: + /// attachment` response from the server). + /// + /// the ChromiumWebBrowser control + /// The browser instance + /// is the target download URL + /// is the target method (GET, POST, etc) + /// Return true to proceed with the download or false to cancel the download. + protected virtual bool CanDownload(IWebBrowser chromiumWebBrowser, IBrowser browser, string url, string requestMethod) + { + return true; + } + /// /// Called before a download begins. /// diff --git a/CefSharp/Handler/IDownloadHandler.cs b/CefSharp/Handler/IDownloadHandler.cs index 5aeb45921..3134645af 100644 --- a/CefSharp/Handler/IDownloadHandler.cs +++ b/CefSharp/Handler/IDownloadHandler.cs @@ -10,6 +10,18 @@ namespace CefSharp /// public interface IDownloadHandler { + /// + /// Called before a download begins in response to a user-initiated action + /// (e.g. alt + link click or link click that returns a `Content-Disposition: + /// attachment` response from the server). + /// + /// the ChromiumWebBrowser control + /// The browser instance + /// is the target download URL + /// is the target method (GET, POST, etc) + /// Return true to proceed with the download or false to cancel the download. + bool CanDownload(IWebBrowser chromiumWebBrowser, IBrowser browser, string url, string requestMethod); + /// /// Called before a download begins. /// From dce81299feab534d4766c7a93d7c403f30d984b9 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 12:39:28 +1000 Subject: [PATCH 014/543] WPF - Remove EmbeddedCursor workaround Bug was fixed upstream and now no longer required. Related issue #4021 --- CefSharp.Test/Wpf/EmbeddedCursorLoadTests.cs | 50 ---------------- CefSharp.Wpf/Internals/EmbeddedCursor.cs | 63 -------------------- 2 files changed, 113 deletions(-) delete mode 100644 CefSharp.Test/Wpf/EmbeddedCursorLoadTests.cs delete mode 100644 CefSharp.Wpf/Internals/EmbeddedCursor.cs diff --git a/CefSharp.Test/Wpf/EmbeddedCursorLoadTests.cs b/CefSharp.Test/Wpf/EmbeddedCursorLoadTests.cs deleted file mode 100644 index ea4d4be94..000000000 --- a/CefSharp.Test/Wpf/EmbeddedCursorLoadTests.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright © 2022 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; -using CefSharp.Enums; -using CefSharp.Wpf.Internals; -using Xunit; - -namespace CefSharp.Test.Wpf -{ - //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle - /// - /// Issue #4021 - /// Validate Cursor resource Ids - /// - [Collection(CefSharpFixtureCollection.Key)] - public class EmbeddedCursorLoadTests - { - [Theory] - [InlineData(CursorType.Alias)] - [InlineData(CursorType.Cell)] - [InlineData(CursorType.ColumnResize)] - [InlineData(CursorType.Copy)] - [InlineData(CursorType.Grab)] - [InlineData(CursorType.Grabbing)] - [InlineData(CursorType.EastPanning)] - [InlineData(CursorType.MiddlePanning)] - [InlineData(CursorType.MiddlePanningHorizontal)] - [InlineData(CursorType.MiddlePanningVertical)] - [InlineData(CursorType.NorthPanning)] - [InlineData(CursorType.NortheastPanning)] - [InlineData(CursorType.NorthwestPanning)] - [InlineData(CursorType.SouthPanning)] - [InlineData(CursorType.SoutheastPanning)] - [InlineData(CursorType.SouthwestPanning)] - [InlineData(CursorType.WestPanning)] - [InlineData(CursorType.RowResize)] - [InlineData(CursorType.VerticalText)] - [InlineData(CursorType.ZoomIn)] - [InlineData(CursorType.ZoomOut)] - public void CanGetEmbeddedCursors(CursorType cursorType) - { - var actual = EmbeddedCursor.TryLoadCursor(cursorType, out IntPtr cursorPtr); - - Assert.True(actual); - Assert.NotEqual(IntPtr.Zero, cursorPtr); - } - } -} diff --git a/CefSharp.Wpf/Internals/EmbeddedCursor.cs b/CefSharp.Wpf/Internals/EmbeddedCursor.cs deleted file mode 100644 index ec6edbb5b..000000000 --- a/CefSharp.Wpf/Internals/EmbeddedCursor.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright © 2022 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; -using System.Collections.Generic; -using CefSharp.Enums; - -namespace CefSharp.Wpf.Internals -{ - // Workaround for upstream issue - // It's possible resources Ids might change between versions, so this might need to be updated - // for different builds, will need to test after upgrading - // See #4021 - public static class EmbeddedCursor - { - private static Dictionary EmbeddedCursors = new Dictionary - { - { CursorType.Alias, 35650 }, - { CursorType.Cell, 35651 }, - { CursorType.ColumnResize, 35652 }, - { CursorType.Copy, 35653 }, - { CursorType.Grab, 35654 }, - { CursorType.Grabbing, 35655 }, - { CursorType.EastPanning, 35656 }, - { CursorType.MiddlePanning, 35657 }, - { CursorType.MiddlePanningHorizontal, 35658 }, - { CursorType.MiddlePanningVertical, 35659 }, - { CursorType.NorthPanning, 35660 }, - { CursorType.NortheastPanning, 35661 }, - { CursorType.NorthwestPanning, 35662 }, - { CursorType.SouthPanning, 35663 }, - { CursorType.SoutheastPanning, 35664 }, - { CursorType.SouthwestPanning, 35665 }, - { CursorType.WestPanning, 35666 }, - { CursorType.RowResize, 35667 }, - { CursorType.VerticalText, 35668 }, - { CursorType.ZoomIn, 35669 }, - { CursorType.ZoomOut, 35670 } - }; - - public static bool TryLoadCursor(CursorType cursorType, out IntPtr cursor) - { - cursor = IntPtr.Zero; - - try - { - if (EmbeddedCursors.TryGetValue(cursorType, out int key)) - { - cursor = NativeMethodWrapper.LoadCursorFromLibCef(key); - - return cursor != IntPtr.Zero; - } - } - catch (Exception) - { - - } - - return false; - } - } -} From ec25c08905aecb73573e7336bb5a1c853c8823f6 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 12:51:57 +1000 Subject: [PATCH 015/543] WPF - Remove EmbeddedCursor workaround - Forgot to remove the WPF code, not needed anymore Follow up to https://github.com/cefsharp/CefSharp/commit/dce81299feab534d4766c7a93d7c403f30d984b9 --- CefSharp.Wpf/ChromiumWebBrowser.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index c704ff0c7..df99258a0 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -1007,16 +1007,7 @@ protected virtual void OnCursorChange(IntPtr handle, CursorType type, CursorInfo { UiThreadRunAsync(() => { - //Workaround for upstream issue - //See #4021 - if (EmbeddedCursor.TryLoadCursor(type, out IntPtr cursorHandle)) - { - Cursor = CursorInteropHelper.Create(new SafeFileHandle(cursorHandle, ownsHandle: false)); - } - else - { - Cursor = CursorInteropHelper.Create(new SafeFileHandle(handle, ownsHandle: false)); - } + Cursor = CursorInteropHelper.Create(new SafeFileHandle(handle, ownsHandle: false)); }); } } From 2ecea01bb0e2b0b2b958709599fa660acca666ce Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 12:54:28 +1000 Subject: [PATCH 016/543] Net Core - Update Ref Assembly --- .../CefSharp.Core.Runtime.netcore.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index 4c6698a6e..fcd664c54 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -148,6 +148,7 @@ internal DragData() { } public virtual string LinkTitle { get { throw null; } set { } } public virtual string LinkUrl { get { throw null; } set { } } public virtual void AddFile(string path, string displayName) { } + public virtual void ClearFilenames() { } public virtual CefSharp.IDragData Clone() { throw null; } public static CefSharp.IDragData Create() { throw null; } public void Dispose() { } From 7eb6d6f3b73c83c9b4f7a31bca1806918874825e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 5 May 2022 19:27:29 +1000 Subject: [PATCH 017/543] 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 --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 16 ++++++++-------- .../OffScreen/OffScreenBrowserBasicFacts.cs | 2 +- CefSharp.WinForms/ChromiumWebBrowser.cs | 5 +++++ 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 7c0ad6d71..48ede401d 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -550,6 +550,11 @@ public async Task CaptureScreenshotAsync(CaptureScreenshotFormat? format return screenShot.Data; } + if (viewport.Scale <= 0) + { + throw new ArgumentException($"{nameof(viewport)}.{nameof(viewport.Scale)} must be greater than 0."); + } + //https://bitbucket.org/chromiumembedded/cef/issues/3103/offscreen-capture-screenshot-with-devtools //CEF OSR mode doesn't set the size internally when CaptureScreenShot is called with a clip param specified, so //we must manually resize our view if size is greater @@ -563,19 +568,14 @@ public async Task CaptureScreenshotAsync(CaptureScreenshotFormat? format { newHeight = size.Height; } - var newScale = viewport.Scale; - if (newScale == 0) - { - newScale = deviceScaleFactor; - } - if ((int)newWidth > size.Width || (int)newHeight > size.Height || newScale != deviceScaleFactor) + if ((int)newWidth > size.Width || (int)newHeight > size.Height || viewport.Scale != deviceScaleFactor) { - await ResizeAsync((int)newWidth, (int)newHeight, (float)newScale).ConfigureAwait(continueOnCapturedContext:false); + await ResizeAsync((int)newWidth, (int)newHeight, (float)viewport.Scale).ConfigureAwait(continueOnCapturedContext:false); } //Create a copy instead of modifying users object as we need to set Scale to 1 - //as CEF doesn't support passing custom scale. + //as CEF doesn't support passing custom scale for OSR. var clip = new Viewport { Height = viewport.Height, diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs index 3e9d33e89..cca31d9aa 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs @@ -808,7 +808,7 @@ public async Task CanCaptureScreenshotAsync() } - var result3 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 100, Height = 200 }); + var result3 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 100, Height = 200, Scale = 2 }); Assert.Equal(1466, browser.Size.Width); Assert.Equal(968, browser.Size.Height); Assert.Equal(2, browser.DeviceScaleFactor); diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index 086dfacba..0924173e7 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -493,6 +493,11 @@ public async Task CaptureScreenshotAsync(CaptureScreenshotFormat format ThrowExceptionIfDisposed(); ThrowExceptionIfBrowserNotInitialized(); + if(viewPort != null && viewPort.Scale <= 0) + { + throw new ArgumentException($"{nameof(viewPort)}.{nameof(viewPort.Scale)} must be greater than 0."); + } + using (var devToolsClient = browser.GetDevToolsClient()) { var screenShot = await devToolsClient.Page.CaptureScreenshotAsync(format, quality, viewPort, fromSurface, captureBeyondViewport).ConfigureAwait(continueOnCapturedContext: false); From c6a9f692708a7459b9d45cda6bf8090b8dab3dec Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 6 May 2022 09:21:29 +1000 Subject: [PATCH 018/543] README.md - Update as M101 released --- .github/ISSUE_TEMPLATE/bug_report.md | 6 +++--- CONTRIBUTING.md | 6 +++--- README.md | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 177b4f02d..ad048f34c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -69,9 +69,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_100.0.14%2Bg4e5ba66%2Bchromium-100.0.4896.75_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_100.0.14%2Bg4e5ba66%2Bchromium-100.0.4896.75_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_100.0.14%2Bg4e5ba66%2Bchromium-100.0.4896.75_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 155262a32..4cb7dc9bb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_100.0.14%2Bg4e5ba66%2Bchromium-100.0.4896.75_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_100.0.14%2Bg4e5ba66%2Bchromium-100.0.4896.75_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_100.0.14%2Bg4e5ba66%2Bchromium-100.0.4896.75_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 1eb72e560..b3dc8219c 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,9 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 4896 | 2019* | 4.5.2** | Development | -| [cefsharp/100](https://github.com/cefsharp/CefSharp/tree/cefsharp/100)| 4896 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 4951 | 2019* | 4.5.2** | Development | +| [cefsharp/101](https://github.com/cefsharp/CefSharp/tree/cefsharp/101)| 4951 | 2019* | 4.5.2** | **Release** | +| [cefsharp/100](https://github.com/cefsharp/CefSharp/tree/cefsharp/100)| 4896 | 2019* | 4.5.2** | Unsupported | | [cefsharp/99](https://github.com/cefsharp/CefSharp/tree/cefsharp/99) | 4844 | 2019* | 4.5.2** | Unsupported | | [cefsharp/98](https://github.com/cefsharp/CefSharp/tree/cefsharp/98) | 4758 | 2019* | 4.5.2** | Unsupported | | [cefsharp/97](https://github.com/cefsharp/CefSharp/tree/cefsharp/97) | 4692 | 2019* | 4.5.2** | Unsupported | From 20f836e2f2ed329c67288df001529228f75acf93 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 9 May 2022 10:10:13 +1000 Subject: [PATCH 019/543] Core - Add space to Cef.Shutdown thread check - Improve readability --- CefSharp.Core.Runtime/Cef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index ed6255e1b..c5dff3cdf 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -561,7 +561,7 @@ namespace CefSharp { throw gcnew Exception("Cef.Shutdown must be called on the same thread that Cef.Initialize was called - typically your UI thread. " + "If you called Cef.Initialize on a Thread other than the UI thread then you will need to call Cef.Shutdown on the same thread. " + - "Cef.Initialize was called on ManagedThreadId: " + _initializedThreadId + "where Cef.Shutdown is being called on " + + "Cef.Initialize was called on ManagedThreadId: " + _initializedThreadId + " where Cef.Shutdown is being called on " + "ManagedThreadId: " + Thread::CurrentThread->ManagedThreadId); } From 8e2d66b0b20a86d7ce76d7183ac40c3df018eec0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 9 May 2022 10:22:27 +1000 Subject: [PATCH 020/543] 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 --- NuGet/CefSharp.Common.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NuGet/CefSharp.Common.targets b/NuGet/CefSharp.Common.targets index a29612adc..7347aa724 100644 --- a/NuGet/CefSharp.Common.targets +++ b/NuGet/CefSharp.Common.targets @@ -110,8 +110,8 @@ For class libraries that are often AnyCPU and consuming Exe/WinExe projects that are x64 or x86 the resulting build output is polluted with extra copies in sub folders. Set CefSharpBuildAction to NoAction to avoid copying the files. --> - None Content + None From 239e5e51d6ba63302a0c46e7677025c0f8b80b10 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 14 May 2022 19:01:50 +1000 Subject: [PATCH 021/543] Update bug_report.md Update version numbers --- .github/ISSUE_TEMPLATE/bug_report.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index ad048f34c..4035bc4b9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -32,9 +32,9 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** + - Please only create an issue if you can reproduce the problem with version 101.0.150 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 95.7.141 (no ambiguous statements like `Latest from Nuget`) - - Please only create an issue if you can reproduce the problem with version 95.7.141 or greater. + - Please include the exact version number you are using e.g. 101.0.150 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** From dbe817a899c32858af3be1e4a374dccfaeceb42b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 17 May 2022 09:14:59 +1000 Subject: [PATCH 022/543] Readme.md - Update cefclient links --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++----- CONTRIBUTING.md | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 4035bc4b9..817e74c6f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -32,9 +32,9 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 101.0.150 or greater. + - Please only create an issue if you can reproduce the problem with version 101.0.180 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 101.0.150 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 101.0.180 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** @@ -69,9 +69,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4cb7dc9bb..c4d295733 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.15%2Bgca159c5%2Bchromium-101.0.4951.54_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` From c5f861594dbd09406d58af9da7952819fd2a4a6d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 17 May 2022 19:33:34 +1000 Subject: [PATCH 023/543] Upgrade to CEF 102.0.5+gf11ca74+chromium-102.0.5005.49 / Chromium 102.0.5005.49 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 03f8aa6ec..0e9bc5850 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 01bf4fd58..99026c809 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 59d87b69e..c4d1bf37e 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 101,0,150 - PRODUCTVERSION 101,0,150 + FILEVERSION 102,0,50 + PRODUCTVERSION 102,0,50 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "101.0.150" + VALUE "FileVersion", "102.0.50" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "101.0.150" + VALUE "ProductVersion", "102.0.50" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index fa85ca549..67b4bcb6d 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 9b3d12587..ec4a5004c 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 81e62a298..84d522f4c 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index fb9096a07..c7e3002ff 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 4e66c6ddd..5dad276f5 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index c8f6ac4b5..d3da1ecea 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 101,0,150 - PRODUCTVERSION 101,0,150 + FILEVERSION 102,0,50 + PRODUCTVERSION 102,0,50 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "101.0.150" + VALUE "FileVersion", "102.0.50" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "101.0.150" + VALUE "ProductVersion", "102.0.50" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index fa85ca549..67b4bcb6d 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 9b3d12587..ec4a5004c 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 1af1d73fd..d66ebff86 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 730c222ba..99dd00fb4 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 75a9dee10..d6fd392e9 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 05a979d83..4c3abab1d 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index ade54ab82..f1792bb23 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 45ca387ac..58fec07c3 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 76b2d5658..35573aac0 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index f0e4eb9e5..3da390f21 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 920c92c30..655f20802 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 61dfaf33a..e3098edc0 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 7495e7034..91aab6dca 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 5ec4fb700..b0028840c 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 101.0.150 + 102.0.50 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 101.0.150 + Version 102.0.50 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 4fad2d791..489a3ab7c 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "101.0.150"; - public const string AssemblyFileVersion = "101.0.150.0"; + public const string AssemblyVersion = "102.0.50"; + public const string AssemblyFileVersion = "102.0.50.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index ed7902458..bcc3e55db 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index f1daf4410..5a95882b0 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 9731a7704..dec42236e 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -153,9 +153,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 12cc3962b..49d1045a8 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "101.0.15", + [string] $CefVersion = "102.0.5", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 53e8b1826..20c6b985d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 101.0.150-CI{build} +version: 102.0.50-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index b69ee8428..53a9e45a8 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "101.0.150", + [string] $Version = "102.0.50", [Parameter(Position = 2)] - [string] $AssemblyVersion = "101.0.150", + [string] $AssemblyVersion = "102.0.50", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 6c18e0e86348197f399f24a5e3ac63bbe6260134 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 17 May 2022 19:51:08 +1000 Subject: [PATCH 024/543] 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 --- .../Internals/CefBrowserHostWrapper.cpp | 3 +-- .../Internals/CefBrowserHostWrapper.h | 2 +- .../Internals/CefFileDialogCallbackWrapper.h | 4 ++-- .../CefRunFileDialogCallbackAdapter.h | 4 ++-- .../Internals/ClientAdapter.cpp | 9 ++----- .../Internals/ClientAdapter.h | 2 +- .../Callback/RunFileDialogCallback.cs | 2 +- .../Handlers/TempFileDialogHandler.cs | 7 +++--- CefSharp.WinForms.Example/BrowserForm.cs | 2 +- CefSharp/Callback/IFileDialogCallback.cs | 4 +--- CefSharp/Callback/IRunFileDialogCallback.cs | 3 +-- CefSharp/Enums/CefFileDialogFlags.cs | 24 ------------------- CefSharp/Handler/DialogHandler.cs | 8 +------ CefSharp/Handler/IDialogHandler.cs | 4 ---- CefSharp/IBrowserHost.cs | 3 +-- 15 files changed, 19 insertions(+), 62 deletions(-) delete mode 100644 CefSharp/Enums/CefFileDialogFlags.cs diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp index 4149c6ea1..dc7a3a6e6 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp @@ -303,7 +303,7 @@ IExtension^ CefBrowserHostWrapper::Extension::get() return nullptr; } -void CefBrowserHostWrapper::RunFileDialog(CefFileDialogMode mode, String^ title, String^ defaultFilePath, IList^ acceptFilters, int selectedAcceptFilter, IRunFileDialogCallback^ callback) +void CefBrowserHostWrapper::RunFileDialog(CefFileDialogMode mode, String^ title, String^ defaultFilePath, IList^ acceptFilters, IRunFileDialogCallback^ callback) { ThrowIfDisposed(); @@ -311,7 +311,6 @@ void CefBrowserHostWrapper::RunFileDialog(CefFileDialogMode mode, String^ title, StringUtils::ToNative(title), StringUtils::ToNative(defaultFilePath), StringUtils::ToNative(acceptFilters), - selectedAcceptFilter, new CefRunFileDialogCallbackAdapter(callback)); } diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h index e815b2b67..2f2cd093b 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h @@ -86,7 +86,7 @@ namespace CefSharp IExtension^ get(); } - virtual void RunFileDialog(CefFileDialogMode mode, String^ title, String^ defaultFilePath, IList^ acceptFilters, int selectedAcceptFilter, IRunFileDialogCallback^ callback); + virtual void RunFileDialog(CefFileDialogMode mode, String^ title, String^ defaultFilePath, IList^ acceptFilters, IRunFileDialogCallback^ callback); virtual void Find(String^ searchText, bool forward, bool matchCase, bool findNext); virtual void StopFinding(bool clearSelection); diff --git a/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h index 9b21cebd2..9b33854ac 100644 --- a/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h @@ -36,11 +36,11 @@ namespace CefSharp _disposed = true; } - virtual void Continue(int selectedAcceptFilter, List^ filePaths) + virtual void Continue(List^ filePaths) { ThrowIfDisposed(); - _callback->Continue(selectedAcceptFilter, StringUtils::ToNative(filePaths)); + _callback->Continue(StringUtils::ToNative(filePaths)); delete this; } diff --git a/CefSharp.Core.Runtime/Internals/CefRunFileDialogCallbackAdapter.h b/CefSharp.Core.Runtime/Internals/CefRunFileDialogCallbackAdapter.h index 8b360c4a7..14f8d5ac6 100644 --- a/CefSharp.Core.Runtime/Internals/CefRunFileDialogCallbackAdapter.h +++ b/CefSharp.Core.Runtime/Internals/CefRunFileDialogCallbackAdapter.h @@ -30,11 +30,11 @@ namespace CefSharp _callback = nullptr; } - virtual void OnFileDialogDismissed(int selectedAcceptFilter, const std::vector& filePaths) override + virtual void OnFileDialogDismissed(const std::vector& filePaths) override { if (static_cast(_callback) != nullptr) { - _callback->OnFileDialogDismissed(selectedAcceptFilter, StringUtils::ToClr(filePaths)); + _callback->OnFileDialogDismissed(StringUtils::ToClr(filePaths)); } } diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index f02d0eed4..8331df14c 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -933,7 +933,7 @@ namespace CefSharp } bool ClientAdapter::OnFileDialog(CefRefPtr browser, FileDialogMode mode, const CefString& title, - const CefString& default_file_path, const std::vector& accept_filters, int selected_accept_filter, + const CefString& default_file_path, const std::vector& accept_filters, CefRefPtr callback) { auto handler = _browserControl->DialogHandler; @@ -946,18 +946,13 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); auto callbackWrapper = gcnew CefFileDialogCallbackWrapper(callback); - auto dialogMode = mode & FileDialogMode::FILE_DIALOG_TYPE_MASK; - auto dialogFlags = mode & ~FileDialogMode::FILE_DIALOG_TYPE_MASK; - return handler->OnFileDialog( _browserControl, browserWrapper, - (CefFileDialogMode)dialogMode, - (CefFileDialogFlags)dialogFlags, + (CefFileDialogMode)mode, StringUtils::ToClr(title), StringUtils::ToClr(default_file_path), StringUtils::ToClr(accept_filters), - selected_accept_filter, callbackWrapper); } diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.h b/CefSharp.Core.Runtime/Internals/ClientAdapter.h index 5a188e718..38eeeff04 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.h +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.h @@ -179,7 +179,7 @@ namespace CefSharp // CefDialogHandler virtual DECL bool OnFileDialog(CefRefPtr browser, FileDialogMode mode, const CefString& title, - const CefString& default_file_path, const std::vector& accept_filters, int selected_accept_filter, + const CefString& default_file_path, const std::vector& accept_filters, CefRefPtr callback) override; //CefDragHandler diff --git a/CefSharp.Example/Callback/RunFileDialogCallback.cs b/CefSharp.Example/Callback/RunFileDialogCallback.cs index 31440d9f7..d1a2e46a7 100644 --- a/CefSharp.Example/Callback/RunFileDialogCallback.cs +++ b/CefSharp.Example/Callback/RunFileDialogCallback.cs @@ -9,7 +9,7 @@ namespace CefSharp.Example.Callback { public class RunFileDialogCallback : IRunFileDialogCallback { - void IRunFileDialogCallback.OnFileDialogDismissed(int selectedAcceptFilter, IList filePaths) + void IRunFileDialogCallback.OnFileDialogDismissed(IList filePaths) { } diff --git a/CefSharp.Example/Handlers/TempFileDialogHandler.cs b/CefSharp.Example/Handlers/TempFileDialogHandler.cs index f9f214a12..4309a9463 100644 --- a/CefSharp.Example/Handlers/TempFileDialogHandler.cs +++ b/CefSharp.Example/Handlers/TempFileDialogHandler.cs @@ -4,14 +4,15 @@ using System.Collections.Generic; using System.IO; +using CefSharp.Handler; namespace CefSharp.Example.Handlers { - public class TempFileDialogHandler : IDialogHandler + public class TempFileDialogHandler : DialogHandler { - public bool OnFileDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, CefFileDialogFlags flags, string title, string defaultFilePath, List acceptFilters, int selectedAcceptFilter, IFileDialogCallback callback) + protected override bool OnFileDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, string title, string defaultFilePath, List acceptFilters, IFileDialogCallback callback) { - callback.Continue(selectedAcceptFilter, new List { Path.GetRandomFileName() }); + callback.Continue(new List { Path.GetRandomFileName() }); return true; } diff --git a/CefSharp.WinForms.Example/BrowserForm.cs b/CefSharp.WinForms.Example/BrowserForm.cs index 3942a7ed0..6e1fae8fa 100644 --- a/CefSharp.WinForms.Example/BrowserForm.cs +++ b/CefSharp.WinForms.Example/BrowserForm.cs @@ -559,7 +559,7 @@ private void RunFileDialogToolStripMenuItemClick(object sender, EventArgs e) var control = GetCurrentTabControl(); if (control != null) { - control.Browser.GetBrowserHost().RunFileDialog(CefFileDialogMode.Open, "Open", null, new List { "*.*" }, 0, new RunFileDialogCallback()); + control.Browser.GetBrowserHost().RunFileDialog(CefFileDialogMode.Open, "Open", null, new List { "*.*" }, new RunFileDialogCallback()); } } diff --git a/CefSharp/Callback/IFileDialogCallback.cs b/CefSharp/Callback/IFileDialogCallback.cs index 98acb44f6..489bd2a5b 100644 --- a/CefSharp/Callback/IFileDialogCallback.cs +++ b/CefSharp/Callback/IFileDialogCallback.cs @@ -15,11 +15,9 @@ public interface IFileDialogCallback : IDisposable /// /// Continue the file selection. /// - /// should be the 0-based index of the value selected from the accept filters - /// array passed to /// should be a single value or a list of values depending on the dialog mode. /// An empty value is treated the same as calling Cancel(). - void Continue(int selectedAcceptFilter, List filePaths); + void Continue(List filePaths); /// /// Cancel the file selection. diff --git a/CefSharp/Callback/IRunFileDialogCallback.cs b/CefSharp/Callback/IRunFileDialogCallback.cs index 40519ab88..240fc4386 100644 --- a/CefSharp/Callback/IRunFileDialogCallback.cs +++ b/CefSharp/Callback/IRunFileDialogCallback.cs @@ -15,8 +15,7 @@ public interface IRunFileDialogCallback /// /// Called asynchronously after the file dialog is dismissed. /// - /// is the 0-based index of the value selected from the accept filters array passed to IBrowserHost.RunFileDialog /// will be a single value or a list of values depending on the dialog mode. If the selection was cancelled filePaths will be empty - void OnFileDialogDismissed(int selectedAcceptFilter, IList filePaths); + void OnFileDialogDismissed(IList filePaths); } } diff --git a/CefSharp/Enums/CefFileDialogFlags.cs b/CefSharp/Enums/CefFileDialogFlags.cs deleted file mode 100644 index 98f63d013..000000000 --- a/CefSharp/Enums/CefFileDialogFlags.cs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright © 2018 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; - -namespace CefSharp -{ - /// - /// FileDialog Flags - /// - [Flags] - public enum CefFileDialogFlags - { - /// - /// Prompt to overwrite if the user selects an existing file with the Save dialog. - /// - OverwritePrompt = 0x01000000, - /// - /// Do not display read-only files. - /// - HideReadOnly = 0x02000000, - } -} diff --git a/CefSharp/Handler/DialogHandler.cs b/CefSharp/Handler/DialogHandler.cs index 98a01c2f3..ab3e7807d 100644 --- a/CefSharp/Handler/DialogHandler.cs +++ b/CefSharp/Handler/DialogHandler.cs @@ -16,14 +16,12 @@ bool IDialogHandler.OnFileDialog( IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, - CefFileDialogFlags flags, string title, string defaultFilePath, List acceptFilters, - int selectedAcceptFilter, IFileDialogCallback callback) { - return OnFileDialog(chromiumWebBrowser, browser, mode, flags, title, defaultFilePath, acceptFilters, selectedAcceptFilter, callback); + return OnFileDialog(chromiumWebBrowser, browser, mode, title, defaultFilePath, acceptFilters, callback); } /// @@ -40,7 +38,6 @@ bool IDialogHandler.OnFileDialog( /// the ChromiumWebBrowser control /// the browser object /// represents the type of dialog to display - /// further specifies behavior dialog should exhibit /// the title to be used for the dialog. It may be empty to show the default title ("Open" or "Save" /// depending on the mode). /// is the path with optional directory and/or file name component that @@ -49,18 +46,15 @@ bool IDialogHandler.OnFileDialog( /// (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"), /// (b) individual file extensions (e.g. ".txt" or ".png"), /// (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg"). - /// is the 0-based index of the filter that should be selected by default. /// Callback interface for asynchronous continuation of file dialog requests. /// To display a custom dialog return true. To display the default dialog return false. protected virtual bool OnFileDialog( IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, - CefFileDialogFlags flags, string title, string defaultFilePath, List acceptFilters, - int selectedAcceptFilter, IFileDialogCallback callback) { return false; diff --git a/CefSharp/Handler/IDialogHandler.cs b/CefSharp/Handler/IDialogHandler.cs index 8d0db1947..7d2200ba1 100644 --- a/CefSharp/Handler/IDialogHandler.cs +++ b/CefSharp/Handler/IDialogHandler.cs @@ -25,7 +25,6 @@ public interface IDialogHandler /// the ChromiumWebBrowser control /// the browser object /// represents the type of dialog to display - /// further specifies behavior dialog should exhibit /// the title to be used for the dialog. It may be empty to show the default title ("Open" or "Save" /// depending on the mode). /// is the path with optional directory and/or file name component that @@ -34,18 +33,15 @@ public interface IDialogHandler /// (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"), /// (b) individual file extensions (e.g. ".txt" or ".png"), /// (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg"). - /// is the 0-based index of the filter that should be selected by default. /// Callback interface for asynchronous continuation of file dialog requests. /// To display a custom dialog return true. To display the default dialog return false. bool OnFileDialog( IWebBrowser chromiumWebBrowser, IBrowser browser, CefFileDialogMode mode, - CefFileDialogFlags flags, string title, string defaultFilePath, List acceptFilters, - int selectedAcceptFilter, IFileDialogCallback callback); } } diff --git a/CefSharp/IBrowserHost.cs b/CefSharp/IBrowserHost.cs index f440fbc21..1f1e37f44 100644 --- a/CefSharp/IBrowserHost.cs +++ b/CefSharp/IBrowserHost.cs @@ -331,9 +331,8 @@ public interface IBrowserHost : IDisposable /// to the title to be used for the dialog and may be empty to show the default title ("Open" or "Save" depending on the mode) /// is the path with optional directory and/or file name component that will be initially selected in the dialog /// are used to restrict the selectable file types and may any combination of (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"), (b) individual file extensions (e.g. ".txt" or ".png"), or (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg") - /// is the 0-based index of the filter that will be selected by default /// will be executed after the dialog is dismissed or immediately if another dialog is already pending. - void RunFileDialog(CefFileDialogMode mode, string title, string defaultFilePath, IList acceptFilters, int selectedAcceptFilter, IRunFileDialogCallback callback); + void RunFileDialog(CefFileDialogMode mode, string title, string defaultFilePath, IList acceptFilters, IRunFileDialogCallback callback); /// /// Returns the request context for this browser. From 0c6289322f22ad7cd3ee5cf7f3f3b54810c022dd Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 24 May 2022 14:54:48 +1000 Subject: [PATCH 025/543] Upgrade to CEF 102.0.6+g4209780+chromium-102.0.5005.61 / Chromium 102.0.5005.61 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 0e9bc5850..7c5e0a130 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 99026c809..1f5b423e4 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index c4d1bf37e..aba97bb91 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 102,0,50 - PRODUCTVERSION 102,0,50 + FILEVERSION 102,0,60 + PRODUCTVERSION 102,0,60 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "102.0.50" + VALUE "FileVersion", "102.0.60" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "102.0.50" + VALUE "ProductVersion", "102.0.60" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 67b4bcb6d..37f2f8c9c 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index ec4a5004c..aecd56605 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 84d522f4c..fc9e3bfe0 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index c7e3002ff..37cbc737e 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 5dad276f5..450b52743 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index d3da1ecea..df4afb605 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 102,0,50 - PRODUCTVERSION 102,0,50 + FILEVERSION 102,0,60 + PRODUCTVERSION 102,0,60 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "102.0.50" + VALUE "FileVersion", "102.0.60" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "102.0.50" + VALUE "ProductVersion", "102.0.60" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 67b4bcb6d..37f2f8c9c 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index ec4a5004c..aecd56605 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index d66ebff86..a3ed67458 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 99dd00fb4..c2f963733 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index d6fd392e9..bc49ac22f 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 4c3abab1d..88820cdec 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index f1792bb23..d9f42d09e 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 58fec07c3..aea355d40 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 35573aac0..7b82f0478 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 3da390f21..13586dd9c 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 655f20802..6ec879f20 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index e3098edc0..431656377 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 91aab6dca..775746e37 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index b0028840c..18b6d5e61 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 102.0.50 + 102.0.60 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 102.0.50 + Version 102.0.60 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 489a3ab7c..de52052c4 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "102.0.50"; - public const string AssemblyFileVersion = "102.0.50.0"; + public const string AssemblyVersion = "102.0.60"; + public const string AssemblyFileVersion = "102.0.60.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index bcc3e55db..67c5b27cf 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 5a95882b0..fd67ec19f 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index dec42236e..5faa645eb 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -153,9 +153,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 49d1045a8..adf55e853 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "102.0.5", + [string] $CefVersion = "102.0.6", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 20c6b985d..d8e00548f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 102.0.50-CI{build} +version: 102.0.60-CI{build} clone_depth: 10 From 61f581346a8fbe821ab1cf87d892fedbcde9071b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 24 May 2022 15:13:31 +1000 Subject: [PATCH 026/543] Remove Legacy Swiftshader - Update readme files - Remove from targets - Remove text references Issue https://github.com/cefsharp/CefSharp/issues/4085 --- CefSharp.AfterBuild.targets | 23 +--------- CefSharp.Core/CefSettingsBase.cs | 7 ++-- CefSharp.Native.props | 16 +------ .../CefSharp.Common.NETCore.targets | 42 ------------------- NuGet/PackageReference/Readme.txt | 2 +- NuGet/Readme.txt | 2 +- 6 files changed, 7 insertions(+), 85 deletions(-) diff --git a/CefSharp.AfterBuild.targets b/CefSharp.AfterBuild.targets index a41fe55f5..ef5658bd9 100644 --- a/CefSharp.AfterBuild.targets +++ b/CefSharp.AfterBuild.targets @@ -17,7 +17,7 @@ @@ -29,13 +29,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - @@ -47,13 +40,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - @@ -65,13 +51,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - diff --git a/CefSharp.Core/CefSettingsBase.cs b/CefSharp.Core/CefSettingsBase.cs index 8ff41483b..b11542069 100644 --- a/CefSharp.Core/CefSettingsBase.cs +++ b/CefSharp.Core/CefSettingsBase.cs @@ -412,7 +412,7 @@ public void RegisterScheme(CefCustomScheme scheme) /// /// Set command line argument to disable GPU Acceleration. WebGL will use - /// software rendering via Swiftshader (https://swiftshader.googlesource.com/SwiftShader#introduction) + /// software rendering /// public void DisableGpuAcceleration() { @@ -435,9 +435,8 @@ public void EnablePrintPreview() } /// - /// Set command line arguments for best OSR (Offscreen and WPF) Rendering performance Swiftshader will be used for WebGL, look at the source - /// to determine which flags best suite your requirements. See https://swiftshader.googlesource.com/SwiftShader#introduction for - /// details on Swiftshader + /// Set command line arguments for best OSR (Offscreen and WPF) Rendering performance Software Rendering will be used for WebGL, look at the source + /// to determine which flags best suite your requirements. /// public void SetOffScreenRenderingBestPerformanceArgs() { diff --git a/CefSharp.Native.props b/CefSharp.Native.props index 460c6c03e..b6912821f 100644 --- a/CefSharp.Native.props +++ b/CefSharp.Native.props @@ -9,7 +9,7 @@ @@ -21,13 +21,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - @@ -39,13 +32,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 5faa645eb..1a1466ce7 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -106,13 +106,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - @@ -124,13 +117,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - @@ -142,13 +128,6 @@ false true - - swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - @@ -163,13 +142,6 @@ false true - - runtimes\win-x86\native\swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - runtimes\win-x86\native\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest @@ -192,13 +164,6 @@ false true - - runtimes\win-x64\native\swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - runtimes\win-x64\native\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest @@ -221,13 +186,6 @@ false true - - runtimes\win-arm64\native\swiftshader\%(RecursiveDir)%(FileName)%(Extension) - PreserveNewest - Included - false - true - runtimes\win-arm64\native\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/NuGet/PackageReference/Readme.txt b/NuGet/PackageReference/Readme.txt index 10c568a83..72b4a905b 100644 --- a/NuGet/PackageReference/Readme.txt +++ b/NuGet/PackageReference/Readme.txt @@ -26,7 +26,7 @@ Basic Troubleshooting: * icudtl.dat (Unicode Support data) * chrome_elf.dll(Crash reporting library) * snapshot_blob.bin, v8_context_snapshot.bin (V8 snapshot data) - * locales\en-US.pak, chrome_100_percent.pak, chrome_200_percent.pak, resources.pak, d3dcompiler_47.dll, libEGL.dll, libGLESv2.dll, swiftshader/libEGL.dll, swiftshader/libGLESv2.dll + * locales\en-US.pak, chrome_100_percent.pak, chrome_200_percent.pak, resources.pak, d3dcompiler_47.dll, libEGL.dll, libGLESv2.dll - Whilst these are technically listed as optional, the browser is unlikely to function without these files. - See https://github.com/cefsharp/CefSharp/wiki/Output-files-description-table-%28Redistribution%29 for details * Ijwhost.dll (To support C++/CLI libraries in .NET Core/.Net 5.0, ijwhost was created as a shim for finding and loading the runtime.) diff --git a/NuGet/Readme.txt b/NuGet/Readme.txt index d4b49d7eb..5924cebb9 100644 --- a/NuGet/Readme.txt +++ b/NuGet/Readme.txt @@ -29,7 +29,7 @@ Basic Troubleshooting: * icudtl.dat (Unicode Support data) * chrome_elf.dll(Crash reporting library) * snapshot_blob.bin, v8_context_snapshot.bin (V8 snapshot data) - * locales\en-US.pak, chrome_100_percent.pak, chrome_200_percent.pak, resources.pak, d3dcompiler_47.dll, libEGL.dll, libGLESv2.dll, swiftshader/libEGL.dll, swiftshader/libGLESv2.dll + * locales\en-US.pak, chrome_100_percent.pak, chrome_200_percent.pak, resources.pak, d3dcompiler_47.dll, libEGL.dll, libGLESv2.dll - Whilst these are technically listed as optional, the browser is unlikely to function without these files. - See https://github.com/cefsharp/CefSharp/wiki/Output-files-description-table-%28Redistribution%29 for details * CefSharp.Core.dll, CefSharp.dll, CefSharp.Core.Runtime.dll From d701cee65546b9bb9d09d92bb927835dbaff5580 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 May 2022 12:00:18 +1000 Subject: [PATCH 027/543] 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 --- .../Selector/WaitForSelectorAsyncTests.cs | 204 ++++++++++++++++++ CefSharp/JavascriptResponse.cs | 2 + CefSharp/WaitForSelectorAsyncResponse.cs | 49 +++++ CefSharp/WebBrowserExtensions.cs | 125 ++++++++++- 4 files changed, 379 insertions(+), 1 deletion(-) create mode 100644 CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs create mode 100644 CefSharp/WaitForSelectorAsyncResponse.cs diff --git a/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs b/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs new file mode 100644 index 000000000..e06ef8ddb --- /dev/null +++ b/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs @@ -0,0 +1,204 @@ +using Xunit.Abstractions; +using Xunit; +using System.Threading.Tasks; +using CefSharp.OffScreen; +using CefSharp.Example; +using System; +using CefSharp.Web; + +namespace CefSharp.Test.Selector +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class WaitForSelectorAsyncTests + { + + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public WaitForSelectorAsyncTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task CanWork() + { + const string elementId = "newElement"; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var selectorTask = browser.WaitForSelectorAsync($"#{elementId}"); + var evaluateTask = browser.EvaluateScriptAsync("const newDiv = document.createElement('div'); newDiv.id = 'newElement'; const newContent = document.createTextNode('Hi there and greetings!'); newDiv.appendChild(newContent); document.body.append(newDiv);"); + + await Task.WhenAll(selectorTask, evaluateTask); + + var selectorResponse = selectorTask.Result; + var evalauteResponse = evaluateTask.Result; + + Assert.True(selectorResponse.Success); + Assert.True(evalauteResponse.Success); + + Assert.Equal(elementId, selectorResponse.ElementId); + Assert.Equal("DIV", selectorResponse.TagName); + } + } + + [Fact] + public async Task CanWorkForDelayedAction() + { + const string elementId = "newElement"; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var selectorTask = browser.WaitForSelectorAsync($"#{elementId}"); + var evaluateTask = Task.Run(async () => + { + await Task.Delay(500); + return await browser.EvaluateScriptAsync("const newDiv = document.createElement('div'); newDiv.id = 'newElement'; const newContent = document.createTextNode('Hi there and greetings!'); newDiv.appendChild(newContent); document.body.append(newDiv);"); + }); + + await Task.WhenAll(selectorTask, evaluateTask); + + var selectorResponse = selectorTask.Result; + var evalauteResponse = evaluateTask.Result; + + Assert.True(selectorResponse.Success); + Assert.True(evalauteResponse.Success); + + Assert.True(selectorResponse.ElementAdded); + Assert.Equal(elementId, selectorResponse.ElementId); + Assert.Equal("DIV", selectorResponse.TagName); + } + } + + [Fact] + public async Task CanWorkForRemoved() + { + const string elementId = "content"; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var selectorTask = browser.WaitForSelectorAsync($"#{elementId}", removed:true); + var evaluateTask = browser.EvaluateScriptAsync($"document.querySelector('#{elementId}').remove();"); + + await Task.WhenAll(selectorTask, evaluateTask); + + var selectorResponse = selectorTask.Result; + var evalauteResponse = evaluateTask.Result; + + Assert.True(selectorResponse.Success); + Assert.True(evalauteResponse.Success); + + Assert.False(selectorResponse.ElementAdded); + + var removedCheck = await browser.EvaluateScriptAsync($"document.querySelector('#{elementId}') === null"); + + Assert.True(removedCheck.Success); + Assert.True((bool)removedCheck.Result); + } + } + + [Fact] + public async Task ShouldReturnTrueForRemovedNonExistingElement() + { + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var selectorResponse = await browser.WaitForSelectorAsync("non-existing", removed:true ); + + Assert.True(selectorResponse.Success); + Assert.False(selectorResponse.ElementAdded); + } + } + + [Fact] + public async Task CanTimeout() + { + const string expected = "The operation has timed out."; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var exception = await Assert.ThrowsAnyAsync(async () => + { + await browser.WaitForSelectorAsync("#notExist", timeout: TimeSpan.FromMilliseconds(100)); + }); + + Assert.Contains(expected, exception.Message); + + output.WriteLine("Exception {0}", exception.Message); + } + } + + [Fact] + public async Task ShouldTimeoutIfNavigationOccurs() + { + const string expected = "The operation has timed out."; + const string url = CefExample.HelloWorldUrl; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var exception = await Assert.ThrowsAnyAsync(async () => + { + var navigationTask = browser.WaitForSelectorAsync("non-existant"); + var evaluateTask = browser.EvaluateScriptAsync($"setTimeout(() => window.location.href = '{url}', 100);"); + + await Task.WhenAll(navigationTask, evaluateTask); + }); + + Assert.Contains(expected, exception.Message); + Assert.Contains(url, browser.GetMainFrame().Url); + + output.WriteLine("Exception {0}", exception.Message); + } + } + + [Fact] + public async Task ShouldRespondToNodeAttributeMutation() + { + var html = new HtmlString("
"); + + using (var browser = new ChromiumWebBrowser(html)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var divFound = false; + var waitForSelector = browser.WaitForSelectorAsync(".zombo").ContinueWith(_ => divFound = true); + + Assert.False(divFound); + + browser.ExecuteScriptAsync("document.querySelector('div').className = 'zombo'"); + + var actual = await waitForSelector; + + Assert.True(actual); + } + } + } +} diff --git a/CefSharp/JavascriptResponse.cs b/CefSharp/JavascriptResponse.cs index 419701542..610f7ffc2 100644 --- a/CefSharp/JavascriptResponse.cs +++ b/CefSharp/JavascriptResponse.cs @@ -3,6 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System.Collections.Generic; +using System.Diagnostics; using System.Runtime.Serialization; using CefSharp.Internals; @@ -15,6 +16,7 @@ namespace CefSharp [KnownType(typeof(object[]))] [KnownType(typeof(JavascriptCallback))] [KnownType(typeof(Dictionary))] + [DebuggerDisplay("Success = {Success}, Message = {Message}, Result = {Result}")] public class JavascriptResponse { /// diff --git a/CefSharp/WaitForSelectorAsyncResponse.cs b/CefSharp/WaitForSelectorAsyncResponse.cs new file mode 100644 index 000000000..5d6d24d69 --- /dev/null +++ b/CefSharp/WaitForSelectorAsyncResponse.cs @@ -0,0 +1,49 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +namespace CefSharp +{ + /// + /// WaitForSelectorAsyncResponse + /// + public class WaitForSelectorAsyncResponse + { + /// + /// Element Id + /// + public string ElementId { get; private set; } + /// + /// Tag Name + /// + public string TagName { get; private set; } + /// + /// True if the javascript was executed successfully + /// + public bool Success { get; private set; } + /// + /// Error Message + /// + public string ErrorMessage { get; private set; } + /// + /// True if the element was added to the DOM otherwise false if it was removed + /// + public bool ElementAdded { get; private set; } + + public WaitForSelectorAsyncResponse(bool success, string errorMessage) + { + Success = success; + ErrorMessage = errorMessage; + } + + public WaitForSelectorAsyncResponse(string elementId, string tagName, bool elementAdded) + { + Success = true; + ErrorMessage = string.Empty; + + ElementId = elementId; + TagName = tagName; + ElementAdded = elementAdded; + } + } +} diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index 6f164dc39..b83128aef 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -3,6 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; +using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Globalization; @@ -483,7 +484,7 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch /// string script = "document.getElementsByTagName('a')[0].click();"; /// await Task.WhenAll( /// chromiumWebBrowser.WaitForNavigationAsync(), - /// chromiumWebBrowser.EvaluateScriptAsync(jsScript3)); + /// chromiumWebBrowser.EvaluateScriptAsync(script)); /// ]]> /// /// @@ -553,6 +554,128 @@ public static Task WaitForNavigationAsync(IChrom return TaskTimeoutExtensions.WaitAsync(tcs.Task, timeout ?? TimeSpan.FromSeconds(5), cancellationToken); } + /// + /// Waits for a DOM element specified by the string to be added to or removed from the DOM. + /// A simplified version of Puppeteer WaitForSelector. Uses a MutationObserver to wait for the element to become added or removed. + /// + /// ChromiumWebBrowser instance (cannot be null) + /// querySelector for the element e.g. #idOfMyElement + /// timeout + /// + /// (Optional) if true waits for element to be removed from the DOM. If the querySelector immediately resolves + /// to null then the element is considered removed. If false (default) waits for the element to be added to the DOM. + /// + /// A Task that resolves when element specified by selector string is added to or removed from the DOM. + /// + /// + /// + /// + /// + /// + /// This function is typically used in conjunction with javascript that directly or indirectly adds/removes an element from the DOM. + /// Unlike the puppeteer version navigations aren't handled internally, the method will throw a if a navigation + /// occurs whilst waiting to resolve. + /// + public static async Task WaitForSelectorAsync(this IWebBrowser chromiumWebBrowser, string selector, TimeSpan? timeout = null, bool removed = false) + { + const string waitForSelectorFunction = @" + async function waitForSelectorFunction(timeout, selector, waitForRemoved) + { + let timedOut = false; + if (timeout) + setTimeout(() => (timedOut = true), timeout); + + return await pollMutation(); + + async function pollMutation() { + const success = await mutationSelector(selector, waitForRemoved); + if (success) + return Promise.resolve(success); + let fulfill; + const result = new Promise((x) => (fulfill = x)); + const observer = new MutationObserver(async () => { + if (timedOut) { + observer.disconnect(); + fulfill(); + } + const success = await mutationSelector(selector, waitForRemoved); + if (success) { + observer.disconnect(); + fulfill(success); + } + }); + observer.observe(document, { + childList: true, + subtree: true, + attributes: false, + }); + return result; + } + + async function mutationSelector(selector, waitForRemoved) + { + const element = document.querySelector(selector); + + if (!element) + return waitForRemoved; + + if(waitForRemoved && element) + return null; + + let obj = {}; + obj.id = element.id; + obj.nodeValue = element.nodeValue; + obj.localName = element.localName; + obj.tagName = element.tagName; + + return obj; + } + };"; + + if(chromiumWebBrowser == null) + { + throw new ArgumentNullException(nameof(chromiumWebBrowser)); + } + + if(string.IsNullOrEmpty(selector)) + { + throw new ArgumentException($"{nameof(selector)} cannot be null or empty."); + } + + var execute = GetScriptForJavascriptMethodWithArgs("waitForSelectorFunction", new object[] { timeout.HasValue ? timeout.Value.Milliseconds : 5000, selector, removed }); + var query = @"return (async () => {" + Environment.NewLine + waitForSelectorFunction + Environment.NewLine + "return " + execute + Environment.NewLine + "})(); "; + + var response = chromiumWebBrowser.EvaluateScriptAsPromiseAsync(query); + + var timeoutResponse = await TaskTimeoutExtensions.WaitAsync(response, timeout ?? TimeSpan.FromSeconds(5)).ConfigureAwait(continueOnCapturedContext:false); + + if(timeoutResponse.Success) + { + if(removed) + { + if ((bool)timeoutResponse.Result) + { + return new WaitForSelectorAsyncResponse(string.Empty, string.Empty, false); + } + + return new WaitForSelectorAsyncResponse(false, $"Failed to detect DOM change for removed element via selector {selector}"); + } + + var element = (IDictionary)timeoutResponse.Result; + var id = element["id"].ToString(); + var tagName = element["tagName"].ToString(); + + return new WaitForSelectorAsyncResponse(id, tagName, true); + } + + return new WaitForSelectorAsyncResponse(false, timeoutResponse.Message); + } + /// /// Execute Javascript code in the context of this Browser. As the method name implies, the script will be executed /// asynchronously, and the method therefore returns before the script has actually been executed. This simple helper extension From 923e687fda79c1883e0ed25409316d4e4c4c8653 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 May 2022 13:37:46 +1000 Subject: [PATCH 028/543] Upgrade to CEF 102.0.9+g1c5e658+chromium-102.0.5005.63 / Chromium 102.0.5005.63 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 7c5e0a130..fe1574deb 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 1f5b423e4..26c3f3ae9 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index aba97bb91..5a04e71c4 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 102,0,60 - PRODUCTVERSION 102,0,60 + FILEVERSION 102,0,90 + PRODUCTVERSION 102,0,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "102.0.60" + VALUE "FileVersion", "102.0.90" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "102.0.60" + VALUE "ProductVersion", "102.0.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 37f2f8c9c..e8993ddef 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index aecd56605..378aa2b18 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index fc9e3bfe0..b49d23cbd 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 37cbc737e..2a1abc12d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 450b52743..75fec780d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index df4afb605..10bd62c27 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 102,0,60 - PRODUCTVERSION 102,0,60 + FILEVERSION 102,0,90 + PRODUCTVERSION 102,0,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "102.0.60" + VALUE "FileVersion", "102.0.90" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "102.0.60" + VALUE "ProductVersion", "102.0.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 37f2f8c9c..e8993ddef 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index aecd56605..378aa2b18 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index a3ed67458..d2f0a50cf 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index c2f963733..55e12d81e 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index bc49ac22f..39cef251a 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 88820cdec..4d8722e7f 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index d9f42d09e..809d12a57 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index aea355d40..23fe9dfec 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 7b82f0478..ae78ec30d 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 13586dd9c..76fc3f79d 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 6ec879f20..9a61f7f17 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 431656377..c2b9117bb 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 775746e37..ae4c43e07 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 18b6d5e61..09048e69f 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 102.0.60 + 102.0.90 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 102.0.60 + Version 102.0.90 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index de52052c4..37963c895 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "102.0.60"; - public const string AssemblyFileVersion = "102.0.60.0"; + public const string AssemblyVersion = "102.0.90"; + public const string AssemblyFileVersion = "102.0.90.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 67c5b27cf..42af0a824 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index fd67ec19f..10a12bb55 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 1a1466ce7..66266222a 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -132,9 +132,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index adf55e853..d15416f52 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "102.0.6", + [string] $CefVersion = "102.0.9", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index d8e00548f..a7c14bfc6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 102.0.60-CI{build} +version: 102.0.90-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 53a9e45a8..df6f37dc8 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "102.0.50", + [string] $Version = "102.0.90", [Parameter(Position = 2)] - [string] $AssemblyVersion = "102.0.50", + [string] $AssemblyVersion = "102.0.90", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 83c8e009d962686db84f0fb3fb6543a728d55b6a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 May 2022 14:20:22 +1000 Subject: [PATCH 029/543] DevTools - Add IWebBrowserInternal.DevToolsContext - For use with next version of CefSharp.Puppeteer --- CefSharp/Internals/IWebBrowserInternal.cs | 4 ++++ .../Partial/ChromiumWebBrowser.Partial.cs | 7 +++++++ CefSharp/WebBrowserExtensions.cs | 15 +++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/CefSharp/Internals/IWebBrowserInternal.cs b/CefSharp/Internals/IWebBrowserInternal.cs index 52d88ba58..483e33e45 100644 --- a/CefSharp/Internals/IWebBrowserInternal.cs +++ b/CefSharp/Internals/IWebBrowserInternal.cs @@ -2,6 +2,8 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; + namespace CefSharp.Internals { /// @@ -27,5 +29,7 @@ public interface IWebBrowserInternal : IWebBrowser IBrowserAdapter BrowserAdapter { get; } bool HasParent { get; set; } + + IDisposable DevToolsContext { get; set; } } } diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index 8e4168363..b747cbbc6 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -319,6 +319,11 @@ void IWebBrowserInternal.OnLoadError(LoadErrorEventArgs args) /// true if this instance has parent; otherwise, false. bool IWebBrowserInternal.HasParent { get; set; } + /// + /// Used by CefSharp.Puppeteer to associate a single DevToolsContext with a ChromiumWebBrowser instance. + /// + IDisposable IWebBrowserInternal.DevToolsContext { get; set; } + /// /// Gets the browser adapter. /// @@ -488,6 +493,8 @@ private void FreeHandlersExceptLifeSpanAndFocus() MenuHandler = null; ResourceRequestHandlerFactory = null; RenderProcessMessageHandler = null; + + this.DisposeDevToolsContext(); } /// diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index b83128aef..cb492421e 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -1695,6 +1695,21 @@ public static void SetAsPopup(this IWebBrowser browser) internalBrowser.HasParent = true; } + /// + /// Dispose of the DevTools Context (if any). Used in conjunction with CefSharp.Puppeteer + /// + /// ChromiumWebBrowser instance + public static void DisposeDevToolsContext(this IWebBrowserInternal webBrowserInternal) + { + if(webBrowserInternal == null) + { + return; + } + + webBrowserInternal.DevToolsContext?.Dispose(); + webBrowserInternal.DevToolsContext = null; + } + /// /// Function used to encode the params passed to , /// and From 29c7473b77e8c291ace60f23bdf86e41cd1cbd6c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 May 2022 14:24:55 +1000 Subject: [PATCH 030/543] Core - WaitForNavigationAsync cleanup events on timeout Unsubscribe to events when timeout occurs --- CefSharp/WebBrowserExtensions.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index cb492421e..f8f53b0f0 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -551,7 +551,16 @@ public static Task WaitForNavigationAsync(IChrom chromiumWebBrowser.LoadError += loadErrorHandler; chromiumWebBrowser.LoadingStateChanged += loadingStateChangeHandler; - return TaskTimeoutExtensions.WaitAsync(tcs.Task, timeout ?? TimeSpan.FromSeconds(5), cancellationToken); + var timeOutTask = TaskTimeoutExtensions.WaitAsync(tcs.Task, timeout ?? TimeSpan.FromSeconds(5), cancellationToken); + + timeOutTask.ContinueWith(x => + { + chromiumWebBrowser.LoadError -= loadErrorHandler; + chromiumWebBrowser.LoadingStateChanged -= loadingStateChangeHandler; + + }, TaskContinuationOptions.NotOnRanToCompletion); + + return timeOutTask; } /// From b8b27f6885d2e7bc67a3ce9607e81bb547a6c518 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 May 2022 19:11:17 +1000 Subject: [PATCH 031/543] 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) --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 60 ++++++++++ CefSharp.Test/Framework/HasHandlerFacts.cs | 49 ++++++++ .../OffScreen/WaitForRenderIdleTests.cs | 102 +++++++++++++++++ CefSharp.Test/WebBrowserTestExtensions.cs | 43 +++++++ CefSharp.Test/Wpf/WaitForRenderIdleTests.cs | 107 ++++++++++++++++++ CefSharp.Wpf/ChromiumWebBrowser.cs | 60 ++++++++++ CefSharp/Internals/TaskTimeoutExtensions.cs | 2 +- 7 files changed, 422 insertions(+), 1 deletion(-) create mode 100644 CefSharp.Test/Framework/HasHandlerFacts.cs create mode 100644 CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs create mode 100644 CefSharp.Test/Wpf/WaitForRenderIdleTests.cs diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 48ede401d..2a22b5051 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -667,6 +667,66 @@ public void Load(string url) } } +#if NETCOREAPP || NET462 + /// + /// Waits for the page rendering to be idle for . + /// Rendering is considered to be idle when no events have occured + /// for . + /// This is useful for scenarios like taking a screen shot. + /// + /// optional idleTime in miliseconds, default to 500ms + /// optional timeout, if not specified defaults to thirty(30) seconds. + /// optional CancellationToken + /// Task that resolves when page rendering has been idle for + public async Task WaitForRenderIdleAsync(int idleTimeInMs = 500, TimeSpan? timeout = null, CancellationToken cancellationToken = default) + { + var renderIdleTcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + + var idleTimer = new System.Timers.Timer + { + Interval = idleTimeInMs, + AutoReset = false + }; + + EventHandler handler = null; + + idleTimer.Elapsed += (sender, args) => + { + Paint -= handler; + + idleTimer.Stop(); + idleTimer.Dispose(); + + renderIdleTcs.TrySetResult(true); + }; + + //Every time Paint is called we reset our timer + handler = (s, args) => + { + idleTimer.Stop(); + idleTimer.Start(); + }; + + idleTimer.Start(); + + Paint += handler; + + try + { + await TaskTimeoutExtensions.WaitAsync(renderIdleTcs.Task, timeout ?? TimeSpan.FromSeconds(30), cancellationToken).ConfigureAwait(false); + } + catch(Exception) + { + Paint -= handler; + + idleTimer?.Stop(); + idleTimer?.Dispose(); + + throw; + } + } +#endif + /// /// The javascript object repository, one repository per ChromiumWebBrowser instance. /// diff --git a/CefSharp.Test/Framework/HasHandlerFacts.cs b/CefSharp.Test/Framework/HasHandlerFacts.cs new file mode 100644 index 000000000..515b9cd57 --- /dev/null +++ b/CefSharp.Test/Framework/HasHandlerFacts.cs @@ -0,0 +1,49 @@ +using Xunit; + +namespace CefSharp.Test.Framework +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class HasHandlerFacts + { + [Fact] + public void ShouldWorkForOffScreen() + { + using(var browser = new CefSharp.OffScreen.ChromiumWebBrowser(automaticallyCreateBrowser:false)) + { + browser.Paint += OffScreenBrowserPaint; + + Assert.Equal(1, browser.PaintEventHandlerCount()); + + browser.Paint -= OffScreenBrowserPaint; + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } + + [WpfFact] + public void ShouldWorkForWpf() + { + using (var browser = new CefSharp.Wpf.ChromiumWebBrowser()) + { + browser.Paint += WpfBrowserPaint; + + Assert.Equal(1, browser.PaintEventHandlerCount()); + + browser.Paint -= WpfBrowserPaint; + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } + + private void WpfBrowserPaint(object sender, CefSharp.Wpf.PaintEventArgs e) + { + + } + + private void OffScreenBrowserPaint(object sender, CefSharp.OffScreen.OnPaintEventArgs e) + { + + } + } +} diff --git a/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs b/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs new file mode 100644 index 000000000..ccc3e92db --- /dev/null +++ b/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs @@ -0,0 +1,102 @@ +using CefSharp.Example; +using CefSharp.OffScreen; +using System; +using System.Threading.Tasks; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.OffScreen +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class WaitForRenderIdleTests + { + + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public WaitForRenderIdleTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task ShouldWork() + { + const int expected = 500; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var start = DateTime.Now; + await browser.WaitForRenderIdleAsync(); + + var end = DateTime.Now; + + var time = (end - start).TotalMilliseconds; + + Assert.True(end > start); + Assert.True(time > expected, $"Executed in {time}ms"); + + output.WriteLine("Time {0}ms", time); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } + + [Fact] + public async Task ShouldWorkForManualInvalidateCalls() + { + const int expected = 600; + + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var start = DateTime.Now; + + var invalidateTask = Task.Run(async () => + { + await Task.Delay(400); + + browser.GetBrowserHost().Invalidate(PaintElementType.View); + + await Task.Delay(100); + + browser.GetBrowserHost().Invalidate(PaintElementType.View); + + await Task.Delay(100); + + browser.GetBrowserHost().Invalidate(PaintElementType.View); + }); + + await Task.WhenAll(browser.WaitForRenderIdleAsync(), invalidateTask); + + var end = DateTime.Now; + + var time = (end - start).TotalMilliseconds; + + Assert.True(end > start); + Assert.True(time > expected, $"Executed in {time}ms"); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + + output.WriteLine("Time {0}ms", time); + } + } + + [Fact] + public async Task ShouldRespectTimeout() + { + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var exception = await Assert.ThrowsAsync(async () => + { + await browser.WaitForRenderIdleAsync(timeout: TimeSpan.FromMilliseconds(100)); + }); + + Assert.Equal("The operation has timed out.", exception.Message); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } + } +} diff --git a/CefSharp.Test/WebBrowserTestExtensions.cs b/CefSharp.Test/WebBrowserTestExtensions.cs index 78a93ec42..227eb3f7c 100644 --- a/CefSharp.Test/WebBrowserTestExtensions.cs +++ b/CefSharp.Test/WebBrowserTestExtensions.cs @@ -3,6 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; +using System.Reflection; using System.Threading.Tasks; using CefSharp.OffScreen; @@ -10,6 +11,48 @@ namespace CefSharp.Test { public static class WebBrowserTestExtensions { + public static int PaintEventHandlerCount(this CefSharp.Wpf.ChromiumWebBrowser browser) + { + var field = typeof(CefSharp.Wpf.ChromiumWebBrowser).GetField("Paint", BindingFlags.NonPublic | BindingFlags.Instance); + + if(field == null) + { + throw new Exception("Unable to obtain Paint event handler"); + } + + var handler = field.GetValue(browser) as Delegate; + + if (handler == null) + { + return 0; + } + + var subscribers = handler.GetInvocationList(); + + return subscribers.Length; + } + + public static int PaintEventHandlerCount(this ChromiumWebBrowser browser) + { + var field = typeof(ChromiumWebBrowser).GetField("Paint", BindingFlags.NonPublic | BindingFlags.Instance); + + if (field == null) + { + throw new Exception("Unable to obtain Paint event handler"); + } + + var handler = field.GetValue(browser) as Delegate; + + if (handler == null) + { + return 0; + } + + var subscribers = handler.GetInvocationList(); + + return subscribers.Length; + } + public static Task LoadRequestAsync(this IWebBrowser browser, IRequest request) { if(request == null) diff --git a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs new file mode 100644 index 000000000..5886439ea --- /dev/null +++ b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs @@ -0,0 +1,107 @@ +using CefSharp.Example; +using CefSharp.Wpf; +using System; +using System.Threading.Tasks; +using System.Windows; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Wpf +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class WaitForRenderIdleTests + { + + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public WaitForRenderIdleTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [WpfFact] + public async Task ShouldWork() + { + const int expected = 500; + + using (var browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) + { + var start = DateTime.Now; + await browser.WaitForRenderIdleAsync(); + + var end = DateTime.Now; + + var time = (end - start).TotalMilliseconds; + + Assert.True(end > start); + Assert.True(time > expected, $"Executed in {time}ms"); + + output.WriteLine("Time {0}ms", time); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } + + [WpfFact] + public async Task ShouldWorkForManualInvalidateCalls() + { + const int expected = 600; + + using (var browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) + { + var start = DateTime.Now; + + var invalidateTask = Task.Run(async () => + { + await Task.Delay(400); + + // Ensure the browser has finished loading before we attempt + // to access BrowserHost + await browser.WaitForInitialLoadAsync(); + + browser.GetBrowserHost().Invalidate(PaintElementType.View); + + await Task.Delay(100); + + browser.GetBrowserHost().Invalidate(PaintElementType.View); + + await Task.Delay(100); + + browser.GetBrowserHost().Invalidate(PaintElementType.View); + }); + + await Task.WhenAll(browser.WaitForRenderIdleAsync(), invalidateTask); + + var end = DateTime.Now; + + var time = (end - start).TotalMilliseconds; + + Assert.True(end > start); + Assert.True(time > expected, $"Executed in {time}ms"); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + + output.WriteLine("Time {0}ms", time); + } + } + + [WpfFact] + public async Task ShouldRespectTimeout() + { + using (var browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) + { + var exception = await Assert.ThrowsAsync(async () => + { + await browser.WaitForRenderIdleAsync(timeout: TimeSpan.FromMilliseconds(100)); + }); + + Assert.Equal("The operation has timed out.", exception.Message); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } + } +} diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index df99258a0..4f55b09ca 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -2575,6 +2575,66 @@ public virtual void NotifyDpiChange(float newDpi) } } +#if NETCOREAPP || NET462 + /// + /// Waits for the page rendering to be idle for . + /// Rendering is considered to be idle when no events have occured + /// for . + /// This is useful for scenarios like taking a screen shot + /// + /// optional idleTime in miliseconds, default to 500ms + /// optional timeout, if not specified defaults to thirty(30) seconds. + /// optional CancellationToken + /// Task that resolves when page rendering has been idle for + public async Task WaitForRenderIdleAsync(int idleTimeInMs = 500, TimeSpan? timeout = null, CancellationToken cancellationToken = default) + { + var renderIdleTcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + + var idleTimer = new System.Timers.Timer + { + Interval = idleTimeInMs, + AutoReset = false + }; + + EventHandler handler = null; + + idleTimer.Elapsed += (sender, args) => + { + Paint -= handler; + + idleTimer.Stop(); + idleTimer.Dispose(); + + renderIdleTcs.TrySetResult(true); + }; + + //Every time Paint is called we reset our timer + handler = (s, args) => + { + idleTimer.Stop(); + idleTimer.Start(); + }; + + idleTimer.Start(); + + Paint += handler; + + try + { + await TaskTimeoutExtensions.WaitAsync(renderIdleTcs.Task, timeout ?? TimeSpan.FromSeconds(30), cancellationToken).ConfigureAwait(false); + } + catch (Exception) + { + Paint -= handler; + + idleTimer?.Stop(); + idleTimer?.Dispose(); + + throw; + } + } +#endif + /// /// Legacy keyboard handler uses WindowProc callback interceptor to forward keypress events /// the the browser. Use this method to revert to the previous keyboard handling behaviour diff --git a/CefSharp/Internals/TaskTimeoutExtensions.cs b/CefSharp/Internals/TaskTimeoutExtensions.cs index ffeaff9e0..fdc48f18f 100644 --- a/CefSharp/Internals/TaskTimeoutExtensions.cs +++ b/CefSharp/Internals/TaskTimeoutExtensions.cs @@ -13,7 +13,7 @@ namespace CefSharp.Internals /// WaitAsync polyfills imported from .Net Runtime /// as we don't get access to this method in older .net versions /// - internal static class TaskTimeoutExtensions + public static class TaskTimeoutExtensions { public static Task WaitAsync(Task task, int millisecondsTimeout) => WaitAsync(task, TimeSpan.FromMilliseconds(millisecondsTimeout), default); From 22de75f1be998be3828fdf9d18c7eb60d44224bd Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 May 2022 19:14:06 +1000 Subject: [PATCH 032/543] WaitForNavigationAsync - Change timeout handling --- CefSharp/WebBrowserExtensions.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index f8f53b0f0..872ad5a91 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -488,7 +488,7 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch /// ]]> /// /// - public static Task WaitForNavigationAsync(IChromiumWebBrowserBase chromiumWebBrowser, TimeSpan? timeout = null, CancellationToken cancellationToken = default) + public static async Task WaitForNavigationAsync(IChromiumWebBrowserBase chromiumWebBrowser, TimeSpan? timeout = null, CancellationToken cancellationToken = default) { var tcs = new TaskCompletionSource(); @@ -551,16 +551,17 @@ public static Task WaitForNavigationAsync(IChrom chromiumWebBrowser.LoadError += loadErrorHandler; chromiumWebBrowser.LoadingStateChanged += loadingStateChangeHandler; - var timeOutTask = TaskTimeoutExtensions.WaitAsync(tcs.Task, timeout ?? TimeSpan.FromSeconds(5), cancellationToken); - - timeOutTask.ContinueWith(x => + try + { + return await TaskTimeoutExtensions.WaitAsync(tcs.Task, timeout ?? TimeSpan.FromSeconds(5), cancellationToken).ConfigureAwait(false); + } + catch (Exception) { chromiumWebBrowser.LoadError -= loadErrorHandler; chromiumWebBrowser.LoadingStateChanged -= loadingStateChangeHandler; - }, TaskContinuationOptions.NotOnRanToCompletion); - - return timeOutTask; + throw; + } } /// From cae407f9f1d2d054b3568ff65e3ae978e58e7a36 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 May 2022 19:22:25 +1000 Subject: [PATCH 033/543] WPF/OffScreen - Add WaitForRenderIdleAsync CancellationToken test --- .../OffScreen/WaitForRenderIdleTests.cs | 23 ++++++++++++++++++- CefSharp.Test/Wpf/WaitForRenderIdleTests.cs | 22 +++++++++++++++++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs b/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs index ccc3e92db..78a3b9ecb 100644 --- a/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs @@ -1,6 +1,7 @@ using CefSharp.Example; using CefSharp.OffScreen; using System; +using System.Threading; using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; @@ -97,6 +98,26 @@ public async Task ShouldRespectTimeout() Assert.Equal(0, browser.PaintEventHandlerCount()); } - } + } + + [Fact] + public async Task ShouldRespectCancellation() + { + + using (var cancellationSource = new CancellationTokenSource()) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + cancellationSource.CancelAfter(400); + + var exception = await Assert.ThrowsAsync(async () => + { + await browser.WaitForRenderIdleAsync(cancellationToken:cancellationSource.Token); + }); + + Assert.Equal("A task was canceled.", exception.Message); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } } } diff --git a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs index 5886439ea..65b97a1a5 100644 --- a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs @@ -1,6 +1,7 @@ using CefSharp.Example; using CefSharp.Wpf; using System; +using System.Threading; using System.Threading.Tasks; using System.Windows; using Xunit; @@ -102,6 +103,25 @@ public async Task ShouldRespectTimeout() Assert.Equal(0, browser.PaintEventHandlerCount()); } - } + } + + [WpfFact] + public async Task ShouldRespectCancellation() + { + using (var cancellationSource = new CancellationTokenSource()) + using (var browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) + { + cancellationSource.CancelAfter(400); + + var exception = await Assert.ThrowsAsync(async () => + { + await browser.WaitForRenderIdleAsync(cancellationToken:cancellationSource.Token); + }); + + Assert.Equal("A task was canceled.", exception.Message); + + Assert.Equal(0, browser.PaintEventHandlerCount()); + } + } } } From 787665bcfe734d8e5c48545125e32cd5024bc454 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 31 May 2022 10:56:13 +1000 Subject: [PATCH 034/543] 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. --- .../OffScreen/OffScreenBrowserBasicFacts.cs | 27 +++++ .../WinForms/WinFormsBrowserBasicFacts.cs | 29 +++++ CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs | 20 ++++ CefSharp/WebBrowserExtensions.cs | 109 +++++++++++++++++- 4 files changed, 184 insertions(+), 1 deletion(-) diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs index cca31d9aa..a6241a4ca 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs @@ -64,6 +64,33 @@ public async Task CanLoadGoogle() } } + [Fact] + public async Task ShouldRespectDisposed() + { + ChromiumWebBrowser browser; + + using (browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + Assert.Equal(CefExample.DefaultUrl, mainFrame.Url); + Assert.Equal(200, response.HttpStatusCode); + + output.WriteLine("Url {0}", mainFrame.Url); + } + + Assert.True(browser.IsDisposed); + + Assert.Throws(() => + { + browser.Copy(); + }); + } + [Fact] public async Task CanLoadInvalidDomain() { diff --git a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs index 476320d62..05ac69e7f 100644 --- a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs +++ b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs @@ -2,7 +2,9 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Threading.Tasks; +using CefSharp.Example; using CefSharp.WinForms; using Xunit; using Xunit.Abstractions; @@ -126,5 +128,32 @@ public async Task CanSetRequestContext() output.WriteLine("Url {0}", mainFrame.Url); } } + + [WinFormsFact] + public async Task ShouldRespectDisposed() + { + ChromiumWebBrowser browser; + + using (browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + { + browser.Size = new System.Drawing.Size(1024, 768); + browser.CreateControl(); + + await browser.WaitForInitialLoadAsync(); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + Assert.Equal(CefExample.DefaultUrl, mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + + Assert.True(browser.IsDisposed); + + Assert.Throws(() => + { + browser.Copy(); + }); + } } } diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs index 65daafc10..f2dcd18c1 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs @@ -2,8 +2,10 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Threading.Tasks; using System.Windows; +using CefSharp.Example; using CefSharp.Wpf; using Xunit; using Xunit.Abstractions; @@ -111,5 +113,23 @@ public async Task CanSetRequestContextViaBuilder() output.WriteLine("Url {0}", mainFrame.Url); } } + + [WpfFact] + public async Task ShouldRespectDisposed() + { + ChromiumWebBrowser browser; + + using (browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) + { + await browser.WaitForInitialLoadAsync(); + } + + Assert.True(browser.IsDisposed); + + var ex = Assert.Throws(() => + { + browser.Copy(); + }); + } } } diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index 872ad5a91..18655551a 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -69,6 +69,8 @@ public static void RegisterAsyncJsObject(this IWebBrowser webBrowser, string nam /// the main frame. public static IFrame GetMainFrame(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var cefBrowser = browser.BrowserCore; cefBrowser.ThrowExceptionIfBrowserNull(); @@ -83,6 +85,8 @@ public static IFrame GetMainFrame(this IChromiumWebBrowserBase browser) /// the focused frame. public static IFrame GetFocusedFrame(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var cefBrowser = browser.BrowserCore; cefBrowser.ThrowExceptionIfBrowserNull(); @@ -96,6 +100,8 @@ public static IFrame GetFocusedFrame(this IChromiumWebBrowserBase browser) /// The ChromiumWebBrowser instance this method extends. public static void Undo(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Undo(); } @@ -121,6 +127,8 @@ public static void Undo(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Redo(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Redo(); } @@ -146,6 +154,8 @@ public static void Redo(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Cut(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Cut(); } @@ -171,6 +181,8 @@ public static void Cut(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Copy(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Copy(); } @@ -196,6 +208,8 @@ public static void Copy(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Paste(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Paste(); } @@ -221,6 +235,8 @@ public static void Paste(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Delete(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Delete(); } @@ -246,6 +262,8 @@ public static void Delete(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void SelectAll(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.SelectAll(); } @@ -272,6 +290,8 @@ public static void SelectAll(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void ViewSource(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.ViewSource(); } @@ -301,6 +321,8 @@ public static void ViewSource(this IBrowser browser) /// public static Task GetSourceAsync(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + return browser.BrowserCore.GetSourceAsync(); } @@ -332,6 +354,8 @@ public static Task GetSourceAsync(this IBrowser browser) /// public static Task GetTextAsync(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + return browser.BrowserCore.GetTextAsync(); } @@ -361,6 +385,8 @@ public static Task GetTextAsync(this IBrowser browser) /// url to download public static void StartDownload(this IChromiumWebBrowserBase browser, string url) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.StartDownload(url); } @@ -391,7 +417,9 @@ public static void StartDownload(this IBrowser browser, string url) /// See for details public static Task LoadUrlAsync(IChromiumWebBrowserBase chromiumWebBrowser, string url) { - if(string.IsNullOrEmpty(url)) + ThrowExceptionIfChromiumWebBrowserDisposed(chromiumWebBrowser); + + if (string.IsNullOrEmpty(url)) { throw new ArgumentNullException(nameof(url)); } @@ -490,6 +518,8 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch /// public static async Task WaitForNavigationAsync(IChromiumWebBrowserBase chromiumWebBrowser, TimeSpan? timeout = null, CancellationToken cancellationToken = default) { + ThrowExceptionIfChromiumWebBrowserDisposed(chromiumWebBrowser); + var tcs = new TaskCompletionSource(); EventHandler loadErrorHandler = null; @@ -697,6 +727,8 @@ async function mutationSelector(selector, waitForRemoved) /// , you can provide a custom implementation if you require one. public static void ExecuteScriptAsync(this IChromiumWebBrowserBase browser, string methodName, params object[] args) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.ExecuteScriptAsync(methodName, args); } @@ -724,6 +756,8 @@ public static void ExecuteScriptAsync(this IBrowser browser, string methodName, /// The Javascript code that should be executed. public static void ExecuteScriptAsync(this IChromiumWebBrowserBase browser, string script) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + using (var frame = browser.GetMainFrame()) { ThrowExceptionIfFrameNull(frame); @@ -765,6 +799,8 @@ public static void ExecuteScriptAsync(this IBrowser browser, string script) /// (Optional) The script will only be executed on first page load, subsequent page loads will be ignored. public static void ExecuteScriptAsyncWhenPageLoaded(this IChromiumWebBrowserBase webBrowser, string script, bool oneTime = true) { + ThrowExceptionIfChromiumWebBrowserDisposed(webBrowser); + var useLoadingStateChangedEventHandler = webBrowser.IsBrowserInitialized == false || oneTime == false; //Browser has been initialized, we check if there is a valid document and we're not loading @@ -816,6 +852,8 @@ public static void ExecuteScriptAsyncWhenPageLoaded(this IChromiumWebBrowserBase /// (Optional) if set the Content-Type header will be set public static void LoadUrlWithPostData(this IChromiumWebBrowserBase browser, string url, byte[] postDataBytes, string contentType = null) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.LoadUrlWithPostData(url, postDataBytes, contentType); } @@ -886,6 +924,8 @@ public static bool LoadHtml(this IWebBrowser browser, string html, string url) /// (Optional) if true the html string will be base64 encoded using UTF8 encoding. public static void LoadHtml(this IChromiumWebBrowserBase browser, string html, bool base64Encode = false) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var htmlString = new HtmlString(html, base64Encode); browser.LoadUrl(htmlString.ToDataUriString()); @@ -924,6 +964,8 @@ public static void LoadHtml(this IFrame frame, string html, bool base64Encode = /// public static bool LoadHtml(this IWebBrowser browser, string html, string url, Encoding encoding, bool oneTimeUse = false) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + if (browser.ResourceRequestHandlerFactory == null) { browser.ResourceRequestHandlerFactory = new ResourceRequestHandlerFactory(); @@ -959,6 +1001,8 @@ public static bool LoadHtml(this IWebBrowser browser, string html, string url, E public static void RegisterResourceHandler(this IWebBrowser browser, string url, Stream stream, string mimeType = ResourceHandler.DefaultMimeType, bool oneTimeUse = false) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + if (browser.ResourceRequestHandlerFactory == null) { browser.ResourceRequestHandlerFactory = new ResourceRequestHandlerFactory(); @@ -988,6 +1032,8 @@ public static void RegisterResourceHandler(this IWebBrowser browser, string url, /// the url of the resource to unregister. public static void UnRegisterResourceHandler(this IWebBrowser browser, string url) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var handler = browser.ResourceRequestHandlerFactory as ResourceRequestHandlerFactory; if (handler == null) @@ -1004,6 +1050,8 @@ public static void UnRegisterResourceHandler(this IWebBrowser browser, string ur /// The ChromiumWebBrowser instance this method extends. public static void Stop(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Stop(); } @@ -1024,6 +1072,8 @@ public static void Stop(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Back(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Back(); } @@ -1044,6 +1094,8 @@ public static void Back(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Forward(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Forward(); } @@ -1064,6 +1116,8 @@ public static void Forward(this IBrowser browser) /// The ChromiumWebBrowser instance this method extends. public static void Reload(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.Reload(false); } @@ -1076,6 +1130,8 @@ public static void Reload(this IChromiumWebBrowserBase browser) /// files from the browser cache, if available. public static void Reload(this IChromiumWebBrowserBase browser, bool ignoreCache) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.Reload(ignoreCache); } @@ -1105,6 +1161,8 @@ public static void Reload(this IBrowser browser, bool ignoreCache = false) /// public static ICookieManager GetCookieManager(this IChromiumWebBrowserBase browser, ICompletionCallback callback = null) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var host = browser.GetBrowserHost(); ThrowExceptionIfBrowserHostNull(host); @@ -1129,6 +1187,8 @@ public static ICookieManager GetCookieManager(this IChromiumWebBrowserBase brows /// public static IRequestContext GetRequestContext(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var host = browser.GetBrowserHost(); ThrowExceptionIfBrowserHostNull(host); @@ -1160,6 +1220,8 @@ public static Task GetZoomLevelAsync(this IBrowser cefBrowser) /// public static Task GetZoomLevelAsync(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + return browser.BrowserCore.GetZoomLevelAsync(); } @@ -1193,6 +1255,8 @@ public static void SetZoomLevel(this IBrowser cefBrowser, double zoomLevel) /// zoom level. public static void SetZoomLevel(this IChromiumWebBrowserBase browser, double zoomLevel) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.SetZoomLevel(zoomLevel); } @@ -1222,6 +1286,8 @@ public static void Find(this IBrowser cefBrowser, string searchText, bool forwar /// indicates whether this is the first request or a follow-up. public static void Find(this IChromiumWebBrowserBase browser, string searchText, bool forward, bool matchCase, bool findNext) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var cefBrowser = browser.BrowserCore; cefBrowser.ThrowExceptionIfBrowserNull(); @@ -1250,6 +1316,8 @@ public static void StopFinding(this IBrowser cefBrowser, bool clearSelection) /// clear the current search selection. public static void StopFinding(this IChromiumWebBrowserBase browser, bool clearSelection) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.StopFinding(clearSelection); } @@ -1293,6 +1361,8 @@ public static Task PrintToPdfAsync(this IBrowser cefBrowser, string path, /// The ChromiumWebBrowser instance this method extends. public static void Print(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var cefBrowser = browser.BrowserCore; cefBrowser.ThrowExceptionIfBrowserNull(); @@ -1312,6 +1382,8 @@ public static void Print(this IChromiumWebBrowserBase browser) /// public static Task PrintToPdfAsync(this IChromiumWebBrowserBase browser, string path, PdfPrintSettings settings = null) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + return browser.BrowserCore.PrintToPdfAsync(path, settings); } @@ -1339,6 +1411,8 @@ public static void ShowDevTools(this IBrowser cefBrowser, IWindowInfo windowInfo /// (Optional) y coordinate (used for inspectElement) public static void ShowDevTools(this IChromiumWebBrowserBase browser, IWindowInfo windowInfo = null, int inspectElementAtX = 0, int inspectElementAtY = 0) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.ShowDevTools(windowInfo, inspectElementAtX, inspectElementAtY); } @@ -1360,6 +1434,8 @@ public static void CloseDevTools(this IBrowser cefBrowser) /// The ChromiumWebBrowser instance this method extends. public static void CloseDevTools(this IChromiumWebBrowserBase browser) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.CloseDevTools(); } @@ -1383,6 +1459,8 @@ public static void ReplaceMisspelling(this IBrowser cefBrowser, string word) /// The new word that will replace the currently selected word. public static void ReplaceMisspelling(this IChromiumWebBrowserBase browser, string word) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.ReplaceMisspelling(word); } @@ -1420,6 +1498,8 @@ public static IBrowserHost GetBrowserHost(this IChromiumWebBrowserBase browser) /// The new word that will be added to the dictionary. public static void AddWordToDictionary(this IChromiumWebBrowserBase browser, string word) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.AddWordToDictionary(word); } @@ -1434,6 +1514,8 @@ public static void AddWordToDictionary(this IChromiumWebBrowserBase browser, str /// The modifiers. public static void SendMouseWheelEvent(this IChromiumWebBrowserBase browser, int x, int y, int deltaX, int deltaY, CefEventFlags modifiers) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + browser.BrowserCore.SendMouseWheelEvent(x, y, deltaX, deltaY, modifiers); } @@ -1520,6 +1602,8 @@ public static void SendMouseMoveEvent(this IBrowserHost host, int x, int y, bool /// public static Task EvaluateScriptAsPromiseAsync(this IWebBrowser chromiumWebBrowser, string script, TimeSpan? timeout = null) { + ThrowExceptionIfChromiumWebBrowserDisposed(chromiumWebBrowser); + var jsbSettings = chromiumWebBrowser.JavascriptObjectRepository.Settings; var promiseHandlerScript = GetPromiseHandlerScript(script, jsbSettings.JavascriptBindingApiGlobalObjectName); @@ -1614,6 +1698,8 @@ private static string GetPromiseHandlerScript(string script, string javascriptBi /// public static Task EvaluateScriptAsync(this IChromiumWebBrowserBase browser, string script, TimeSpan? timeout = null, bool useImmediatelyInvokedFuncExpression = false) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + if (browser is IWebBrowser b) { if (b.CanExecuteJavascriptInMainFrame == false) @@ -1670,6 +1756,8 @@ public static Task EvaluateScriptAsync(this IBrowser browser /// public static Task EvaluateScriptAsync(this IChromiumWebBrowserBase browser, string methodName, params object[] args) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + return browser.EvaluateScriptAsync(null, methodName, args); } @@ -1688,6 +1776,8 @@ public static Task EvaluateScriptAsync(this IChromiumWebBrow /// public static Task EvaluateScriptAsync(this IChromiumWebBrowserBase browser, TimeSpan? timeout, string methodName, params object[] args) { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + var script = GetScriptForJavascriptMethodWithArgs(methodName, args); return browser.EvaluateScriptAsync(script, timeout); @@ -1812,6 +1902,23 @@ public static string GetScriptForJavascriptMethodWithArgs(string methodName, obj return stringBuilder.ToString(); } + private static void ThrowExceptionIfChromiumWebBrowserDisposed(IChromiumWebBrowserBase browser) + { + if (browser == null) + { + throw new ArgumentNullException(nameof(browser)); + } + + if (browser.IsDisposed) + { + // Provide a more meaningful message for WinForms ChromiumHostControl + // should be ChromiumWebBrowser/ChromiumHostControl + var type = browser.GetType(); + + throw new ObjectDisposedException(type.Name); + } + } + /// /// Throw exception if frame null. /// From cbbd57e4355e5cb4f81cbc476041dd3cee1b0732 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 31 May 2022 11:05:03 +1000 Subject: [PATCH 035/543] Core - Fix some exception messages --- CefSharp/AsyncExtensions.cs | 8 ++++---- CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CefSharp/AsyncExtensions.cs b/CefSharp/AsyncExtensions.cs index 2bd2ec137..af3a834f9 100644 --- a/CefSharp/AsyncExtensions.cs +++ b/CefSharp/AsyncExtensions.cs @@ -26,12 +26,12 @@ public static Task DeleteCookiesAsync(this ICookieManager cookieManager, st { if (cookieManager == null) { - throw new NullReferenceException("cookieManager"); + throw new ArgumentNullException(nameof(cookieManager)); } if (cookieManager.IsDisposed) { - throw new ObjectDisposedException("cookieManager"); + throw new ObjectDisposedException("CookieManager"); } var callback = new TaskDeleteCookiesCallback(); @@ -58,12 +58,12 @@ public static Task SetCookieAsync(this ICookieManager cookieManager, strin { if (cookieManager == null) { - throw new NullReferenceException("cookieManager"); + throw new ArgumentNullException(nameof(cookieManager)); } if (cookieManager.IsDisposed) { - throw new ObjectDisposedException("cookieManager"); + throw new ObjectDisposedException("CookieManager"); } var callback = new TaskSetCookieCallback(); diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index b747cbbc6..124efe942 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -528,7 +528,7 @@ private void ThrowExceptionIfDisposed() { if (IsDisposed) { - throw new ObjectDisposedException("browser", "Browser has been disposed"); + throw new ObjectDisposedException("ChromiumWebBrowser"); } } } From 8938d9ef0a059524b8af6e8f9d28b7f71a8265c2 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 31 May 2022 11:08:40 +1000 Subject: [PATCH 036/543] DevTools Client - Upgrade to 102.0.5005.63 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 504 +++++++++++++++--- .../DevToolsClient.Generated.netcore.cs | 457 +++++++++++++--- 2 files changed, 807 insertions(+), 154 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 33f83fe57..11bc743ba 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 101.0.4951.34 +// CHROMIUM VERSION 102.0.5005.63 namespace CefSharp.DevTools.Accessibility { /// @@ -2534,11 +2534,6 @@ public enum AttributionReportingIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAttributionSourceEventId"))] InvalidAttributionSourceEventId, /// - /// InvalidAttributionData - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAttributionData"))] - InvalidAttributionData, - /// /// AttributionSourceUntrustworthyOrigin /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionSourceUntrustworthyOrigin"))] @@ -2549,16 +2544,6 @@ public enum AttributionReportingIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionUntrustworthyOrigin"))] AttributionUntrustworthyOrigin, /// - /// AttributionTriggerDataTooLarge - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionTriggerDataTooLarge"))] - AttributionTriggerDataTooLarge, - /// - /// AttributionEventSourceTriggerDataTooLarge - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionEventSourceTriggerDataTooLarge"))] - AttributionEventSourceTriggerDataTooLarge, - /// /// InvalidAttributionSourceExpiry /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAttributionSourceExpiry"))] @@ -2567,22 +2552,7 @@ public enum AttributionReportingIssueType /// InvalidAttributionSourcePriority /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAttributionSourcePriority"))] - InvalidAttributionSourcePriority, - /// - /// InvalidEventSourceTriggerData - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidEventSourceTriggerData"))] - InvalidEventSourceTriggerData, - /// - /// InvalidTriggerPriority - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidTriggerPriority"))] - InvalidTriggerPriority, - /// - /// InvalidTriggerDedupKey - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidTriggerDedupKey"))] - InvalidTriggerDedupKey + InvalidAttributionSourcePriority } /// @@ -2800,6 +2770,23 @@ public string FrameId } } + /// + /// DeprecationIssueType + /// + public enum DeprecationIssueType + { + /// + /// DeprecationExample + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DeprecationExample"))] + DeprecationExample, + /// + /// Untranslated + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Untranslated"))] + Untranslated + } + /// /// This issue tracks information needed to print a deprecation message. /// The formatting is inherited from the old console.log version, see more at: @@ -2847,12 +2834,38 @@ public string Message /// /// The id of an untranslated deprecation issue e.g. PrefixedStorageInfo. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deprecationType"), IsRequired = (true))] + [System.Runtime.Serialization.DataMemberAttribute(Name = ("deprecationType"), IsRequired = (false))] public string DeprecationType { get; set; } + + /// + /// Type + /// + public CefSharp.DevTools.Audits.DeprecationIssueType Type + { + get + { + return (CefSharp.DevTools.Audits.DeprecationIssueType)(StringToEnum(typeof(CefSharp.DevTools.Audits.DeprecationIssueType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + set; + } } /// @@ -2924,6 +2937,31 @@ public enum FederatedAuthRequestIssueReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TooManyRequests"))] TooManyRequests, /// + /// ManifestListHttpNotFound + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListHttpNotFound"))] + ManifestListHttpNotFound, + /// + /// ManifestListNoResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListNoResponse"))] + ManifestListNoResponse, + /// + /// ManifestListInvalidResponse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListInvalidResponse"))] + ManifestListInvalidResponse, + /// + /// ManifestNotInManifestList + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestNotInManifestList"))] + ManifestNotInManifestList, + /// + /// ManifestListTooBig + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListTooBig"))] + ManifestListTooBig, + /// /// ManifestHttpNotFound /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestHttpNotFound"))] @@ -17551,6 +17589,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ect"))] ChEct, /// + /// ch-partitioned-cookies + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-partitioned-cookies"))] + ChPartitionedCookies, + /// /// ch-prefers-color-scheme /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-prefers-color-scheme"))] @@ -17561,6 +17604,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-rtt"))] ChRtt, /// + /// ch-save-data + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-save-data"))] + ChSaveData, + /// /// ch-ua /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua"))] @@ -17636,11 +17684,6 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-width"))] ChWidth, /// - /// ch-partitioned-cookies - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-partitioned-cookies"))] - ChPartitionedCookies, - /// /// clipboard-read /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clipboard-read"))] @@ -19181,16 +19224,6 @@ public string Fantasy get; set; } - - /// - /// The pictograph font-family. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pictograph"), IsRequired = (false))] - public string Pictograph - { - get; - set; - } } /// @@ -19743,6 +19776,11 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ErrorDocument"))] ErrorDocument, /// + /// FencedFramesEmbedder + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FencedFramesEmbedder"))] + FencedFramesEmbedder, + /// /// WebSocket /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebSocket"))] @@ -20224,6 +20262,18 @@ public System.Collections.Generic.IList + /// List of FinalStatus reasons for Prerender2. + /// + public enum PrerenderFinalStatus + { + /// + /// Activated + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Activated"))] + Activated + } + /// /// domContentEventFired /// @@ -20998,6 +21048,59 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredExplanationTree NotRest } } + /// + /// Fired when a prerender attempt is completed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The frame id of the frame initiating prerendering. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiatingFrameId"), IsRequired = (true))] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrerenderingUrl + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("prerenderingUrl"), IsRequired = (true))] + public string PrerenderingUrl + { + get; + private set; + } + + /// + /// FinalStatus + /// + public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus + { + get + { + return (CefSharp.DevTools.Page.PrerenderFinalStatus)(StringToEnum(typeof(CefSharp.DevTools.Page.PrerenderFinalStatus), finalStatus)); + } + + set + { + this.finalStatus = (EnumToString(value)); + } + } + + /// + /// FinalStatus + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("finalStatus"), IsRequired = (true))] + internal string finalStatus + { + get; + private set; + } + } + /// /// loadEventFired /// @@ -26073,20 +26176,31 @@ public string Value } /// - /// PlayerErrorType + /// Represents logged source line numbers reported in an error. + /// NOTE: file and line are from chromium c++ implementation code, not js. /// - public enum PlayerErrorType + [System.Runtime.Serialization.DataContractAttribute] + public partial class PlayerErrorSourceLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// pipeline_error + /// File /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("pipeline_error"))] - PipelineError, + [System.Runtime.Serialization.DataMemberAttribute(Name = ("file"), IsRequired = (true))] + public string File + { + get; + set; + } + /// - /// media_error + /// Line /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("media_error"))] - MediaError + [System.Runtime.Serialization.DataMemberAttribute(Name = ("line"), IsRequired = (true))] + public int Line + { + get; + set; + } } /// @@ -26096,40 +26210,52 @@ public enum PlayerErrorType public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Type + /// ErrorType /// - public CefSharp.DevTools.Media.PlayerErrorType Type + [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorType"), IsRequired = (true))] + public string ErrorType { - get - { - return (CefSharp.DevTools.Media.PlayerErrorType)(StringToEnum(typeof(CefSharp.DevTools.Media.PlayerErrorType), type)); - } + get; + set; + } - set - { - this.type = (EnumToString(value)); - } + /// + /// Code is the numeric enum entry for a specific set of error codes, such + /// as PipelineStatusCodes in media/base/pipeline_status.h + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("code"), IsRequired = (true))] + public int Code + { + get; + set; } /// - /// Type + /// A trace of where this error was caused / where it passed through. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] - internal string type + [System.Runtime.Serialization.DataMemberAttribute(Name = ("stack"), IsRequired = (true))] + public System.Collections.Generic.IList Stack { get; set; } /// - /// When this switches to using media::Status instead of PipelineStatus - /// we can remove "errorCode" and replace it with the fields from - /// a Status instance. This also seems like a duplicate of the error - /// level enum - there is a todo bug to have that level removed and - /// use this instead. (crbug.com/1068454) + /// Errors potentially have a root cause error, ie, a DecoderError might be + /// caused by an WindowsError /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorCode"), IsRequired = (true))] - public string ErrorCode + [System.Runtime.Serialization.DataMemberAttribute(Name = ("cause"), IsRequired = (true))] + public System.Collections.Generic.IList Cause + { + get; + set; + } + + /// + /// Extra data attached to an error, such as an HRESULT, Video Codec, etc. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + public object Data { get; set; @@ -28075,6 +28201,182 @@ public System.Collections.Generic.IList + /// WebDriverValueType + /// + public enum WebDriverValueType + { + /// + /// undefined + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("undefined"))] + Undefined, + /// + /// null + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("null"))] + Null, + /// + /// string + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("string"))] + String, + /// + /// number + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("number"))] + Number, + /// + /// boolean + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("boolean"))] + Boolean, + /// + /// bigint + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bigint"))] + Bigint, + /// + /// regexp + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("regexp"))] + Regexp, + /// + /// date + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("date"))] + Date, + /// + /// symbol + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("symbol"))] + Symbol, + /// + /// array + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("array"))] + Array, + /// + /// object + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("object"))] + Object, + /// + /// function + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("function"))] + Function, + /// + /// map + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("map"))] + Map, + /// + /// set + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("set"))] + Set, + /// + /// weakmap + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakmap"))] + Weakmap, + /// + /// weakset + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakset"))] + Weakset, + /// + /// error + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + Error, + /// + /// proxy + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("proxy"))] + Proxy, + /// + /// promise + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("promise"))] + Promise, + /// + /// typedarray + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("typedarray"))] + Typedarray, + /// + /// arraybuffer + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("arraybuffer"))] + Arraybuffer, + /// + /// node + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("node"))] + Node, + /// + /// window + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("window"))] + Window + } + + /// + /// Represents the value serialiazed by the WebDriver BiDi specification + /// https://w3c.github.io/webdriver-bidi. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class WebDriverValue : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Type + /// + public CefSharp.DevTools.Runtime.WebDriverValueType Type + { + get + { + return (CefSharp.DevTools.Runtime.WebDriverValueType)(StringToEnum(typeof(CefSharp.DevTools.Runtime.WebDriverValueType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + set; + } + + /// + /// Value + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + public object Value + { + get; + set; + } + + /// + /// ObjectId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("objectId"), IsRequired = (false))] + public string ObjectId + { + get; + set; + } + } + /// /// Object type. /// @@ -28329,6 +28631,16 @@ public string Description set; } + /// + /// WebDriver BiDi representation of the value. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("webDriverValue"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue + { + get; + set; + } + /// /// Unique object identifier (for non-primitive values). /// @@ -41888,6 +42200,22 @@ public event System.EventHandler BackForwardCa } } + /// + /// Fired when a prerender attempt is completed. + /// + public event System.EventHandler PrerenderAttemptCompleted + { + add + { + _client.AddEventHandler("Page.prerenderAttemptCompleted", value); + } + + remove + { + _client.RemoveEventHandler("Page.prerenderAttemptCompleted", value); + } + } + /// /// LoadEventFired /// @@ -48656,7 +48984,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -48672,10 +49000,11 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Specifies execution context which global object will be used to call function on. EitherexecutionContextId or objectId should be specified. /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. + /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, generateWebDriverValue); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -48728,6 +49057,11 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("throwOnSideEffect", throwOnSideEffect.Value); } + if (generateWebDriverValue.HasValue) + { + dict.Add("generateWebDriverValue", generateWebDriverValue.Value); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.callFunctionOn", dict); } @@ -48787,7 +49121,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null); + partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null); /// /// Evaluates expression on global object. /// @@ -48806,10 +49140,11 @@ public System.Threading.Tasks.Task EnableAsync() /// Setting this flag to true enables `let` re-declaration and top-level `await`.Note that `let` variables can only be re-declared if they originate from`replMode` themselves. /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. + /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null) + public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null) { - ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId); + ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue); var dict = new System.Collections.Generic.Dictionary(); dict.Add("expression", expression); if (!(string.IsNullOrEmpty(objectGroup))) @@ -48882,6 +49217,11 @@ public System.Threading.Tasks.Task EvaluateAsync(string expres dict.Add("uniqueContextId", uniqueContextId); } + if (generateWebDriverValue.HasValue) + { + dict.Add("generateWebDriverValue", generateWebDriverValue.Value); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.evaluate", dict); } diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index 28a2a2a74..2dc03df70 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 101.0.4951.34 +// CHROMIUM VERSION 102.0.5005.63 namespace CefSharp.DevTools.Accessibility { /// @@ -2270,11 +2270,6 @@ public enum AttributionReportingIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAttributionSourceEventId")] InvalidAttributionSourceEventId, /// - /// InvalidAttributionData - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAttributionData")] - InvalidAttributionData, - /// /// AttributionSourceUntrustworthyOrigin /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionSourceUntrustworthyOrigin")] @@ -2285,16 +2280,6 @@ public enum AttributionReportingIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionUntrustworthyOrigin")] AttributionUntrustworthyOrigin, /// - /// AttributionTriggerDataTooLarge - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionTriggerDataTooLarge")] - AttributionTriggerDataTooLarge, - /// - /// AttributionEventSourceTriggerDataTooLarge - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionEventSourceTriggerDataTooLarge")] - AttributionEventSourceTriggerDataTooLarge, - /// /// InvalidAttributionSourceExpiry /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAttributionSourceExpiry")] @@ -2303,22 +2288,7 @@ public enum AttributionReportingIssueType /// InvalidAttributionSourcePriority /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAttributionSourcePriority")] - InvalidAttributionSourcePriority, - /// - /// InvalidEventSourceTriggerData - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidEventSourceTriggerData")] - InvalidEventSourceTriggerData, - /// - /// InvalidTriggerPriority - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidTriggerPriority")] - InvalidTriggerPriority, - /// - /// InvalidTriggerDedupKey - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidTriggerDedupKey")] - InvalidTriggerDedupKey + InvalidAttributionSourcePriority } /// @@ -2504,6 +2474,23 @@ public string FrameId } } + /// + /// DeprecationIssueType + /// + public enum DeprecationIssueType + { + /// + /// DeprecationExample + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("DeprecationExample")] + DeprecationExample, + /// + /// Untranslated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Untranslated")] + Untranslated + } + /// /// This issue tracks information needed to print a deprecation message. /// The formatting is inherited from the old console.log version, see more at: @@ -2552,12 +2539,21 @@ public string Message /// The id of an untranslated deprecation issue e.g. PrefixedStorageInfo. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("deprecationType")] - [System.Diagnostics.CodeAnalysis.DisallowNull] public string DeprecationType { get; set; } + + /// + /// Type + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Audits.DeprecationIssueType Type + { + get; + set; + } } /// @@ -2612,6 +2608,31 @@ public enum FederatedAuthRequestIssueReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("TooManyRequests")] TooManyRequests, /// + /// ManifestListHttpNotFound + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListHttpNotFound")] + ManifestListHttpNotFound, + /// + /// ManifestListNoResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListNoResponse")] + ManifestListNoResponse, + /// + /// ManifestListInvalidResponse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListInvalidResponse")] + ManifestListInvalidResponse, + /// + /// ManifestNotInManifestList + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestNotInManifestList")] + ManifestNotInManifestList, + /// + /// ManifestListTooBig + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListTooBig")] + ManifestListTooBig, + /// /// ManifestHttpNotFound /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestHttpNotFound")] @@ -16332,6 +16353,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ect")] ChEct, /// + /// ch-partitioned-cookies + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-partitioned-cookies")] + ChPartitionedCookies, + /// /// ch-prefers-color-scheme /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-prefers-color-scheme")] @@ -16342,6 +16368,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-rtt")] ChRtt, /// + /// ch-save-data + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-save-data")] + ChSaveData, + /// /// ch-ua /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua")] @@ -16417,11 +16448,6 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-width")] ChWidth, /// - /// ch-partitioned-cookies - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-partitioned-cookies")] - ChPartitionedCookies, - /// /// clipboard-read /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboard-read")] @@ -17807,16 +17833,6 @@ public string Fantasy get; set; } - - /// - /// The pictograph font-family. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pictograph")] - public string Pictograph - { - get; - set; - } } /// @@ -18371,6 +18387,11 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("ErrorDocument")] ErrorDocument, /// + /// FencedFramesEmbedder + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FencedFramesEmbedder")] + FencedFramesEmbedder, + /// /// WebSocket /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebSocket")] @@ -18821,6 +18842,18 @@ public System.Collections.Generic.IList + /// List of FinalStatus reasons for Prerender2. + /// + public enum PrerenderFinalStatus + { + /// + /// Activated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Activated")] + Activated + } + /// /// domContentEventFired /// @@ -19523,6 +19556,47 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredExplanationTree NotRest } } + /// + /// Fired when a prerender attempt is completed. + /// + public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The frame id of the frame initiating prerendering. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiatingFrameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrerenderingUrl + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("prerenderingUrl")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PrerenderingUrl + { + get; + private set; + } + + /// + /// FinalStatus + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("finalStatus")] + public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus + { + get; + private set; + } + } + /// /// loadEventFired /// @@ -24249,20 +24323,31 @@ public string Value } /// - /// PlayerErrorType + /// Represents logged source line numbers reported in an error. + /// NOTE: file and line are from chromium c++ implementation code, not js. /// - public enum PlayerErrorType + public partial class PlayerErrorSourceLocation : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// pipeline_error + /// File /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pipeline_error")] - PipelineError, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("file")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string File + { + get; + set; + } + /// - /// media_error + /// Line /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("media_error")] - MediaError + [System.Text.Json.Serialization.JsonPropertyNameAttribute("line")] + public int Line + { + get; + set; + } } /// @@ -24271,25 +24356,56 @@ public enum PlayerErrorType public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Type + /// ErrorType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] - public CefSharp.DevTools.Media.PlayerErrorType Type + [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorType { get; set; } /// - /// When this switches to using media::Status instead of PipelineStatus - /// we can remove "errorCode" and replace it with the fields from - /// a Status instance. This also seems like a duplicate of the error - /// level enum - there is a todo bug to have that level removed and - /// use this instead. (crbug.com/1068454) + /// Code is the numeric enum entry for a specific set of error codes, such + /// as PipelineStatusCodes in media/base/pipeline_status.h /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorCode")] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("code")] + public int Code + { + get; + set; + } + + /// + /// A trace of where this error was caused / where it passed through. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("stack")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Stack + { + get; + set; + } + + /// + /// Errors potentially have a root cause error, ie, a DecoderError might be + /// caused by an WindowsError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cause")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string ErrorCode + public System.Collections.Generic.IList Cause + { + get; + set; + } + + /// + /// Extra data attached to an error, such as an HRESULT, Video Codec, etc. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public object Data { get; set; @@ -26229,6 +26345,165 @@ public System.Collections.Generic.IList + /// WebDriverValueType + /// + public enum WebDriverValueType + { + /// + /// undefined + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("undefined")] + Undefined, + /// + /// null + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("null")] + Null, + /// + /// string + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + String, + /// + /// number + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + Number, + /// + /// boolean + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("boolean")] + Boolean, + /// + /// bigint + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bigint")] + Bigint, + /// + /// regexp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("regexp")] + Regexp, + /// + /// date + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + Date, + /// + /// symbol + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("symbol")] + Symbol, + /// + /// array + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + Array, + /// + /// object + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + Object, + /// + /// function + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("function")] + Function, + /// + /// map + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("map")] + Map, + /// + /// set + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + Set, + /// + /// weakmap + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakmap")] + Weakmap, + /// + /// weakset + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakset")] + Weakset, + /// + /// error + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + Error, + /// + /// proxy + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxy")] + Proxy, + /// + /// promise + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("promise")] + Promise, + /// + /// typedarray + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("typedarray")] + Typedarray, + /// + /// arraybuffer + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("arraybuffer")] + Arraybuffer, + /// + /// node + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + Node, + /// + /// window + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("window")] + Window + } + + /// + /// Represents the value serialiazed by the WebDriver BiDi specification + /// https://w3c.github.io/webdriver-bidi. + /// + public partial class WebDriverValue : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Type + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Runtime.WebDriverValueType Type + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public object Value + { + get; + set; + } + + /// + /// ObjectId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectId")] + public string ObjectId + { + get; + set; + } + } + /// /// Object type. /// @@ -26448,6 +26723,16 @@ public string Description set; } + /// + /// WebDriver BiDi representation of the value. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("webDriverValue")] + public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue + { + get; + set; + } + /// /// Unique object identifier (for non-primitive values). /// @@ -38630,6 +38915,22 @@ public event System.EventHandler BackForwardCa } } + /// + /// Fired when a prerender attempt is completed. + /// + public event System.EventHandler PrerenderAttemptCompleted + { + add + { + _client.AddEventHandler("Page.prerenderAttemptCompleted", value); + } + + remove + { + _client.RemoveEventHandler("Page.prerenderAttemptCompleted", value); + } + } + /// /// LoadEventFired /// @@ -44776,7 +45077,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -44792,10 +45093,11 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Specifies execution context which global object will be used to call function on. EitherexecutionContextId or objectId should be specified. /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. + /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, generateWebDriverValue); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -44848,6 +45150,11 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("throwOnSideEffect", throwOnSideEffect.Value); } + if (generateWebDriverValue.HasValue) + { + dict.Add("generateWebDriverValue", generateWebDriverValue.Value); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.callFunctionOn", dict); } @@ -44907,7 +45214,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null); + partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null); /// /// Evaluates expression on global object. /// @@ -44926,10 +45233,11 @@ public System.Threading.Tasks.Task EnableAsync() /// Setting this flag to true enables `let` re-declaration and top-level `await`.Note that `let` variables can only be re-declared if they originate from`replMode` themselves. /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. + /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null) + public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null) { - ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId); + ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue); var dict = new System.Collections.Generic.Dictionary(); dict.Add("expression", expression); if (!(string.IsNullOrEmpty(objectGroup))) @@ -45002,6 +45310,11 @@ public System.Threading.Tasks.Task EvaluateAsync(string expres dict.Add("uniqueContextId", uniqueContextId); } + if (generateWebDriverValue.HasValue) + { + dict.Add("generateWebDriverValue", generateWebDriverValue.Value); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.evaluate", dict); } From 81178bb9bae439cfda7d4d19a84b2cd118c6afba Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 31 May 2022 14:08:00 +1000 Subject: [PATCH 037/543] Test - Increase BrowserRefCountDecrementedOnDispose reliability --- CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs index a6241a4ca..f907bf57e 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs @@ -127,6 +127,8 @@ public async Task CanLoadExpiredBadSsl() [Fact] public void BrowserRefCountDecrementedOnDispose() { + var currentCount = BrowserRefCounter.Instance.Count; + var manualResetEvent = new ManualResetEvent(false); var browser = new ChromiumWebBrowser("https://google.com"); @@ -141,12 +143,10 @@ public void BrowserRefCountDecrementedOnDispose() manualResetEvent.WaitOne(); //TODO: Refactor this so reference is injected into browser - Assert.Equal(1, BrowserRefCounter.Instance.Count); + Assert.Equal(currentCount + 1, BrowserRefCounter.Instance.Count); browser.Dispose(); - Assert.True(BrowserRefCounter.Instance.Count <= 1); - Cef.WaitForBrowsersToClose(); Assert.Equal(0, BrowserRefCounter.Instance.Count); From 962d2055c14ac9a1aab102cdeac6edd00f1210fd Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 31 May 2022 14:31:13 +1000 Subject: [PATCH 038/543] Example - Replace FlashResourceHandler with WebRequestResourceHandler - A simple example that uses the WebRequest .Net class to make requests Doesn't cover all cases, intended as a reference to get you started. --- CefSharp.Example/FlashResourceHandler.cs | 47 ----------- CefSharp.Example/WebRequestResourceHandler.cs | 79 +++++++++++++++++++ 2 files changed, 79 insertions(+), 47 deletions(-) delete mode 100644 CefSharp.Example/FlashResourceHandler.cs create mode 100644 CefSharp.Example/WebRequestResourceHandler.cs diff --git a/CefSharp.Example/FlashResourceHandler.cs b/CefSharp.Example/FlashResourceHandler.cs deleted file mode 100644 index b7af6d6fe..000000000 --- a/CefSharp.Example/FlashResourceHandler.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright © 2016 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System.IO; -using System.Net; -using System.Threading.Tasks; - -namespace CefSharp.Example -{ - public class FlashResourceHandler : ResourceHandler - { - public override CefReturnValue ProcessRequestAsync(IRequest request, ICallback callback) - { - Task.Run(() => - { - using (callback) - { - var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://samples.mplayerhq.hu/SWF/zeldaADPCM5bit.swf"); - - var httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse(); - - // Get the stream associated with the response. - var receiveStream = httpWebResponse.GetResponseStream(); - var mime = httpWebResponse.ContentType; - - var stream = new MemoryStream(); - receiveStream.CopyTo(stream); - httpWebResponse.Close(); - - //Reset the stream position to 0 so the stream can be copied into the underlying unmanaged buffer - stream.Position = 0; - - //Populate the response values - No longer need to implement GetResponseHeaders (unless you need to perform a redirect) - ResponseLength = stream.Length; - MimeType = mime; - StatusCode = (int)HttpStatusCode.OK; - Stream = stream; - - callback.Continue(); - } - }); - - return CefReturnValue.ContinueAsync; - } - } -} diff --git a/CefSharp.Example/WebRequestResourceHandler.cs b/CefSharp.Example/WebRequestResourceHandler.cs new file mode 100644 index 000000000..6100308a6 --- /dev/null +++ b/CefSharp.Example/WebRequestResourceHandler.cs @@ -0,0 +1,79 @@ +// Copyright © 2016 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Collections.Specialized; +using System.IO; +using System.Net; +using System.Net.Mime; +using System.Threading.Tasks; + +namespace CefSharp.Example +{ + /// + /// A simple that uses to fulfill requests. + /// + /// + /// This example doesn't cover all cases, for example POST requests, if you'd like to see the example + /// expanded then please subit a Pull Request. + /// + public class WebRequestResourceHandler : ResourceHandler + { + public override CefReturnValue ProcessRequestAsync(IRequest request, ICallback callback) + { + //Spawn a Task and immediately return CefReturnValue.ContinueAsync + Task.Run(async () => + { + using (callback) + { + //Create a clone of the headers so we can modify it + var headers = new NameValueCollection(request.Headers); + + var httpWebRequest = (HttpWebRequest)WebRequest.Create(request.Url); + httpWebRequest.UserAgent = headers["User-Agent"]; + httpWebRequest.Accept = headers["Accept"]; + httpWebRequest.Method = request.Method; + httpWebRequest.Referer = request.ReferrerUrl; + + //These headers must be set via the appropriate properties. + headers.Remove("User-Agent"); + headers.Remove("Accept"); + + httpWebRequest.Headers.Add(headers); + + //TODO: Deal with post data + var postData = request.PostData; + + var httpWebResponse = await httpWebRequest.GetResponseAsync() as HttpWebResponse; + + // Get the stream associated with the response. + var receiveStream = httpWebResponse.GetResponseStream(); + + var contentType = new ContentType(httpWebResponse.ContentType); + var mimeType = contentType.MediaType; + var charSet = contentType.CharSet; + var statusCode = httpWebResponse.StatusCode; + + var memoryStream = new MemoryStream(); + receiveStream.CopyTo(memoryStream); + receiveStream.Dispose(); + httpWebResponse.Dispose(); + + //Reset the stream position to 0 so the stream can be copied into the underlying unmanaged buffer + memoryStream.Position = 0; + + ResponseLength = memoryStream.Length; + MimeType = mimeType; + Charset = charSet ?? "UTF-8"; + StatusCode = (int)statusCode; + Stream = memoryStream; + AutoDisposeStream = true; + + callback.Continue(); + } + }); + + return CefReturnValue.ContinueAsync; + } + } +} From 15cb6d47541dfcb5d7a500603c38a9098a8680d9 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 31 May 2022 15:43:34 +1000 Subject: [PATCH 039/543] Core - BrowserRefCount add some basic logging Logs some basic information so we can see what type of ChromiumWebBrowser hasn't been closed within as part of the xUnit tests. * Meant for internal use and might be subject to change. --- .../Internals/ClientAdapter.cpp | 4 +- CefSharp.Test/CefSharpFixture.cs | 1 + .../OffScreen/OffScreenBrowserBasicFacts.cs | 3 + CefSharp/Internals/BrowserRefCounter.cs | 94 ++++++++++++++----- CefSharp/Internals/IBrowserRefCounter.cs | 52 +++++++++- CefSharp/Internals/NoOpBrowserRefCounter.cs | 30 +++++- 6 files changed, 152 insertions(+), 32 deletions(-) diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index 8331df14c..8d1a8616d 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -174,7 +174,7 @@ namespace CefSharp void ClientAdapter::OnAfterCreated(CefRefPtr browser) { - BrowserRefCounter::Instance->Increment(); + BrowserRefCounter::Instance->Increment(_browserControl->GetType()); auto browserWrapper = gcnew CefBrowserWrapper(browser); @@ -253,7 +253,7 @@ namespace CefSharp _cefBrowser = nullptr; } - BrowserRefCounter::Instance->Decrement(); + BrowserRefCounter::Instance->Decrement(_browserControl->GetType()); } void ClientAdapter::OnLoadingStateChange(CefRefPtr browser, bool isLoading, bool canGoBack, bool canGoForward) diff --git a/CefSharp.Test/CefSharpFixture.cs b/CefSharp.Test/CefSharpFixture.cs index a92788894..23d21595d 100644 --- a/CefSharp.Test/CefSharpFixture.cs +++ b/CefSharp.Test/CefSharpFixture.cs @@ -36,6 +36,7 @@ private void CefInitialize() } Cef.EnableWaitForBrowsersToClose(); + CefSharp.Internals.BrowserRefCounter.Instance.EnableLogging(); CefSharpSettings.ShutdownOnExit = false; var settings = new CefSettings(); diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs index f907bf57e..83a6ab86f 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs @@ -149,6 +149,9 @@ public void BrowserRefCountDecrementedOnDispose() Cef.WaitForBrowsersToClose(); + output.WriteLine("BrowserRefCounter Log"); + output.WriteLine(BrowserRefCounter.Instance.GetLog()); + Assert.Equal(0, BrowserRefCounter.Instance.Count); } diff --git a/CefSharp/Internals/BrowserRefCounter.cs b/CefSharp/Internals/BrowserRefCounter.cs index b76679190..97543cff1 100644 --- a/CefSharp/Internals/BrowserRefCounter.cs +++ b/CefSharp/Internals/BrowserRefCounter.cs @@ -2,6 +2,8 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // +using System; +using System.Text; using System.Threading; namespace CefSharp.Internals @@ -16,33 +18,52 @@ namespace CefSharp.Internals /// doesn't reset the internal when Count is aleady 0. /// In our case it's valid to increase the number of browsers and reset the event. /// - public class BrowserRefCounter : IBrowserRefCounter + public sealed class BrowserRefCounter : IBrowserRefCounter { private volatile int count = 0; private ManualResetEventSlim manualResetEvent = new ManualResetEventSlim(); + private bool loggingEnabled = false; + private StringBuilder logger = new StringBuilder(); /// TODO: Refactor this so it's not static. public static IBrowserRefCounter Instance = new NoOpBrowserRefCounter(); - /// - /// Increment browser count - /// - void IBrowserRefCounter.Increment() + /// + void IBrowserRefCounter.Increment(Type type) { + if(loggingEnabled) + { + logger.AppendLine($"Incremented - {type}"); + } + var newCount = Interlocked.Increment(ref count); if (newCount > 0) { manualResetEvent.Reset(); + + if (loggingEnabled) + { + logger.AppendLine("Incremented - ManualResetEvent was reset"); + } } } - /// - /// Decrement browser count - /// - bool IBrowserRefCounter.Decrement() + /// + bool IBrowserRefCounter.Decrement(Type type) { + if (loggingEnabled) + { + logger.AppendLine($"Decremented - {type}"); + } + var newCount = Interlocked.Decrement(ref count); + + if (loggingEnabled) + { + logger.AppendLine($"Decremented - Current Count {newCount}"); + } + if (newCount == 0) { manualResetEvent.Set(); @@ -61,12 +82,7 @@ bool IBrowserRefCounter.Decrement() return false; } - /// - /// Gets the number of CefBrowser instances currently open (this includes popups) - /// - /// - /// The count. - /// + /// int IBrowserRefCounter.Count { get @@ -76,29 +92,59 @@ int IBrowserRefCounter.Count } } - /// - /// Blocks until the CefBrowser count has reached 0 or the timeout has been reached - /// - /// (Optional) The timeout in miliseconds. + /// void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds) { + if (loggingEnabled) + { + logger.AppendLine($"WaitForBrowsersToClose - Current Count {count}"); + } + if (!manualResetEvent.IsSet) { manualResetEvent.Wait(timeoutInMiliseconds); } + + if (loggingEnabled) + { + logger.AppendLine($"WaitForBrowsersToClose - Updated Count {count}"); + } } - /// - /// Blocks until the CefBrowser count has reached 0 or the timeout has been reached - /// - /// (Optional) The timeout in miliseconds. - /// (Optional) The cancellation token. + /// void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds, CancellationToken cancellationToken) { + if (loggingEnabled) + { + logger.AppendLine($"WaitForBrowsersToClose - Current Count {count}"); + } + if (!manualResetEvent.IsSet) { manualResetEvent.Wait(timeoutInMiliseconds, cancellationToken); } + + if (loggingEnabled) + { + logger.AppendLine($"WaitForBrowsersToClose - Updated Count {count}"); + } + } + + /// + void IBrowserRefCounter.EnableLogging() + { + loggingEnabled = true; + } + + /// + string IBrowserRefCounter.GetLog() + { + return logger.ToString(); + } + + public void Dispose() + { + manualResetEvent.Dispose(); } } } diff --git a/CefSharp/Internals/IBrowserRefCounter.cs b/CefSharp/Internals/IBrowserRefCounter.cs index 22e59daf4..976daca7c 100644 --- a/CefSharp/Internals/IBrowserRefCounter.cs +++ b/CefSharp/Internals/IBrowserRefCounter.cs @@ -2,16 +2,62 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Threading; namespace CefSharp.Internals { - public interface IBrowserRefCounter + /// + /// Browser Ref counter + /// Used internally to keep track of open browser instances + /// The ref count is incremented when a browser is created, + /// and decremented when the browser has successfully closed. + /// + public interface IBrowserRefCounter : IDisposable { - void Increment(); - bool Decrement(); + /// + /// Increment browser count + /// + /// Browser type, used for logging internally + void Increment(Type type); + + /// + /// Decrement browser count + /// + /// Browser type, used for logging internally + /// returns true if the count is 0, otherwise false + bool Decrement(Type type); + + /// + /// Gets the number of CefBrowser instances currently open (this includes popups) + /// + /// + /// The count. + /// int Count { get; } + + /// + /// Enable logging + /// + void EnableLogging(); + + /// + /// Gets the log (empty if not enabled). + /// + /// string + string GetLog(); + + /// + /// Blocks until the CefBrowser count has reached 0 or the timeout has been reached + /// + /// (Optional) The timeout in miliseconds. void WaitForBrowsersToClose(int timeoutInMiliseconds = 500); + + /// + /// Blocks until the CefBrowser count has reached 0 or the timeout has been reached + /// + /// (Optional) The timeout in miliseconds. + /// (Optional) The cancellation token. void WaitForBrowsersToClose(int timeoutInMiliseconds, CancellationToken cancellationToken); } } diff --git a/CefSharp/Internals/NoOpBrowserRefCounter.cs b/CefSharp/Internals/NoOpBrowserRefCounter.cs index 026c2fcd8..f4e28af55 100644 --- a/CefSharp/Internals/NoOpBrowserRefCounter.cs +++ b/CefSharp/Internals/NoOpBrowserRefCounter.cs @@ -2,32 +2,56 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Threading; namespace CefSharp.Internals { - public class NoOpBrowserRefCounter : IBrowserRefCounter + /// + public sealed class NoOpBrowserRefCounter : IBrowserRefCounter { + /// int IBrowserRefCounter.Count { get { return 0; } } - bool IBrowserRefCounter.Decrement() + /// + public void Dispose() + { + } + + /// + void IBrowserRefCounter.EnableLogging() + { + + } + + /// + string IBrowserRefCounter.GetLog() + { + return string.Empty; + } + + /// + bool IBrowserRefCounter.Decrement(Type type) { return false; } - void IBrowserRefCounter.Increment() + /// + void IBrowserRefCounter.Increment(Type type) { } + /// void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds) { } + /// void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds, CancellationToken cancellationToken) { From 0673239fb7334ef2c517805783537f9826145bbe Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 31 May 2022 15:13:55 +1000 Subject: [PATCH 040/543] 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. --- CefSharp.Core.Runtime/Cef.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index c5dff3cdf..a161c5fd9 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -863,7 +863,7 @@ namespace CefSharp _disposables->Clear(); //Wait for the browsers to close - BrowserRefCounter::Instance->WaitForBrowsersToClose(500); + BrowserRefCounter::Instance->WaitForBrowsersToClose(750); //A few extra ms to allow for CEF to finish Thread::Sleep(50); From 93dcfacef2517f9663d7d8ce5a7699f69f33f2c4 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 6 Jun 2022 10:53:29 +1000 Subject: [PATCH 041/543] OffScreen - Explicitly dispose of RenderHandler --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 2a22b5051..0ce729375 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -261,6 +261,11 @@ protected virtual void Dispose(bool disposing) CanExecuteJavascriptInMainFrame = false; Interlocked.Exchange(ref browserInitialized, 0); + //Stop rendering immediately so later on when we dispose of the + //RenderHandler no further OnPaint calls take place + //Check browser not null as it's possible to call Dispose before it's created + browser?.GetHost().WasHidden(true); + // Don't reference event listeners any longer: AddressChanged = null; BrowserInitialized = null; @@ -295,6 +300,13 @@ protected virtual void Dispose(bool disposing) // LifeSpanHandler is set to null after managedCefBrowserAdapter.Dispose so ILifeSpanHandler.DoClose // is called. LifeSpanHandler = null; + + //Take a copy of the RenderHandler then set to property to null + //Before we dispose, reduces the changes of any OnPaint calls + //using the RenderHandler after Dispose + var renderHandler = RenderHandler; + RenderHandler = null; + renderHandler?.Dispose(); } Cef.RemoveDisposable(this); From 10f90f267c80c51381315db43d8c4ca716e5af6d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 6 Jun 2022 10:57:04 +1000 Subject: [PATCH 042/543] OffScreen - Support Size and DeviceScaleFactor when RenderHandler is null --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 0ce729375..3bc95ca70 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -784,7 +784,16 @@ public IBrowser GetBrowser() /// ScreenInfo. protected virtual ScreenInfo? GetScreenInfo() { - return RenderHandler?.GetScreenInfo(); + var renderHandler = RenderHandler; + + if(renderHandler == null) + { + var screenInfo = new ScreenInfo { DeviceScaleFactor = DeviceScaleFactor }; + + return screenInfo; + } + + return renderHandler.GetScreenInfo(); } /// @@ -802,12 +811,18 @@ Rect IRenderWebBrowser.GetViewRect() /// ViewRect. protected virtual Rect GetViewRect() { - if (RenderHandler == null) + var renderHandler = RenderHandler; + + if (renderHandler == null) { - return new Rect(0, 0, 640, 480); + var size = Size; + + var viewRect = new Rect(0, 0, size.Width, size.Height); + + return viewRect; } - return RenderHandler.GetViewRect(); + return renderHandler.GetViewRect(); } /// From f0a72fbe6b0a3c1f6ac611626b6144015993758a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 6 Jun 2022 11:08:52 +1000 Subject: [PATCH 043/543] Core - Add IWindowInfo.WindowName Allows setting of the window_name property --- .../CefSharp.Core.Runtime.netcore.cs | 1 + CefSharp.Core.Runtime/WindowInfo.h | 12 ++++++++++++ CefSharp.Core/WindowInfo.cs | 7 +++++++ CefSharp/IWindowInfo.cs | 4 ++++ 4 files changed, 24 insertions(+) diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index fcd664c54..8e9d8129e 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -329,6 +329,7 @@ public WindowInfo() { } public virtual int Width { get { throw null; } set { } } public virtual System.IntPtr WindowHandle { get { throw null; } set { } } public virtual bool WindowlessRenderingEnabled { get { throw null; } set { } } + public virtual string WindowName { get { throw null; } set { } } public virtual int X { get { throw null; } set { } } public virtual int Y { get { throw null; } set { } } public void Dispose() { } diff --git a/CefSharp.Core.Runtime/WindowInfo.h b/CefSharp.Core.Runtime/WindowInfo.h index 2ada03ed4..68e3c0637 100644 --- a/CefSharp.Core.Runtime/WindowInfo.h +++ b/CefSharp.Core.Runtime/WindowInfo.h @@ -147,6 +147,18 @@ namespace CefSharp } } + virtual property String^ WindowName + { + String^ get() + { + return StringUtils::ToClr(_windowInfo->window_name); + } + void set(String^ value) + { + StringUtils::AssignNativeFromClr(_windowInfo->window_name, value); + } + } + virtual property bool WindowlessRenderingEnabled { bool get() diff --git a/CefSharp.Core/WindowInfo.cs b/CefSharp.Core/WindowInfo.cs index c9aebf486..fb2a32b77 100644 --- a/CefSharp.Core/WindowInfo.cs +++ b/CefSharp.Core/WindowInfo.cs @@ -91,6 +91,13 @@ public IntPtr WindowHandle set { windowInfo.WindowHandle = value; } } + /// + public string WindowName + { + get { return windowInfo.WindowName; } + set { windowInfo.WindowName = value; } + } + /// public void Dispose() { diff --git a/CefSharp/IWindowInfo.cs b/CefSharp/IWindowInfo.cs index cfe9e052a..1e7077906 100644 --- a/CefSharp/IWindowInfo.cs +++ b/CefSharp/IWindowInfo.cs @@ -65,6 +65,10 @@ public interface IWindowInfo : IDisposable /// Handle for the new browser window. Only used with windowed rendering. /// IntPtr WindowHandle { get; set; } + /// + /// Window Name + /// + string WindowName { get; set; } /// /// Create the browser as a child window. From 9dd7e7a597f99e42b3a0b170fde26d1747d9b7e1 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 9 Jun 2022 10:57:12 +1000 Subject: [PATCH 044/543] DevTools Client - Change Dispose from explicit implementation to public --- CefSharp/DevTools/DevToolsClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp/DevTools/DevToolsClient.cs b/CefSharp/DevTools/DevToolsClient.cs index 2a756e1be..e27cc1eb9 100644 --- a/CefSharp/DevTools/DevToolsClient.cs +++ b/CefSharp/DevTools/DevToolsClient.cs @@ -202,7 +202,7 @@ private void ExecuteDevToolsMethod(IBrowserHost browserHost, int messageId, stri } /// - void IDisposable.Dispose() + public void Dispose() { //Dispose can be called from different Threads //CEF maintains a reference and the user From c3886a1983e2765496cbea4c6999b67c7f2f1668 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 9 Jun 2022 11:00:13 +1000 Subject: [PATCH 045/543] DevTools Client - IDevToolsClient now implements IDisposable directly --- CefSharp/DevTools/IDevToolsClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp/DevTools/IDevToolsClient.cs b/CefSharp/DevTools/IDevToolsClient.cs index fcf0406d4..17ba829e9 100644 --- a/CefSharp/DevTools/IDevToolsClient.cs +++ b/CefSharp/DevTools/IDevToolsClient.cs @@ -11,7 +11,7 @@ namespace CefSharp.DevTools /// /// DevTools Client /// - public interface IDevToolsClient + public interface IDevToolsClient : IDisposable { /// /// Will be called on receipt of a DevTools protocol event. Events by default are disabled and need to be From be89729d62e1cd9218ba8ac6f69ad0cc8ba18d93 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 14 Jun 2022 13:36:50 +1000 Subject: [PATCH 046/543] Test - Upgrade xunit VS runner Must manually include Microsoft.NET.Test.Sdk https://stackoverflow.com/a/63786758/4583726 --- CefSharp.Test/CefSharp.Test.csproj | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 4d8722e7f..96f2152fc 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,13 +34,17 @@ + - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + From 71613df39e6bdebd3a643c32c3d1a94a2adacb97 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 16 Jun 2022 11:06:12 +1000 Subject: [PATCH 047/543] Net Core - Nuget Add CefSharpExcludeSubProcessExe - When true excludes CefSharp.BrowserSubprocess.exe and CefSharp.BrowserSubprocess.dll - Defaults to true for .Net 5+ SelfContained PublishSingleFile builds (same as before) Allows user to easily exclude the BrowserSubprocess when they want to create a self contained build --- .../CefSharp.Common.NETCore.targets | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 66266222a..1b4b4b352 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -7,6 +7,13 @@ win-x64 win-arm64 $(CefSharpRuntimeIdentifierOverride) + + + true @@ -75,6 +83,7 @@ + From 2cd1c9b5ae009c66974b749f1b44cf29b33c296a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 20 Jun 2022 13:03:15 +1000 Subject: [PATCH 048/543] Core - Add Cef.WaitForBrowsersToClose(int) overload - Allow for specifying the timeout in ms - Update the tests to 5000ms timeout --- .../CefSharp.Core.Runtime.netcore.cs | 1 + CefSharp.Core.Runtime/Cef.h | 17 ++++++++++++++++- CefSharp.Core/Cef.cs | 16 ++++++++++++++++ .../OffScreen/OffScreenBrowserBasicFacts.cs | 2 +- 4 files changed, 34 insertions(+), 2 deletions(-) diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index 8e9d8129e..c821f1455 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -90,6 +90,7 @@ public static void SetCrashKeyValue(string key, string value) { } public static void Shutdown() { } public static void ShutdownWithoutChecks() { } public static void WaitForBrowsersToClose() { } + public static void WaitForBrowsersToClose(int timeoutInMiliseconds) { } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public sealed partial class CefSettingsBase : System.IDisposable diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index a161c5fd9..e9d79b48f 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -847,6 +847,21 @@ namespace CefSharp /// (Hasn't been tested when when CEF integrates into main message loop). /// static void WaitForBrowsersToClose() + { + WaitForBrowsersToClose(750); + } + + /// + /// Helper method to ensure all ChromiumWebBrowser instances have been + /// closed/disposed, should be called before Cef.Shutdown. + /// Disposes all remaning ChromiumWebBrowser instances + /// then waits for CEF to release it's remaning CefBrowser instances. + /// Finally a small delay of 50ms to allow for CEF to finish it's cleanup. + /// Should only be called when MultiThreadedMessageLoop = true; + /// (Hasn't been tested when when CEF integrates into main message loop). + /// + /// The timeout in miliseconds. + static void WaitForBrowsersToClose(int timeoutInMiliseconds) { if (!_waitForBrowsersToCloseEnabled) { @@ -863,7 +878,7 @@ namespace CefSharp _disposables->Clear(); //Wait for the browsers to close - BrowserRefCounter::Instance->WaitForBrowsersToClose(750); + BrowserRefCounter::Instance->WaitForBrowsersToClose(timeoutInMiliseconds); //A few extra ms to allow for CEF to finish Thread::Sleep(50); diff --git a/CefSharp.Core/Cef.cs b/CefSharp.Core/Cef.cs index fd1931bf4..43c1828c1 100644 --- a/CefSharp.Core/Cef.cs +++ b/CefSharp.Core/Cef.cs @@ -628,5 +628,21 @@ public static void WaitForBrowsersToClose() { Core.Cef.WaitForBrowsersToClose(); } + + + /// + /// Helper method to ensure all ChromiumWebBrowser instances have been + /// closed/disposed, should be called before Cef.Shutdown. + /// Disposes all remaining ChromiumWebBrowser instances + /// then waits for CEF to release its remaining CefBrowser instances. + /// Finally a small delay of 50ms to allow for CEF to finish it's cleanup. + /// Should only be called when MultiThreadedMessageLoop = true; + /// (Hasn't been tested when when CEF integrates into main message loop). + /// + /// The timeout in miliseconds. + public static void WaitForBrowsersToClose(int timeoutInMiliseconds) + { + Core.Cef.WaitForBrowsersToClose(timeoutInMiliseconds); + } } } diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs index 83a6ab86f..931b4c5a3 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs @@ -147,7 +147,7 @@ public void BrowserRefCountDecrementedOnDispose() browser.Dispose(); - Cef.WaitForBrowsersToClose(); + Cef.WaitForBrowsersToClose(5000); output.WriteLine("BrowserRefCounter Log"); output.WriteLine(BrowserRefCounter.Instance.GetLog()); From fdec627537a3cd8bff3e38b679c728241891d7fa Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 20 Jun 2022 16:28:04 +1000 Subject: [PATCH 049/543] Core - Xml doc fixes --- CefSharp/Handler/AudioHandler.cs | 1 + CefSharp/Handler/BrowserProcessHandler.cs | 4 ++++ CefSharp/Internals/InitializeAsyncBrowserProcessHandler.cs | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CefSharp/Handler/AudioHandler.cs b/CefSharp/Handler/AudioHandler.cs index f7992e636..12f3de43f 100644 --- a/CefSharp/Handler/AudioHandler.cs +++ b/CefSharp/Handler/AudioHandler.cs @@ -83,6 +83,7 @@ void IAudioHandler.OnAudioStreamPacket(IWebBrowser chromiumWebBrowser, IBrowser /// you can calculate the size of the array in bytes. /// /// + /// the browser object /// is an array representing the raw PCM data as a floating point type, i.e. 4-byte value(s). /// is the number of frames in the PCM packet /// is the presentation timestamp (in milliseconds since the Unix Epoch) diff --git a/CefSharp/Handler/BrowserProcessHandler.cs b/CefSharp/Handler/BrowserProcessHandler.cs index 18ac65ad7..ea2d8f1fe 100644 --- a/CefSharp/Handler/BrowserProcessHandler.cs +++ b/CefSharp/Handler/BrowserProcessHandler.cs @@ -63,6 +63,10 @@ public bool IsDisposed get { return isDisposed; } } + /// + /// Disposes of the resources + /// + /// true to release both managed and unmanaged resources; false to release only unmanaged resources. protected virtual void Dispose(bool disposing) { isDisposed = true; diff --git a/CefSharp/Internals/InitializeAsyncBrowserProcessHandler.cs b/CefSharp/Internals/InitializeAsyncBrowserProcessHandler.cs index c891f69d1..3553bb8de 100644 --- a/CefSharp/Internals/InitializeAsyncBrowserProcessHandler.cs +++ b/CefSharp/Internals/InitializeAsyncBrowserProcessHandler.cs @@ -7,7 +7,7 @@ namespace CefSharp.Internals { /// - /// BrowserProcessHandler implementation that takes a + /// BrowserProcessHandler implementation that takes a /// and resolves when is called. /// public class InitializeAsyncBrowserProcessHandler : CefSharp.Handler.BrowserProcessHandler From 550552f2108d36f6a073aab6dd8b5dcfb297fb82 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 21 Jun 2022 11:24:26 +1000 Subject: [PATCH 050/543] Test - Add FolderSchemeHandlerFactoryTests - Basic test to dynamically register a FolderSchemeHandlerFactory --- .../FolderSchemeHandlerFactoryTests.cs | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs diff --git a/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs new file mode 100644 index 000000000..41ffc5e0f --- /dev/null +++ b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs @@ -0,0 +1,55 @@ +using Xunit.Abstractions; +using Xunit; +using System.Threading.Tasks; +using CefSharp.OffScreen; +using CefSharp.Example; +using CefSharp.SchemeHandler; +using System.IO; + +namespace CefSharp.Test.SchemeHandler +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class FolderSchemeHandlerFactoryTests + { + + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public FolderSchemeHandlerFactoryTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task CanWork() + { + const string expected = "https://folderschemehandlerfactory.test/"; + var folder = Path.GetFullPath(@"..\..\..\..\..\CefSharp.Example\Resources"); + + using (var requestContext = new RequestContext(Cef.GetGlobalRequestContext())) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, requestContext: requestContext)) + { + _ = await browser.WaitForInitialLoadAsync(); + + requestContext.RegisterSchemeHandlerFactory("https", + "folderSchemeHandlerFactory.test", + new FolderSchemeHandlerFactory(folder, defaultPage: "HelloWorld.html")); + + var response = await browser.LoadUrlAsync(expected); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + Assert.Equal(expected, mainFrame.Url); + Assert.Equal(200, response.HttpStatusCode); + + var jsResponse = await browser.EvaluateScriptAsync("document.documentElement.outerHTML"); + + Assert.Contains("Hello World", jsResponse.Result.ToString()); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + } +} From 2788ec0704f33792e66ecb998d0fec362e3c4023 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 21 Jun 2022 11:47:09 +1000 Subject: [PATCH 051/543] Upgrade to CEF 103.0.6+ge38efd5+chromium-103.0.5060.53 / Chromium 103.0.5060.53 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index fe1574deb..0da3454e8 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 26c3f3ae9..e3eea9ff5 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 5a04e71c4..45f9bec75 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 102,0,90 - PRODUCTVERSION 102,0,90 + FILEVERSION 103,0,60 + PRODUCTVERSION 103,0,60 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "102.0.90" + VALUE "FileVersion", "103.0.60" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "102.0.90" + VALUE "ProductVersion", "103.0.60" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index e8993ddef..1ca4a045e 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 378aa2b18..ba8f91747 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index b49d23cbd..1e4db00e4 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 2a1abc12d..593956cec 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 75fec780d..d05f1a4a9 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 10bd62c27..832e72d6b 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 102,0,90 - PRODUCTVERSION 102,0,90 + FILEVERSION 103,0,60 + PRODUCTVERSION 103,0,60 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "102.0.90" + VALUE "FileVersion", "103.0.60" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "102.0.90" + VALUE "ProductVersion", "103.0.60" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index e8993ddef..1ca4a045e 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 378aa2b18..ba8f91747 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index d2f0a50cf..6d1e2032f 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 55e12d81e..ded0e75f0 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 39cef251a..87d8a0e72 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 96f2152fc..447be6dec 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 809d12a57..58ef629e2 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 23fe9dfec..f214311d3 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index ae78ec30d..d09f28c84 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 76fc3f79d..99cddc89e 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 9a61f7f17..38e9c9daf 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index c2b9117bb..c49fde92b 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index ae4c43e07..560b64e37 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 09048e69f..c3c3632ff 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 102.0.90 + 103.0.60 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 102.0.90 + Version 103.0.60 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 37963c895..bd6e0ddc6 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "102.0.90"; - public const string AssemblyFileVersion = "102.0.90.0"; + public const string AssemblyVersion = "103.0.60"; + public const string AssemblyFileVersion = "103.0.60.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 42af0a824..e409f571f 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 10a12bb55..992e98266 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 1b4b4b352..fc147a047 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index d15416f52..c86f28a2f 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "102.0.9", + [string] $CefVersion = "103.0.6", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index a7c14bfc6..909686225 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 102.0.90-CI{build} +version: 103.0.60-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index df6f37dc8..e9807f5a1 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "102.0.90", + [string] $Version = "103.0.60", [Parameter(Position = 2)] - [string] $AssemblyVersion = "102.0.90", + [string] $AssemblyVersion = "103.0.60", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From bde0bf31f3a8645a7463029493a29c5b9957c446 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 21 Jun 2022 12:42:05 +1000 Subject: [PATCH 052/543] README.md - Update as 102 released --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++----- CONTRIBUTING.md | 6 +++--- README.md | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 817e74c6f..fd077cc62 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -32,9 +32,9 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 101.0.180 or greater. + - Please only create an issue if you can reproduce the problem with version 102.0.100 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 101.0.180 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 102.0.100 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** @@ -69,9 +69,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c4d295733..be5fba09b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_101.0.18%2Bg367b4a0%2Bchromium-101.0.4951.67_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index b3dc8219c..85944a82f 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,9 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 4951 | 2019* | 4.5.2** | Development | -| [cefsharp/101](https://github.com/cefsharp/CefSharp/tree/cefsharp/101)| 4951 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5060 | 2019* | 4.5.2** | Development | +| [cefsharp/102](https://github.com/cefsharp/CefSharp/tree/cefsharp/102)| 5005 | 2019* | 4.5.2** | **Release** | +| [cefsharp/101](https://github.com/cefsharp/CefSharp/tree/cefsharp/101)| 4951 | 2019* | 4.5.2** | Unsupported | | [cefsharp/100](https://github.com/cefsharp/CefSharp/tree/cefsharp/100)| 4896 | 2019* | 4.5.2** | Unsupported | | [cefsharp/99](https://github.com/cefsharp/CefSharp/tree/cefsharp/99) | 4844 | 2019* | 4.5.2** | Unsupported | | [cefsharp/98](https://github.com/cefsharp/CefSharp/tree/cefsharp/98) | 4758 | 2019* | 4.5.2** | Unsupported | From f8530064b14877e00fa2d8c26fe787375cf184b9 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 22 Jun 2022 10:52:17 +1000 Subject: [PATCH 053/543] Core - Add Cef.PostAction and Cef.PostDelayedAction --- .../CefSharp.Core.Runtime.netcore.cs | 2 + CefSharp.Core.Runtime/Cef.h | 29 +++++++++++++ .../CefSharp.Core.Runtime.netcore.vcxproj | 1 + ...Sharp.Core.Runtime.netcore.vcxproj.filters | 3 ++ .../CefSharp.Core.Runtime.vcxproj | 1 + .../CefSharp.Core.Runtime.vcxproj.filters | 3 ++ .../Internals/CefTaskDelegate.h | 42 +++++++++++++++++++ CefSharp.Core/Cef.cs | 23 ++++++++++ 8 files changed, 104 insertions(+) create mode 100644 CefSharp.Core.Runtime/Internals/CefTaskDelegate.h diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index c821f1455..3a791103f 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -81,6 +81,8 @@ public static void EnableWaitForBrowsersToClose() { } public static bool Initialize(CefSharp.Core.CefSettingsBase cefSettings, bool performDependencyCheck, CefSharp.IApp cefApp) { throw null; } public static bool Initialize(CefSharp.Core.CefSettingsBase cefSettings, bool performDependencyCheck, CefSharp.IBrowserProcessHandler browserProcessHandler) { throw null; } public static CefSharp.UrlParts ParseUrl(string url) { throw null; } + public static bool PostAction(CefSharp.CefThreadIds threadId, System.Action action) { throw null; } + public static bool PostDelayedAction(CefSharp.CefThreadIds threadId, System.Action action, int delayInMs) { throw null; } public static void PreShutdown() { } public static void QuitMessageLoop() { } public static bool RemoveCrossOriginWhitelistEntry(string sourceOrigin, string targetProtocol, string targetDomain, bool allowTargetSubdomains) { throw null; } diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index e9d79b48f..497d7eb19 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -15,10 +15,12 @@ #include #include #include +#include #include #include "Internals/CefSharpApp.h" #include "Internals/CefTaskScheduler.h" +#include "Internals/CefTaskDelegate.h" #include "CookieManager.h" #include "CefSettingsBase.h" #include "RequestContext.h" @@ -883,6 +885,33 @@ namespace CefSharp //A few extra ms to allow for CEF to finish Thread::Sleep(50); } + + /// + /// Post an action for delayed execution on the specified thread. + /// + /// thread id + /// action to execute + /// delay in ms + /// bool + static bool PostDelayedAction(CefThreadIds threadId, Action^ action, int delayInMs) + { + auto task = new CefTaskDelegate(action); + + return CefPostDelayedTask((cef_thread_id_t)threadId, task, delayInMs); + } + + /// + /// Post an action for execution on the specified thread. + /// + /// thread id + /// action to execute + /// bool + static bool PostAction(CefThreadIds threadId, Action^ action) + { + auto task = new CefTaskDelegate(action); + + return CefPostTask((cef_thread_id_t)threadId, task); + } }; } } diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 593956cec..be6f3dfaf 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -373,6 +373,7 @@ + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj.filters b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj.filters index e9a7de48e..51d7f3b66 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj.filters +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj.filters @@ -328,6 +328,9 @@ Header Files + + Header Files + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index d05f1a4a9..8200d93f1 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -278,6 +278,7 @@ + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj.filters b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj.filters index 795cfd80c..267e72fa1 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj.filters +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj.filters @@ -328,6 +328,9 @@ Header Files + + Header Files + diff --git a/CefSharp.Core.Runtime/Internals/CefTaskDelegate.h b/CefSharp.Core.Runtime/Internals/CefTaskDelegate.h new file mode 100644 index 000000000..fa9e5c9ef --- /dev/null +++ b/CefSharp.Core.Runtime/Internals/CefTaskDelegate.h @@ -0,0 +1,42 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +#pragma once + +#include "Stdafx.h" +#include "include/cef_task.h" + +#include "ReportUnhandledExceptions.h" + +namespace CefSharp +{ + namespace Internals + { + private class CefTaskDelegate : public CefTask + { + private: + gcroot _action; + public: + CefTaskDelegate(Action^ action) : + _action(action) + { + }; + + virtual void Execute() override + { + try + { + _action->Invoke(); + } + catch (Exception^ e) + { + auto msg = gcnew String(L"CefTaskDelegate caught an unexpected exception. This exception has been redirected onto the ThreadPool, add a try catch."); + ReportUnhandledExceptions::Report(msg, e); + } + }; + + IMPLEMENT_REFCOUNTINGM(CefTaskDelegate); + }; + } +} diff --git a/CefSharp.Core/Cef.cs b/CefSharp.Core/Cef.cs index 43c1828c1..b0edcd568 100644 --- a/CefSharp.Core/Cef.cs +++ b/CefSharp.Core/Cef.cs @@ -644,5 +644,28 @@ public static void WaitForBrowsersToClose(int timeoutInMiliseconds) { Core.Cef.WaitForBrowsersToClose(timeoutInMiliseconds); } + + /// + /// Post an action for delayed execution on the specified thread. + /// + /// thread id + /// action to execute + /// delay in ms + /// bool + public static bool PostDelayedAction(CefThreadIds threadId, Action action, int delayInMs) + { + return Core.Cef.PostDelayedAction(threadId, action, delayInMs); + } + + /// + /// Post an action for execution on the specified thread. + /// + /// thread id + /// action to execute + /// bool + public static bool PostAction(CefThreadIds threadId, Action action) + { + return Core.Cef.PostAction(threadId, action); + } } } From 88762cbe3366091cd8ec00011b329062f332762a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 22 Jun 2022 11:00:27 +1000 Subject: [PATCH 054/543] Core - Add CefThread.ExecuteOnUiThread(Action action) - DevToolsClient now uses this overload --- CefSharp/DevTools/DevToolsClient.cs | 1 - CefSharp/Internals/CefThread.cs | 53 +++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) diff --git a/CefSharp/DevTools/DevToolsClient.cs b/CefSharp/DevTools/DevToolsClient.cs index e27cc1eb9..805cb82fd 100644 --- a/CefSharp/DevTools/DevToolsClient.cs +++ b/CefSharp/DevTools/DevToolsClient.cs @@ -167,7 +167,6 @@ public Task ExecuteDevToolsMethodAsync(string method, IDictionary { ExecuteDevToolsMethod(browserHost, messageId, method, parameters, methodResultContext); - return (object)null; }); } else diff --git a/CefSharp/Internals/CefThread.cs b/CefSharp/Internals/CefThread.cs index fa4926c2c..7682055bc 100644 --- a/CefSharp/Internals/CefThread.cs +++ b/CefSharp/Internals/CefThread.cs @@ -100,6 +100,58 @@ public static Task ExecuteOnUiThread(Func function) } } + /// + /// Execute the provided action on the CEF UI Thread + /// + /// action + /// Task + public static Task ExecuteOnUiThread(Action action) + { + lock (LockObj) + { + if (HasShutdown) + { + throw new Exception("Cef.Shutdown has already been called, it's no longer possible to execute on the CEF UI Thread. Check CefThread.HasShutdown to guard against this execption"); + } + + var taskFactory = UiThreadTaskFactory; + + if (taskFactory == null) + { + //We don't have a task factory yet, so we'll queue for execution. + return QueueForExcutionWhenUiThreadCreated(action); + } + + return taskFactory.StartNew(action); + } + } + + /// + /// Wait for CEF to Initialize, continuation happens on + /// the CEF UI Thraed. + /// + /// Task that can be awaited + private static Task QueueForExcutionWhenUiThreadCreated(Action action) + { + var tcs = new TaskCompletionSource(); + + EventHandler handler = null; + + handler = (s, args) => + { + Initialized -= handler; + + //TODO: Should this call UiThreadTaskFactory.StartNew? + action(); + + tcs.SetResult(true); + }; + + Initialized += handler; + + return tcs.Task; + } + /// /// Wait for CEF to Initialize, continuation happens on /// the CEF UI Thraed. @@ -115,6 +167,7 @@ private static Task QueueForExcutionWhenUiThreadCreated(Func func) { Initialized -= handler; + //TODO: Should this call UiThreadTaskFactory.StartNew? var result = func(); tcs.SetResult(result); From ad464d34b2398939063851047a5fec7b03a2db09 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 23 Jun 2022 10:21:38 +1000 Subject: [PATCH 055/543] Core - CefThread better error handling for queued execution --- CefSharp/Internals/CefThread.cs | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/CefSharp/Internals/CefThread.cs b/CefSharp/Internals/CefThread.cs index 7682055bc..5fb880dd0 100644 --- a/CefSharp/Internals/CefThread.cs +++ b/CefSharp/Internals/CefThread.cs @@ -141,10 +141,17 @@ private static Task QueueForExcutionWhenUiThreadCreated(Action action) { Initialized -= handler; - //TODO: Should this call UiThreadTaskFactory.StartNew? - action(); + try + { + //TODO: Should this call UiThreadTaskFactory.StartNew? + action(); - tcs.SetResult(true); + tcs.TrySetResult(true); + } + catch(Exception ex) + { + tcs.TrySetException(ex); + } }; Initialized += handler; @@ -167,10 +174,17 @@ private static Task QueueForExcutionWhenUiThreadCreated(Func func) { Initialized -= handler; - //TODO: Should this call UiThreadTaskFactory.StartNew? - var result = func(); + try + { + //TODO: Should this call UiThreadTaskFactory.StartNew? + var result = func(); - tcs.SetResult(result); + tcs.TrySetResult(result); + } + catch(Exception ex) + { + tcs.TrySetException(ex); + } }; Initialized += handler; From 81d21682621e60b1be750a657ce78595ca393bbb Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 1 Jul 2022 09:34:44 +1000 Subject: [PATCH 056/543] Upgrade to CEF 103.0.8+g444ebe7+chromium-103.0.5060.66 / Chromium 103.0.5060.66 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 0da3454e8..ccbade99c 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index e3eea9ff5..b641bfa71 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 45f9bec75..195a81645 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 103,0,60 - PRODUCTVERSION 103,0,60 + FILEVERSION 103,0,80 + PRODUCTVERSION 103,0,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "103.0.60" + VALUE "FileVersion", "103.0.80" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "103.0.60" + VALUE "ProductVersion", "103.0.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 1ca4a045e..e292bba14 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index ba8f91747..1f00868cf 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 1e4db00e4..1b57bd5cb 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index be6f3dfaf..b8465d6a5 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 8200d93f1..0f488201c 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 832e72d6b..baee80ad7 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 103,0,60 - PRODUCTVERSION 103,0,60 + FILEVERSION 103,0,80 + PRODUCTVERSION 103,0,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "103.0.60" + VALUE "FileVersion", "103.0.80" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "103.0.60" + VALUE "ProductVersion", "103.0.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 1ca4a045e..e292bba14 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index ba8f91747..1f00868cf 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 6d1e2032f..a785ded55 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index ded0e75f0..357acc3c3 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 87d8a0e72..b9e1c2edb 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 447be6dec..7159603a6 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 58ef629e2..0c636afcd 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index f214311d3..92c835db9 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index d09f28c84..ef8d99c64 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 99cddc89e..ae601f398 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 38e9c9daf..440cde785 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index c49fde92b..f0a586f6d 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 560b64e37..ffd2c04ff 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index c3c3632ff..64fb138d4 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 103.0.60 + 103.0.80 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 103.0.60 + Version 103.0.80 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index bd6e0ddc6..46b9cf8f7 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "103.0.60"; - public const string AssemblyFileVersion = "103.0.60.0"; + public const string AssemblyVersion = "103.0.80"; + public const string AssemblyFileVersion = "103.0.80.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index e409f571f..0b87729cf 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 992e98266..cfc9002cc 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index fc147a047..d737a7989 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index c86f28a2f..d43cabf4f 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "103.0.6", + [string] $CefVersion = "103.0.8", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 909686225..ce31a4a76 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 103.0.60-CI{build} +version: 103.0.80-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index e9807f5a1..baa5d8be5 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "103.0.60", + [string] $Version = "103.0.80", [Parameter(Position = 2)] - [string] $AssemblyVersion = "103.0.60", + [string] $AssemblyVersion = "103.0.80", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 644b2b5e8caee5fb8f1f47fe0e832bef57000941 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 3 Jul 2022 11:02:53 +1000 Subject: [PATCH 057/543] Test - Fix NetCore FolderSchemeHandlerFactoryTests.CanWork path --- .../SchemeHandler/FolderSchemeHandlerFactoryTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs index 41ffc5e0f..e4c8de180 100644 --- a/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs +++ b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs @@ -26,7 +26,11 @@ public FolderSchemeHandlerFactoryTests(ITestOutputHelper output, CefSharpFixture public async Task CanWork() { const string expected = "https://folderschemehandlerfactory.test/"; +#if NETCOREAPP + var folder = Path.GetFullPath(@"..\..\..\..\..\..\CefSharp.Example\Resources"); +#else var folder = Path.GetFullPath(@"..\..\..\..\..\CefSharp.Example\Resources"); +#endif using (var requestContext = new RequestContext(Cef.GetGlobalRequestContext())) using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, requestContext: requestContext)) From 00f5db9159415ec537682efb48ac3b112285c582 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 3 Jul 2022 11:23:42 +1000 Subject: [PATCH 058/543] DevTools Client - Upgrade to 103.0.5060.66 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 654 +++++++++++++++--- .../DevToolsClient.Generated.netcore.cs | 645 ++++++++++++++--- 2 files changed, 1127 insertions(+), 172 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 11bc743ba..069d6ab33 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 102.0.5005.63 +// CHROMIUM VERSION 103.0.5060.66 namespace CefSharp.DevTools.Accessibility { /// @@ -2529,11 +2529,6 @@ public enum AttributionReportingIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PermissionPolicyDisabled"))] PermissionPolicyDisabled, /// - /// InvalidAttributionSourceEventId - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAttributionSourceEventId"))] - InvalidAttributionSourceEventId, - /// /// AttributionSourceUntrustworthyOrigin /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionSourceUntrustworthyOrigin"))] @@ -2544,15 +2539,10 @@ public enum AttributionReportingIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionUntrustworthyOrigin"))] AttributionUntrustworthyOrigin, /// - /// InvalidAttributionSourceExpiry + /// InvalidHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAttributionSourceExpiry"))] - InvalidAttributionSourceExpiry, - /// - /// InvalidAttributionSourcePriority - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAttributionSourcePriority"))] - InvalidAttributionSourcePriority + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidHeader"))] + InvalidHeader } /// @@ -2775,24 +2765,281 @@ public string FrameId /// public enum DeprecationIssueType { + /// + /// AuthorizationCoveredByWildcard + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AuthorizationCoveredByWildcard"))] + AuthorizationCoveredByWildcard, + /// + /// CanRequestURLHTTPContainingNewline + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CanRequestURLHTTPContainingNewline"))] + CanRequestURLHTTPContainingNewline, + /// + /// ChromeLoadTimesConnectionInfo + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ChromeLoadTimesConnectionInfo"))] + ChromeLoadTimesConnectionInfo, + /// + /// ChromeLoadTimesFirstPaintAfterLoadTime + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ChromeLoadTimesFirstPaintAfterLoadTime"))] + ChromeLoadTimesFirstPaintAfterLoadTime, + /// + /// ChromeLoadTimesWasAlternateProtocolAvailable + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ChromeLoadTimesWasAlternateProtocolAvailable"))] + ChromeLoadTimesWasAlternateProtocolAvailable, + /// + /// CookieWithTruncatingChar + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CookieWithTruncatingChar"))] + CookieWithTruncatingChar, + /// + /// CrossOriginAccessBasedOnDocumentDomain + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginAccessBasedOnDocumentDomain"))] + CrossOriginAccessBasedOnDocumentDomain, + /// + /// CrossOriginWindowAlert + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginWindowAlert"))] + CrossOriginWindowAlert, + /// + /// CrossOriginWindowConfirm + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginWindowConfirm"))] + CrossOriginWindowConfirm, + /// + /// CSSSelectorInternalMediaControlsOverlayCastButton + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CSSSelectorInternalMediaControlsOverlayCastButton"))] + CSSSelectorInternalMediaControlsOverlayCastButton, + /// + /// CustomCursorIntersectsViewport + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CustomCursorIntersectsViewport"))] + CustomCursorIntersectsViewport, /// /// DeprecationExample /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DeprecationExample"))] DeprecationExample, /// - /// Untranslated + /// DocumentDomainSettingWithoutOriginAgentClusterHeader + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DocumentDomainSettingWithoutOriginAgentClusterHeader"))] + DocumentDomainSettingWithoutOriginAgentClusterHeader, + /// + /// EventPath + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventPath"))] + EventPath, + /// + /// GeolocationInsecureOrigin + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GeolocationInsecureOrigin"))] + GeolocationInsecureOrigin, + /// + /// GeolocationInsecureOriginDeprecatedNotRemoved + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GeolocationInsecureOriginDeprecatedNotRemoved"))] + GeolocationInsecureOriginDeprecatedNotRemoved, + /// + /// GetUserMediaInsecureOrigin + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GetUserMediaInsecureOrigin"))] + GetUserMediaInsecureOrigin, + /// + /// HostCandidateAttributeGetter + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HostCandidateAttributeGetter"))] + HostCandidateAttributeGetter, + /// + /// InsecurePrivateNetworkSubresourceRequest + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecurePrivateNetworkSubresourceRequest"))] + InsecurePrivateNetworkSubresourceRequest, + /// + /// LegacyConstraintGoogIPv6 + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LegacyConstraintGoogIPv6"))] + LegacyConstraintGoogIPv6, + /// + /// LocalCSSFileExtensionRejected + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LocalCSSFileExtensionRejected"))] + LocalCSSFileExtensionRejected, + /// + /// MediaElementAudioSourceNode + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaElementAudioSourceNode"))] + MediaElementAudioSourceNode, + /// + /// MediaSourceAbortRemove + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaSourceAbortRemove"))] + MediaSourceAbortRemove, + /// + /// MediaSourceDurationTruncatingBuffered + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaSourceDurationTruncatingBuffered"))] + MediaSourceDurationTruncatingBuffered, + /// + /// NoSysexWebMIDIWithoutPermission + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoSysexWebMIDIWithoutPermission"))] + NoSysexWebMIDIWithoutPermission, + /// + /// NotificationInsecureOrigin + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotificationInsecureOrigin"))] + NotificationInsecureOrigin, + /// + /// NotificationPermissionRequestedIframe + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotificationPermissionRequestedIframe"))] + NotificationPermissionRequestedIframe, + /// + /// ObsoleteWebRtcCipherSuite + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ObsoleteWebRtcCipherSuite"))] + ObsoleteWebRtcCipherSuite, + /// + /// PaymentRequestBasicCard + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PaymentRequestBasicCard"))] + PaymentRequestBasicCard, + /// + /// PaymentRequestShowWithoutGesture + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PaymentRequestShowWithoutGesture"))] + PaymentRequestShowWithoutGesture, + /// + /// PictureSourceSrc + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PictureSourceSrc"))] + PictureSourceSrc, + /// + /// PrefixedCancelAnimationFrame + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedCancelAnimationFrame"))] + PrefixedCancelAnimationFrame, + /// + /// PrefixedRequestAnimationFrame + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedRequestAnimationFrame"))] + PrefixedRequestAnimationFrame, + /// + /// PrefixedStorageInfo + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedStorageInfo"))] + PrefixedStorageInfo, + /// + /// PrefixedVideoDisplayingFullscreen + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoDisplayingFullscreen"))] + PrefixedVideoDisplayingFullscreen, + /// + /// PrefixedVideoEnterFullscreen + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoEnterFullscreen"))] + PrefixedVideoEnterFullscreen, + /// + /// PrefixedVideoEnterFullScreen + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoEnterFullScreen"))] + PrefixedVideoEnterFullScreen, + /// + /// PrefixedVideoExitFullscreen + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoExitFullscreen"))] + PrefixedVideoExitFullscreen, + /// + /// PrefixedVideoExitFullScreen + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoExitFullScreen"))] + PrefixedVideoExitFullScreen, + /// + /// PrefixedVideoSupportsFullscreen + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoSupportsFullscreen"))] + PrefixedVideoSupportsFullscreen, + /// + /// RangeExpand + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RangeExpand"))] + RangeExpand, + /// + /// RequestedSubresourceWithEmbeddedCredentials + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedSubresourceWithEmbeddedCredentials"))] + RequestedSubresourceWithEmbeddedCredentials, + /// + /// RTCConstraintEnableDtlsSrtpFalse + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCConstraintEnableDtlsSrtpFalse"))] + RTCConstraintEnableDtlsSrtpFalse, + /// + /// RTCConstraintEnableDtlsSrtpTrue + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCConstraintEnableDtlsSrtpTrue"))] + RTCConstraintEnableDtlsSrtpTrue, + /// + /// RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"))] + RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics, + /// + /// RTCPeerConnectionSdpSemanticsPlanB /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Untranslated"))] - Untranslated + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCPeerConnectionSdpSemanticsPlanB"))] + RTCPeerConnectionSdpSemanticsPlanB, + /// + /// RtcpMuxPolicyNegotiate + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RtcpMuxPolicyNegotiate"))] + RtcpMuxPolicyNegotiate, + /// + /// RTPDataChannel + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTPDataChannel"))] + RTPDataChannel, + /// + /// SharedArrayBufferConstructedWithoutIsolation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SharedArrayBufferConstructedWithoutIsolation"))] + SharedArrayBufferConstructedWithoutIsolation, + /// + /// TextToSpeech_DisallowedByAutoplay + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TextToSpeech_DisallowedByAutoplay"))] + TextToSpeechDisallowedByAutoplay, + /// + /// V8SharedArrayBufferConstructedInExtensionWithoutIsolation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("V8SharedArrayBufferConstructedInExtensionWithoutIsolation"))] + V8SharedArrayBufferConstructedInExtensionWithoutIsolation, + /// + /// XHRJSONEncodingDetection + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XHRJSONEncodingDetection"))] + XHRJSONEncodingDetection, + /// + /// XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload"))] + XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload, + /// + /// XRSupportsSession + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XRSupportsSession"))] + XRSupportsSession } /// /// This issue tracks information needed to print a deprecation message. - /// The formatting is inherited from the old console.log version, see more at: - /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc - /// TODO(crbug.com/1264960): Re-work format to add i18n support per: - /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md + /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md /// [System.Runtime.Serialization.DataContractAttribute] public partial class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase @@ -2817,30 +3064,6 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation set; } - /// - /// The content of an untranslated deprecation issue, - /// e.g. "window.inefficientLegacyStorageMethod will be removed in M97, - /// around January 2022. Please use Web Storage or Indexed Database - /// instead. This standard was abandoned in January, 1970. See - /// https://www.chromestatus.com/feature/5684870116278272 for more details." - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (false))] - public string Message - { - get; - set; - } - - /// - /// The id of an untranslated deprecation issue e.g. PrefixedStorageInfo. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deprecationType"), IsRequired = (false))] - public string DeprecationType - { - get; - set; - } - /// /// Type /// @@ -8453,13 +8676,23 @@ public partial class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Security origin for the storage. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityOrigin"), IsRequired = (true))] + [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityOrigin"), IsRequired = (false))] public string SecurityOrigin { get; set; } + /// + /// Represents a key by which DOM Storage keys its CachedStorageAreas + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (false))] + public string StorageKey + { + get; + set; + } + /// /// Whether the storage is local storage (not session storage). /// @@ -9004,6 +9237,26 @@ public bool Mobile get; set; } + + /// + /// Bitness + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("bitness"), IsRequired = (false))] + public string Bitness + { + get; + set; + } + + /// + /// Wow64 + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("wow64"), IsRequired = (false))] + public bool? Wow64 + { + get; + set; + } } /// @@ -17589,11 +17842,6 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ect"))] ChEct, /// - /// ch-partitioned-cookies - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-partitioned-cookies"))] - ChPartitionedCookies, - /// /// ch-prefers-color-scheme /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-prefers-color-scheme"))] @@ -17784,6 +18032,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("keyboard-map"))] KeyboardMap, /// + /// local-fonts + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("local-fonts"))] + LocalFonts, + /// /// magnetometer /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("magnetometer"))] @@ -19224,6 +19477,16 @@ public string Fantasy get; set; } + + /// + /// The math font-family. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("math"), IsRequired = (false))] + public string Math + { + get; + set; + } } /// @@ -19586,11 +19849,6 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RendererProcessCrashed"))] RendererProcessCrashed, /// - /// GrantedMediaStreamAccess - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GrantedMediaStreamAccess"))] - GrantedMediaStreamAccess, - /// /// SchedulerTrackedFeatureUsed /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchedulerTrackedFeatureUsed"))] @@ -19721,11 +19979,6 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BackForwardCacheDisabledForDelegate"))] BackForwardCacheDisabledForDelegate, /// - /// OptInUnloadHeaderNotPresent - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OptInUnloadHeaderNotPresent"))] - OptInUnloadHeaderNotPresent, - /// /// UnloadHandlerExistsInMainFrame /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnloadHandlerExistsInMainFrame"))] @@ -20271,7 +20524,167 @@ public enum PrerenderFinalStatus /// Activated /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Activated"))] - Activated + Activated, + /// + /// Destroyed + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Destroyed"))] + Destroyed, + /// + /// LowEndDevice + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LowEndDevice"))] + LowEndDevice, + /// + /// CrossOriginRedirect + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginRedirect"))] + CrossOriginRedirect, + /// + /// CrossOriginNavigation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginNavigation"))] + CrossOriginNavigation, + /// + /// InvalidSchemeRedirect + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSchemeRedirect"))] + InvalidSchemeRedirect, + /// + /// InvalidSchemeNavigation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSchemeNavigation"))] + InvalidSchemeNavigation, + /// + /// InProgressNavigation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InProgressNavigation"))] + InProgressNavigation, + /// + /// NavigationRequestBlockedByCsp + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationRequestBlockedByCsp"))] + NavigationRequestBlockedByCsp, + /// + /// MainFrameNavigation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MainFrameNavigation"))] + MainFrameNavigation, + /// + /// MojoBinderPolicy + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MojoBinderPolicy"))] + MojoBinderPolicy, + /// + /// RendererProcessCrashed + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RendererProcessCrashed"))] + RendererProcessCrashed, + /// + /// RendererProcessKilled + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RendererProcessKilled"))] + RendererProcessKilled, + /// + /// Download + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Download"))] + Download, + /// + /// TriggerDestroyed + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TriggerDestroyed"))] + TriggerDestroyed, + /// + /// NavigationNotCommitted + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationNotCommitted"))] + NavigationNotCommitted, + /// + /// NavigationBadHttpStatus + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationBadHttpStatus"))] + NavigationBadHttpStatus, + /// + /// ClientCertRequested + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientCertRequested"))] + ClientCertRequested, + /// + /// NavigationRequestNetworkError + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationRequestNetworkError"))] + NavigationRequestNetworkError, + /// + /// MaxNumOfRunningPrerendersExceeded + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MaxNumOfRunningPrerendersExceeded"))] + MaxNumOfRunningPrerendersExceeded, + /// + /// CancelAllHostsForTesting + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CancelAllHostsForTesting"))] + CancelAllHostsForTesting, + /// + /// DidFailLoad + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DidFailLoad"))] + DidFailLoad, + /// + /// Stop + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Stop"))] + Stop, + /// + /// SslCertificateError + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SslCertificateError"))] + SslCertificateError, + /// + /// LoginAuthRequested + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LoginAuthRequested"))] + LoginAuthRequested, + /// + /// UaChangeRequiresReload + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UaChangeRequiresReload"))] + UaChangeRequiresReload, + /// + /// BlockedByClient + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BlockedByClient"))] + BlockedByClient, + /// + /// AudioOutputDeviceRequested + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AudioOutputDeviceRequested"))] + AudioOutputDeviceRequested, + /// + /// MixedContent + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MixedContent"))] + MixedContent, + /// + /// TriggerBackgrounded + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TriggerBackgrounded"))] + TriggerBackgrounded, + /// + /// EmbedderTriggeredAndSameOriginRedirected + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndSameOriginRedirected"))] + EmbedderTriggeredAndSameOriginRedirected, + /// + /// EmbedderTriggeredAndCrossOriginRedirected + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] + EmbedderTriggeredAndCrossOriginRedirected, + /// + /// EmbedderTriggeredAndDestroyed + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndDestroyed"))] + EmbedderTriggeredAndDestroyed } /// @@ -26582,6 +26995,19 @@ public CefSharp.DevTools.Runtime.RemoteObject ReturnValue get; set; } + + /// + /// Valid only while the VM is paused and indicates whether this frame + /// can be restarted or not. Note that a `true` value here does not + /// guarantee that Debugger#restartFrame with this CallFrameId will be + /// successful, but it is very likely. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("canBeRestarted"), IsRequired = (false))] + public bool? CanBeRestarted + { + get; + set; + } } /// @@ -27179,7 +27605,7 @@ public int ExecutionContextId } /// - /// Content hash of the script. + /// Content hash of the script, SHA-256. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("hash"), IsRequired = (true))] public string Hash @@ -27373,7 +27799,7 @@ public int ExecutionContextId } /// - /// Content hash of the script. + /// Content hash of the script, SHA-256. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("hash"), IsRequired = (true))] public string Hash @@ -35806,6 +36232,34 @@ public string[] Entries } } +namespace CefSharp.DevTools.DOMStorage +{ + /// + /// GetStorageKeyForFrameResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetStorageKeyForFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal string storageKey + { + get; + set; + } + + /// + /// storageKey + /// + public string StorageKey + { + get + { + return storageKey; + } + } + } +} + namespace CefSharp.DevTools.DOMStorage { using System.Linq; @@ -35970,6 +36424,20 @@ public System.Threading.Tasks.Task SetDOMStorageItemAsyn dict.Add("value", value); return _client.ExecuteDevToolsMethodAsync("DOMStorage.setDOMStorageItem", dict); } + + partial void ValidateGetStorageKeyForFrame(string frameId); + /// + /// GetStorageKeyForFrame + /// + /// frameId + /// returns System.Threading.Tasks.Task<GetStorageKeyForFrameResponse> + public System.Threading.Tasks.Task GetStorageKeyForFrameAsync(string frameId) + { + ValidateGetStorageKeyForFrame(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + return _client.ExecuteDevToolsMethodAsync("DOMStorage.getStorageKeyForFrame", dict); + } } } @@ -36915,7 +37383,7 @@ public HeadlessExperimentalClient(CefSharp.DevTools.IDevToolsClient client) /// Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a /// screenshot from the resulting frame. Requires that the target was created with enabled /// BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also - /// https://goo.gl/3zHXhB for more background. + /// https://goo.gle/chrome-headless-rendering for more background. /// /// Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set,the current time will be used. /// The interval between BeginFrames that is reported to the compositor, in milliseconds.Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds. @@ -42636,7 +43104,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); /// /// Print page as PDF. /// @@ -42650,16 +43118,15 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// Bottom margin in inches. Defaults to 1cm (~0.4 inches). /// Left margin in inches. Defaults to 1cm (~0.4 inches). /// Right margin in inches. Defaults to 1cm (~0.4 inches). - /// Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which meansprint all pages. - /// Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'.Defaults to false. + /// Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages areprinted in the document order, not in the order specified, and nomore than once.Defaults to empty string, which implies the entire document is printed.The page numbers are quietly capped to actual page count of thedocument, and ranges beyond the end of the document are ignored.If this results in no pages to print, an error is reported.It is an error to specify a range with start greater than end. /// HTML template for the print header. Should be valid HTML markup with followingclasses used to inject printing values into them:- `date`: formatted print date- `title`: document title- `url`: document location- `pageNumber`: current page number- `totalPages`: total pages in the documentFor example, `<span class=title> </span>` would generate span containing the title. /// HTML template for the print footer. Should use the same format as the `headerTemplate`. /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, ignoreInvalidPageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -42716,11 +43183,6 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("pageRanges", pageRanges); } - if (ignoreInvalidPageRanges.HasValue) - { - dict.Add("ignoreInvalidPageRanges", ignoreInvalidPageRanges.Value); - } - if (!(string.IsNullOrEmpty(headerTemplate))) { dict.Add("headerTemplate", headerTemplate); @@ -46113,14 +46575,22 @@ public WebAuthnClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } + partial void ValidateEnable(bool? enableUI = null); /// /// Enable the WebAuthn domain and start intercepting credential storage and /// retrieval with a virtual authenticator. /// + /// Whether to enable the WebAuthn user interface. Enabling the UI isrecommended for debugging and demo purposes, as it is closer to the realexperience. Disabling the UI is recommended for automated testing.Supported at the embedder's discretion if UI is available.Defaults to false. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync() + public System.Threading.Tasks.Task EnableAsync(bool? enableUI = null) { - System.Collections.Generic.Dictionary dict = null; + ValidateEnable(enableUI); + var dict = new System.Collections.Generic.Dictionary(); + if (enableUI.HasValue) + { + dict.Add("enableUI", enableUI.Value); + } + return _client.ExecuteDevToolsMethodAsync("WebAuthn.enable", dict); } @@ -47895,17 +48365,18 @@ public System.Threading.Tasks.Task StopSamplingAsync() return _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopSampling", dict); } - partial void ValidateStopTrackingHeapObjects(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null); + partial void ValidateStopTrackingHeapObjects(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null); /// /// StopTrackingHeapObjects /// /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being takenwhen the tracking is stopped. - /// treatGlobalObjectsAsRoots + /// Deprecated in favor of `exposeInternals`. /// If true, numerical values are included in the snapshot + /// If true, exposes internals of the snapshot. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StopTrackingHeapObjectsAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null) + public System.Threading.Tasks.Task StopTrackingHeapObjectsAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null) { - ValidateStopTrackingHeapObjects(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue); + ValidateStopTrackingHeapObjects(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue, exposeInternals); var dict = new System.Collections.Generic.Dictionary(); if (reportProgress.HasValue) { @@ -47922,20 +48393,26 @@ public System.Threading.Tasks.Task StopTrackingHeapObjec dict.Add("captureNumericValue", captureNumericValue.Value); } + if (exposeInternals.HasValue) + { + dict.Add("exposeInternals", exposeInternals.Value); + } + return _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopTrackingHeapObjects", dict); } - partial void ValidateTakeHeapSnapshot(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null); + partial void ValidateTakeHeapSnapshot(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null); /// /// TakeHeapSnapshot /// /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. - /// If true, a raw snapshot without artificial roots will be generated + /// If true, a raw snapshot without artificial roots will be generated.Deprecated in favor of `exposeInternals`. /// If true, numerical values are included in the snapshot + /// If true, exposes internals of the snapshot. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task TakeHeapSnapshotAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null) + public System.Threading.Tasks.Task TakeHeapSnapshotAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null) { - ValidateTakeHeapSnapshot(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue); + ValidateTakeHeapSnapshot(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue, exposeInternals); var dict = new System.Collections.Generic.Dictionary(); if (reportProgress.HasValue) { @@ -47952,6 +48429,11 @@ public System.Threading.Tasks.Task TakeHeapSnapshotAsync dict.Add("captureNumericValue", captureNumericValue.Value); } + if (exposeInternals.HasValue) + { + dict.Add("exposeInternals", exposeInternals.Value); + } + return _client.ExecuteDevToolsMethodAsync("HeapProfiler.takeHeapSnapshot", dict); } } @@ -49000,7 +49482,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Specifies execution context which global object will be used to call function on. EitherexecutionContextId or objectId should be specified. /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. - /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. + /// Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null) { diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index 2dc03df70..52dcb9cbe 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 102.0.5005.63 +// CHROMIUM VERSION 103.0.5060.66 namespace CefSharp.DevTools.Accessibility { /// @@ -2265,11 +2265,6 @@ public enum AttributionReportingIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("PermissionPolicyDisabled")] PermissionPolicyDisabled, /// - /// InvalidAttributionSourceEventId - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAttributionSourceEventId")] - InvalidAttributionSourceEventId, - /// /// AttributionSourceUntrustworthyOrigin /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionSourceUntrustworthyOrigin")] @@ -2280,15 +2275,10 @@ public enum AttributionReportingIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionUntrustworthyOrigin")] AttributionUntrustworthyOrigin, /// - /// InvalidAttributionSourceExpiry + /// InvalidHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAttributionSourceExpiry")] - InvalidAttributionSourceExpiry, - /// - /// InvalidAttributionSourcePriority - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAttributionSourcePriority")] - InvalidAttributionSourcePriority + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidHeader")] + InvalidHeader } /// @@ -2479,24 +2469,281 @@ public string FrameId /// public enum DeprecationIssueType { + /// + /// AuthorizationCoveredByWildcard + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AuthorizationCoveredByWildcard")] + AuthorizationCoveredByWildcard, + /// + /// CanRequestURLHTTPContainingNewline + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CanRequestURLHTTPContainingNewline")] + CanRequestURLHTTPContainingNewline, + /// + /// ChromeLoadTimesConnectionInfo + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ChromeLoadTimesConnectionInfo")] + ChromeLoadTimesConnectionInfo, + /// + /// ChromeLoadTimesFirstPaintAfterLoadTime + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ChromeLoadTimesFirstPaintAfterLoadTime")] + ChromeLoadTimesFirstPaintAfterLoadTime, + /// + /// ChromeLoadTimesWasAlternateProtocolAvailable + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ChromeLoadTimesWasAlternateProtocolAvailable")] + ChromeLoadTimesWasAlternateProtocolAvailable, + /// + /// CookieWithTruncatingChar + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CookieWithTruncatingChar")] + CookieWithTruncatingChar, + /// + /// CrossOriginAccessBasedOnDocumentDomain + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginAccessBasedOnDocumentDomain")] + CrossOriginAccessBasedOnDocumentDomain, + /// + /// CrossOriginWindowAlert + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginWindowAlert")] + CrossOriginWindowAlert, + /// + /// CrossOriginWindowConfirm + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginWindowConfirm")] + CrossOriginWindowConfirm, + /// + /// CSSSelectorInternalMediaControlsOverlayCastButton + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSSSelectorInternalMediaControlsOverlayCastButton")] + CSSSelectorInternalMediaControlsOverlayCastButton, + /// + /// CustomCursorIntersectsViewport + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CustomCursorIntersectsViewport")] + CustomCursorIntersectsViewport, /// /// DeprecationExample /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("DeprecationExample")] DeprecationExample, /// - /// Untranslated + /// DocumentDomainSettingWithoutOriginAgentClusterHeader + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("DocumentDomainSettingWithoutOriginAgentClusterHeader")] + DocumentDomainSettingWithoutOriginAgentClusterHeader, + /// + /// EventPath + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventPath")] + EventPath, + /// + /// GeolocationInsecureOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("GeolocationInsecureOrigin")] + GeolocationInsecureOrigin, + /// + /// GeolocationInsecureOriginDeprecatedNotRemoved + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("GeolocationInsecureOriginDeprecatedNotRemoved")] + GeolocationInsecureOriginDeprecatedNotRemoved, + /// + /// GetUserMediaInsecureOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("GetUserMediaInsecureOrigin")] + GetUserMediaInsecureOrigin, + /// + /// HostCandidateAttributeGetter + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("HostCandidateAttributeGetter")] + HostCandidateAttributeGetter, + /// + /// InsecurePrivateNetworkSubresourceRequest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecurePrivateNetworkSubresourceRequest")] + InsecurePrivateNetworkSubresourceRequest, + /// + /// LegacyConstraintGoogIPv6 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("LegacyConstraintGoogIPv6")] + LegacyConstraintGoogIPv6, + /// + /// LocalCSSFileExtensionRejected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("LocalCSSFileExtensionRejected")] + LocalCSSFileExtensionRejected, + /// + /// MediaElementAudioSourceNode + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaElementAudioSourceNode")] + MediaElementAudioSourceNode, + /// + /// MediaSourceAbortRemove + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaSourceAbortRemove")] + MediaSourceAbortRemove, + /// + /// MediaSourceDurationTruncatingBuffered + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaSourceDurationTruncatingBuffered")] + MediaSourceDurationTruncatingBuffered, + /// + /// NoSysexWebMIDIWithoutPermission + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoSysexWebMIDIWithoutPermission")] + NoSysexWebMIDIWithoutPermission, + /// + /// NotificationInsecureOrigin + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotificationInsecureOrigin")] + NotificationInsecureOrigin, + /// + /// NotificationPermissionRequestedIframe + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotificationPermissionRequestedIframe")] + NotificationPermissionRequestedIframe, + /// + /// ObsoleteWebRtcCipherSuite + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ObsoleteWebRtcCipherSuite")] + ObsoleteWebRtcCipherSuite, + /// + /// PaymentRequestBasicCard + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PaymentRequestBasicCard")] + PaymentRequestBasicCard, + /// + /// PaymentRequestShowWithoutGesture + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PaymentRequestShowWithoutGesture")] + PaymentRequestShowWithoutGesture, + /// + /// PictureSourceSrc + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PictureSourceSrc")] + PictureSourceSrc, + /// + /// PrefixedCancelAnimationFrame + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedCancelAnimationFrame")] + PrefixedCancelAnimationFrame, + /// + /// PrefixedRequestAnimationFrame + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedRequestAnimationFrame")] + PrefixedRequestAnimationFrame, + /// + /// PrefixedStorageInfo + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedStorageInfo")] + PrefixedStorageInfo, + /// + /// PrefixedVideoDisplayingFullscreen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoDisplayingFullscreen")] + PrefixedVideoDisplayingFullscreen, + /// + /// PrefixedVideoEnterFullscreen /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Untranslated")] - Untranslated + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoEnterFullscreen")] + PrefixedVideoEnterFullscreen, + /// + /// PrefixedVideoEnterFullScreen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoEnterFullScreen")] + PrefixedVideoEnterFullScreen, + /// + /// PrefixedVideoExitFullscreen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoExitFullscreen")] + PrefixedVideoExitFullscreen, + /// + /// PrefixedVideoExitFullScreen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoExitFullScreen")] + PrefixedVideoExitFullScreen, + /// + /// PrefixedVideoSupportsFullscreen + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoSupportsFullscreen")] + PrefixedVideoSupportsFullscreen, + /// + /// RangeExpand + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RangeExpand")] + RangeExpand, + /// + /// RequestedSubresourceWithEmbeddedCredentials + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedSubresourceWithEmbeddedCredentials")] + RequestedSubresourceWithEmbeddedCredentials, + /// + /// RTCConstraintEnableDtlsSrtpFalse + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCConstraintEnableDtlsSrtpFalse")] + RTCConstraintEnableDtlsSrtpFalse, + /// + /// RTCConstraintEnableDtlsSrtpTrue + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCConstraintEnableDtlsSrtpTrue")] + RTCConstraintEnableDtlsSrtpTrue, + /// + /// RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics")] + RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics, + /// + /// RTCPeerConnectionSdpSemanticsPlanB + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCPeerConnectionSdpSemanticsPlanB")] + RTCPeerConnectionSdpSemanticsPlanB, + /// + /// RtcpMuxPolicyNegotiate + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RtcpMuxPolicyNegotiate")] + RtcpMuxPolicyNegotiate, + /// + /// RTPDataChannel + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTPDataChannel")] + RTPDataChannel, + /// + /// SharedArrayBufferConstructedWithoutIsolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedArrayBufferConstructedWithoutIsolation")] + SharedArrayBufferConstructedWithoutIsolation, + /// + /// TextToSpeech_DisallowedByAutoplay + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TextToSpeech_DisallowedByAutoplay")] + TextToSpeechDisallowedByAutoplay, + /// + /// V8SharedArrayBufferConstructedInExtensionWithoutIsolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("V8SharedArrayBufferConstructedInExtensionWithoutIsolation")] + V8SharedArrayBufferConstructedInExtensionWithoutIsolation, + /// + /// XHRJSONEncodingDetection + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("XHRJSONEncodingDetection")] + XHRJSONEncodingDetection, + /// + /// XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload")] + XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload, + /// + /// XRSupportsSession + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("XRSupportsSession")] + XRSupportsSession } /// /// This issue tracks information needed to print a deprecation message. - /// The formatting is inherited from the old console.log version, see more at: - /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/deprecation.cc - /// TODO(crbug.com/1264960): Re-work format to add i18n support per: - /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/README.md + /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md /// public partial class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase { @@ -2521,30 +2768,6 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation set; } - /// - /// The content of an untranslated deprecation issue, - /// e.g. "window.inefficientLegacyStorageMethod will be removed in M97, - /// around January 2022. Please use Web Storage or Indexed Database - /// instead. This standard was abandoned in January, 1970. See - /// https://www.chromestatus.com/feature/5684870116278272 for more details." - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] - public string Message - { - get; - set; - } - - /// - /// The id of an untranslated deprecation issue e.g. PrefixedStorageInfo. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deprecationType")] - public string DeprecationType - { - get; - set; - } - /// /// Type /// @@ -7924,13 +8147,22 @@ public partial class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase /// Security origin for the storage. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityOrigin")] - [System.Diagnostics.CodeAnalysis.DisallowNull] public string SecurityOrigin { get; set; } + /// + /// Represents a key by which DOM Storage keys its CachedStorageAreas + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + public string StorageKey + { + get; + set; + } + /// /// Whether the storage is local storage (not session storage). /// @@ -8466,6 +8698,26 @@ public bool Mobile get; set; } + + /// + /// Bitness + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bitness")] + public string Bitness + { + get; + set; + } + + /// + /// Wow64 + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("wow64")] + public bool? Wow64 + { + get; + set; + } } /// @@ -16353,11 +16605,6 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ect")] ChEct, /// - /// ch-partitioned-cookies - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-partitioned-cookies")] - ChPartitionedCookies, - /// /// ch-prefers-color-scheme /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-prefers-color-scheme")] @@ -16548,6 +16795,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyboard-map")] KeyboardMap, /// + /// local-fonts + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("local-fonts")] + LocalFonts, + /// /// magnetometer /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("magnetometer")] @@ -17833,6 +18085,16 @@ public string Fantasy get; set; } + + /// + /// The math font-family. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("math")] + public string Math + { + get; + set; + } } /// @@ -18197,11 +18459,6 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("RendererProcessCrashed")] RendererProcessCrashed, /// - /// GrantedMediaStreamAccess - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("GrantedMediaStreamAccess")] - GrantedMediaStreamAccess, - /// /// SchedulerTrackedFeatureUsed /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchedulerTrackedFeatureUsed")] @@ -18332,11 +18589,6 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("BackForwardCacheDisabledForDelegate")] BackForwardCacheDisabledForDelegate, /// - /// OptInUnloadHeaderNotPresent - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OptInUnloadHeaderNotPresent")] - OptInUnloadHeaderNotPresent, - /// /// UnloadHandlerExistsInMainFrame /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnloadHandlerExistsInMainFrame")] @@ -18851,7 +19103,167 @@ public enum PrerenderFinalStatus /// Activated /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("Activated")] - Activated + Activated, + /// + /// Destroyed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Destroyed")] + Destroyed, + /// + /// LowEndDevice + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("LowEndDevice")] + LowEndDevice, + /// + /// CrossOriginRedirect + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginRedirect")] + CrossOriginRedirect, + /// + /// CrossOriginNavigation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginNavigation")] + CrossOriginNavigation, + /// + /// InvalidSchemeRedirect + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSchemeRedirect")] + InvalidSchemeRedirect, + /// + /// InvalidSchemeNavigation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSchemeNavigation")] + InvalidSchemeNavigation, + /// + /// InProgressNavigation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InProgressNavigation")] + InProgressNavigation, + /// + /// NavigationRequestBlockedByCsp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationRequestBlockedByCsp")] + NavigationRequestBlockedByCsp, + /// + /// MainFrameNavigation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MainFrameNavigation")] + MainFrameNavigation, + /// + /// MojoBinderPolicy + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MojoBinderPolicy")] + MojoBinderPolicy, + /// + /// RendererProcessCrashed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RendererProcessCrashed")] + RendererProcessCrashed, + /// + /// RendererProcessKilled + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RendererProcessKilled")] + RendererProcessKilled, + /// + /// Download + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Download")] + Download, + /// + /// TriggerDestroyed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TriggerDestroyed")] + TriggerDestroyed, + /// + /// NavigationNotCommitted + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationNotCommitted")] + NavigationNotCommitted, + /// + /// NavigationBadHttpStatus + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationBadHttpStatus")] + NavigationBadHttpStatus, + /// + /// ClientCertRequested + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientCertRequested")] + ClientCertRequested, + /// + /// NavigationRequestNetworkError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationRequestNetworkError")] + NavigationRequestNetworkError, + /// + /// MaxNumOfRunningPrerendersExceeded + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MaxNumOfRunningPrerendersExceeded")] + MaxNumOfRunningPrerendersExceeded, + /// + /// CancelAllHostsForTesting + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CancelAllHostsForTesting")] + CancelAllHostsForTesting, + /// + /// DidFailLoad + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("DidFailLoad")] + DidFailLoad, + /// + /// Stop + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Stop")] + Stop, + /// + /// SslCertificateError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SslCertificateError")] + SslCertificateError, + /// + /// LoginAuthRequested + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("LoginAuthRequested")] + LoginAuthRequested, + /// + /// UaChangeRequiresReload + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("UaChangeRequiresReload")] + UaChangeRequiresReload, + /// + /// BlockedByClient + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByClient")] + BlockedByClient, + /// + /// AudioOutputDeviceRequested + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AudioOutputDeviceRequested")] + AudioOutputDeviceRequested, + /// + /// MixedContent + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContent")] + MixedContent, + /// + /// TriggerBackgrounded + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TriggerBackgrounded")] + TriggerBackgrounded, + /// + /// EmbedderTriggeredAndSameOriginRedirected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndSameOriginRedirected")] + EmbedderTriggeredAndSameOriginRedirected, + /// + /// EmbedderTriggeredAndCrossOriginRedirected + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndCrossOriginRedirected")] + EmbedderTriggeredAndCrossOriginRedirected, + /// + /// EmbedderTriggeredAndDestroyed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndDestroyed")] + EmbedderTriggeredAndDestroyed } /// @@ -24751,6 +25163,19 @@ public CefSharp.DevTools.Runtime.RemoteObject ReturnValue get; set; } + + /// + /// Valid only while the VM is paused and indicates whether this frame + /// can be restarted or not. Note that a `true` value here does not + /// guarantee that Debugger#restartFrame with this CallFrameId will be + /// successful, but it is very likely. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("canBeRestarted")] + public bool? CanBeRestarted + { + get; + set; + } } /// @@ -25301,7 +25726,7 @@ public int ExecutionContextId } /// - /// Content hash of the script. + /// Content hash of the script, SHA-256. /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("hash")] @@ -25498,7 +25923,7 @@ public int ExecutionContextId } /// - /// Content hash of the script. + /// Content hash of the script, SHA-256. /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("hash")] @@ -33127,6 +33552,26 @@ public string[] Entries } } +namespace CefSharp.DevTools.DOMStorage +{ + /// + /// GetStorageKeyForFrameResponse + /// + public class GetStorageKeyForFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// storageKey + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + public string StorageKey + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.DOMStorage { using System.Linq; @@ -33291,6 +33736,20 @@ public System.Threading.Tasks.Task SetDOMStorageItemAsyn dict.Add("value", value); return _client.ExecuteDevToolsMethodAsync("DOMStorage.setDOMStorageItem", dict); } + + partial void ValidateGetStorageKeyForFrame(string frameId); + /// + /// GetStorageKeyForFrame + /// + /// frameId + /// returns System.Threading.Tasks.Task<GetStorageKeyForFrameResponse> + public System.Threading.Tasks.Task GetStorageKeyForFrameAsync(string frameId) + { + ValidateGetStorageKeyForFrame(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + return _client.ExecuteDevToolsMethodAsync("DOMStorage.getStorageKeyForFrame", dict); + } } } @@ -34175,7 +34634,7 @@ public HeadlessExperimentalClient(CefSharp.DevTools.IDevToolsClient client) /// Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a /// screenshot from the resulting frame. Requires that the target was created with enabled /// BeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also - /// https://goo.gl/3zHXhB for more background. + /// https://goo.gle/chrome-headless-rendering for more background. /// /// Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set,the current time will be used. /// The interval between BeginFrames that is reported to the compositor, in milliseconds.Defaults to a 60 frames/second interval, i.e. about 16.666 milliseconds. @@ -39351,7 +39810,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); /// /// Print page as PDF. /// @@ -39365,16 +39824,15 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// Bottom margin in inches. Defaults to 1cm (~0.4 inches). /// Left margin in inches. Defaults to 1cm (~0.4 inches). /// Right margin in inches. Defaults to 1cm (~0.4 inches). - /// Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which meansprint all pages. - /// Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'.Defaults to false. + /// Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages areprinted in the document order, not in the order specified, and nomore than once.Defaults to empty string, which implies the entire document is printed.The page numbers are quietly capped to actual page count of thedocument, and ranges beyond the end of the document are ignored.If this results in no pages to print, an error is reported.It is an error to specify a range with start greater than end. /// HTML template for the print header. Should be valid HTML markup with followingclasses used to inject printing values into them:- `date`: formatted print date- `title`: document title- `url`: document location- `pageNumber`: current page number- `totalPages`: total pages in the documentFor example, `<span class=title> </span>` would generate span containing the title. /// HTML template for the print footer. Should use the same format as the `headerTemplate`. /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, bool? ignoreInvalidPageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, ignoreInvalidPageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -39431,11 +39889,6 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("pageRanges", pageRanges); } - if (ignoreInvalidPageRanges.HasValue) - { - dict.Add("ignoreInvalidPageRanges", ignoreInvalidPageRanges.Value); - } - if (!(string.IsNullOrEmpty(headerTemplate))) { dict.Add("headerTemplate", headerTemplate); @@ -42580,14 +43033,22 @@ public WebAuthnClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } + partial void ValidateEnable(bool? enableUI = null); /// /// Enable the WebAuthn domain and start intercepting credential storage and /// retrieval with a virtual authenticator. /// + /// Whether to enable the WebAuthn user interface. Enabling the UI isrecommended for debugging and demo purposes, as it is closer to the realexperience. Disabling the UI is recommended for automated testing.Supported at the embedder's discretion if UI is available.Defaults to false. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync() + public System.Threading.Tasks.Task EnableAsync(bool? enableUI = null) { - System.Collections.Generic.Dictionary dict = null; + ValidateEnable(enableUI); + var dict = new System.Collections.Generic.Dictionary(); + if (enableUI.HasValue) + { + dict.Add("enableUI", enableUI.Value); + } + return _client.ExecuteDevToolsMethodAsync("WebAuthn.enable", dict); } @@ -44186,17 +44647,18 @@ public System.Threading.Tasks.Task StopSamplingAsync() return _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopSampling", dict); } - partial void ValidateStopTrackingHeapObjects(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null); + partial void ValidateStopTrackingHeapObjects(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null); /// /// StopTrackingHeapObjects /// /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being takenwhen the tracking is stopped. - /// treatGlobalObjectsAsRoots + /// Deprecated in favor of `exposeInternals`. /// If true, numerical values are included in the snapshot + /// If true, exposes internals of the snapshot. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StopTrackingHeapObjectsAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null) + public System.Threading.Tasks.Task StopTrackingHeapObjectsAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null) { - ValidateStopTrackingHeapObjects(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue); + ValidateStopTrackingHeapObjects(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue, exposeInternals); var dict = new System.Collections.Generic.Dictionary(); if (reportProgress.HasValue) { @@ -44213,20 +44675,26 @@ public System.Threading.Tasks.Task StopTrackingHeapObjec dict.Add("captureNumericValue", captureNumericValue.Value); } + if (exposeInternals.HasValue) + { + dict.Add("exposeInternals", exposeInternals.Value); + } + return _client.ExecuteDevToolsMethodAsync("HeapProfiler.stopTrackingHeapObjects", dict); } - partial void ValidateTakeHeapSnapshot(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null); + partial void ValidateTakeHeapSnapshot(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null); /// /// TakeHeapSnapshot /// /// If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. - /// If true, a raw snapshot without artificial roots will be generated + /// If true, a raw snapshot without artificial roots will be generated.Deprecated in favor of `exposeInternals`. /// If true, numerical values are included in the snapshot + /// If true, exposes internals of the snapshot. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task TakeHeapSnapshotAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null) + public System.Threading.Tasks.Task TakeHeapSnapshotAsync(bool? reportProgress = null, bool? treatGlobalObjectsAsRoots = null, bool? captureNumericValue = null, bool? exposeInternals = null) { - ValidateTakeHeapSnapshot(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue); + ValidateTakeHeapSnapshot(reportProgress, treatGlobalObjectsAsRoots, captureNumericValue, exposeInternals); var dict = new System.Collections.Generic.Dictionary(); if (reportProgress.HasValue) { @@ -44243,6 +44711,11 @@ public System.Threading.Tasks.Task TakeHeapSnapshotAsync dict.Add("captureNumericValue", captureNumericValue.Value); } + if (exposeInternals.HasValue) + { + dict.Add("exposeInternals", exposeInternals.Value); + } + return _client.ExecuteDevToolsMethodAsync("HeapProfiler.takeHeapSnapshot", dict); } } @@ -45093,7 +45566,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Specifies execution context which global object will be used to call function on. EitherexecutionContextId or objectId should be specified. /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. - /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. + /// Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null) { From 6467ece9b6478c6e7fd0fdcfabbf33b2ed5abfa3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 2 Aug 2022 13:14:32 +1000 Subject: [PATCH 059/543] Upgrade to 104.4.15+g12fbff8+chromium-104.0.5112.65 / Chromium 104.0.5112.65 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index ccbade99c..7d8b1a4b4 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index b641bfa71..204ea2518 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 195a81645..710d6f32a 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 103,0,80 - PRODUCTVERSION 103,0,80 + FILEVERSION 104,4,150 + PRODUCTVERSION 104,4,150 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "103.0.80" + VALUE "FileVersion", "104.4.150" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "103.0.80" + VALUE "ProductVersion", "104.4.150" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index e292bba14..d874ccfd2 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 1f00868cf..d65e9837a 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 1b57bd5cb..d11f6c46a 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index b8465d6a5..d9a35bfba 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 0f488201c..b92986cd4 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index baee80ad7..6876a86d7 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 103,0,80 - PRODUCTVERSION 103,0,80 + FILEVERSION 104,4,150 + PRODUCTVERSION 104,4,150 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "103.0.80" + VALUE "FileVersion", "104.4.150" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "103.0.80" + VALUE "ProductVersion", "104.4.150" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index e292bba14..d874ccfd2 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 1f00868cf..d65e9837a 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index a785ded55..57accd310 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 357acc3c3..6e6f232ef 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index b9e1c2edb..95a5ddddb 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 7159603a6..beaa0dbad 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 0c636afcd..0e861909c 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 92c835db9..4ceab0d0a 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index ef8d99c64..ebb28f665 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index ae601f398..f8351ecd1 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 440cde785..1bc63ad71 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index f0a586f6d..c70bf7154 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index ffd2c04ff..f94fef819 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 64fb138d4..efe323bc8 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 103.0.80 + 104.4.150 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 103.0.80 + Version 104.4.150 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 46b9cf8f7..4f78013c3 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "103.0.80"; - public const string AssemblyFileVersion = "103.0.80.0"; + public const string AssemblyVersion = "104.4.150"; + public const string AssemblyFileVersion = "104.4.150.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 0b87729cf..343d79812 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index cfc9002cc..e20ec18ff 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index d737a7989..1da85048b 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index d43cabf4f..8a132661c 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "103.0.8", + [string] $CefVersion = "104.4.15", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index ce31a4a76..ca2dd20ca 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 103.0.80-CI{build} +version: 104.4.150-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index baa5d8be5..bce771b84 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "103.0.80", + [string] $Version = "104.4.150", [Parameter(Position = 2)] - [string] $AssemblyVersion = "103.0.80", + [string] $AssemblyVersion = "104.4.150", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 30f9d8db2c8242a4e18cfeb449860f9ace1ed105 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 2 Aug 2022 13:33:52 +1000 Subject: [PATCH 060/543] Core - CefRunContextMenuCallbackWrapper use cef_event_flags_t as typedef was removed - Change to use cef_event_flags_t - Fix some xml doc https://github.com/chromiumembedded/cef/commit/d9b764860aa0c1dfad58b123474bc133c4e43d39 --- .../Internals/CefRunContextMenuCallbackWrapper.h | 2 +- CefSharp/Handler/ContextMenuHandler.cs | 2 +- CefSharp/Handler/IContextMenuHandler.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h index a1ddb19e8..9d1c8421e 100644 --- a/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h @@ -50,7 +50,7 @@ namespace CefSharp { ThrowIfDisposed(); - _callback->Continue((int)commandId, (CefRunContextMenuCallback::EventFlags) eventFlags); + _callback->Continue((int)commandId, (cef_event_flags_t) eventFlags); delete this; } diff --git a/CefSharp/Handler/ContextMenuHandler.cs b/CefSharp/Handler/ContextMenuHandler.cs index 598ba6932..af5fb22cc 100644 --- a/CefSharp/Handler/ContextMenuHandler.cs +++ b/CefSharp/Handler/ContextMenuHandler.cs @@ -65,7 +65,7 @@ void IContextMenuHandler.OnContextMenuDismissed(IWebBrowser chromiumWebBrowser, /// /// Called when the context menu is dismissed irregardless of whether the menu - /// was empty or a command was selected. + /// was canceled or a command was selected. /// /// the ChromiumWebBrowser control /// the browser object diff --git a/CefSharp/Handler/IContextMenuHandler.cs b/CefSharp/Handler/IContextMenuHandler.cs index b70183b12..17c2b7ca3 100644 --- a/CefSharp/Handler/IContextMenuHandler.cs +++ b/CefSharp/Handler/IContextMenuHandler.cs @@ -39,7 +39,7 @@ bool OnContextMenuCommand(IWebBrowser chromiumWebBrowser, IBrowser browser, IFra /// /// Called when the context menu is dismissed irregardless of whether the menu - /// was empty or a command was selected. + /// was canceled or a command was selected. /// /// the ChromiumWebBrowser control /// the browser object From d413f481dd4df68fc32c22773afc7244f722a40d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 8 Aug 2022 11:18:43 +1000 Subject: [PATCH 061/543] Upgrade to 104.4.18+g2587cf2+chromium-104.0.5112.81 / Chromium 104.0.5112.81 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 7d8b1a4b4..713891b75 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 204ea2518..e06592dec 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 710d6f32a..8307d3906 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 104,4,150 - PRODUCTVERSION 104,4,150 + FILEVERSION 104,4,180 + PRODUCTVERSION 104,4,180 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "104.4.150" + VALUE "FileVersion", "104.4.180" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "104.4.150" + VALUE "ProductVersion", "104.4.180" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index d874ccfd2..83827698d 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index d65e9837a..8f926b23d 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index d11f6c46a..74076f1f9 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index d9a35bfba..2f49f63f8 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index b92986cd4..dd287ab59 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 6876a86d7..7ab2f9e28 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 104,4,150 - PRODUCTVERSION 104,4,150 + FILEVERSION 104,4,180 + PRODUCTVERSION 104,4,180 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "104.4.150" + VALUE "FileVersion", "104.4.180" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "104.4.150" + VALUE "ProductVersion", "104.4.180" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index d874ccfd2..83827698d 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index d65e9837a..8f926b23d 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 57accd310..d4a4f4db5 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 6e6f232ef..5fb74ec5c 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 95a5ddddb..f1a090b56 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index beaa0dbad..e736f14d9 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 0e861909c..8a80ffa96 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 4ceab0d0a..ba5afd3c3 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index ebb28f665..e80e5dd73 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index f8351ecd1..39b05683f 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 1bc63ad71..7009ec162 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index c70bf7154..3bcb58f36 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index f94fef819..46ce7a235 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index efe323bc8..57798b87e 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 104.4.150 + 104.4.180 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 104.4.150 + Version 104.4.180 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 4f78013c3..a84e2a244 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "104.4.150"; - public const string AssemblyFileVersion = "104.4.150.0"; + public const string AssemblyVersion = "104.4.180"; + public const string AssemblyFileVersion = "104.4.180.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 343d79812..d47dd97cf 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index e20ec18ff..c7a1a2563 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 1da85048b..d00bc93b2 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 8a132661c..bdf09a230 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "104.4.15", + [string] $CefVersion = "104.4.18", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index ca2dd20ca..9bebe5e26 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 104.4.150-CI{build} +version: 104.4.180-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index bce771b84..dd0155e24 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "104.4.150", + [string] $Version = "104.4.180", [Parameter(Position = 2)] - [string] $AssemblyVersion = "104.4.150", + [string] $AssemblyVersion = "104.4.180", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From fa6e73180442c102e720c84f5427aaec1696f972 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 8 Aug 2022 11:24:12 +1000 Subject: [PATCH 062/543] README.md - Update as M103 was released Was released a few weeks ago --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++----- CONTRIBUTING.md | 6 +++--- README.md | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index fd077cc62..4d30f6016 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -32,9 +32,9 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 102.0.100 or greater. + - Please only create an issue if you can reproduce the problem with version 103.0.120 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 102.0.100 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 103.0.120 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** @@ -69,9 +69,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_103.0.12%2Bg8eb56c7%2Bchromium-103.0.5060.134_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_103.0.12%2Bg8eb56c7%2Bchromium-103.0.5060.134_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_103.0.12%2Bg8eb56c7%2Bchromium-103.0.5060.134_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index be5fba09b..c0c65ff3a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_102.0.10%2Bgf249b2e%2Bchromium-102.0.5005.115_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_103.0.12%2Bg8eb56c7%2Bchromium-103.0.5060.134_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_103.0.12%2Bg8eb56c7%2Bchromium-103.0.5060.134_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_103.0.12%2Bg8eb56c7%2Bchromium-103.0.5060.134_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 85944a82f..c6d1ea0fb 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,9 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5060 | 2019* | 4.5.2** | Development | -| [cefsharp/102](https://github.com/cefsharp/CefSharp/tree/cefsharp/102)| 5005 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5112 | 2019* | 4.5.2** | Development | +| [cefsharp/103](https://github.com/cefsharp/CefSharp/tree/cefsharp/103)| 5060 | 2019* | 4.5.2** | **Release** | +| [cefsharp/102](https://github.com/cefsharp/CefSharp/tree/cefsharp/102)| 5005 | 2019* | 4.5.2** | Unsupported | | [cefsharp/101](https://github.com/cefsharp/CefSharp/tree/cefsharp/101)| 4951 | 2019* | 4.5.2** | Unsupported | | [cefsharp/100](https://github.com/cefsharp/CefSharp/tree/cefsharp/100)| 4896 | 2019* | 4.5.2** | Unsupported | | [cefsharp/99](https://github.com/cefsharp/CefSharp/tree/cefsharp/99) | 4844 | 2019* | 4.5.2** | Unsupported | From 5cab3c23ea912230bab40a509dd07791f8b01681 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 8 Aug 2022 13:37:17 +1000 Subject: [PATCH 063/543] WinForms Example - Make DPI Aware - WinForms Example is now DPI aware using https://docs.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms?view=netframeworkdesktop-4.8 There's a mistake in the MS Docs which was already reported at https://github.com/dotnet/docs-desktop/issues/1485 - Toolstrip layout updated slightly, could use some more minor tweaks to better calculate size Resolves #1543 --- CefSharp.WinForms.Example/AboutBox.cs | 2 +- .../BrowserTabUserControl.cs | 2 +- .../Minimal/SimpleBrowserForm.cs | 2 +- CefSharp.WinForms.Example/Program.cs | 27 ++++++++++++++----- CefSharp.WinForms.Example/app.config | 9 ++++++- CefSharp.WinForms.Example/app.manifest | 6 ----- 6 files changed, 32 insertions(+), 16 deletions(-) diff --git a/CefSharp.WinForms.Example/AboutBox.cs b/CefSharp.WinForms.Example/AboutBox.cs index 4f0c43690..19eb610ba 100644 --- a/CefSharp.WinForms.Example/AboutBox.cs +++ b/CefSharp.WinForms.Example/AboutBox.cs @@ -77,7 +77,7 @@ public AboutBox() InitializeComponent(); ExecutingAssembly = Assembly.GetExecutingAssembly(); - Text = "About CefTest"; + Text = "About CefSharp.WinForms.Example"; labelProductName.Text = AssemblyProduct; labelVersion.Text = String.Format("Version {0} ", Cef.CefSharpVersion); labelCopyright.Text = AssemblyCopyright; diff --git a/CefSharp.WinForms.Example/BrowserTabUserControl.cs b/CefSharp.WinForms.Example/BrowserTabUserControl.cs index 34416586e..8d2636d4a 100644 --- a/CefSharp.WinForms.Example/BrowserTabUserControl.cs +++ b/CefSharp.WinForms.Example/BrowserTabUserControl.cs @@ -444,7 +444,7 @@ private void HandleToolStripLayout() width -= item.Width - item.Margin.Horizontal; } } - urlTextBox.Width = Math.Max(0, width - urlTextBox.Margin.Horizontal - 18); + urlTextBox.Width = Math.Max(100, width - urlTextBox.Margin.Horizontal - goButton.Width); } private void GoButtonClick(object sender, EventArgs e) diff --git a/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs b/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs index 7c27b3c91..5b6f09cf5 100644 --- a/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs +++ b/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs @@ -138,7 +138,7 @@ private void HandleToolStripLayout() width -= item.Width - item.Margin.Horizontal; } } - urlTextBox.Width = Math.Max(0, width - urlTextBox.Margin.Horizontal - 18); + urlTextBox.Width = Math.Max(100, width - urlTextBox.Margin.Horizontal - goButton.Width); } private void ExitMenuItemClick(object sender, EventArgs e) diff --git a/CefSharp.WinForms.Example/Program.cs b/CefSharp.WinForms.Example/Program.cs index c2659d40f..b179f9505 100644 --- a/CefSharp.WinForms.Example/Program.cs +++ b/CefSharp.WinForms.Example/Program.cs @@ -17,14 +17,24 @@ public class Program [STAThread] public static int Main(string[] args) { + // DEMO: Change to true to self host the BrowserSubprocess. + // instead of using CefSharp.BrowserSubprocess.exe, your applications exe will be used. + // In this case CefSharp.WinForms.Example.exe const bool selfHostSubProcess = false; - Cef.EnableHighDPISupport(); - - //NOTE: Using a simple sub processes uses your existing application executable to spawn instances of the sub process. - //Features like JSB, EvaluateScriptAsync, custom schemes require the CefSharp.BrowserSubprocess to function if (selfHostSubProcess) { + var processType = CefSharp.Internals.CommandLineArgsParser.GetArgumentValue(args, CefSharp.Internals.CefSharpArguments.SubProcessTypeArgument); + + if (processType == "gpu-process") + { + // Enable DPI Awareness for GPU process. + // Our main application is already DPI aware using WinForms specific features + // **IMPORTANT** There's a mistake in the following doc https://github.com/dotnet/docs-desktop/issues/1485 + // https://docs.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms + Cef.EnableHighDPISupport(); + } + var exitCode = CefSharp.BrowserSubprocess.SelfHost.Main(args); if (exitCode >= 0) @@ -45,6 +55,7 @@ public static int Main(string[] args) Cef.Initialize(settings); + Application.EnableVisualStyles(); var browser = new SimpleBrowserForm(); Application.Run(browser); } @@ -58,11 +69,14 @@ public static int Main(string[] args) } #endif - //When multiThreadedMessageLoop = true then externalMessagePump must be set to false - // To enable externalMessagePump set multiThreadedMessageLoop = false and externalMessagePump = true + // DEMO: To integrate CEF into your applications existing message loop + // set multiThreadedMessageLoop = false; const bool multiThreadedMessageLoop = true; + // When multiThreadedMessageLoop = true then externalMessagePump must be set to false + // To enable externalMessagePump set multiThreadedMessageLoop = false and externalMessagePump = true const bool externalMessagePump = false; + //TEST: There are a number of different Forms for testing purposes. var browser = new BrowserForm(multiThreadedMessageLoop); //var browser = new SimpleBrowserForm(multiThreadedMessageLoop); //var browser = new TabulationDemoForm(); @@ -95,6 +109,7 @@ public static int Main(string[] args) CefExample.Init(settings, browserProcessHandler: browserProcessHandler); + Application.EnableVisualStyles(); //Application.Run(new MultiFormAppContext()); Application.Run(browser); } diff --git a/CefSharp.WinForms.Example/app.config b/CefSharp.WinForms.Example/app.config index 5c22b42e5..0e9799827 100644 --- a/CefSharp.WinForms.Example/app.config +++ b/CefSharp.WinForms.Example/app.config @@ -1,3 +1,10 @@ - + + + + + + + + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 39b05683f..9709dc803 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -34,12 +34,6 @@ - - - true/PM - - - - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index c7a1a2563..6df916a3b 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index d00bc93b2..3de262437 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index bdf09a230..48565df85 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "104.4.18", + [string] $CefVersion = "104.4.24", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 9bebe5e26..b6f09fcb9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 104.4.180-CI{build} +version: 104.4.240-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index dd0155e24..e7dac57dc 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "104.4.180", + [string] $Version = "104.4.240", [Parameter(Position = 2)] - [string] $AssemblyVersion = "104.4.180", + [string] $AssemblyVersion = "104.4.240", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 2ead42338062ec60c9bfc8564b88fb4307dc7bc3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 21 Aug 2022 13:44:09 +1000 Subject: [PATCH 080/543] Core - Improve JavascriptObjectRepository.TryCallMethod Object Not Found error message - Add method name and param count Resolves #4209 --- .../JavaScriptObjectRepositoryFacts.cs | 10 ++++++++++ CefSharp/Internals/JavascriptObjectRepository.cs | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryFacts.cs b/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryFacts.cs index 6695ebb36..03c0b9981 100644 --- a/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryFacts.cs +++ b/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryFacts.cs @@ -49,6 +49,16 @@ public void CanRegisterJavascriptObjectBindWhenNamespaceIsNull() Assert.Equal("ok", result.ReturnValue.ToString()); } + [Fact] + public void ShouldReturnErrorMessageForObjectInvalidId() + { + IJavascriptObjectRepositoryInternal javascriptObjectRepository = new JavascriptObjectRepository(); + + var result = javascriptObjectRepository.TryCallMethod(100, "getExampleString", new object[0]); + Assert.False(result.Success); + Assert.StartsWith("Object Not Found Matching Id", result.Exception); + } + #if !NETCOREAPP [Fact] public void CanRegisterJavascriptObjectPropertyBindWhenNamespaceIsNull() diff --git a/CefSharp/Internals/JavascriptObjectRepository.cs b/CefSharp/Internals/JavascriptObjectRepository.cs index b9aa11ec9..e8f79fdd6 100644 --- a/CefSharp/Internals/JavascriptObjectRepository.cs +++ b/CefSharp/Internals/JavascriptObjectRepository.cs @@ -293,7 +293,9 @@ protected virtual TryCallMethodResult TryCallMethod(long objectId, string name, if (!objects.TryGetValue(objectId, out obj)) { - return new TryCallMethodResult(false, result, "Object Not Found Matching Id:" + objectId); + var paramCount = parameters == null ? 0 : parameters.Length; + + return new TryCallMethodResult(false, result, $"Object Not Found Matching Id:{objectId}, MethodName:{name}, ParamCount:{paramCount}"); } var method = obj.Methods.FirstOrDefault(p => p.JavascriptName == name); From 59a13994fa3af5182c0af159ef93416a50dacb43 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 21 Aug 2022 13:57:23 +1000 Subject: [PATCH 081/543] WPF - Fix xml doc - Remove char that was causing generated xml doc to be invalid --- CefSharp.Wpf/WM.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.Wpf/WM.cs b/CefSharp.Wpf/WM.cs index 123635015..98fa88a0d 100644 --- a/CefSharp.Wpf/WM.cs +++ b/CefSharp.Wpf/WM.cs @@ -44,7 +44,7 @@ public enum WM : uint /// /// The WM_SYSCHAR message is posted to the window with the keyboard focus when a WM_SYSKEYDOWN message is translated by - /// the TranslateMessage function. It specifies the character code of a system character key — that is, a character key + /// the TranslateMessage function. It specifies the character code of a system character key that is, a character key /// that is pressed while the ALT key is down. /// SYSCHAR = 0x0106, From 6be92988d2743b78eba2e21c9b772c30b841bbd3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Sep 2022 10:40:53 +1000 Subject: [PATCH 082/543] Upgrade to 105.3.25+g0ca6a9e+chromium-105.0.5195.54 / Chromium 105.0.5195.54 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 7d3c5386c..de0cb72f3 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index dc586cfe2..3cebc936e 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 87529430b..7126d9c7f 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 104,4,240 - PRODUCTVERSION 104,4,240 + FILEVERSION 105,3,250 + PRODUCTVERSION 105,3,250 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "104.4.240" + VALUE "FileVersion", "105.3.250" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "104.4.240" + VALUE "ProductVersion", "105.3.250" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index c2d8f7366..18601a3b3 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 70f3c812c..453abbd16 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 270d8fd90..eb0e3e8e0 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 28127d7a4..9e375025c 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 82bfcbb1f..b2c7dcb22 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index ebcd6687d..01cf0cfad 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 104,4,240 - PRODUCTVERSION 104,4,240 + FILEVERSION 105,3,250 + PRODUCTVERSION 105,3,250 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "104.4.240" + VALUE "FileVersion", "105.3.250" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "104.4.240" + VALUE "ProductVersion", "105.3.250" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index c2d8f7366..18601a3b3 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 70f3c812c..453abbd16 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 24fdf0a05..39b8c5ec6 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 00359500c..9208e4fe1 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 3e3e46a23..2a543b0a2 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index c09905690..9e189e9df 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 8728320b9..350873360 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 64a513ee4..f48cc9a4e 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 3d5b217c6..6f173fb43 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 823a4c804..bbd536257 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index e53f5c87c..4557a6119 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 82536cf2a..955029b71 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index b50743414..698f94924 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index d4be08c03..15dc772c8 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 104.4.240 + 105.3.250 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 104.4.240 + Version 105.3.250 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 4f8bdbf59..a96a51edb 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "104.4.240"; - public const string AssemblyFileVersion = "104.4.240.0"; + public const string AssemblyVersion = "105.3.250"; + public const string AssemblyFileVersion = "105.3.250.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 18967aafd..6eda66d31 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 6df916a3b..06456eaa1 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 3de262437..e97b54aed 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 48565df85..70925290f 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "104.4.24", + [string] $CefVersion = "105.3.25", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index b6f09fcb9..151ed2e95 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 104.4.240-CI{build} +version: 105.3.250-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index e7dac57dc..655ee234c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "104.4.240", + [string] $Version = "105.3.250", [Parameter(Position = 2)] - [string] $AssemblyVersion = "104.4.240", + [string] $AssemblyVersion = "105.3.250", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From a395b5d23474ae9b9eda1ad7b51b3a6005db71bc Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 11:09:42 +1000 Subject: [PATCH 083/543] Core - Convert CefTime to CefBaseTime - Interim step before replacing CefTime with CefBaseTime. Issue #4234 --- .../Serialization/V8Serialization.cpp | 12 ++++++++++-- CefSharp.BrowserSubprocess.Core/TypeUtils.cpp | 15 ++++++++++++--- CefSharp.BrowserSubprocess.Core/TypeUtils.h | 8 ++++---- CefSharp.Core.Runtime/CookieManager.cpp | 14 ++++++++++---- .../Internals/TypeConversion.h | 17 ++++++++++++++--- 5 files changed, 50 insertions(+), 16 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp b/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp index f87bc3320..a412b4d58 100644 --- a/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp +++ b/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp @@ -69,7 +69,11 @@ namespace CefSharp } else if (obj->IsDate()) { - SetCefTime(list, index, obj->GetDateValue()); + //TODO: Issue #4234 + auto baseTime = obj->GetDateValue(); + CefTime time; + cef_time_from_basetime(baseTime, &time); + SetCefTime(list, index, time); } else if (obj->IsArray()) { @@ -156,7 +160,11 @@ namespace CefSharp if (IsCefTime(list, index)) { - return CefV8Value::CreateDate(GetCefTime(list, index)); + //TODO: Issue #4234 + auto time = GetCefTime(list, index); + CefBaseTime baseTime; + cef_time_to_basetime(&time, &baseTime); + return CefV8Value::CreateDate(baseTime); } if (type == VTYPE_LIST) diff --git a/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp b/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp index 2a088ab6b..9f7ca44a6 100644 --- a/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp +++ b/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp @@ -255,8 +255,12 @@ namespace CefSharp throw gcnew Exception("Cannot convert object from Cef to CLR."); } - DateTime TypeUtils::ConvertCefTimeToDateTime(CefTime time) + DateTime TypeUtils::ConvertCefTimeToDateTime(CefBaseTime baseTime) { + //TODO: Issue #4234 + CefTime time; + cef_time_from_basetime(baseTime, &time); + return DateTimeUtils::FromCefTime(time.year, time.month, time.day_of_month, @@ -266,9 +270,14 @@ namespace CefSharp time.millisecond); } - CefTime TypeUtils::ConvertDateTimeToCefTime(DateTime dateTime) + CefBaseTime TypeUtils::ConvertDateTimeToCefTime(DateTime dateTime) { - return CefTime(DateTimeUtils::ToCefTime(dateTime)); + //TODO: Issue #4234 + auto time = CefTime(DateTimeUtils::ToCefTime(dateTime)); + CefBaseTime baseTime; + cef_time_to_basetime(&time, &baseTime); + + return baseTime; } } } diff --git a/CefSharp.BrowserSubprocess.Core/TypeUtils.h b/CefSharp.BrowserSubprocess.Core/TypeUtils.h index 95e1c0af7..b7392e96b 100644 --- a/CefSharp.BrowserSubprocess.Core/TypeUtils.h +++ b/CefSharp.BrowserSubprocess.Core/TypeUtils.h @@ -38,18 +38,18 @@ namespace CefSharp static Object^ ConvertFromCef(CefRefPtr obj, JavascriptCallbackRegistry^ callbackRegistry); /// - /// Converts a Chromium V8 CefTime (Date) to a (managed) .NET DateTime. + /// Converts a Chromium V8 CefBaseTime (Date) to a (managed) .NET DateTime. /// /// The CefTime value that should be converted. /// A corresponding .NET DateTime. - static DateTime ConvertCefTimeToDateTime(CefTime time); + static DateTime ConvertCefTimeToDateTime(CefBaseTime time); /// - /// Converts a a (managed) .NET DateTime to Chromium V8 CefTime (Date). + /// Converts a a (managed) .NET DateTime to Chromium V8 CefBaseTime (Date). /// /// The DateTime value that should be converted. /// A corresponding CefTime (epoch). - static CefTime ConvertDateTimeToCefTime(DateTime dateTime); + static CefBaseTime ConvertDateTimeToCefTime(DateTime dateTime); }; } } diff --git a/CefSharp.Core.Runtime/CookieManager.cpp b/CefSharp.Core.Runtime/CookieManager.cpp index 27f49541e..9eb174f25 100644 --- a/CefSharp.Core.Runtime/CookieManager.cpp +++ b/CefSharp.Core.Runtime/CookieManager.cpp @@ -45,14 +45,20 @@ namespace CefSharp c.secure = cookie->Secure; c.httponly = cookie->HttpOnly; c.has_expires = cookie->Expires.HasValue; + + //TODO: Issue #4234 if (cookie->Expires.HasValue) { - auto expires = cookie->Expires.Value; - c.expires = CefTime(DateTimeUtils::ToCefTime(expires)); + auto expires = CefTime(DateTimeUtils::ToCefTime(cookie->Expires.Value)); + cef_time_to_basetime(&expires, &c.expires); } - c.creation = CefTime(DateTimeUtils::ToCefTime(cookie->Creation)); - c.last_access = CefTime(DateTimeUtils::ToCefTime(cookie->LastAccess)); + auto creation = CefTime(DateTimeUtils::ToCefTime(cookie->Creation)); + cef_time_to_basetime(&creation, &c.creation); + + auto lastAccess = CefTime(DateTimeUtils::ToCefTime(cookie->LastAccess)); + cef_time_to_basetime(&lastAccess, &c.last_access); + c.same_site = (cef_cookie_same_site_t)cookie->SameSite; c.priority = (cef_cookie_priority_t)cookie->Priority; diff --git a/CefSharp.Core.Runtime/Internals/TypeConversion.h b/CefSharp.Core.Runtime/Internals/TypeConversion.h index 1752febf0..4412c998e 100644 --- a/CefSharp.Core.Runtime/Internals/TypeConversion.h +++ b/CefSharp.Core.Runtime/Internals/TypeConversion.h @@ -77,8 +77,11 @@ namespace CefSharp } //Convert from CefTime to Nullable - static Nullable FromNative(CefTime time) + static Nullable FromNative(CefBaseTime baseTime) { + //TODO: Issue #4234 + CefTime time; + cef_time_from_basetime(baseTime, &time); auto epoch = time.GetDoubleT(); if (epoch == 0) { @@ -255,8 +258,12 @@ namespace CefSharp } // Copied from CefSharp.BrowserSubprocess.Core\TypeUtils.h since it can't be included - static DateTime ConvertCefTimeToDateTime(CefTime time) + static DateTime ConvertCefTimeToDateTime(CefBaseTime baseTime) { + //TODO: Issue #4234 + CefTime time; + cef_time_from_basetime(baseTime, &time); + return DateTimeUtils::FromCefTime(time.year, time.month, time.day_of_month, @@ -307,7 +314,11 @@ namespace CefSharp return gcnew NavigationEntry(current, DateTime::MinValue, nullptr, -1, nullptr, nullptr, (TransitionType)-1, nullptr, false, false, sslStatus); } - auto time = entry->GetCompletionTime(); + //TODO: Issue #4234 + auto baseTime = entry->GetCompletionTime(); + CefTime time; + cef_time_from_basetime(baseTime, &time); + DateTime completionTime = CefTimeUtils::ConvertCefTimeToDateTime(time.GetDoubleT()); auto ssl = entry->GetSSLStatus(); X509Certificate2^ sslCertificate; From 25e9c2f440b285b6d5854778daf1a75411d9d565 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 13:07:38 +1000 Subject: [PATCH 084/543] Test - Add EvaluateScriptAsyncFacts.CanEvaluateDateValues - Add explicit test for dates --- .../Javascript/EvaluateScriptAsyncFacts.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs index 140a4a766..526eec471 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs @@ -2,6 +2,7 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Globalization; using System.Threading.Tasks; using Xunit; @@ -99,5 +100,25 @@ public async Task CanEvaluateIntValues(object num) output.WriteLine("Expected {0} : Actual {1}", num, javascriptResponse.Result); } + + [Theory] + [InlineData("1970-01-01", "1970-01-01")] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task CanEvaluateDateValues(DateTime expected, string actual) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync($"new Date('{actual}');"); + Assert.True(javascriptResponse.Success); + + var actualType = javascriptResponse.Result.GetType(); + + Assert.Equal(typeof(DateTime), actualType); + Assert.Equal(expected, (DateTime)javascriptResponse.Result); + + output.WriteLine("Expected {0} : Actual {1}", expected, javascriptResponse.Result); + } } } From c3fdd77e8d7e0f43b1a82d23bc9f34bcfe211710 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 13:08:10 +1000 Subject: [PATCH 085/543] Test - Add comment out command line arg for debugging --- CefSharp.Test/CefSharpFixture.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/CefSharp.Test/CefSharpFixture.cs b/CefSharp.Test/CefSharpFixture.cs index 23d21595d..55990b246 100644 --- a/CefSharp.Test/CefSharpFixture.cs +++ b/CefSharp.Test/CefSharpFixture.cs @@ -53,6 +53,7 @@ private void CefInitialize() settings.CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Tests\\Cache"); settings.RootCachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Tests"); //settings.CefCommandLineArgs.Add("renderer-startup-dialog"); + //settings.CefCommandLineArgs.Add("disable-site-isolation-trials"); Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null); } From b97dae0b61852614a69985f2e0fb710a804f8f58 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 13:47:40 +1000 Subject: [PATCH 086/543] Core - Merge DateTimeUtils into CefTimeUtils Issue #4234 --- CefSharp.BrowserSubprocess.Core/TypeUtils.cpp | 4 +- CefSharp.Core.Runtime/CookieManager.cpp | 6 +-- .../Internals/TypeConversion.h | 2 +- CefSharp/Internals/CefTimeUtils.cs | 40 +++++++++++++++ CefSharp/Internals/DateTimeUtils.cs | 50 ------------------- 5 files changed, 46 insertions(+), 56 deletions(-) delete mode 100644 CefSharp/Internals/DateTimeUtils.cs diff --git a/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp b/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp index 9f7ca44a6..77a6c4fb6 100644 --- a/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp +++ b/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp @@ -261,7 +261,7 @@ namespace CefSharp CefTime time; cef_time_from_basetime(baseTime, &time); - return DateTimeUtils::FromCefTime(time.year, + return CefTimeUtils::FromCefTime(time.year, time.month, time.day_of_month, time.hour, @@ -273,7 +273,7 @@ namespace CefSharp CefBaseTime TypeUtils::ConvertDateTimeToCefTime(DateTime dateTime) { //TODO: Issue #4234 - auto time = CefTime(DateTimeUtils::ToCefTime(dateTime)); + auto time = CefTime(CefTimeUtils::ToCefTime(dateTime)); CefBaseTime baseTime; cef_time_to_basetime(&time, &baseTime); diff --git a/CefSharp.Core.Runtime/CookieManager.cpp b/CefSharp.Core.Runtime/CookieManager.cpp index 9eb174f25..83fc90240 100644 --- a/CefSharp.Core.Runtime/CookieManager.cpp +++ b/CefSharp.Core.Runtime/CookieManager.cpp @@ -49,14 +49,14 @@ namespace CefSharp //TODO: Issue #4234 if (cookie->Expires.HasValue) { - auto expires = CefTime(DateTimeUtils::ToCefTime(cookie->Expires.Value)); + auto expires = CefTime(CefTimeUtils::ToCefTime(cookie->Expires.Value)); cef_time_to_basetime(&expires, &c.expires); } - auto creation = CefTime(DateTimeUtils::ToCefTime(cookie->Creation)); + auto creation = CefTime(CefTimeUtils::ToCefTime(cookie->Creation)); cef_time_to_basetime(&creation, &c.creation); - auto lastAccess = CefTime(DateTimeUtils::ToCefTime(cookie->LastAccess)); + auto lastAccess = CefTime(CefTimeUtils::ToCefTime(cookie->LastAccess)); cef_time_to_basetime(&lastAccess, &c.last_access); c.same_site = (cef_cookie_same_site_t)cookie->SameSite; diff --git a/CefSharp.Core.Runtime/Internals/TypeConversion.h b/CefSharp.Core.Runtime/Internals/TypeConversion.h index 4412c998e..03a59dae4 100644 --- a/CefSharp.Core.Runtime/Internals/TypeConversion.h +++ b/CefSharp.Core.Runtime/Internals/TypeConversion.h @@ -264,7 +264,7 @@ namespace CefSharp CefTime time; cef_time_from_basetime(baseTime, &time); - return DateTimeUtils::FromCefTime(time.year, + return CefTimeUtils::FromCefTime(time.year, time.month, time.day_of_month, time.hour, diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index f6ef4b1da..421eb1382 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -6,8 +6,13 @@ namespace CefSharp.Internals { + /// + /// Mapping to/from CefTime + /// public static class CefTimeUtils { + private static DateTime FirstOfTheFirstNineteenSeventy = new DateTime(1970, 1, 1, 0, 0, 0); + public static DateTime ConvertCefTimeToDateTime(double epoch) { if (epoch == 0) @@ -16,5 +21,40 @@ public static DateTime ConvertCefTimeToDateTime(double epoch) } return new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(epoch).ToLocalTime(); } + + /// + /// Converts a cef + /// + /// year + /// month + /// day + /// hour + /// minute + /// second + /// millisecond + /// DateTime + public static DateTime FromCefTime(int year, int month, int day, int hour, int minute, int second, int millisecond) + { + try + { + return new DateTime(year, month, day, hour, minute, second, millisecond); + } + catch (Exception) + { + return DateTime.MinValue; + } + } + + /// + /// Returns epoch (different from 01/01/1970) + /// + /// datetime + /// epoch + public static double ToCefTime(DateTime dateTime) + { + var timeSpan = dateTime - FirstOfTheFirstNineteenSeventy; + + return timeSpan.TotalSeconds; + } } } diff --git a/CefSharp/Internals/DateTimeUtils.cs b/CefSharp/Internals/DateTimeUtils.cs deleted file mode 100644 index 707055fc0..000000000 --- a/CefSharp/Internals/DateTimeUtils.cs +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright © 2017 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; -namespace CefSharp.Internals -{ - /// - /// Mapping to/from CefTime - /// - public static class DateTimeUtils - { - private static DateTime FirstOfTheFirstNineteenSeventy = new DateTime(1970, 1, 1, 0, 0, 0); - - /// - /// Converts a cef - /// - /// year - /// month - /// day - /// hour - /// minute - /// second - /// millisecond - /// DateTime - public static DateTime FromCefTime(int year, int month, int day, int hour, int minute, int second, int millisecond) - { - try - { - return new DateTime(year, month, day, hour, minute, second, millisecond); - } - catch (Exception) - { - return DateTime.MinValue; - } - } - - /// - /// Returns epoch (different from 01/01/1970) - /// - /// datetime - /// epoch - public static double ToCefTime(DateTime dateTime) - { - var timeSpan = dateTime - FirstOfTheFirstNineteenSeventy; - - return timeSpan.TotalSeconds; - } - } -} From 4d78c7079383b60250f877fe078262e8d9e218f0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 14:11:45 +1000 Subject: [PATCH 087/543] Core - Migrate from CefTime to CefBaseTime (CefDownloadItem) - Add new method to convert from CefBaseTime to nullable DateTime Issue #4234 --- .../Internals/TypeConversion.h | 18 ++-------------- CefSharp/Internals/CefTimeUtils.cs | 21 ++++++++++++++++++- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/CefSharp.Core.Runtime/Internals/TypeConversion.h b/CefSharp.Core.Runtime/Internals/TypeConversion.h index 03a59dae4..78e1d4c78 100644 --- a/CefSharp.Core.Runtime/Internals/TypeConversion.h +++ b/CefSharp.Core.Runtime/Internals/TypeConversion.h @@ -62,8 +62,8 @@ namespace CefSharp item->PercentComplete = downloadItem->GetPercentComplete(); item->TotalBytes = downloadItem->GetTotalBytes(); item->ReceivedBytes = downloadItem->GetReceivedBytes(); - item->StartTime = FromNative(downloadItem->GetStartTime()); - item->EndTime = FromNative(downloadItem->GetEndTime()); + item->StartTime = CefTimeUtils::FromBaseTimeToNullableDateTime((downloadItem->GetStartTime().val)); + item->EndTime = CefTimeUtils::FromBaseTimeToNullableDateTime(downloadItem->GetEndTime().val); item->FullPath = StringUtils::ToClr(downloadItem->GetFullPath()); item->Id = downloadItem->GetId(); item->Url = StringUtils::ToClr(downloadItem->GetURL()); @@ -76,20 +76,6 @@ namespace CefSharp return item; } - //Convert from CefTime to Nullable - static Nullable FromNative(CefBaseTime baseTime) - { - //TODO: Issue #4234 - CefTime time; - cef_time_from_basetime(baseTime, &time); - auto epoch = time.GetDoubleT(); - if (epoch == 0) - { - return Nullable(); - } - return Nullable(DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(epoch).ToLocalTime()); - } - static IList^ FromNative(const std::vector& regions) { if (regions.size() == 0) diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index 421eb1382..a07aa8c55 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -7,12 +7,31 @@ namespace CefSharp.Internals { /// - /// Mapping to/from CefTime + /// Mapping to/from CefTime/CefBaseTime /// public static class CefTimeUtils { private static DateTime FirstOfTheFirstNineteenSeventy = new DateTime(1970, 1, 1, 0, 0, 0); + /// + /// Converts from CefBaseTime to DateTime? + /// + /// + /// Represents a wall clock time in UTC. Values are not guaranteed to be monotonically + /// non-decreasing and are subject to large amounts of skew. Time is stored internally + /// as microseconds since the Windows epoch (1601). + /// + /// if is 0 then returns null otherwise returns a of + public static DateTime? FromBaseTimeToNullableDateTime(long val) + { + if(val == 0) + { + return null; + } + + return DateTime.FromFileTime(val * 10); + } + public static DateTime ConvertCefTimeToDateTime(double epoch) { if (epoch == 0) From 5f73ce568bf2c2225444ed4e25435fa217a9f028 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 14:20:53 +1000 Subject: [PATCH 088/543] Core - Migrate from CefTime to CefBaseTime (CefNavigationEntry) - Add new method to convert from CefBaseTime to DateTime Issue #4234 --- CefSharp.Core.Runtime/Internals/TypeConversion.h | 7 +------ CefSharp/Internals/CefTimeUtils.cs | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CefSharp.Core.Runtime/Internals/TypeConversion.h b/CefSharp.Core.Runtime/Internals/TypeConversion.h index 78e1d4c78..723641952 100644 --- a/CefSharp.Core.Runtime/Internals/TypeConversion.h +++ b/CefSharp.Core.Runtime/Internals/TypeConversion.h @@ -300,12 +300,7 @@ namespace CefSharp return gcnew NavigationEntry(current, DateTime::MinValue, nullptr, -1, nullptr, nullptr, (TransitionType)-1, nullptr, false, false, sslStatus); } - //TODO: Issue #4234 - auto baseTime = entry->GetCompletionTime(); - CefTime time; - cef_time_from_basetime(baseTime, &time); - - DateTime completionTime = CefTimeUtils::ConvertCefTimeToDateTime(time.GetDoubleT()); + DateTime completionTime = CefTimeUtils::FromBaseTimeToDateTime(entry->GetCompletionTime().val); auto ssl = entry->GetSSLStatus(); X509Certificate2^ sslCertificate; diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index a07aa8c55..a4af5bedb 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -32,6 +32,20 @@ public static class CefTimeUtils return DateTime.FromFileTime(val * 10); } + /// + /// Converts from CefBaseTime to DateTime + /// + /// + /// Represents a wall clock time in UTC. Values are not guaranteed to be monotonically + /// non-decreasing and are subject to large amounts of skew. Time is stored internally + /// as microseconds since the Windows epoch (1601). + /// + /// returns a of + public static DateTime FromBaseTimeToDateTime(long val) + { + return DateTime.FromFileTime(val * 10); + } + public static DateTime ConvertCefTimeToDateTime(double epoch) { if (epoch == 0) From 48d2619dee74c9ba12b6a0fa2ede642b83452da3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 14:28:23 +1000 Subject: [PATCH 089/543] Test - Fix failing EvaluateScriptAsyncFacts.CanEvaluateDateValues test - Cannot currently eval 1970-01-01 as it's converted to MinVal #4234 --- CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs index 526eec471..51f8700bf 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs @@ -102,7 +102,7 @@ public async Task CanEvaluateIntValues(object num) } [Theory] - [InlineData("1970-01-01", "1970-01-01")] + [InlineData("1980-01-01", "1980-01-01")] //https://github.com/cefsharp/CefSharp/issues/4234 public async Task CanEvaluateDateValues(DateTime expected, string actual) { @@ -114,11 +114,12 @@ public async Task CanEvaluateDateValues(DateTime expected, string actual) Assert.True(javascriptResponse.Success); var actualType = javascriptResponse.Result.GetType(); + var actualDateTime = (DateTime)javascriptResponse.Result; Assert.Equal(typeof(DateTime), actualType); - Assert.Equal(expected, (DateTime)javascriptResponse.Result); + Assert.Equal(expected.ToLocalTime(), actualDateTime); - output.WriteLine("Expected {0} : Actual {1}", expected, javascriptResponse.Result); + output.WriteLine("Expected {0} : Actual {1}", expected.ToLocalTime(), actualDateTime); } } } From 1a8c7cf09e83e97358f030f6150a14aa4ead6a2b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 14:57:59 +1000 Subject: [PATCH 090/543] Core - Migrate from CefTime to CefBaseTime (CefCookie) - Add new method for conversion from DateTime to CefBaseTime - Change Cookie.SetCreationDate and Cookie.SetLastAccessDate to take Long Issue #4234 --- CefSharp.Core.Runtime/CookieManager.cpp | 12 +++------- .../Internals/TypeConversion.h | 22 +++---------------- CefSharp/Cookie.cs | 21 +++++++++++++----- CefSharp/Internals/CefTimeUtils.cs | 14 ++++++++++++ 4 files changed, 35 insertions(+), 34 deletions(-) diff --git a/CefSharp.Core.Runtime/CookieManager.cpp b/CefSharp.Core.Runtime/CookieManager.cpp index 83fc90240..6c783a3f1 100644 --- a/CefSharp.Core.Runtime/CookieManager.cpp +++ b/CefSharp.Core.Runtime/CookieManager.cpp @@ -46,19 +46,13 @@ namespace CefSharp c.httponly = cookie->HttpOnly; c.has_expires = cookie->Expires.HasValue; - //TODO: Issue #4234 if (cookie->Expires.HasValue) { - auto expires = CefTime(CefTimeUtils::ToCefTime(cookie->Expires.Value)); - cef_time_to_basetime(&expires, &c.expires); + c.expires.val = CefTimeUtils::FromDateTimeBaseTime(cookie->Expires.Value); } - auto creation = CefTime(CefTimeUtils::ToCefTime(cookie->Creation)); - cef_time_to_basetime(&creation, &c.creation); - - auto lastAccess = CefTime(CefTimeUtils::ToCefTime(cookie->LastAccess)); - cef_time_to_basetime(&lastAccess, &c.last_access); - + c.creation.val = CefTimeUtils::FromDateTimeBaseTime(cookie->Creation); + c.last_access.val = CefTimeUtils::FromDateTimeBaseTime(cookie->LastAccess); c.same_site = (cef_cookie_same_site_t)cookie->SameSite; c.priority = (cef_cookie_priority_t)cookie->Priority; diff --git a/CefSharp.Core.Runtime/Internals/TypeConversion.h b/CefSharp.Core.Runtime/Internals/TypeConversion.h index 723641952..b4f2e135c 100644 --- a/CefSharp.Core.Runtime/Internals/TypeConversion.h +++ b/CefSharp.Core.Runtime/Internals/TypeConversion.h @@ -243,22 +243,6 @@ namespace CefSharp return result; } - // Copied from CefSharp.BrowserSubprocess.Core\TypeUtils.h since it can't be included - static DateTime ConvertCefTimeToDateTime(CefBaseTime baseTime) - { - //TODO: Issue #4234 - CefTime time; - cef_time_from_basetime(baseTime, &time); - - return CefTimeUtils::FromCefTime(time.year, - time.month, - time.day_of_month, - time.hour, - time.minute, - time.second, - time.millisecond); - } - static Cookie^ FromNative(const CefCookie& cefCookie) { auto cookie = gcnew Cookie(); @@ -272,14 +256,14 @@ namespace CefSharp cookie->Path = StringUtils::ToClr(cefCookie.path); cookie->Secure = cefCookie.secure == 1; cookie->HttpOnly = cefCookie.httponly == 1; - cookie->SetCreationDate(ConvertCefTimeToDateTime(cefCookie.creation)); - cookie->SetLastAccessDate(ConvertCefTimeToDateTime(cefCookie.last_access)); + cookie->SetCreationDate(cefCookie.creation.val); + cookie->SetLastAccessDate(cefCookie.last_access.val); cookie->SameSite = (CefSharp::Enums::CookieSameSite)cefCookie.same_site; cookie->Priority = (CefSharp::Enums::CookiePriority)cefCookie.priority; if (cefCookie.has_expires) { - cookie->Expires = ConvertCefTimeToDateTime(cefCookie.expires); + cookie->Expires = CefTimeUtils::FromBaseTimeToDateTime(cefCookie.expires.val); } } diff --git a/CefSharp/Cookie.cs b/CefSharp/Cookie.cs index 6616c3244..d93c3164c 100644 --- a/CefSharp/Cookie.cs +++ b/CefSharp/Cookie.cs @@ -6,6 +6,7 @@ using System.ComponentModel; using System.Diagnostics; using CefSharp.Enums; +using CefSharp.Internals; namespace CefSharp { @@ -68,30 +69,38 @@ public sealed class Cookie /// Used internally to set . /// can only be set when fecting a Cookie from Chromium /// - /// dateTime + /// + /// Represents a wall clock time in UTC. Values are not guaranteed to be monotonically + /// non-decreasing and are subject to large amounts of skew. Time is stored internally + /// as microseconds since the Windows epoch (1601). + /// /// /// Hidden from intellisense as only meant to be used internally, unfortunately /// VC++ makes it hard to use internal classes from C# /// [EditorBrowsable(EditorBrowsableState.Never)] - public void SetCreationDate(DateTime dateTime) + public void SetCreationDate(long baseTime) { - Creation = dateTime; + Creation = CefTimeUtils.FromBaseTimeToDateTime(baseTime); } /// /// Used internally to set . /// can only be set when fecting a Cookie from Chromium /// - /// dateTime + /// + /// Represents a wall clock time in UTC. Values are not guaranteed to be monotonically + /// non-decreasing and are subject to large amounts of skew. Time is stored internally + /// as microseconds since the Windows epoch (1601). + /// /// /// Hidden from intellisense as only meant to be used internally, unfortunately /// VC++ makes it hard to use internal classes from C# /// [EditorBrowsable(EditorBrowsableState.Never)] - public void SetLastAccessDate(DateTime dateTime) + public void SetLastAccessDate(long baseTime) { - LastAccess = dateTime; + LastAccess = CefTimeUtils.FromBaseTimeToDateTime(baseTime); } } } diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index a4af5bedb..02384cb72 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -46,6 +46,20 @@ public static DateTime FromBaseTimeToDateTime(long val) return DateTime.FromFileTime(val * 10); } + /// + /// Converts from DateTime to CefBaseTime + /// + /// DateTime + /// + /// Represents a wall clock time in UTC. Time as microseconds since the Windows epoch (1601). + /// + public static long FromDateTimeBaseTime(DateTime dateTime) + { + return dateTime.ToFileTimeUtc() / 10; + } + + //dateTime.ToFileTimeUtc() / 10 + public static DateTime ConvertCefTimeToDateTime(double epoch) { if (epoch == 0) From 416ed308c2b9dc99e151c4ff42bef463dd1ff0be Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Sep 2022 15:07:09 +1000 Subject: [PATCH 091/543] Core - Migrate from CefTime to CefBaseTime (Execution/Binding) - Convert more of the methods used by JavaScript binding/execution - Fix naming of FromDateTimeToBaseTime Issue #4234 --- .../Serialization/V8Serialization.cpp | 11 +- CefSharp.BrowserSubprocess.Core/TypeUtils.cpp | 31 +-- CefSharp.Core.Runtime/CookieManager.cpp | 6 +- .../Serialization/ObjectsSerialization.cpp | 12 +- .../Internals/Serialization/Primitives.cpp | 17 +- .../Internals/Serialization/Primitives.h | 18 +- .../Serialization/V8Serialization.cpp | 9 +- .../Javascript/EvaluateScriptAsyncFacts.cs | 1 + .../Javascript/JavascriptCallbackFacts.cs | 185 ++++++++++++++++++ .../CefSharp.WinForms.Example.csproj | 4 +- CefSharp/Internals/CefTimeUtils.cs | 54 +---- 11 files changed, 218 insertions(+), 130 deletions(-) create mode 100644 CefSharp.Test/Javascript/JavascriptCallbackFacts.cs diff --git a/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp b/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp index a412b4d58..19cfa3578 100644 --- a/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp +++ b/CefSharp.BrowserSubprocess.Core/Serialization/V8Serialization.cpp @@ -69,11 +69,7 @@ namespace CefSharp } else if (obj->IsDate()) { - //TODO: Issue #4234 - auto baseTime = obj->GetDateValue(); - CefTime time; - cef_time_from_basetime(baseTime, &time); - SetCefTime(list, index, time); + SetCefTime(list, index, obj->GetDateValue().val); } else if (obj->IsArray()) { @@ -160,11 +156,8 @@ namespace CefSharp if (IsCefTime(list, index)) { - //TODO: Issue #4234 auto time = GetCefTime(list, index); - CefBaseTime baseTime; - cef_time_to_basetime(&time, &baseTime); - return CefV8Value::CreateDate(baseTime); + return CefV8Value::CreateDate(time); } if (type == VTYPE_LIST) diff --git a/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp b/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp index 77a6c4fb6..1d0afe469 100644 --- a/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp +++ b/CefSharp.BrowserSubprocess.Core/TypeUtils.cpp @@ -92,7 +92,9 @@ namespace CefSharp } if (type == DateTime::typeid) { - return CefV8Value::CreateDate(TypeUtils::ConvertDateTimeToCefTime(safe_cast(obj))); + CefBaseTime baseTime; + baseTime.val = CefTimeUtils::FromDateTimeToBaseTime(safe_cast(obj)); + return CefV8Value::CreateDate(baseTime); } if (type->IsArray) { @@ -175,7 +177,7 @@ namespace CefSharp } if (obj->IsDate()) { - return TypeUtils::ConvertCefTimeToDateTime(obj->GetDateValue()); + return CefTimeUtils::FromBaseTimeToDateTime(obj->GetDateValue().val); } if (obj->IsArray()) @@ -254,30 +256,5 @@ namespace CefSharp //TODO: What exception type? throw gcnew Exception("Cannot convert object from Cef to CLR."); } - - DateTime TypeUtils::ConvertCefTimeToDateTime(CefBaseTime baseTime) - { - //TODO: Issue #4234 - CefTime time; - cef_time_from_basetime(baseTime, &time); - - return CefTimeUtils::FromCefTime(time.year, - time.month, - time.day_of_month, - time.hour, - time.minute, - time.second, - time.millisecond); - } - - CefBaseTime TypeUtils::ConvertDateTimeToCefTime(DateTime dateTime) - { - //TODO: Issue #4234 - auto time = CefTime(CefTimeUtils::ToCefTime(dateTime)); - CefBaseTime baseTime; - cef_time_to_basetime(&time, &baseTime); - - return baseTime; - } } } diff --git a/CefSharp.Core.Runtime/CookieManager.cpp b/CefSharp.Core.Runtime/CookieManager.cpp index 6c783a3f1..0766bde51 100644 --- a/CefSharp.Core.Runtime/CookieManager.cpp +++ b/CefSharp.Core.Runtime/CookieManager.cpp @@ -48,11 +48,11 @@ namespace CefSharp if (cookie->Expires.HasValue) { - c.expires.val = CefTimeUtils::FromDateTimeBaseTime(cookie->Expires.Value); + c.expires.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->Expires.Value); } - c.creation.val = CefTimeUtils::FromDateTimeBaseTime(cookie->Creation); - c.last_access.val = CefTimeUtils::FromDateTimeBaseTime(cookie->LastAccess); + c.creation.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->Creation); + c.last_access.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->LastAccess); c.same_site = (cef_cookie_same_site_t)cookie->SameSite; c.priority = (cef_cookie_priority_t)cookie->Priority; diff --git a/CefSharp.Core.Runtime/Internals/Serialization/ObjectsSerialization.cpp b/CefSharp.Core.Runtime/Internals/Serialization/ObjectsSerialization.cpp index 5a6b5a298..0c911e99f 100644 --- a/CefSharp.Core.Runtime/Internals/Serialization/ObjectsSerialization.cpp +++ b/CefSharp.Core.Runtime/Internals/Serialization/ObjectsSerialization.cpp @@ -36,7 +36,7 @@ namespace CefSharp else if (IsCefTime(list, index)) { auto cefTime = GetCefTime(list, index); - result = ConvertCefTimeToDateTime(cefTime); + result = CefTimeUtils::FromBaseTimeToDateTime(cefTime.val); } else if (IsJsCallback(list, index) && javascriptCallbackFactory != nullptr) { @@ -81,16 +81,6 @@ namespace CefSharp return result; } - - DateTime ConvertCefTimeToDateTime(CefTime time) - { - auto epoch = time.GetDoubleT(); - if (epoch == 0) - { - return DateTime::MinValue; - } - return DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(epoch).ToLocalTime(); - } } } } diff --git a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp index 46f5cd802..420aec9b3 100644 --- a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp +++ b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp @@ -65,26 +65,25 @@ namespace CefSharp } template - void SetCefTime(const CefRefPtr& list, TIndex index, const CefTime &value) + void SetCefTime(const CefRefPtr& list, TIndex index, const int64 &value) { - auto doubleT = value.GetDoubleT(); - unsigned char mem[1 + sizeof(double)]; + unsigned char mem[1 + sizeof(int64)]; mem[0] = static_cast(PrimitiveType::CEFTIME); - memcpy(reinterpret_cast(mem + 1), &doubleT, sizeof(double)); + memcpy(reinterpret_cast(mem + 1), &value, sizeof(int64)); auto binaryValue = CefBinaryValue::Create(mem, sizeof(mem)); list->SetBinary(index, binaryValue); } template - CefTime GetCefTime(const CefRefPtr& list, TIndex index) + CefBaseTime GetCefTime(const CefRefPtr& list, TIndex index) { - double doubleT; + CefBaseTime baseTime; auto binaryValue = list->GetBinary(index); - binaryValue->GetData(&doubleT, sizeof(double), 1); + binaryValue->GetData(&baseTime.val, sizeof(int64), 1); - return CefTime(doubleT); + return baseTime; } template @@ -136,4 +135,4 @@ namespace CefSharp } } } -} \ No newline at end of file +} diff --git a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h index 6d4a3bbc0..7853a47c2 100644 --- a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h +++ b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h @@ -20,9 +20,9 @@ namespace CefSharp bool IsInt64(const CefRefPtr& list, TIndex index); template - void SetCefTime(const CefRefPtr& list, TIndex index, const CefTime &value); + void SetCefTime(const CefRefPtr& list, TIndex index, const int64 &value); template - CefTime GetCefTime(const CefRefPtr& list, TIndex index); + CefBaseTime GetCefTime(const CefRefPtr& list, TIndex index); template bool IsCefTime(const CefRefPtr& list, TIndex index); @@ -43,12 +43,12 @@ namespace CefSharp template bool IsInt64(const CefRefPtr& list, size_t index); template bool IsInt64(const CefRefPtr& list, CefString index); - template void SetCefTime(const CefRefPtr& list, int index, const CefTime &value); - template void SetCefTime(const CefRefPtr& list, size_t index, const CefTime &value); - template void SetCefTime(const CefRefPtr& list, CefString index, const CefTime &value); - template CefTime GetCefTime(const CefRefPtr& list, int index); - template CefTime GetCefTime(const CefRefPtr& list, size_t index); - template CefTime GetCefTime(const CefRefPtr& list, CefString index); + template void SetCefTime(const CefRefPtr& list, int index, const int64 &value); + template void SetCefTime(const CefRefPtr& list, size_t index, const int64 &value); + template void SetCefTime(const CefRefPtr& list, CefString index, const int64 &value); + template CefBaseTime GetCefTime(const CefRefPtr& list, int index); + template CefBaseTime GetCefTime(const CefRefPtr& list, size_t index); + template CefBaseTime GetCefTime(const CefRefPtr& list, CefString index); template bool IsCefTime(const CefRefPtr& list, size_t index); template bool IsCefTime(const CefRefPtr& list, int index); template bool IsCefTime(const CefRefPtr& list, CefString index); @@ -64,4 +64,4 @@ namespace CefSharp template bool IsJsCallback(const CefRefPtr& list, CefString index); } } -} \ No newline at end of file +} diff --git a/CefSharp.Core.Runtime/Internals/Serialization/V8Serialization.cpp b/CefSharp.Core.Runtime/Internals/Serialization/V8Serialization.cpp index 598f979ad..09d641082 100644 --- a/CefSharp.Core.Runtime/Internals/Serialization/V8Serialization.cpp +++ b/CefSharp.Core.Runtime/Internals/Serialization/V8Serialization.cpp @@ -114,7 +114,7 @@ namespace CefSharp } else if (type == DateTime::typeid) { - SetCefTime(list, index, ConvertDateTimeToCefTime(safe_cast(obj))); + SetCefTime(list, index, CefTimeUtils::FromDateTimeToBaseTime(safe_cast(obj))); } // Serialize enum to sbyte, short, int, long, byte, ushort, uint, ulong (check type of enum) else if (type->IsEnum) @@ -214,13 +214,6 @@ namespace CefSharp ancestors->Remove(obj); } - - CefTime ConvertDateTimeToCefTime(DateTime dateTime) - { - auto timeSpan = dateTime.ToUniversalTime() - DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind::Utc); - - return CefTime(timeSpan.TotalSeconds); - } } } } diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs index 51f8700bf..f60090180 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs @@ -102,6 +102,7 @@ public async Task CanEvaluateIntValues(object num) } [Theory] + [InlineData("1970-01-01", "1970-01-01")] [InlineData("1980-01-01", "1980-01-01")] //https://github.com/cefsharp/CefSharp/issues/4234 public async Task CanEvaluateDateValues(DateTime expected, string actual) diff --git a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs new file mode 100644 index 000000000..fcbc2da3a --- /dev/null +++ b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs @@ -0,0 +1,185 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Globalization; +using System.Threading.Tasks; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Javascript +{ + [Collection(CefSharpFixtureCollection.Key)] + public class JavascriptCallbackFacts : IClassFixture + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture collectionFixture; + private readonly ChromiumWebBrowserOffScreenFixture classFixture; + + public JavascriptCallbackFacts(ITestOutputHelper output, CefSharpFixture collectionFixture, ChromiumWebBrowserOffScreenFixture classFixture) + { + this.output = output; + this.collectionFixture = collectionFixture; + this.classFixture = classFixture; + } + + [Theory] + [InlineData(double.MaxValue, "Number.MAX_VALUE")] + [InlineData(double.MaxValue / 2, "Number.MAX_VALUE / 2")] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task CanEvaluateDoubleComputation(double expectedValue, string script) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return " + script + "})"); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(); + + Assert.True(callbackResponse.Success); + + Assert.Equal(expectedValue, (double)callbackResponse.Result, 5); + + output.WriteLine("Script {0} : Result {1}", script, callbackResponse.Result); + } + + [Theory] + [InlineData(0.5d)] + [InlineData(1.5d)] + [InlineData(-0.5d)] + [InlineData(-1.5d)] + [InlineData(100000.24500d)] + [InlineData(-100000.24500d)] + [InlineData((double)uint.MaxValue)] + [InlineData((double)int.MaxValue + 1)] + [InlineData((double)int.MaxValue + 10)] + [InlineData((double)int.MinValue - 1)] + [InlineData((double)int.MinValue - 10)] + [InlineData(((double)uint.MaxValue * 2))] + [InlineData(((double)uint.MaxValue * 2) + 0.1)] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task CanEvaluateDoubleValues(double num) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return " + num + "})"); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(); + + Assert.Equal(num, (double)callbackResponse.Result, 5); + + output.WriteLine("Expected {0} : Actual {1}", num, callbackResponse.Result); + } + + [Theory] + [InlineData(0)] + [InlineData(-1)] + [InlineData(100)] + [InlineData(int.MaxValue)] + [InlineData(int.MinValue)] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task CanEvaluateIntValues(object num) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return " + num.ToString() + "})"); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(); + + Assert.Equal(num, callbackResponse.Result); + + output.WriteLine("Expected {0} : Actual {1}", num, callbackResponse.Result); + } + + [Theory] + [InlineData("1970-01-01", "1970-01-01")] + [InlineData("1980-01-01", "1980-01-01")] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task CanEvaluateDateValues(DateTime expected, string actual) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return new Date('" + actual + "');})"); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(); + + var actualDateTime = (DateTime)callbackResponse.Result; + + Assert.Equal(expected.ToLocalTime(), actualDateTime); + + output.WriteLine("Expected {0} : Actual {1}", expected.ToLocalTime(), actualDateTime); + } + + [Theory] + [InlineData("1970-01-01", DateTimeStyles.AssumeLocal)] + [InlineData("1970-01-01", DateTimeStyles.AssumeUniversal)] + [InlineData("1980-01-01", DateTimeStyles.AssumeLocal)] + [InlineData("1980-01-01", DateTimeStyles.AssumeUniversal)] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task CanEchoDateTime(string expected, DateTimeStyles dateTimeStyle) + { + var expectedDateTime = DateTime.Parse(expected, CultureInfo.InvariantCulture, dateTimeStyle); + + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync("(function(p) { return p; })"); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(expectedDateTime); + + var actualDateTime = (DateTime)callbackResponse.Result; + + Assert.Equal(expectedDateTime, actualDateTime); + + output.WriteLine("Expected {0} : Actual {1}", expectedDateTime, actualDateTime); + } + + [Fact] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task CanEchoDateTimeNow() + { + var expectedDateTime = DateTime.Now; + + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync("(function(p) { return p; })"); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(expectedDateTime); + + var actualDateTime = (DateTime)callbackResponse.Result; + + Assert.Equal(expectedDateTime, actualDateTime, TimeSpan.FromMilliseconds(1)); + + output.WriteLine("Expected {0} : Actual {1}", expectedDateTime, actualDateTime); + } + } +} diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index f48cc9a4e..01f79f9db 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -17,9 +17,7 @@ - - UserControl - + diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index 02384cb72..393895519 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -7,12 +7,10 @@ namespace CefSharp.Internals { /// - /// Mapping to/from CefTime/CefBaseTime + /// Mapping to/from CefBaseTime /// public static class CefTimeUtils { - private static DateTime FirstOfTheFirstNineteenSeventy = new DateTime(1970, 1, 1, 0, 0, 0); - /// /// Converts from CefBaseTime to DateTime? /// @@ -53,55 +51,9 @@ public static DateTime FromBaseTimeToDateTime(long val) /// /// Represents a wall clock time in UTC. Time as microseconds since the Windows epoch (1601). /// - public static long FromDateTimeBaseTime(DateTime dateTime) - { - return dateTime.ToFileTimeUtc() / 10; - } - - //dateTime.ToFileTimeUtc() / 10 - - public static DateTime ConvertCefTimeToDateTime(double epoch) - { - if (epoch == 0) - { - return DateTime.MinValue; - } - return new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(epoch).ToLocalTime(); - } - - /// - /// Converts a cef - /// - /// year - /// month - /// day - /// hour - /// minute - /// second - /// millisecond - /// DateTime - public static DateTime FromCefTime(int year, int month, int day, int hour, int minute, int second, int millisecond) + public static long FromDateTimeToBaseTime(DateTime dateTime) { - try - { - return new DateTime(year, month, day, hour, minute, second, millisecond); - } - catch (Exception) - { - return DateTime.MinValue; - } - } - - /// - /// Returns epoch (different from 01/01/1970) - /// - /// datetime - /// epoch - public static double ToCefTime(DateTime dateTime) - { - var timeSpan = dateTime - FirstOfTheFirstNineteenSeventy; - - return timeSpan.TotalSeconds; + return dateTime.ToUniversalTime().ToFileTime() / 10; } } } From beca2863a8a2b27b762ae9b658f62240ad34aaa8 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 7 Sep 2022 10:56:29 +1000 Subject: [PATCH 092/543] Core - Migrate from CefTime to CefBaseTime (CookieManger Tests) - Add basic xUnit test - Don't set Creation/LastAccess on cookie creation, these are set internally in Chromium and are left uninitialized until the cookie is read back from the browser I haven't tested though I suspect Cookie.Expiry was incorrectly set when Local/Unspecified DateTime was used cookies are always in GMT Issue #4234 --- CefSharp.Core.Runtime/CookieManager.cpp | 7 +- .../CookieManager/CookieManagerFacts.cs | 65 +++++++++++++++++++ .../Javascript/JavascriptCallbackFacts.cs | 2 +- CefSharp/Internals/CefTimeUtils.cs | 4 +- 4 files changed, 74 insertions(+), 4 deletions(-) create mode 100644 CefSharp.Test/CookieManager/CookieManagerFacts.cs diff --git a/CefSharp.Core.Runtime/CookieManager.cpp b/CefSharp.Core.Runtime/CookieManager.cpp index 0766bde51..e227396fc 100644 --- a/CefSharp.Core.Runtime/CookieManager.cpp +++ b/CefSharp.Core.Runtime/CookieManager.cpp @@ -51,8 +51,11 @@ namespace CefSharp c.expires.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->Expires.Value); } - c.creation.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->Creation); - c.last_access.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->LastAccess); + // creation/last_access are basically readonly (assigned by Chromium when the cookie is created) + // So I don't think we actually need to set them. The other option is to assign them to DateTime.Now + // Issue #4234 + //c.creation.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->Creation); + //c.last_access.val = CefTimeUtils::FromDateTimeToBaseTime(cookie->LastAccess); c.same_site = (cef_cookie_same_site_t)cookie->SameSite; c.priority = (cef_cookie_priority_t)cookie->Priority; diff --git a/CefSharp.Test/CookieManager/CookieManagerFacts.cs b/CefSharp.Test/CookieManager/CookieManagerFacts.cs new file mode 100644 index 000000000..4eeece04c --- /dev/null +++ b/CefSharp.Test/CookieManager/CookieManagerFacts.cs @@ -0,0 +1,65 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using Xunit.Abstractions; +using Xunit; +using System; +using CefSharp.Example; +using System.Linq; + +namespace CefSharp.Test.CookieManager +{ + [Collection(CefSharpFixtureCollection.Key)] + public class CookieManagerFacts : IClassFixture + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture collectionFixture; + private readonly ChromiumWebBrowserOffScreenFixture classFixture; + + public CookieManagerFacts(ITestOutputHelper output, CefSharpFixture collectionFixture, ChromiumWebBrowserOffScreenFixture classFixture) + { + this.output = output; + this.collectionFixture = collectionFixture; + this.classFixture = classFixture; + } + + [Fact] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task CanSetAndGetCookie() + { + const string CookieName = "CefSharpExpiryTestCookie"; + var testStartDate = DateTime.Now; + var expectedExpiry = DateTime.Now.AddDays(1); + + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var cookieManager = browser.GetCookieManager(); + + await cookieManager.DeleteCookiesAsync(CefExample.HelloWorldUrl, CookieName); + + var cookieSet = await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie + { + Name = CookieName, + Value = "ILikeCookies", + Expires = expectedExpiry + }); + + Assert.True(cookieSet); + + var cookies = await cookieManager.VisitUrlCookiesAsync(CefExample.HelloWorldUrl, false); + var cookie = cookies.First(x => x.Name == CookieName); + + Assert.True(cookie.Expires.HasValue); + // Little bit of a loss in precision + Assert.Equal(expectedExpiry, cookie.Expires.Value, TimeSpan.FromMilliseconds(10)); + Assert.True(cookie.Creation > testStartDate, "Cookie Creation greater than test start."); + Assert.True(cookie.LastAccess > testStartDate, "Cookie LastAccess greater than test start."); + + output.WriteLine("Expected {0} : Actual {1}", expectedExpiry, cookie.Expires.Value); + } + } +} diff --git a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs index fcbc2da3a..10fe532a0 100644 --- a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs +++ b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs @@ -177,7 +177,7 @@ public async Task CanEchoDateTimeNow() var actualDateTime = (DateTime)callbackResponse.Result; - Assert.Equal(expectedDateTime, actualDateTime, TimeSpan.FromMilliseconds(1)); + Assert.Equal(expectedDateTime, actualDateTime, TimeSpan.FromMilliseconds(10)); output.WriteLine("Expected {0} : Actual {1}", expectedDateTime, actualDateTime); } diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index 393895519..f4c1efc92 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -53,7 +53,9 @@ public static DateTime FromBaseTimeToDateTime(long val) /// public static long FromDateTimeToBaseTime(DateTime dateTime) { - return dateTime.ToUniversalTime().ToFileTime() / 10; + // Same as calling ToFileTime, this to me is a little + // more self descriptive of what's going on. + return dateTime.ToUniversalTime().ToFileTimeUtc() / 10; } } } From 8a2c1cccfea3154c269cf35198982dd7dd9da7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Prei=C3=9Fer?= Date: Wed, 7 Sep 2022 21:06:35 +0200 Subject: [PATCH 093/543] Use decimal instead of hexadecimal notation for the stack size with the "editbin /STACK:" command, to work-around a regression introduced in editbin v14.33 (and possibly 14.32 or 14.31) that no longer recognizes the "0x..." hex format. (#4241) See https://github.com/cefsharp/CefSharp/discussions/4231 --- CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj | 2 +- .../CefSharp.BrowserSubprocess.netcore.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj index e088fbd9d..30ba63279 100644 --- a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj +++ b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj @@ -35,6 +35,6 @@ - + \ No newline at end of file diff --git a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj index 326ae0c95..19c72e798 100644 --- a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj +++ b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.netcore.csproj @@ -57,7 +57,7 @@ - + From f3676bed4e63aa1af7e9dab5c243d4be45cfedb3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 7 Sep 2022 11:04:26 +1000 Subject: [PATCH 094/543] Upgrade to 105.3.33+gd83f874+chromium-105.0.5195.102 / Chromium 105.0.5195.102 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index de0cb72f3..2c4b29a3a 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 3cebc936e..b308a49ce 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 7126d9c7f..81ba8cf9f 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 105,3,250 - PRODUCTVERSION 105,3,250 + FILEVERSION 105,3,330 + PRODUCTVERSION 105,3,330 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "105.3.250" + VALUE "FileVersion", "105.3.330" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "105.3.250" + VALUE "ProductVersion", "105.3.330" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 18601a3b3..5522fdffd 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 453abbd16..b2659c7bf 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index eb0e3e8e0..2c8389140 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 9e375025c..7bf9adbd3 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index b2c7dcb22..46194d6a5 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 01cf0cfad..374210381 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 105,3,250 - PRODUCTVERSION 105,3,250 + FILEVERSION 105,3,330 + PRODUCTVERSION 105,3,330 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "105.3.250" + VALUE "FileVersion", "105.3.330" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "105.3.250" + VALUE "ProductVersion", "105.3.330" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 18601a3b3..5522fdffd 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 453abbd16..b2659c7bf 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 39b8c5ec6..60ca56fa0 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 9208e4fe1..d377830b0 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 2a543b0a2..6f057c5ff 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 9e189e9df..8b8d6293f 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 350873360..a588b5634 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 01f79f9db..3fde43dcd 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 6f173fb43..0688abe70 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index bbd536257..a275be8b8 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 4557a6119..8d6f1c48f 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 955029b71..5311c540e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 698f94924..8ad0e5c27 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 15dc772c8..e69c36f6b 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 105.3.250 + 105.3.330 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 105.3.250 + Version 105.3.330 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index a96a51edb..b083f0939 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "105.3.250"; - public const string AssemblyFileVersion = "105.3.250.0"; + public const string AssemblyVersion = "105.3.330"; + public const string AssemblyFileVersion = "105.3.330.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 6eda66d31..0b357f591 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 06456eaa1..0d2573612 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index e97b54aed..5e683bdb8 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 70925290f..e1cd0b601 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "105.3.25", + [string] $CefVersion = "105.3.33", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 151ed2e95..87e084dc4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 105.3.250-CI{build} +version: 105.3.330-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 655ee234c..61317115a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "105.3.250", + [string] $Version = "105.3.330", [Parameter(Position = 2)] - [string] $AssemblyVersion = "105.3.250", + [string] $AssemblyVersion = "105.3.330", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From e8236f0330b6122af8c85b2bec28f67e9199f1a5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 7 Sep 2022 11:40:46 +1000 Subject: [PATCH 095/543] Test - Fix IntegrationTestFacts.LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion local failure - Use a new RequestContext so the test is run in it's own process --- CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs b/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs index 81a0a7df4..06533d08e 100644 --- a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs +++ b/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs @@ -164,7 +164,10 @@ public async Task LoadJavaScriptBindingAsyncTaskQunitTestsSuccessfulCompletion() //Skipping Issue https://github.com/cefsharp/CefSharp/issues/3867 public async Task LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion() { - using (var browser = new ChromiumWebBrowser(CefExample.LegacyBindingTestUrl, automaticallyCreateBrowser: false)) + var requestContext = new RequestContext(); + requestContext.RegisterSchemeHandlerFactory("https", CefExample.ExampleDomain, new CefSharpSchemeHandlerFactory()); + + using (var browser = new ChromiumWebBrowser(CefExample.LegacyBindingTestUrl, requestContext:requestContext, automaticallyCreateBrowser: false)) { //TODO: Extract this into some sort of helper setup method var bindingOptions = BindingOptions.DefaultBinder; From 7f00aac1b87563850605e79731a5208bb8d467cd Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 7 Sep 2022 13:35:38 +1000 Subject: [PATCH 096/543] DevTools Client - Update to 105.0.5195.102 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 496 +++++++++++++++++- .../DevToolsClient.Generated.netcore.cs | 421 ++++++++++++++- 2 files changed, 891 insertions(+), 26 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 4a0d87706..034347990 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 104.0.5112.81 +// CHROMIUM VERSION 105.0.5195.102 namespace CefSharp.DevTools.Accessibility { /// @@ -717,6 +717,16 @@ public CefSharp.DevTools.Accessibility.AXValue Role set; } + /// + /// This `Node`'s Chrome raw role. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("chromeRole"), IsRequired = (false))] + public CefSharp.DevTools.Accessibility.AXValue ChromeRole + { + get; + set; + } + /// /// The accessible name for this `Node`. /// @@ -2831,6 +2841,11 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventPath"))] EventPath, /// + /// ExpectCTHeader + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExpectCTHeader"))] + ExpectCTHeader, + /// /// GeolocationInsecureOrigin /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GeolocationInsecureOrigin"))] @@ -2881,6 +2896,16 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaSourceDurationTruncatingBuffered"))] MediaSourceDurationTruncatingBuffered, /// + /// NavigateEventRestoreScroll + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigateEventRestoreScroll"))] + NavigateEventRestoreScroll, + /// + /// NavigateEventTransitionWhile + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigateEventTransitionWhile"))] + NavigateEventTransitionWhile, + /// /// NoSysexWebMIDIWithoutPermission /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoSysexWebMIDIWithoutPermission"))] @@ -2906,6 +2931,11 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OpenWebDatabaseInsecureContext"))] OpenWebDatabaseInsecureContext, /// + /// OverflowVisibleOnReplacedElement + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OverflowVisibleOnReplacedElement"))] + OverflowVisibleOnReplacedElement, + /// /// PictureSourceSrc /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PictureSourceSrc"))] @@ -4918,6 +4948,17 @@ public System.Collections.Generic.IList Layers get; set; } + + /// + /// @scope CSS at-rule array. + /// The array enumerates @scope at-rules starting with the innermost one, going outwards. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("scopes"), IsRequired = (false))] + public System.Collections.Generic.IList Scopes + { + get; + set; + } } /// @@ -5524,6 +5565,44 @@ public string StyleSheetId } } + /// + /// CSS Scope at-rule descriptor. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSScope : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Scope rule text. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + public string Text + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + public string StyleSheetId + { + get; + set; + } + } + /// /// CSS Layer at-rule descriptor. /// @@ -11029,6 +11108,11 @@ public enum ResourceType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Fetch"))] Fetch, /// + /// Prefetch + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Prefetch"))] + Prefetch, + /// /// EventSource /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventSource"))] @@ -11979,6 +12063,28 @@ internal string certificateTransparencyCompliance get; set; } + + /// + /// The signature algorithm used by the server in the TLS server signature, + /// represented as a TLS SignatureScheme code point. Omitted if not + /// applicable or not known. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("serverSignatureAlgorithm"), IsRequired = (false))] + public int? ServerSignatureAlgorithm + { + get; + set; + } + + /// + /// Whether the connection used Encrypted ClientHello + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("encryptedClientHello"), IsRequired = (true))] + public bool EncryptedClientHello + { + get; + set; + } } /// @@ -18053,6 +18159,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("execution-while-not-rendered"))] ExecutionWhileNotRendered, /// + /// federated-credentials + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("federated-credentials"))] + FederatedCredentials, + /// /// focus-without-user-activation /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("focus-without-user-activation"))] @@ -18168,6 +18279,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-autofill"))] SharedAutofill, /// + /// shared-storage + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage"))] + SharedStorage, + /// /// storage-access-api /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storage-access-api"))] @@ -18228,7 +18344,12 @@ public enum PermissionsPolicyBlockReason /// InFencedFrameTree /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InFencedFrameTree"))] - InFencedFrameTree + InFencedFrameTree, + /// + /// InIsolatedApp + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InIsolatedApp"))] + InIsolatedApp } /// @@ -20808,16 +20929,6 @@ public string FrameId private set; } - /// - /// Input node id. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] - public int BackendNodeId - { - get; - private set; - } - /// /// Input mode. /// @@ -20843,6 +20954,16 @@ internal string mode get; private set; } + + /// + /// Input node id. Only present for file choosers opened via an <input type="file" > element. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] + public int? BackendNodeId + { + get; + private set; + } } /// @@ -24511,6 +24632,17 @@ internal string recordMode set; } + /// + /// Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value + /// of 200 MB would be used. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("traceBufferSizeInKb"), IsRequired = (false))] + public double? TraceBufferSizeInKb + { + get; + set; + } + /// /// Turns on JavaScript stack sampling. /// @@ -27336,6 +27468,33 @@ internal string type } } + /// + /// WasmDisassemblyChunk + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class WasmDisassemblyChunk : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The next chunk of disassembled lines. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("lines"), IsRequired = (true))] + public string[] Lines + { + get; + set; + } + + /// + /// The bytecode offsets describing the start of each line. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("bytecodeOffsets"), IsRequired = (true))] + public int[] BytecodeOffsets + { + get; + set; + } + } + /// /// Enum of possible script languages. /// @@ -32617,6 +32776,24 @@ public System.Collections.Generic.IList return cssKeyframesRules; } } + + [System.Runtime.Serialization.DataMemberAttribute] + internal int? parentLayoutNodeId + { + get; + set; + } + + /// + /// parentLayoutNodeId + /// + public int? ParentLayoutNodeId + { + get + { + return parentLayoutNodeId; + } + } } } @@ -32872,6 +33049,34 @@ public CefSharp.DevTools.CSS.CSSSupports Supports } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetScopeTextResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SetScopeTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.CSS.CSSScope scope + { + get; + set; + } + + /// + /// scope + /// + public CefSharp.DevTools.CSS.CSSScope Scope + { + get + { + return scope; + } + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -33454,6 +33659,24 @@ public System.Threading.Tasks.Task SetSupportsTextAsync return _client.ExecuteDevToolsMethodAsync("CSS.setSupportsText", dict); } + partial void ValidateSetScopeText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); + /// + /// Modifies the expression of a scope at-rule. + /// + /// styleSheetId + /// range + /// text + /// returns System.Threading.Tasks.Task<SetScopeTextResponse> + public System.Threading.Tasks.Task SetScopeTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) + { + ValidateSetScopeText(styleSheetId, range, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("text", text); + return _client.ExecuteDevToolsMethodAsync("CSS.setScopeText", dict); + } + partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); /// /// Modifies the rule selector. @@ -34470,6 +34693,34 @@ public int[] NodeIds } } +namespace CefSharp.DevTools.DOM +{ + /// + /// GetTopLayerElementsResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetTopLayerElementsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal int[] nodeIds + { + get; + set; + } + + /// + /// nodeIds + /// + public int[] NodeIds + { + get + { + return nodeIds; + } + } + } +} + namespace CefSharp.DevTools.DOM { /// @@ -34914,6 +35165,22 @@ public event System.EventHandler PseudoElementAdded } } + /// + /// Called when top layer elements are changed. + /// + public event System.EventHandler TopLayerElementsUpdated + { + add + { + _client.AddEventHandler("DOM.topLayerElementsUpdated", value); + } + + remove + { + _client.RemoveEventHandler("DOM.topLayerElementsUpdated", value); + } + } + /// /// Called when a pseudo element is removed from an element. /// @@ -35526,6 +35793,18 @@ public System.Threading.Tasks.Task QuerySelectorAllAsy return _client.ExecuteDevToolsMethodAsync("DOM.querySelectorAll", dict); } + /// + /// Returns NodeIds of current top layer elements. + /// Top layer is rendered closest to the user within a viewport, therefore its elements always + /// appear on top of all other content. + /// + /// returns System.Threading.Tasks.Task<GetTopLayerElementsResponse> + public System.Threading.Tasks.Task GetTopLayerElementsAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DOM.getTopLayerElements", dict); + } + /// /// Re-does the last undone action. /// @@ -44517,6 +44796,22 @@ public System.Threading.Tasks.Task ClearDataForOriginAsy return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForOrigin", dict); } + partial void ValidateClearDataForStorageKey(string storageKey, string storageTypes); + /// + /// Clears storage for storage key. + /// + /// Storage key. + /// Comma separated list of StorageType to clear. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearDataForStorageKeyAsync(string storageKey, string storageTypes) + { + ValidateClearDataForStorageKey(storageKey, storageTypes); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("storageTypes", storageTypes); + return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForStorageKey", dict); + } + partial void ValidateGetCookies(string browserContextId = null); /// /// Returns all browser cookies. @@ -47114,6 +47409,116 @@ public byte[] Bytecode } } +namespace CefSharp.DevTools.Debugger +{ + /// + /// DisassembleWasmModuleResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DisassembleWasmModuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal string streamId + { + get; + set; + } + + /// + /// streamId + /// + public string StreamId + { + get + { + return streamId; + } + } + + [System.Runtime.Serialization.DataMemberAttribute] + internal int totalNumberOfLines + { + get; + set; + } + + /// + /// totalNumberOfLines + /// + public int TotalNumberOfLines + { + get + { + return totalNumberOfLines; + } + } + + [System.Runtime.Serialization.DataMemberAttribute] + internal int[] functionBodyOffsets + { + get; + set; + } + + /// + /// functionBodyOffsets + /// + public int[] FunctionBodyOffsets + { + get + { + return functionBodyOffsets; + } + } + + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.Debugger.WasmDisassemblyChunk chunk + { + get; + set; + } + + /// + /// chunk + /// + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get + { + return chunk; + } + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// NextWasmDisassemblyChunkResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class NextWasmDisassemblyChunkResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.Debugger.WasmDisassemblyChunk chunk + { + get; + set; + } + + /// + /// chunk + /// + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get + { + return chunk; + } + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -47462,6 +47867,24 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId } } + [System.Runtime.Serialization.DataMemberAttribute] + internal string status + { + get; + set; + } + + /// + /// status + /// + public string Status + { + get + { + return status; + } + } + [System.Runtime.Serialization.DataMemberAttribute] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { @@ -47800,6 +48223,37 @@ public System.Threading.Tasks.Task GetScriptSourceAsync return _client.ExecuteDevToolsMethodAsync("Debugger.getScriptSource", dict); } + partial void ValidateDisassembleWasmModule(string scriptId); + /// + /// DisassembleWasmModule + /// + /// Id of the script to disassemble + /// returns System.Threading.Tasks.Task<DisassembleWasmModuleResponse> + public System.Threading.Tasks.Task DisassembleWasmModuleAsync(string scriptId) + { + ValidateDisassembleWasmModule(scriptId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + return _client.ExecuteDevToolsMethodAsync("Debugger.disassembleWasmModule", dict); + } + + partial void ValidateNextWasmDisassemblyChunk(string streamId); + /// + /// Disassemble the next chunk of lines for the module corresponding to the + /// stream. If disassembly is complete, this API will invalidate the streamId + /// and return an empty chunk. Any subsequent calls for the now invalid stream + /// will return errors. + /// + /// streamId + /// returns System.Threading.Tasks.Task<NextWasmDisassemblyChunkResponse> + public System.Threading.Tasks.Task NextWasmDisassemblyChunkAsync(string streamId) + { + ValidateNextWasmDisassemblyChunk(streamId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("streamId", streamId); + return _client.ExecuteDevToolsMethodAsync("Debugger.nextWasmDisassemblyChunk", dict); + } + partial void ValidateGetStackTrace(CefSharp.DevTools.Runtime.StackTraceId stackTraceId); /// /// Returns stack trace with given `stackTraceId`. @@ -48111,17 +48565,24 @@ public System.Threading.Tasks.Task SetReturnValueAsync(C return _client.ExecuteDevToolsMethodAsync("Debugger.setReturnValue", dict); } - partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null); + partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null); /// /// Edits JavaScript source live. + /// + /// In general, functions that are currently on the stack can not be edited with + /// a single exception: If the edited function is the top-most stack frame and + /// that is the only activation of that function on the stack. In this case + /// the live edit will be successful and a `Debugger.restartFrame` for the + /// top-most function is automatically triggered. /// /// Id of the script to edit. /// New content of the script. /// If true the change will not actually be applied. Dry run may be used to get resultdescription without actually modifying the code. + /// If true, then `scriptSource` is allowed to change the function on top of the stackas long as the top-most stack frame is the only activation of that function. /// returns System.Threading.Tasks.Task<SetScriptSourceResponse> - public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null) + public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null) { - ValidateSetScriptSource(scriptId, scriptSource, dryRun); + ValidateSetScriptSource(scriptId, scriptSource, dryRun, allowTopFrameEditing); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scriptId", scriptId); dict.Add("scriptSource", scriptSource); @@ -48130,6 +48591,11 @@ public System.Threading.Tasks.Task SetScriptSourceAsync dict.Add("dryRun", dryRun.Value); } + if (allowTopFrameEditing.HasValue) + { + dict.Add("allowTopFrameEditing", allowTopFrameEditing.Value); + } + return _client.ExecuteDevToolsMethodAsync("Debugger.setScriptSource", dict); } diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index bec8c114f..efde39d03 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 104.0.5112.81 +// CHROMIUM VERSION 105.0.5195.102 namespace CefSharp.DevTools.Accessibility { /// @@ -650,6 +650,16 @@ public CefSharp.DevTools.Accessibility.AXValue Role set; } + /// + /// This `Node`'s Chrome raw role. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("chromeRole")] + public CefSharp.DevTools.Accessibility.AXValue ChromeRole + { + get; + set; + } + /// /// The accessible name for this `Node`. /// @@ -2535,6 +2545,11 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventPath")] EventPath, /// + /// ExpectCTHeader + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExpectCTHeader")] + ExpectCTHeader, + /// /// GeolocationInsecureOrigin /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("GeolocationInsecureOrigin")] @@ -2585,6 +2600,16 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaSourceDurationTruncatingBuffered")] MediaSourceDurationTruncatingBuffered, /// + /// NavigateEventRestoreScroll + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigateEventRestoreScroll")] + NavigateEventRestoreScroll, + /// + /// NavigateEventTransitionWhile + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigateEventTransitionWhile")] + NavigateEventTransitionWhile, + /// /// NoSysexWebMIDIWithoutPermission /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoSysexWebMIDIWithoutPermission")] @@ -2610,6 +2635,11 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("OpenWebDatabaseInsecureContext")] OpenWebDatabaseInsecureContext, /// + /// OverflowVisibleOnReplacedElement + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("OverflowVisibleOnReplacedElement")] + OverflowVisibleOnReplacedElement, + /// /// PictureSourceSrc /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("PictureSourceSrc")] @@ -4467,6 +4497,17 @@ public System.Collections.Generic.IList Layers get; set; } + + /// + /// @scope CSS at-rule array. + /// The array enumerates @scope at-rules starting with the innermost one, going outwards. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scopes")] + public System.Collections.Generic.IList Scopes + { + get; + set; + } } /// @@ -5058,6 +5099,44 @@ public string StyleSheetId } } + /// + /// CSS Scope at-rule descriptor. + /// + public partial class CSSScope : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Scope rule text. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Text + { + get; + set; + } + + /// + /// The associated rule header range in the enclosing stylesheet (if + /// available). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + public CefSharp.DevTools.CSS.SourceRange Range + { + get; + set; + } + + /// + /// Identifier of the stylesheet containing this object (if exists). + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + } + /// /// CSS Layer at-rule descriptor. /// @@ -10374,6 +10453,11 @@ public enum ResourceType [System.Text.Json.Serialization.JsonPropertyNameAttribute("Fetch")] Fetch, /// + /// Prefetch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Prefetch")] + Prefetch, + /// /// EventSource /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventSource")] @@ -11272,6 +11356,28 @@ public CefSharp.DevTools.Network.CertificateTransparencyCompliance CertificateTr get; set; } + + /// + /// The signature algorithm used by the server in the TLS server signature, + /// represented as a TLS SignatureScheme code point. Omitted if not + /// applicable or not known. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("serverSignatureAlgorithm")] + public int? ServerSignatureAlgorithm + { + get; + set; + } + + /// + /// Whether the connection used Encrypted ClientHello + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("encryptedClientHello")] + public bool EncryptedClientHello + { + get; + set; + } } /// @@ -16818,6 +16924,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("execution-while-not-rendered")] ExecutionWhileNotRendered, /// + /// federated-credentials + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("federated-credentials")] + FederatedCredentials, + /// /// focus-without-user-activation /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("focus-without-user-activation")] @@ -16933,6 +17044,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-autofill")] SharedAutofill, /// + /// shared-storage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage")] + SharedStorage, + /// /// storage-access-api /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("storage-access-api")] @@ -16993,7 +17109,12 @@ public enum PermissionsPolicyBlockReason /// InFencedFrameTree /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("InFencedFrameTree")] - InFencedFrameTree + InFencedFrameTree, + /// + /// InIsolatedApp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InIsolatedApp")] + InIsolatedApp } /// @@ -19391,22 +19512,22 @@ public string FrameId } /// - /// Input node id. + /// Input mode. /// [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] - public int BackendNodeId + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mode")] + public CefSharp.DevTools.Page.FileChooserOpenedMode Mode { get; private set; } /// - /// Input mode. + /// Input node id. Only present for file choosers opened via an <input type="file" > element. /// [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mode")] - public CefSharp.DevTools.Page.FileChooserOpenedMode Mode + [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + public int? BackendNodeId { get; private set; @@ -22883,6 +23004,17 @@ public CefSharp.DevTools.Tracing.TraceConfigRecordMode? RecordMode set; } + /// + /// Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value + /// of 200 MB would be used. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("traceBufferSizeInKb")] + public double? TraceBufferSizeInKb + { + get; + set; + } + /// /// Turns on JavaScript stack sampling. /// @@ -25475,6 +25607,33 @@ public CefSharp.DevTools.Debugger.BreakLocationType? Type } } + /// + /// WasmDisassemblyChunk + /// + public partial class WasmDisassemblyChunk : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The next chunk of disassembled lines. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("lines")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Lines + { + get; + set; + } + + /// + /// The bytecode offsets describing the start of each line. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("bytecodeOffsets")] + public int[] BytecodeOffsets + { + get; + set; + } + } + /// /// Enum of possible script languages. /// @@ -30357,6 +30516,17 @@ public System.Collections.Generic.IList get; private set; } + + /// + /// parentLayoutNodeId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentLayoutNodeId")] + public int? ParentLayoutNodeId + { + get; + private set; + } } } @@ -30540,6 +30710,26 @@ public CefSharp.DevTools.CSS.CSSSupports Supports } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetScopeTextResponse + /// + public class SetScopeTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// scope + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scope")] + public CefSharp.DevTools.CSS.CSSScope Scope + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -31075,6 +31265,24 @@ public System.Threading.Tasks.Task SetSupportsTextAsync return _client.ExecuteDevToolsMethodAsync("CSS.setSupportsText", dict); } + partial void ValidateSetScopeText(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text); + /// + /// Modifies the expression of a scope at-rule. + /// + /// styleSheetId + /// range + /// text + /// returns System.Threading.Tasks.Task<SetScopeTextResponse> + public System.Threading.Tasks.Task SetScopeTextAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string text) + { + ValidateSetScopeText(styleSheetId, range, text); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("text", text); + return _client.ExecuteDevToolsMethodAsync("CSS.setScopeText", dict); + } + partial void ValidateSetRuleSelector(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string selector); /// /// Modifies the rule selector. @@ -31895,6 +32103,26 @@ public int[] NodeIds } } +namespace CefSharp.DevTools.DOM +{ + /// + /// GetTopLayerElementsResponse + /// + public class GetTopLayerElementsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// nodeIds + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + public int[] NodeIds + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.DOM { /// @@ -32268,6 +32496,22 @@ public event System.EventHandler PseudoElementAdded } } + /// + /// Called when top layer elements are changed. + /// + public event System.EventHandler TopLayerElementsUpdated + { + add + { + _client.AddEventHandler("DOM.topLayerElementsUpdated", value); + } + + remove + { + _client.RemoveEventHandler("DOM.topLayerElementsUpdated", value); + } + } + /// /// Called when a pseudo element is removed from an element. /// @@ -32880,6 +33124,18 @@ public System.Threading.Tasks.Task QuerySelectorAllAsy return _client.ExecuteDevToolsMethodAsync("DOM.querySelectorAll", dict); } + /// + /// Returns NodeIds of current top layer elements. + /// Top layer is rendered closest to the user within a viewport, therefore its elements always + /// appear on top of all other content. + /// + /// returns System.Threading.Tasks.Task<GetTopLayerElementsResponse> + public System.Threading.Tasks.Task GetTopLayerElementsAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DOM.getTopLayerElements", dict); + } + /// /// Re-does the last undone action. /// @@ -41157,6 +41413,22 @@ public System.Threading.Tasks.Task ClearDataForOriginAsy return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForOrigin", dict); } + partial void ValidateClearDataForStorageKey(string storageKey, string storageTypes); + /// + /// Clears storage for storage key. + /// + /// Storage key. + /// Comma separated list of StorageType to clear. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearDataForStorageKeyAsync(string storageKey, string storageTypes) + { + ValidateClearDataForStorageKey(storageKey, storageTypes); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("storageTypes", storageTypes); + return _client.ExecuteDevToolsMethodAsync("Storage.clearDataForStorageKey", dict); + } + partial void ValidateGetCookies(string browserContextId = null); /// /// Returns all browser cookies. @@ -43529,6 +43801,79 @@ public byte[] Bytecode } } +namespace CefSharp.DevTools.Debugger +{ + /// + /// DisassembleWasmModuleResponse + /// + public class DisassembleWasmModuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// streamId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("streamId")] + public string StreamId + { + get; + private set; + } + + /// + /// totalNumberOfLines + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalNumberOfLines")] + public int TotalNumberOfLines + { + get; + private set; + } + + /// + /// functionBodyOffsets + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionBodyOffsets")] + public int[] FunctionBodyOffsets + { + get; + private set; + } + + /// + /// chunk + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("chunk")] + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Debugger +{ + /// + /// NextWasmDisassemblyChunkResponse + /// + public class NextWasmDisassemblyChunkResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// chunk + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("chunk")] + public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -43764,6 +44109,17 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId private set; } + /// + /// status + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + public string Status + { + get; + private set; + } + /// /// exceptionDetails /// @@ -44095,6 +44451,37 @@ public System.Threading.Tasks.Task GetScriptSourceAsync return _client.ExecuteDevToolsMethodAsync("Debugger.getScriptSource", dict); } + partial void ValidateDisassembleWasmModule(string scriptId); + /// + /// DisassembleWasmModule + /// + /// Id of the script to disassemble + /// returns System.Threading.Tasks.Task<DisassembleWasmModuleResponse> + public System.Threading.Tasks.Task DisassembleWasmModuleAsync(string scriptId) + { + ValidateDisassembleWasmModule(scriptId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("scriptId", scriptId); + return _client.ExecuteDevToolsMethodAsync("Debugger.disassembleWasmModule", dict); + } + + partial void ValidateNextWasmDisassemblyChunk(string streamId); + /// + /// Disassemble the next chunk of lines for the module corresponding to the + /// stream. If disassembly is complete, this API will invalidate the streamId + /// and return an empty chunk. Any subsequent calls for the now invalid stream + /// will return errors. + /// + /// streamId + /// returns System.Threading.Tasks.Task<NextWasmDisassemblyChunkResponse> + public System.Threading.Tasks.Task NextWasmDisassemblyChunkAsync(string streamId) + { + ValidateNextWasmDisassemblyChunk(streamId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("streamId", streamId); + return _client.ExecuteDevToolsMethodAsync("Debugger.nextWasmDisassemblyChunk", dict); + } + partial void ValidateGetStackTrace(CefSharp.DevTools.Runtime.StackTraceId stackTraceId); /// /// Returns stack trace with given `stackTraceId`. @@ -44406,17 +44793,24 @@ public System.Threading.Tasks.Task SetReturnValueAsync(C return _client.ExecuteDevToolsMethodAsync("Debugger.setReturnValue", dict); } - partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null); + partial void ValidateSetScriptSource(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null); /// /// Edits JavaScript source live. + /// + /// In general, functions that are currently on the stack can not be edited with + /// a single exception: If the edited function is the top-most stack frame and + /// that is the only activation of that function on the stack. In this case + /// the live edit will be successful and a `Debugger.restartFrame` for the + /// top-most function is automatically triggered. /// /// Id of the script to edit. /// New content of the script. /// If true the change will not actually be applied. Dry run may be used to get resultdescription without actually modifying the code. + /// If true, then `scriptSource` is allowed to change the function on top of the stackas long as the top-most stack frame is the only activation of that function. /// returns System.Threading.Tasks.Task<SetScriptSourceResponse> - public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null) + public System.Threading.Tasks.Task SetScriptSourceAsync(string scriptId, string scriptSource, bool? dryRun = null, bool? allowTopFrameEditing = null) { - ValidateSetScriptSource(scriptId, scriptSource, dryRun); + ValidateSetScriptSource(scriptId, scriptSource, dryRun, allowTopFrameEditing); var dict = new System.Collections.Generic.Dictionary(); dict.Add("scriptId", scriptId); dict.Add("scriptSource", scriptSource); @@ -44425,6 +44819,11 @@ public System.Threading.Tasks.Task SetScriptSourceAsync dict.Add("dryRun", dryRun.Value); } + if (allowTopFrameEditing.HasValue) + { + dict.Add("allowTopFrameEditing", allowTopFrameEditing.Value); + } + return _client.ExecuteDevToolsMethodAsync("Debugger.setScriptSource", dict); } From 3899f3226827a1b8c7582fa57cd8bee4ed17a35d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 8 Sep 2022 11:17:05 +1000 Subject: [PATCH 097/543] Test - Renable JavascriptBinding IntegrationTestFacts - Now that https://bitbucket.org/chromiumembedded/cef/issues/3260/support-reconnect-of-mojo-frame-channel has been resovled see if the tests will run on appveyor reliable - Use a new RequestContext to isolate the unreliable test cases. Issue #3867 --- .../JavascriptBinding/IntegrationTestFacts.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs b/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs index 06533d08e..2706976d1 100644 --- a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs +++ b/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs @@ -74,11 +74,13 @@ public async Task LoadJavaScriptBindingQunitTestsSuccessfulCompletion() } #else - // Issue https://github.com/cefsharp/CefSharp/issues/3867 - [SkipIfRunOnAppVeyorFact] + [Fact] public async Task LoadJavaScriptBindingQunitTestsSuccessfulCompletion() { - using (var browser = new ChromiumWebBrowser(CefExample.BindingTestUrl, automaticallyCreateBrowser: false)) + var requestContext = new RequestContext(); + requestContext.RegisterSchemeHandlerFactory("https", CefExample.ExampleDomain, new CefSharpSchemeHandlerFactory()); + + using (var browser = new ChromiumWebBrowser(CefExample.BindingTestUrl, requestContext: requestContext, automaticallyCreateBrowser: false)) { //TODO: Extract this into some sort of helper setup method var bindingOptions = BindingOptions.DefaultBinder; @@ -160,8 +162,7 @@ public async Task LoadJavaScriptBindingAsyncTaskQunitTestsSuccessfulCompletion() } } - [SkipIfRunOnAppVeyorFact()] - //Skipping Issue https://github.com/cefsharp/CefSharp/issues/3867 + [Fact] public async Task LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion() { var requestContext = new RequestContext(); From 303ad85449e79387d21148bad2c1722cc4fdd794 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 8 Sep 2022 13:17:33 +1000 Subject: [PATCH 098/543] Revert "Test - Renable JavascriptBinding IntegrationTestFacts" This partially reverts commit 3899f3226827a1b8c7582fa57cd8bee4ed17a35d. - Keep new RequestContext test code --- CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs b/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs index 2706976d1..b872be25e 100644 --- a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs +++ b/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs @@ -74,7 +74,8 @@ public async Task LoadJavaScriptBindingQunitTestsSuccessfulCompletion() } #else - [Fact] + // Issue https://github.com/cefsharp/CefSharp/issues/3867 + [SkipIfRunOnAppVeyorFact] public async Task LoadJavaScriptBindingQunitTestsSuccessfulCompletion() { var requestContext = new RequestContext(); @@ -162,7 +163,8 @@ public async Task LoadJavaScriptBindingAsyncTaskQunitTestsSuccessfulCompletion() } } - [Fact] + [SkipIfRunOnAppVeyorFact()] + //Skipping Issue https://github.com/cefsharp/CefSharp/issues/3867 public async Task LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion() { var requestContext = new RequestContext(); From b150993d672bb34a16deb244cdfa760f1bba99a3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 12 Sep 2022 11:03:09 +1000 Subject: [PATCH 099/543] CefSharp.Dom - Don't Dispose DevToolsContext Disposing of the DevToolsContext is causing problems currently as sending the DevTools protocol messages to the browser is happening after the CefBrowserHost instance has been Disposed. A separate method of disposing of the DevToolsContext will need to be added that does a cleanup without sending the commands. Issue https://github.com/cefsharp/CefSharp.Dom/issues/41 --- .../Partial/ChromiumWebBrowser.Partial.cs | 2 +- CefSharp/WebBrowserExtensions.cs | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index f98ce1bd1..555bb1d24 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -499,7 +499,7 @@ private void FreeHandlersExceptLifeSpanAndFocus() ResourceRequestHandlerFactory = null; RenderProcessMessageHandler = null; - this.DisposeDevToolsContext(); + this.FreeDevToolsContext(); } /// diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index 18655551a..243ee88c4 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -1796,7 +1796,7 @@ public static void SetAsPopup(this IWebBrowser browser) } /// - /// Dispose of the DevTools Context (if any). Used in conjunction with CefSharp.Puppeteer + /// Dispose of the DevToolsContext (if any). Used in conjunction with CefSharp.Dom /// /// ChromiumWebBrowser instance public static void DisposeDevToolsContext(this IWebBrowserInternal webBrowserInternal) @@ -1810,6 +1810,20 @@ public static void DisposeDevToolsContext(this IWebBrowserInternal webBrowserInt webBrowserInternal.DevToolsContext = null; } + /// + /// Set the property to null. Used in conjunction with CefSharp.Dom + /// + /// ChromiumWebBrowser instance + public static void FreeDevToolsContext(this IWebBrowserInternal webBrowserInternal) + { + if (webBrowserInternal == null) + { + return; + } + + webBrowserInternal.DevToolsContext = null; + } + /// /// Function used to encode the params passed to , /// and From fa89f9c9c6a25d9fefcd9335d2bfc7e2ba71d349 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 19 Sep 2022 13:04:12 +1000 Subject: [PATCH 100/543] README.md - Update as 105 released --- .github/ISSUE_TEMPLATE/bug_report.md | 15 +++++++-------- CONTRIBUTING.md | 6 +++--- README.md | 5 +++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index ee9c3440f..bf5990b1a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,15 +15,14 @@ So you have a question to ask, where can you look for answers? Read on. Think yo - Check out the FAQ, lots of useful information there, specially if your having trouble deploying to a different machine : https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions - GitHub proves a fantastic search feature, it'll search through past issues and code. So check that out (Search box at the top of this page) : https://github.com/cefsharp/CefSharp - You can see all the `CefSharp` tagged issues on `Stackoverflow`, some useful stuff there : http://stackoverflow.com/questions/tagged/cefsharp -- You can search the `Gitter Chat Channel` for past questions/conversations, you can search through every discussion from the beginning : https://gitter.im/cefsharp/CefSharp -Still have a question? Great, ask it on [Discussions](https://github.com/cefsharp/CefSharp/discussions) or [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp). Larger complex questions should be asked on `Stackoverflow` +Still have a question? Great, ask it on [Discussions](https://github.com/cefsharp/CefSharp/discussions) or [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp). Larger complex questions should be asked on `Discussions` **Note: CefSharp is just a wrapper around the Chromium Embedded Project, it's worth searching http://magpcss.org/ceforum/index.php if your problem involves a low level Chromium error message** We ask that you put in a reasonable amount of effort in searching through the resources listed above. The developers have full time jobs, they have lives, families, the time they have available to contribute this project is a precious resource, make sure you use it wisely! Remember the more time we spend answering the same questions over and over again, less time goes into writing code, adding new features, actually fixing bugs! -Still have a question to ask or unsure where to go next? Start with the Gitter Chat room : https://gitter.im/cefsharp/CefSharp +Still have a question to ask or unsure where to go next? Start with the Gitter Chat room : https://github.com/cefsharp/CefSharp/discussions Before posting a bug report please take the time to read https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/ @@ -32,9 +31,9 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 104.4.180 or greater. + - Please only create an issue if you can reproduce the problem with version 105.3.330 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 104.4.180 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 105.3.330 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** @@ -69,9 +68,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_104.4.18%2Bg2587cf2%2Bchromium-104.0.5112.81_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_104.4.18%2Bg2587cf2%2Bchromium-104.0.5112.81_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_104.4.18%2Bg2587cf2%2Bchromium-104.0.5112.81_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4870ceb69..e197e0c9d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_104.4.18%2Bg2587cf2%2Bchromium-104.0.5112.81_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_104.4.18%2Bg2587cf2%2Bchromium-104.0.5112.81_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_104.4.18%2Bg2587cf2%2Bchromium-104.0.5112.81_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index f85a54229..3c87338c1 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,9 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5112 | 2019* | 4.5.2** | Development | -| [cefsharp/104](https://github.com/cefsharp/CefSharp/tree/cefsharp/104)| 5112 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5195 | 2019* | 4.5.2** | Development | +| [cefsharp/105](https://github.com/cefsharp/CefSharp/tree/cefsharp/105)| 5195 | 2019* | 4.5.2** | **Release** | +| [cefsharp/104](https://github.com/cefsharp/CefSharp/tree/cefsharp/104)| 5112 | 2019* | 4.5.2** | Unsupported | | [cefsharp/103](https://github.com/cefsharp/CefSharp/tree/cefsharp/103)| 5060 | 2019* | 4.5.2** | Unsupported | | [cefsharp/102](https://github.com/cefsharp/CefSharp/tree/cefsharp/102)| 5005 | 2019* | 4.5.2** | Unsupported | | [cefsharp/101](https://github.com/cefsharp/CefSharp/tree/cefsharp/101)| 4951 | 2019* | 4.5.2** | Unsupported | From 979f79bb5221d53f8c4362d9f2e820434c04b780 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 19 Sep 2022 13:31:37 +1000 Subject: [PATCH 101/543] Nuget - Update NetCore Readme.txt - Minor improvements --- NuGet/PackageReference/Readme.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NuGet/PackageReference/Readme.txt b/NuGet/PackageReference/Readme.txt index 72b4a905b..1a5ad4790 100644 --- a/NuGet/PackageReference/Readme.txt +++ b/NuGet/PackageReference/Readme.txt @@ -1,4 +1,4 @@ -CefSharp .Net Core/.Net 5.0 Nuget Package +CefSharp .Net Core/.Net 5.0+ Nuget Package Background: CefSharp is a .Net wrapping library for CEF (Chromium Embedded Framework) https://bitbucket.org/chromiumembedded/cef @@ -6,11 +6,11 @@ Background: Post Installation: - Read the release notes for your version https://github.com/cefsharp/CefSharp/releases (Any known issues will be listed here) - - Read the `Need to know/limitations` section of the General usage guide (https://github.com/cefsharp/CefSharp/wiki/General-Usage#need-to-knowlimitations) - - It is recommended that you set a during development, adding the following to your project file $(NETCoreSdkRuntimeIdentifier) will use the default for your operating system. + - It is recommended that you set a during development, adding the following to your project file $(NETCoreSdkRuntimeIdentifier) Please read https://github.com/cefsharp/CefSharp/issues/3284#issuecomment-772132523 for more information. + - Read the `Need to know/limitations` section of the General usage guide (https://github.com/cefsharp/CefSharp/wiki/General-Usage#need-to-knowlimitations) - Check your output `\bin` directory to make sure the appropriate references have been copied. - - Add an app.manifest to your exe if you don't already have one, it's required for Windows 10 compatability, HighDPI support and tooltips. The https://github.com/cefsharp/CefSharp.MinimalExample project contains an example app.manifest file in the root of the WPF/WinForms/OffScreen examples. + - Add an app.manifest to your exe if you don't already have one, it's required for Windows 10 compatability, HighDPI support and tooltips. The https://github.com/cefsharp/CefSharp.MinimalExample project contains an example app.manifest file in the root of the WPF/WinForms/OffScreen examples. Deployment: - Make sure a minimum of `Visual C++ 2019` is installed (`x86`, `x64` or `arm64` depending on your build) or package the runtime dlls with your application, see the FAQ for details. @@ -19,7 +19,7 @@ What's New: See https://github.com/cefsharp/CefSharp/wiki/ChangeLog Basic Troubleshooting: - - Minimum of .Net Core 3.1 (.Net 5.0 is supported) + - Minimum of .Net Core 3.1 (.Net 5.0 and greater are also supported) - Minimum of `Visual C++ 2019 Redist` is installed (either `x86`, `x64` or `arm64` depending on your application). - Please ensure your output directory contains these required dependencies: * libcef.dll (Chromium Embedded Framework Core library) From 71562dddc80618a7e8b4271e8c5b1ca275bef08c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 19 Sep 2022 14:29:39 +1000 Subject: [PATCH 102/543] WPF - Add WritableBitmapRenderHandler.CopyOnlyDirtyRect (defaults to false) - To improve performance we can only copy the part of the DirtyRect that was changed currently disabled by default, can be enabled once more testing one. --- .../Rendering/WritableBitmapRenderHandler.cs | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs b/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs index 26ebf27b8..b0f14f2f6 100644 --- a/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs +++ b/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs @@ -39,6 +39,16 @@ public WritableBitmapRenderHandler(double dpiX, double dpiY, bool invalidateDirt this.dispatcherPriority = dispatcherPriority; } + /// + /// When true if the Dirty Rect (rectangle that's to be updated) + /// is smaller than the full width/height then only copy the Dirty Rect + /// from the CEF native buffer to our own managed buffer. + /// Set to true to improve performance when only a small portion of the screen is updated. + /// Defaults to false currently. + /// + public bool CopyOnlyDirtyRect { get; set; } + + /// protected override void CreateOrUpdateBitmap(bool isPopup, Rect dirtyRect, IntPtr buffer, int width, int height, Image image, ref Size currentSize, ref MemoryMappedFile mappedFile, ref MemoryMappedViewAccessor viewAccessor) { bool createNewBitmap = false; @@ -68,7 +78,36 @@ protected override void CreateOrUpdateBitmap(bool isPopup, Rect dirtyRect, IntPt currentSize.Width = width; } - NativeMethodWrapper.MemoryCopy(viewAccessor.SafeMemoryMappedViewHandle.DangerousGetHandle(), buffer, numberOfBytes); + if (CopyOnlyDirtyRect) + { + // For full buffer update we just perform a simple copy + // otherwise only a portion will be updated. + if (width == dirtyRect.Width && height == dirtyRect.Height) + { + NativeMethodWrapper.MemoryCopy(viewAccessor.SafeMemoryMappedViewHandle.DangerousGetHandle(), buffer, numberOfBytes); + } + else + { + //TODO: We can probably perform some minor optimisations here. + //var numberOfBytesToCopy = dirtyRect.Width * BytesPerPixel; + //var safeMemoryMappedViewHandle = viewAccessor.SafeMemoryMappedViewHandle.DangerousGetHandle(); + + //for (int offset = width * dirtyRect.Y + dirtyRect.X; offset < (dirtyRect.Y + dirtyRect.Height) * width; offset += width) + //{ + // var b = offset * BytesPerPixel; + // NativeMethodWrapper.MemoryCopy(safeMemoryMappedViewHandle + b, buffer + b, numberOfBytesToCopy); + //} + + for (int offset = width * dirtyRect.Y + dirtyRect.X; offset < (dirtyRect.Y + dirtyRect.Height) * width; offset += width) + { + NativeMethodWrapper.MemoryCopy(viewAccessor.SafeMemoryMappedViewHandle.DangerousGetHandle() + offset * BytesPerPixel, buffer + offset * BytesPerPixel, dirtyRect.Width * BytesPerPixel); + } + } + } + else + { + NativeMethodWrapper.MemoryCopy(viewAccessor.SafeMemoryMappedViewHandle.DangerousGetHandle(), buffer, numberOfBytes); + } //Take a reference to the sourceBuffer that's used to update our WritableBitmap, //once we're on the UI thread we need to check if it's still valid From 0ad6310e87ec7d9ef77f4ced0eca7c625cc509b0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 19 Sep 2022 12:58:34 +1000 Subject: [PATCH 103/543] Upgrade to 105.3.39+g2ec21f9+chromium-105.0.5195.127 / Chromium 105.0.5195.127 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 2c4b29a3a..e80be8503 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index b308a49ce..e0728aefb 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 81ba8cf9f..70885003b 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 105,3,330 - PRODUCTVERSION 105,3,330 + FILEVERSION 105,3,390 + PRODUCTVERSION 105,3,390 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "105.3.330" + VALUE "FileVersion", "105.3.390" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "105.3.330" + VALUE "ProductVersion", "105.3.390" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 5522fdffd..74f4c1208 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index b2659c7bf..44a53623c 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 2c8389140..8bd2ae071 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 7bf9adbd3..660609a8e 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 46194d6a5..20bdef743 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 374210381..37b67584d 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 105,3,330 - PRODUCTVERSION 105,3,330 + FILEVERSION 105,3,390 + PRODUCTVERSION 105,3,390 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "105.3.330" + VALUE "FileVersion", "105.3.390" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "105.3.330" + VALUE "ProductVersion", "105.3.390" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 5522fdffd..74f4c1208 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index b2659c7bf..44a53623c 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 60ca56fa0..6e57cf314 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index d377830b0..a52e37521 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 6f057c5ff..3afde4327 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 8b8d6293f..8fb2c0a49 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index a588b5634..e1766661e 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 3fde43dcd..461ee0e5e 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 0688abe70..2a6dbd735 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index a275be8b8..e1d90305d 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 8d6f1c48f..a9e6def53 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 5311c540e..af4bd93c3 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 8ad0e5c27..0522c7fe3 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index e69c36f6b..586373d99 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 105.3.330 + 105.3.390 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 105.3.330 + Version 105.3.390 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index b083f0939..e8752d2a9 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "105.3.330"; - public const string AssemblyFileVersion = "105.3.330.0"; + public const string AssemblyVersion = "105.3.390"; + public const string AssemblyFileVersion = "105.3.390.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 0b357f591..2bb2c9598 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 0d2573612..bcbd48258 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 5e683bdb8..08db49343 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index e1cd0b601..a39c47bf3 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "105.3.33", + [string] $CefVersion = "105.3.39", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 87e084dc4..ff6613811 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 105.3.330-CI{build} +version: 105.3.390-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 61317115a..dddc52607 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "105.3.330", + [string] $Version = "105.3.390", [Parameter(Position = 2)] - [string] $AssemblyVersion = "105.3.330", + [string] $AssemblyVersion = "105.3.390", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From a819fc4e4dbf2bede96a524c9fc68e8400a45591 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 19 Sep 2022 16:34:37 +1000 Subject: [PATCH 104/543] Test - Add EvaluateScriptAsPromiseAsyncFacts - Move tests from OffScreenBrowserBasicFacts - Enable Cef.WaitForBrowsersToClose(); --- CefSharp.Test/CefSharpFixture.cs | 2 + .../EvaluateScriptAsPromiseAsyncFacts.cs | 95 +++++++++++++++++++ .../OffScreen/OffScreenBrowserBasicFacts.cs | 92 ------------------ 3 files changed, 97 insertions(+), 92 deletions(-) create mode 100644 CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs diff --git a/CefSharp.Test/CefSharpFixture.cs b/CefSharp.Test/CefSharpFixture.cs index 55990b246..f68132671 100644 --- a/CefSharp.Test/CefSharpFixture.cs +++ b/CefSharp.Test/CefSharpFixture.cs @@ -63,6 +63,8 @@ private void CefShutdown() { if (Cef.IsInitialized) { + Cef.WaitForBrowsersToClose(); + Cef.Shutdown(); } diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs new file mode 100644 index 000000000..4bc9f6839 --- /dev/null +++ b/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs @@ -0,0 +1,95 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using CefSharp.Example; +using CefSharp.OffScreen; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Javascript +{ + [Collection(CefSharpFixtureCollection.Key)] + public class EvaluateScriptAsPromiseAsyncFacts : IClassFixture + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture collectionFixture; + private readonly ChromiumWebBrowserOffScreenFixture classFixture; + + public EvaluateScriptAsPromiseAsyncFacts(ITestOutputHelper output, CefSharpFixture collectionFixture, ChromiumWebBrowserOffScreenFixture classFixture) + { + this.output = output; + this.collectionFixture = collectionFixture; + this.classFixture = classFixture; + } + + [Theory] + [InlineData("return 42;", true, "42")] + [InlineData("return new Promise(function(resolve, reject) { resolve(42); });", true, "42")] + [InlineData("return new Promise(function(resolve, reject) { reject('reject test'); });", false, "reject test")] + [InlineData("return await 42;", true, "42")] + [InlineData("return await (function() { throw('reject test'); })();", false, "reject test")] + [InlineData("var result = await fetch('./robots.txt'); return result.status;", true, "200")] + public async Task CanEvaluateScriptAsPromiseAsync(string script, bool success, string expected) + { + using (var browser = new ChromiumWebBrowser("http://www.google.com")) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + + var javascriptResponse = await browser.EvaluateScriptAsPromiseAsync(script); + + Assert.Equal(success, javascriptResponse.Success); + + if (success) + { + Assert.Equal(expected, javascriptResponse.Result.ToString()); + } + else + { + Assert.Equal(expected, javascriptResponse.Message); + } + } + } + + [Theory] + [InlineData("return { a: 'CefSharp', b: 42, };", true, "CefSharp", "42")] + [InlineData("return new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", true, "CefSharp", "42")] + [InlineData("return new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", true, "CefSharp", "42")] + [InlineData("return await { a: 'CefSharp', b: 42, };", true, "CefSharp", "42")] + [InlineData("return await new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); }); ", true, "CefSharp", "42")] + [InlineData("function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result;", true, "CefSharp", "42")] + public async Task CanEvaluateScriptAsPromiseAsyncReturnObject(string script, bool success, string expectedA, string expectedB) + { + using (var browser = new ChromiumWebBrowser("http://www.google.com")) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + + var javascriptResponse = await browser.EvaluateScriptAsPromiseAsync(script); + + Assert.Equal(success, javascriptResponse.Success); + + if (success) + { + dynamic result = javascriptResponse.Result; + Assert.Equal(expectedA, result.a.ToString()); + Assert.Equal(expectedB, result.b.ToString()); + } + else + { + throw new System.Exception("Failed"); + } + } + } + } +} diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs index 8cecd2c81..f4f5528e1 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs @@ -342,98 +342,6 @@ public async Task CanEvaluateScriptAsyncWithEncodedStringArguments() } } - [Theory] - [InlineData("lowerCustom")] - [InlineData("UpperCustom")] - public async Task CanEvaluateScriptAsPromiseAsyncJavascriptBindingApiGlobalObjectName(string rootObjName) - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", automaticallyCreateBrowser:false)) - { - browser.JavascriptObjectRepository.Settings.JavascriptBindingApiGlobalObjectName = rootObjName; - browser.CreateBrowser(); - - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsPromiseAsync("return new Promise(function(resolve, reject) { resolve(42); });"); - - Assert.True(javascriptResponse.Success); - - Assert.Equal("42", javascriptResponse.Result.ToString()); - } - } - - [Theory] - [InlineData("return 42;", true, "42")] - [InlineData("return new Promise(function(resolve, reject) { resolve(42); });", true, "42")] - [InlineData("return new Promise(function(resolve, reject) { reject('reject test'); });", false, "reject test")] - [InlineData("return await 42;", true, "42")] - [InlineData("return await (function() { throw('reject test'); })();", false, "reject test")] - [InlineData("var result = await fetch('./robots.txt'); return result.status;", true, "200")] - public async Task CanEvaluateScriptAsPromiseAsync(string script, bool success, string expected) - { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsPromiseAsync(script); - - Assert.Equal(success, javascriptResponse.Success); - - if (success) - { - Assert.Equal(expected, javascriptResponse.Result.ToString()); - } - else - { - Assert.Equal(expected, javascriptResponse.Message); - } - } - } - - [Theory] - [InlineData("return { a: 'CefSharp', b: 42, };", true, "CefSharp", "42")] - [InlineData("return new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", true, "CefSharp", "42")] - [InlineData("return new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", true, "CefSharp", "42")] - [InlineData("return await { a: 'CefSharp', b: 42, };", true, "CefSharp", "42")] - [InlineData("return await new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); }); ", true, "CefSharp", "42")] - public async Task CanEvaluateScriptAsPromiseAsyncReturnObject(string script, bool success, string expectedA, string expectedB) - { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsPromiseAsync(script); - - Assert.Equal(success, javascriptResponse.Success); - - if (success) - { - dynamic result = javascriptResponse.Result; - Assert.Equal(expectedA, result.a.ToString()); - Assert.Equal(expectedB, result.b.ToString()); - } - else - { - throw new System.Exception("Failed"); - } - } - } - [Fact] public async Task CanMakeFrameUrlRequest() { From da94de224e47e5de2b8ca21838e63cf8a2e6e324 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 21 Sep 2022 10:02:14 +1000 Subject: [PATCH 105/543] Upgrade to 106.0.20+g354064a+chromium-106.0.5249.12 / Chromium 106.0.5249.12 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index e80be8503..714ec7e05 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index e0728aefb..0101f2648 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 70885003b..2a6f9bbc6 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 105,3,390 - PRODUCTVERSION 105,3,390 + FILEVERSION 106,0,200 + PRODUCTVERSION 106,0,200 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "105.3.390" + VALUE "FileVersion", "106.0.200" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "105.3.390" + VALUE "ProductVersion", "106.0.200" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 74f4c1208..b134cdc47 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 44a53623c..70558d7f7 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 8bd2ae071..b7536cd16 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 660609a8e..353a62729 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 20bdef743..9ee4d0f90 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 37b67584d..d8386bc81 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 105,3,390 - PRODUCTVERSION 105,3,390 + FILEVERSION 106,0,200 + PRODUCTVERSION 106,0,200 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "105.3.390" + VALUE "FileVersion", "106.0.200" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "105.3.390" + VALUE "ProductVersion", "106.0.200" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 74f4c1208..b134cdc47 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 44a53623c..70558d7f7 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 6e57cf314..992f12d11 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index a52e37521..88fca672e 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 3afde4327..6ca1793a4 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 8fb2c0a49..b7417e19c 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index e1766661e..e8eba82f1 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 461ee0e5e..03c10d4a1 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 2a6dbd735..a5bc37560 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index e1d90305d..9bfa46943 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index a9e6def53..1bf97ae62 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index af4bd93c3..0a0a4dce8 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 0522c7fe3..bd418b4da 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 586373d99..e3643cda1 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 105.3.390 + 106.0.200 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 105.3.390 + Version 106.0.200 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index e8752d2a9..96fe60c63 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "105.3.390"; - public const string AssemblyFileVersion = "105.3.390.0"; + public const string AssemblyVersion = "106.0.200"; + public const string AssemblyFileVersion = "106.0.200.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 2bb2c9598..764909e79 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index bcbd48258..d9e4193b1 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 08db49343..b476a8d59 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index a39c47bf3..5ae9ab05d 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "105.3.39", + [string] $CefVersion = "106.0.20", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index ff6613811..92c947b5f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 105.3.390-CI{build} +version: 106.0.200-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index dddc52607..8084c2d5a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "105.3.390", + [string] $Version = "106.0.200", [Parameter(Position = 2)] - [string] $AssemblyVersion = "105.3.390", + [string] $AssemblyVersion = "106.0.200", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From a12023a449df524e61b4782738c0c3071c0acb40 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 21 Sep 2022 10:45:17 +1000 Subject: [PATCH 106/543] Test - Add additional logging to hopefully find the test that's keeping a browser ref count alive --- .../BrowserRefCountDebuggingAttribute.cs | 16 +++++++++++ CefSharp.Test/Wpf/WaitForRenderIdleTests.cs | 1 + CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs | 1 + CefSharp/Internals/BrowserRefCounter.cs | 27 ++++++++++++------- 4 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 CefSharp.Test/BrowserRefCountDebuggingAttribute.cs diff --git a/CefSharp.Test/BrowserRefCountDebuggingAttribute.cs b/CefSharp.Test/BrowserRefCountDebuggingAttribute.cs new file mode 100644 index 000000000..a355c2504 --- /dev/null +++ b/CefSharp.Test/BrowserRefCountDebuggingAttribute.cs @@ -0,0 +1,16 @@ +using System.Reflection; +using CefSharp.Internals; +using Xunit.Sdk; + +namespace CefSharp.Test +{ + internal class BrowserRefCountDebuggingAttribute : BeforeAfterTestAttribute + { + public override void Before(MethodInfo methodUnderTest) + { + ((BrowserRefCounter)BrowserRefCounter.Instance).AppendLineToLog($"Test Method {methodUnderTest.DeclaringType} {methodUnderTest.Name}"); + + base.Before(methodUnderTest); + } + } +} diff --git a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs index 65b97a1a5..60119f4df 100644 --- a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs @@ -11,6 +11,7 @@ namespace CefSharp.Test.Wpf { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] + [BrowserRefCountDebugging] public class WaitForRenderIdleTests { diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs index f2dcd18c1..b6748813e 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs @@ -14,6 +14,7 @@ namespace CefSharp.Test.Wpf { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] + [BrowserRefCountDebugging] public class WpfBrowserBasicFacts { private readonly ITestOutputHelper output; diff --git a/CefSharp/Internals/BrowserRefCounter.cs b/CefSharp/Internals/BrowserRefCounter.cs index 97543cff1..f84d9b2e1 100644 --- a/CefSharp/Internals/BrowserRefCounter.cs +++ b/CefSharp/Internals/BrowserRefCounter.cs @@ -28,14 +28,22 @@ public sealed class BrowserRefCounter : IBrowserRefCounter /// TODO: Refactor this so it's not static. public static IBrowserRefCounter Instance = new NoOpBrowserRefCounter(); - /// - void IBrowserRefCounter.Increment(Type type) + /// + /// If logging is enabled the will be appended to + /// the internal log. + /// + /// text to append to log if logging enabled. + public void AppendLineToLog(string line) { if(loggingEnabled) { - logger.AppendLine($"Incremented - {type}"); + logger.AppendLine(line); } + } + /// + void IBrowserRefCounter.Increment(Type type) + { var newCount = Interlocked.Increment(ref count); if (newCount > 0) @@ -44,24 +52,23 @@ void IBrowserRefCounter.Increment(Type type) if (loggingEnabled) { - logger.AppendLine("Incremented - ManualResetEvent was reset"); + logger.AppendLine($"Incremented - {type} : ManualResetEvent was reset"); } } + else if(loggingEnabled) + { + logger.AppendLine($"New Count <= 0 - {newCount} "); + } } /// bool IBrowserRefCounter.Decrement(Type type) { - if (loggingEnabled) - { - logger.AppendLine($"Decremented - {type}"); - } - var newCount = Interlocked.Decrement(ref count); if (loggingEnabled) { - logger.AppendLine($"Decremented - Current Count {newCount}"); + logger.AppendLine($"Decremented - {type} : Current Count {newCount}"); } if (newCount == 0) From 252f2cd99bd744464929209b2516e7b9860c518c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 4 Oct 2022 10:54:08 +1000 Subject: [PATCH 107/543] Upgrade to 106.0.25+gf7fefe5+chromium-106.0.5249.61 / Chromium 106.0.5249.61 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 714ec7e05..fbc24e90a 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 0101f2648..3724a19ca 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 2a6f9bbc6..2c89f1951 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,200 - PRODUCTVERSION 106,0,200 + FILEVERSION 106,0,250 + PRODUCTVERSION 106,0,250 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "106.0.200" + VALUE "FileVersion", "106.0.250" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.200" + VALUE "ProductVersion", "106.0.250" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index b134cdc47..9b0eecb13 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 70558d7f7..908ce0f6b 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index b7536cd16..2e0a9c6e5 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 353a62729..4a62f365f 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 9ee4d0f90..1c59c7f68 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index d8386bc81..2e6344895 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,200 - PRODUCTVERSION 106,0,200 + FILEVERSION 106,0,250 + PRODUCTVERSION 106,0,250 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "106.0.200" + VALUE "FileVersion", "106.0.250" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.200" + VALUE "ProductVersion", "106.0.250" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index b134cdc47..9b0eecb13 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 70558d7f7..908ce0f6b 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 992f12d11..c46441cee 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 88fca672e..92c3ff1b9 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 6ca1793a4..6eacb96e8 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index b7417e19c..490ad4d71 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index e8eba82f1..783b02085 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 03c10d4a1..f0ecae085 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index a5bc37560..1f91c197f 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 9bfa46943..3b89dc7e9 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 1bf97ae62..43a6b2ba6 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 0a0a4dce8..843187a31 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index bd418b4da..6d09637f1 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index e3643cda1..78564e1e8 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 106.0.200 + 106.0.250 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 106.0.200 + Version 106.0.250 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 96fe60c63..338b72858 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "106.0.200"; - public const string AssemblyFileVersion = "106.0.200.0"; + public const string AssemblyVersion = "106.0.250"; + public const string AssemblyFileVersion = "106.0.250.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 764909e79..17cb72943 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index d9e4193b1..9b3cb6206 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index b476a8d59..b97adae72 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 5ae9ab05d..af880e432 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "106.0.20", + [string] $CefVersion = "106.0.25", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 92c947b5f..ee10930b1 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 106.0.200-CI{build} +version: 106.0.250-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 8084c2d5a..d90ef2080 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "106.0.200", + [string] $Version = "106.0.250", [Parameter(Position = 2)] - [string] $AssemblyVersion = "106.0.200", + [string] $AssemblyVersion = "106.0.250", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From b8ebfbcadccc49427d99594ba97c7ac63270a62f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 4 Oct 2022 11:26:46 +1000 Subject: [PATCH 108/543] DevTools Client - Update to 106.0.5249.61 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 397 +++++++++++++---- .../DevToolsClient.Generated.netcore.cs | 401 ++++++++++++++---- 2 files changed, 644 insertions(+), 154 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 034347990..5e4bdbc55 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 105.0.5195.102 +// CHROMIUM VERSION 106.0.5249.61 namespace CefSharp.DevTools.Accessibility { /// @@ -1322,7 +1322,12 @@ public enum CookieExclusionReason /// ExcludeSamePartyCrossPartyContext /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeSamePartyCrossPartyContext"))] - ExcludeSamePartyCrossPartyContext + ExcludeSamePartyCrossPartyContext, + /// + /// ExcludeDomainNonASCII + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeDomainNonASCII"))] + ExcludeDomainNonASCII } /// @@ -1374,7 +1379,12 @@ public enum CookieWarningReason /// WarnAttributeValueExceedsMaxSize /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnAttributeValueExceedsMaxSize"))] - WarnAttributeValueExceedsMaxSize + WarnAttributeValueExceedsMaxSize, + /// + /// WarnDomainNonASCII + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnDomainNonASCII"))] + WarnDomainNonASCII } /// @@ -2539,20 +2549,55 @@ public enum AttributionReportingIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PermissionPolicyDisabled"))] PermissionPolicyDisabled, /// - /// AttributionSourceUntrustworthyOrigin + /// PermissionPolicyNotDelegated + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PermissionPolicyNotDelegated"))] + PermissionPolicyNotDelegated, + /// + /// UntrustworthyReportingOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionSourceUntrustworthyOrigin"))] - AttributionSourceUntrustworthyOrigin, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UntrustworthyReportingOrigin"))] + UntrustworthyReportingOrigin, /// - /// AttributionUntrustworthyOrigin + /// InsecureContext /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionUntrustworthyOrigin"))] - AttributionUntrustworthyOrigin, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecureContext"))] + InsecureContext, /// /// InvalidHeader /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidHeader"))] - InvalidHeader + InvalidHeader, + /// + /// InvalidRegisterTriggerHeader + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidRegisterTriggerHeader"))] + InvalidRegisterTriggerHeader, + /// + /// InvalidEligibleHeader + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidEligibleHeader"))] + InvalidEligibleHeader, + /// + /// TooManyConcurrentRequests + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TooManyConcurrentRequests"))] + TooManyConcurrentRequests, + /// + /// SourceAndTriggerHeaders + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SourceAndTriggerHeaders"))] + SourceAndTriggerHeaders, + /// + /// SourceIgnored + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SourceIgnored"))] + SourceIgnored, + /// + /// TriggerIgnored + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TriggerIgnored"))] + TriggerIgnored } /// @@ -2588,16 +2633,6 @@ internal string violationType set; } - /// - /// Frame - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (false))] - public CefSharp.DevTools.Audits.AffectedFrame Frame - { - get; - set; - } - /// /// Request /// @@ -2936,6 +2971,11 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OverflowVisibleOnReplacedElement"))] OverflowVisibleOnReplacedElement, /// + /// PersistentQuotaType + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PersistentQuotaType"))] + PersistentQuotaType, + /// /// PictureSourceSrc /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PictureSourceSrc"))] @@ -3230,11 +3270,6 @@ public enum FederatedAuthRequestIssueReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataInvalidResponse"))] ClientMetadataInvalidResponse, /// - /// ClientMetadataMissingPrivacyPolicyUrl - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataMissingPrivacyPolicyUrl"))] - ClientMetadataMissingPrivacyPolicyUrl, - /// /// DisabledInSettings /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DisabledInSettings"))] @@ -5263,6 +5298,17 @@ public CefSharp.DevTools.CSS.SourceRange Range get; set; } + + /// + /// Parsed longhand components of this property if it is a shorthand. + /// This field will be empty if the given property is not a shorthand. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("longhandProperties"), IsRequired = (false))] + public System.Collections.Generic.IList LonghandProperties + { + get; + set; + } } /// @@ -18284,10 +18330,10 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage"))] SharedStorage, /// - /// storage-access-api + /// storage-access /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storage-access-api"))] - StorageAccessApi, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storage-access"))] + StorageAccess, /// /// sync-xhr /// @@ -18299,6 +18345,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("trust-token-redemption"))] TrustTokenRedemption, /// + /// unload + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unload"))] + Unload, + /// /// usb /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("usb"))] @@ -20873,10 +20924,20 @@ public enum PrerenderFinalStatus [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] EmbedderTriggeredAndCrossOriginRedirected, /// - /// EmbedderTriggeredAndDestroyed + /// MemoryLimitExceeded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndDestroyed"))] - EmbedderTriggeredAndDestroyed + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MemoryLimitExceeded"))] + MemoryLimitExceeded, + /// + /// FailToGetMemoryUsage + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FailToGetMemoryUsage"))] + FailToGetMemoryUsage, + /// + /// DataSaverEnabled + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DataSaverEnabled"))] + DataSaverEnabled } /// @@ -21715,6 +21776,17 @@ internal string finalStatus get; private set; } + + /// + /// This is used to give users more information about the cancellation details, + /// and this will be formatted for display. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reasonDetails"), IsRequired = (false))] + public string ReasonDetails + { + get; + private set; + } } /// @@ -23676,6 +23748,16 @@ public string Origin private set; } + /// + /// Storage key to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + public string StorageKey + { + get; + private set; + } + /// /// Database to update. /// @@ -23712,6 +23794,16 @@ public string Origin get; private set; } + + /// + /// Storage key to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + public string StorageKey + { + get; + private set; + } } /// @@ -24321,6 +24413,33 @@ public string BrowserContextId } } + /// + /// A filter used by target query/discovery/auto-attach operations. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class FilterEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// If set, causes exclusion of mathcing targets from the list. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("exclude"), IsRequired = (false))] + public bool? Exclude + { + get; + set; + } + + /// + /// If not present, matches any type. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (false))] + public string Type + { + get; + set; + } + } + /// /// RemoteLocation /// @@ -38106,54 +38225,84 @@ public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateClearObjectStore(string securityOrigin, string databaseName, string objectStoreName); + partial void ValidateClearObjectStore(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); /// /// Clears all entries from an object store. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// Object store name. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ClearObjectStoreAsync(string securityOrigin, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task ClearObjectStoreAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) { - ValidateClearObjectStore(securityOrigin, databaseName, objectStoreName); + ValidateClearObjectStore(securityOrigin, storageKey, databaseName, objectStoreName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); } - partial void ValidateDeleteDatabase(string securityOrigin, string databaseName); + partial void ValidateDeleteDatabase(string securityOrigin = null, string storageKey, string databaseName); /// /// Deletes a database. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteDatabaseAsync(string securityOrigin, string databaseName) + public System.Threading.Tasks.Task DeleteDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) { - ValidateDeleteDatabase(securityOrigin, databaseName); + ValidateDeleteDatabase(securityOrigin, storageKey, databaseName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); } - partial void ValidateDeleteObjectStoreEntries(string securityOrigin, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange); + partial void ValidateDeleteObjectStoreEntries(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange); /// /// Delete a range of entries from an object store /// - /// securityOrigin + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// databaseName /// objectStoreName /// Range of entry keys to delete /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string securityOrigin, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange) + public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange) { - ValidateDeleteObjectStoreEntries(securityOrigin, databaseName, objectStoreName, keyRange); + ValidateDeleteObjectStoreEntries(securityOrigin, storageKey, databaseName, objectStoreName, keyRange); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); dict.Add("keyRange", keyRange.ToDictionary()); @@ -38180,11 +38329,12 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); } - partial void ValidateRequestData(string securityOrigin, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); + partial void ValidateRequestData(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); /// /// Requests data from object store or index. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// Object store name. /// Index name, empty string for object store data requests. @@ -38192,11 +38342,20 @@ public System.Threading.Tasks.Task EnableAsync() /// Number of records to fetch. /// Key range. /// returns System.Threading.Tasks.Task<RequestDataResponse> - public System.Threading.Tasks.Task RequestDataAsync(string securityOrigin, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) + public System.Threading.Tasks.Task RequestDataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) { - ValidateRequestData(securityOrigin, databaseName, objectStoreName, indexName, skipCount, pageSize, keyRange); + ValidateRequestData(securityOrigin, storageKey, databaseName, objectStoreName, indexName, skipCount, pageSize, keyRange); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); dict.Add("indexName", indexName); @@ -38210,51 +38369,81 @@ public System.Threading.Tasks.Task RequestDataAsync(string return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); } - partial void ValidateGetMetadata(string securityOrigin, string databaseName, string objectStoreName); + partial void ValidateGetMetadata(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); /// /// Gets metadata of an object store /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// Object store name. /// returns System.Threading.Tasks.Task<GetMetadataResponse> - public System.Threading.Tasks.Task GetMetadataAsync(string securityOrigin, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task GetMetadataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) { - ValidateGetMetadata(securityOrigin, databaseName, objectStoreName); + ValidateGetMetadata(securityOrigin, storageKey, databaseName, objectStoreName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); } - partial void ValidateRequestDatabase(string securityOrigin, string databaseName); + partial void ValidateRequestDatabase(string securityOrigin = null, string storageKey, string databaseName); /// /// Requests database with given name in given frame. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> - public System.Threading.Tasks.Task RequestDatabaseAsync(string securityOrigin, string databaseName) + public System.Threading.Tasks.Task RequestDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) { - ValidateRequestDatabase(securityOrigin, databaseName); + ValidateRequestDatabase(securityOrigin, storageKey, databaseName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); } - partial void ValidateRequestDatabaseNames(string securityOrigin); + partial void ValidateRequestDatabaseNames(string securityOrigin = null, string storageKey = null); /// /// Requests database names for given security origin. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<RequestDatabaseNamesResponse> - public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin) + public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin = null, string storageKey = null) { - ValidateRequestDatabaseNames(securityOrigin); + ValidateRequestDatabaseNames(securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabaseNames", dict); } } @@ -44930,6 +45119,20 @@ public System.Threading.Tasks.Task TrackIndexedDBForOrig return _client.ExecuteDevToolsMethodAsync("Storage.trackIndexedDBForOrigin", dict); } + partial void ValidateTrackIndexedDBForStorageKey(string storageKey); + /// + /// Registers storage key to be notified when an update occurs to its IndexedDB. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TrackIndexedDBForStorageKeyAsync(string storageKey) + { + ValidateTrackIndexedDBForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.trackIndexedDBForStorageKey", dict); + } + partial void ValidateUntrackCacheStorageForOrigin(string origin); /// /// Unregisters origin from receiving notifications for cache storage. @@ -44958,6 +45161,20 @@ public System.Threading.Tasks.Task UntrackIndexedDBForOr return _client.ExecuteDevToolsMethodAsync("Storage.untrackIndexedDBForOrigin", dict); } + partial void ValidateUntrackIndexedDBForStorageKey(string storageKey); + /// + /// Unregisters storage key from receiving notifications for IndexedDB. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task UntrackIndexedDBForStorageKeyAsync(string storageKey) + { + ValidateUntrackIndexedDBForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.untrackIndexedDBForStorageKey", dict); + } + /// /// Returns the number of stored Trust Tokens per issuer for the /// current browsing context. @@ -45764,17 +45981,25 @@ public System.Threading.Tasks.Task GetTargetInfoAsync(str return _client.ExecuteDevToolsMethodAsync("Target.getTargetInfo", dict); } + partial void ValidateGetTargets(System.Collections.Generic.IList filter = null); /// /// Retrieves a list of available targets. /// + /// Only targets matching filter will be reported. If filter is not specifiedand target discovery is currently enabled, a filter used for target discoveryis used for consistency. /// returns System.Threading.Tasks.Task<GetTargetsResponse> - public System.Threading.Tasks.Task GetTargetsAsync() + public System.Threading.Tasks.Task GetTargetsAsync(System.Collections.Generic.IList filter = null) { - System.Collections.Generic.Dictionary dict = null; + ValidateGetTargets(filter); + var dict = new System.Collections.Generic.Dictionary(); + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.getTargets", dict); } - partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null); + partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null); /// /// Controls whether to automatically attach to new targets which are considered to be related to /// this one. When turned on, attaches to all existing related targets as well. When turned off, @@ -45785,10 +46010,11 @@ public System.Threading.Tasks.Task GetTargetsAsync() /// Whether to auto-attach to related targets. /// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets. /// Enables "flat" access to the session via specifying sessionId attribute in the commands.We plan to make this the default, deprecate non-flattened mode,and eventually retire it. See crbug.com/991325. + /// Only targets matching filter will be attached. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetAutoAttachAsync(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null) + public System.Threading.Tasks.Task SetAutoAttachAsync(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null) { - ValidateSetAutoAttach(autoAttach, waitForDebuggerOnStart, flatten); + ValidateSetAutoAttach(autoAttach, waitForDebuggerOnStart, flatten, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("autoAttach", autoAttach); dict.Add("waitForDebuggerOnStart", waitForDebuggerOnStart); @@ -45797,10 +46023,15 @@ public System.Threading.Tasks.Task SetAutoAttachAsync(bo dict.Add("flatten", flatten.Value); } + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.setAutoAttach", dict); } - partial void ValidateAutoAttachRelated(string targetId, bool waitForDebuggerOnStart); + partial void ValidateAutoAttachRelated(string targetId, bool waitForDebuggerOnStart, System.Collections.Generic.IList filter = null); /// /// Adds the specified target to the list of targets that will be monitored for any related target /// creation (such as child frames, child workers and new versions of service worker) and reported @@ -45810,28 +46041,40 @@ public System.Threading.Tasks.Task SetAutoAttachAsync(bo /// /// targetId /// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets. + /// Only targets matching filter will be attached. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task AutoAttachRelatedAsync(string targetId, bool waitForDebuggerOnStart) + public System.Threading.Tasks.Task AutoAttachRelatedAsync(string targetId, bool waitForDebuggerOnStart, System.Collections.Generic.IList filter = null) { - ValidateAutoAttachRelated(targetId, waitForDebuggerOnStart); + ValidateAutoAttachRelated(targetId, waitForDebuggerOnStart, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); dict.Add("waitForDebuggerOnStart", waitForDebuggerOnStart); + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.autoAttachRelated", dict); } - partial void ValidateSetDiscoverTargets(bool discover); + partial void ValidateSetDiscoverTargets(bool discover, System.Collections.Generic.IList filter = null); /// /// Controls whether to discover available targets and notify via /// `targetCreated/targetInfoChanged/targetDestroyed` events. /// /// Whether to discover available targets. + /// Only targets matching filter will be attached. If `discover` is false,`filter` must be omitted or empty. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetDiscoverTargetsAsync(bool discover) + public System.Threading.Tasks.Task SetDiscoverTargetsAsync(bool discover, System.Collections.Generic.IList filter = null) { - ValidateSetDiscoverTargets(discover); + ValidateSetDiscoverTargets(discover, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("discover", discover); + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.setDiscoverTargets", dict); } diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index efde39d03..75e7d6e92 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 105.0.5195.102 +// CHROMIUM VERSION 106.0.5249.61 namespace CefSharp.DevTools.Accessibility { /// @@ -1251,7 +1251,12 @@ public enum CookieExclusionReason /// ExcludeSamePartyCrossPartyContext /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSamePartyCrossPartyContext")] - ExcludeSamePartyCrossPartyContext + ExcludeSamePartyCrossPartyContext, + /// + /// ExcludeDomainNonASCII + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeDomainNonASCII")] + ExcludeDomainNonASCII } /// @@ -1303,7 +1308,12 @@ public enum CookieWarningReason /// WarnAttributeValueExceedsMaxSize /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnAttributeValueExceedsMaxSize")] - WarnAttributeValueExceedsMaxSize + WarnAttributeValueExceedsMaxSize, + /// + /// WarnDomainNonASCII + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnDomainNonASCII")] + WarnDomainNonASCII } /// @@ -2275,20 +2285,55 @@ public enum AttributionReportingIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("PermissionPolicyDisabled")] PermissionPolicyDisabled, /// - /// AttributionSourceUntrustworthyOrigin + /// PermissionPolicyNotDelegated + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PermissionPolicyNotDelegated")] + PermissionPolicyNotDelegated, + /// + /// UntrustworthyReportingOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionSourceUntrustworthyOrigin")] - AttributionSourceUntrustworthyOrigin, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("UntrustworthyReportingOrigin")] + UntrustworthyReportingOrigin, /// - /// AttributionUntrustworthyOrigin + /// InsecureContext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionUntrustworthyOrigin")] - AttributionUntrustworthyOrigin, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecureContext")] + InsecureContext, /// /// InvalidHeader /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidHeader")] - InvalidHeader + InvalidHeader, + /// + /// InvalidRegisterTriggerHeader + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidRegisterTriggerHeader")] + InvalidRegisterTriggerHeader, + /// + /// InvalidEligibleHeader + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidEligibleHeader")] + InvalidEligibleHeader, + /// + /// TooManyConcurrentRequests + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TooManyConcurrentRequests")] + TooManyConcurrentRequests, + /// + /// SourceAndTriggerHeaders + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SourceAndTriggerHeaders")] + SourceAndTriggerHeaders, + /// + /// SourceIgnored + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SourceIgnored")] + SourceIgnored, + /// + /// TriggerIgnored + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TriggerIgnored")] + TriggerIgnored } /// @@ -2307,16 +2352,6 @@ public CefSharp.DevTools.Audits.AttributionReportingIssueType ViolationType set; } - /// - /// Frame - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] - public CefSharp.DevTools.Audits.AffectedFrame Frame - { - get; - set; - } - /// /// Request /// @@ -2640,6 +2675,11 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("OverflowVisibleOnReplacedElement")] OverflowVisibleOnReplacedElement, /// + /// PersistentQuotaType + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PersistentQuotaType")] + PersistentQuotaType, + /// /// PictureSourceSrc /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("PictureSourceSrc")] @@ -2901,11 +2941,6 @@ public enum FederatedAuthRequestIssueReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataInvalidResponse")] ClientMetadataInvalidResponse, /// - /// ClientMetadataMissingPrivacyPolicyUrl - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataMissingPrivacyPolicyUrl")] - ClientMetadataMissingPrivacyPolicyUrl, - /// /// DisabledInSettings /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("DisabledInSettings")] @@ -4815,6 +4850,17 @@ public CefSharp.DevTools.CSS.SourceRange Range get; set; } + + /// + /// Parsed longhand components of this property if it is a shorthand. + /// This field will be empty if the given property is not a shorthand. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("longhandProperties")] + public System.Collections.Generic.IList LonghandProperties + { + get; + set; + } } /// @@ -17049,10 +17095,10 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage")] SharedStorage, /// - /// storage-access-api + /// storage-access /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storage-access-api")] - StorageAccessApi, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storage-access")] + StorageAccess, /// /// sync-xhr /// @@ -17064,6 +17110,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("trust-token-redemption")] TrustTokenRedemption, /// + /// unload + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unload")] + Unload, + /// /// usb /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("usb")] @@ -19454,10 +19505,20 @@ public enum PrerenderFinalStatus [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndCrossOriginRedirected")] EmbedderTriggeredAndCrossOriginRedirected, /// - /// EmbedderTriggeredAndDestroyed + /// MemoryLimitExceeded + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("MemoryLimitExceeded")] + MemoryLimitExceeded, + /// + /// FailToGetMemoryUsage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FailToGetMemoryUsage")] + FailToGetMemoryUsage, + /// + /// DataSaverEnabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndDestroyed")] - EmbedderTriggeredAndDestroyed + [System.Text.Json.Serialization.JsonPropertyNameAttribute("DataSaverEnabled")] + DataSaverEnabled } /// @@ -20213,6 +20274,18 @@ public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus get; private set; } + + /// + /// This is used to give users more information about the cancellation details, + /// and this will be formatted for display. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reasonDetails")] + public string ReasonDetails + { + get; + private set; + } } /// @@ -22071,6 +22144,18 @@ public string Origin private set; } + /// + /// Storage key to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StorageKey + { + get; + private set; + } + /// /// Database to update. /// @@ -22112,6 +22197,18 @@ public string Origin get; private set; } + + /// + /// Storage key to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StorageKey + { + get; + private set; + } } /// @@ -22691,6 +22788,32 @@ public string BrowserContextId } } + /// + /// A filter used by target query/discovery/auto-attach operations. + /// + public partial class FilterEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// If set, causes exclusion of mathcing targets from the list. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("exclude")] + public bool? Exclude + { + get; + set; + } + + /// + /// If not present, matches any type. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public string Type + { + get; + set; + } + } + /// /// RemoteLocation /// @@ -35269,54 +35392,84 @@ public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateClearObjectStore(string securityOrigin, string databaseName, string objectStoreName); + partial void ValidateClearObjectStore(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); /// /// Clears all entries from an object store. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// Object store name. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ClearObjectStoreAsync(string securityOrigin, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task ClearObjectStoreAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) { - ValidateClearObjectStore(securityOrigin, databaseName, objectStoreName); + ValidateClearObjectStore(securityOrigin, storageKey, databaseName, objectStoreName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); } - partial void ValidateDeleteDatabase(string securityOrigin, string databaseName); + partial void ValidateDeleteDatabase(string securityOrigin = null, string storageKey, string databaseName); /// /// Deletes a database. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteDatabaseAsync(string securityOrigin, string databaseName) + public System.Threading.Tasks.Task DeleteDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) { - ValidateDeleteDatabase(securityOrigin, databaseName); + ValidateDeleteDatabase(securityOrigin, storageKey, databaseName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); } - partial void ValidateDeleteObjectStoreEntries(string securityOrigin, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange); + partial void ValidateDeleteObjectStoreEntries(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange); /// /// Delete a range of entries from an object store /// - /// securityOrigin + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// databaseName /// objectStoreName /// Range of entry keys to delete /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string securityOrigin, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange) + public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange) { - ValidateDeleteObjectStoreEntries(securityOrigin, databaseName, objectStoreName, keyRange); + ValidateDeleteObjectStoreEntries(securityOrigin, storageKey, databaseName, objectStoreName, keyRange); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); dict.Add("keyRange", keyRange.ToDictionary()); @@ -35343,11 +35496,12 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); } - partial void ValidateRequestData(string securityOrigin, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); + partial void ValidateRequestData(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); /// /// Requests data from object store or index. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// Object store name. /// Index name, empty string for object store data requests. @@ -35355,11 +35509,20 @@ public System.Threading.Tasks.Task EnableAsync() /// Number of records to fetch. /// Key range. /// returns System.Threading.Tasks.Task<RequestDataResponse> - public System.Threading.Tasks.Task RequestDataAsync(string securityOrigin, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) + public System.Threading.Tasks.Task RequestDataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) { - ValidateRequestData(securityOrigin, databaseName, objectStoreName, indexName, skipCount, pageSize, keyRange); + ValidateRequestData(securityOrigin, storageKey, databaseName, objectStoreName, indexName, skipCount, pageSize, keyRange); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); dict.Add("indexName", indexName); @@ -35373,51 +35536,81 @@ public System.Threading.Tasks.Task RequestDataAsync(string return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); } - partial void ValidateGetMetadata(string securityOrigin, string databaseName, string objectStoreName); + partial void ValidateGetMetadata(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); /// /// Gets metadata of an object store /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// Object store name. /// returns System.Threading.Tasks.Task<GetMetadataResponse> - public System.Threading.Tasks.Task GetMetadataAsync(string securityOrigin, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task GetMetadataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) { - ValidateGetMetadata(securityOrigin, databaseName, objectStoreName); + ValidateGetMetadata(securityOrigin, storageKey, databaseName, objectStoreName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); } - partial void ValidateRequestDatabase(string securityOrigin, string databaseName); + partial void ValidateRequestDatabase(string securityOrigin = null, string storageKey, string databaseName); /// /// Requests database with given name in given frame. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Database name. /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> - public System.Threading.Tasks.Task RequestDatabaseAsync(string securityOrigin, string databaseName) + public System.Threading.Tasks.Task RequestDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) { - ValidateRequestDatabase(securityOrigin, databaseName); + ValidateRequestDatabase(securityOrigin, storageKey, databaseName); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); } - partial void ValidateRequestDatabaseNames(string securityOrigin); + partial void ValidateRequestDatabaseNames(string securityOrigin = null, string storageKey = null); /// /// Requests database names for given security origin. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<RequestDatabaseNamesResponse> - public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin) + public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin = null, string storageKey = null) { - ValidateRequestDatabaseNames(securityOrigin); + ValidateRequestDatabaseNames(securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabaseNames", dict); } } @@ -41547,6 +41740,20 @@ public System.Threading.Tasks.Task TrackIndexedDBForOrig return _client.ExecuteDevToolsMethodAsync("Storage.trackIndexedDBForOrigin", dict); } + partial void ValidateTrackIndexedDBForStorageKey(string storageKey); + /// + /// Registers storage key to be notified when an update occurs to its IndexedDB. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TrackIndexedDBForStorageKeyAsync(string storageKey) + { + ValidateTrackIndexedDBForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.trackIndexedDBForStorageKey", dict); + } + partial void ValidateUntrackCacheStorageForOrigin(string origin); /// /// Unregisters origin from receiving notifications for cache storage. @@ -41575,6 +41782,20 @@ public System.Threading.Tasks.Task UntrackIndexedDBForOr return _client.ExecuteDevToolsMethodAsync("Storage.untrackIndexedDBForOrigin", dict); } + partial void ValidateUntrackIndexedDBForStorageKey(string storageKey); + /// + /// Unregisters storage key from receiving notifications for IndexedDB. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task UntrackIndexedDBForStorageKeyAsync(string storageKey) + { + ValidateUntrackIndexedDBForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.untrackIndexedDBForStorageKey", dict); + } + /// /// Returns the number of stored Trust Tokens per issuer for the /// current browsing context. @@ -42280,17 +42501,25 @@ public System.Threading.Tasks.Task GetTargetInfoAsync(str return _client.ExecuteDevToolsMethodAsync("Target.getTargetInfo", dict); } + partial void ValidateGetTargets(System.Collections.Generic.IList filter = null); /// /// Retrieves a list of available targets. /// + /// Only targets matching filter will be reported. If filter is not specifiedand target discovery is currently enabled, a filter used for target discoveryis used for consistency. /// returns System.Threading.Tasks.Task<GetTargetsResponse> - public System.Threading.Tasks.Task GetTargetsAsync() + public System.Threading.Tasks.Task GetTargetsAsync(System.Collections.Generic.IList filter = null) { - System.Collections.Generic.Dictionary dict = null; + ValidateGetTargets(filter); + var dict = new System.Collections.Generic.Dictionary(); + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.getTargets", dict); } - partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null); + partial void ValidateSetAutoAttach(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null); /// /// Controls whether to automatically attach to new targets which are considered to be related to /// this one. When turned on, attaches to all existing related targets as well. When turned off, @@ -42301,10 +42530,11 @@ public System.Threading.Tasks.Task GetTargetsAsync() /// Whether to auto-attach to related targets. /// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets. /// Enables "flat" access to the session via specifying sessionId attribute in the commands.We plan to make this the default, deprecate non-flattened mode,and eventually retire it. See crbug.com/991325. + /// Only targets matching filter will be attached. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetAutoAttachAsync(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null) + public System.Threading.Tasks.Task SetAutoAttachAsync(bool autoAttach, bool waitForDebuggerOnStart, bool? flatten = null, System.Collections.Generic.IList filter = null) { - ValidateSetAutoAttach(autoAttach, waitForDebuggerOnStart, flatten); + ValidateSetAutoAttach(autoAttach, waitForDebuggerOnStart, flatten, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("autoAttach", autoAttach); dict.Add("waitForDebuggerOnStart", waitForDebuggerOnStart); @@ -42313,10 +42543,15 @@ public System.Threading.Tasks.Task SetAutoAttachAsync(bo dict.Add("flatten", flatten.Value); } + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.setAutoAttach", dict); } - partial void ValidateAutoAttachRelated(string targetId, bool waitForDebuggerOnStart); + partial void ValidateAutoAttachRelated(string targetId, bool waitForDebuggerOnStart, System.Collections.Generic.IList filter = null); /// /// Adds the specified target to the list of targets that will be monitored for any related target /// creation (such as child frames, child workers and new versions of service worker) and reported @@ -42326,28 +42561,40 @@ public System.Threading.Tasks.Task SetAutoAttachAsync(bo /// /// targetId /// Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`to run paused targets. + /// Only targets matching filter will be attached. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task AutoAttachRelatedAsync(string targetId, bool waitForDebuggerOnStart) + public System.Threading.Tasks.Task AutoAttachRelatedAsync(string targetId, bool waitForDebuggerOnStart, System.Collections.Generic.IList filter = null) { - ValidateAutoAttachRelated(targetId, waitForDebuggerOnStart); + ValidateAutoAttachRelated(targetId, waitForDebuggerOnStart, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("targetId", targetId); dict.Add("waitForDebuggerOnStart", waitForDebuggerOnStart); + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.autoAttachRelated", dict); } - partial void ValidateSetDiscoverTargets(bool discover); + partial void ValidateSetDiscoverTargets(bool discover, System.Collections.Generic.IList filter = null); /// /// Controls whether to discover available targets and notify via /// `targetCreated/targetInfoChanged/targetDestroyed` events. /// /// Whether to discover available targets. + /// Only targets matching filter will be attached. If `discover` is false,`filter` must be omitted or empty. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetDiscoverTargetsAsync(bool discover) + public System.Threading.Tasks.Task SetDiscoverTargetsAsync(bool discover, System.Collections.Generic.IList filter = null) { - ValidateSetDiscoverTargets(discover); + ValidateSetDiscoverTargets(discover, filter); var dict = new System.Collections.Generic.Dictionary(); dict.Add("discover", discover); + if ((filter) != (null)) + { + dict.Add("filter", filter.Select(x => x.ToDictionary())); + } + return _client.ExecuteDevToolsMethodAsync("Target.setDiscoverTargets", dict); } From ae55a9ffe77145b44bb042fa6f852e6da3c9935a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 4 Oct 2022 12:53:00 +1000 Subject: [PATCH 109/543] DevTools Client - Reorder optional params - Fix compiler error, the generated code now always includes optional params at the end - And overload for LoadNetworkResourceAsync has been added to avoid a breaking change --- CefSharp/DevTools/DevToolsClient.Generated.cs | 96 +++++++++---------- .../DevToolsClient.Generated.netcore.cs | 96 +++++++++---------- CefSharp/DevTools/DevToolsClient.Partial.cs | 30 ++++++ CefSharp/DevTools/TargetFilter.cs | 23 +++++ 4 files changed, 149 insertions(+), 96 deletions(-) create mode 100644 CefSharp/DevTools/TargetFilter.cs diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 5e4bdbc55..401dceeb4 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -38225,19 +38225,21 @@ public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateClearObjectStore(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); + partial void ValidateClearObjectStore(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); /// /// Clears all entries from an object store. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// Database name. /// Object store name. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ClearObjectStoreAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task ClearObjectStoreAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) { - ValidateClearObjectStore(securityOrigin, storageKey, databaseName, objectStoreName); + ValidateClearObjectStore(databaseName, objectStoreName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -38248,23 +38250,22 @@ public System.Threading.Tasks.Task ClearObjectStoreAsync dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); } - partial void ValidateDeleteDatabase(string securityOrigin = null, string storageKey, string databaseName); + partial void ValidateDeleteDatabase(string databaseName, string securityOrigin = null, string storageKey = null); /// /// Deletes a database. /// + /// Database name. /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. /// Storage key. - /// Database name. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) + public System.Threading.Tasks.Task DeleteDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) { - ValidateDeleteDatabase(securityOrigin, storageKey, databaseName); + ValidateDeleteDatabase(databaseName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -38275,24 +38276,26 @@ public System.Threading.Tasks.Task DeleteDatabaseAsync(s dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); } - partial void ValidateDeleteObjectStoreEntries(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange); + partial void ValidateDeleteObjectStoreEntries(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null); /// /// Delete a range of entries from an object store /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// databaseName /// objectStoreName /// Range of entry keys to delete + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange) + public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null) { - ValidateDeleteObjectStoreEntries(securityOrigin, storageKey, databaseName, objectStoreName, keyRange); + ValidateDeleteObjectStoreEntries(databaseName, objectStoreName, keyRange, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + dict.Add("keyRange", keyRange.ToDictionary()); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -38303,9 +38306,6 @@ public System.Threading.Tasks.Task DeleteObjectStoreEntr dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); - dict.Add("keyRange", keyRange.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteObjectStoreEntries", dict); } @@ -38329,23 +38329,28 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); } - partial void ValidateRequestData(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); + partial void ValidateRequestData(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); /// /// Requests data from object store or index. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// Database name. /// Object store name. /// Index name, empty string for object store data requests. /// Number of records to skip. /// Number of records to fetch. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Key range. /// returns System.Threading.Tasks.Task<RequestDataResponse> - public System.Threading.Tasks.Task RequestDataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) + public System.Threading.Tasks.Task RequestDataAsync(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) { - ValidateRequestData(securityOrigin, storageKey, databaseName, objectStoreName, indexName, skipCount, pageSize, keyRange); + ValidateRequestData(databaseName, objectStoreName, indexName, skipCount, pageSize, securityOrigin, storageKey, keyRange); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + dict.Add("indexName", indexName); + dict.Add("skipCount", skipCount); + dict.Add("pageSize", pageSize); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -38356,11 +38361,6 @@ public System.Threading.Tasks.Task RequestDataAsync(string dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); - dict.Add("indexName", indexName); - dict.Add("skipCount", skipCount); - dict.Add("pageSize", pageSize); if ((keyRange) != (null)) { dict.Add("keyRange", keyRange.ToDictionary()); @@ -38369,19 +38369,21 @@ public System.Threading.Tasks.Task RequestDataAsync(string return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); } - partial void ValidateGetMetadata(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); + partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); /// /// Gets metadata of an object store /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// Database name. /// Object store name. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<GetMetadataResponse> - public System.Threading.Tasks.Task GetMetadataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task GetMetadataAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) { - ValidateGetMetadata(securityOrigin, storageKey, databaseName, objectStoreName); + ValidateGetMetadata(databaseName, objectStoreName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -38392,23 +38394,22 @@ public System.Threading.Tasks.Task GetMetadataAsync(string dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); } - partial void ValidateRequestDatabase(string securityOrigin = null, string storageKey, string databaseName); + partial void ValidateRequestDatabase(string databaseName, string securityOrigin = null, string storageKey = null); /// /// Requests database with given name in given frame. /// + /// Database name. /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. /// Storage key. - /// Database name. /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> - public System.Threading.Tasks.Task RequestDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) + public System.Threading.Tasks.Task RequestDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) { - ValidateRequestDatabase(securityOrigin, storageKey, databaseName); + ValidateRequestDatabase(databaseName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -38419,7 +38420,6 @@ public System.Threading.Tasks.Task RequestDatabaseAsync dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); } @@ -41387,25 +41387,25 @@ public System.Threading.Tasks.Task EnableReportingApiAsy return _client.ExecuteDevToolsMethodAsync("Network.enableReportingApi", dict); } - partial void ValidateLoadNetworkResource(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options); + partial void ValidateLoadNetworkResource(string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options, string frameId = null); /// /// Fetches the resource and returns the content. /// - /// Frame id to get the resource for. Mandatory for frame targets, andshould be omitted for worker targets. /// URL of the resource to get content for. /// Options for the request. + /// Frame id to get the resource for. Mandatory for frame targets, andshould be omitted for worker targets. /// returns System.Threading.Tasks.Task<LoadNetworkResourceResponse> - public System.Threading.Tasks.Task LoadNetworkResourceAsync(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options) + public System.Threading.Tasks.Task LoadNetworkResourceAsync(string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options, string frameId = null) { - ValidateLoadNetworkResource(frameId, url, options); + ValidateLoadNetworkResource(url, options, frameId); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + dict.Add("options", options.ToDictionary()); if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } - dict.Add("url", url); - dict.Add("options", options.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict); } } diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index 75e7d6e92..dfa299b52 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -35392,19 +35392,21 @@ public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateClearObjectStore(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); + partial void ValidateClearObjectStore(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); /// /// Clears all entries from an object store. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// Database name. /// Object store name. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ClearObjectStoreAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task ClearObjectStoreAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) { - ValidateClearObjectStore(securityOrigin, storageKey, databaseName, objectStoreName); + ValidateClearObjectStore(databaseName, objectStoreName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -35415,23 +35417,22 @@ public System.Threading.Tasks.Task ClearObjectStoreAsync dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); } - partial void ValidateDeleteDatabase(string securityOrigin = null, string storageKey, string databaseName); + partial void ValidateDeleteDatabase(string databaseName, string securityOrigin = null, string storageKey = null); /// /// Deletes a database. /// + /// Database name. /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. /// Storage key. - /// Database name. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) + public System.Threading.Tasks.Task DeleteDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) { - ValidateDeleteDatabase(securityOrigin, storageKey, databaseName); + ValidateDeleteDatabase(databaseName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -35442,24 +35443,26 @@ public System.Threading.Tasks.Task DeleteDatabaseAsync(s dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); } - partial void ValidateDeleteObjectStoreEntries(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange); + partial void ValidateDeleteObjectStoreEntries(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null); /// /// Delete a range of entries from an object store /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// databaseName /// objectStoreName /// Range of entry keys to delete + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange) + public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null) { - ValidateDeleteObjectStoreEntries(securityOrigin, storageKey, databaseName, objectStoreName, keyRange); + ValidateDeleteObjectStoreEntries(databaseName, objectStoreName, keyRange, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + dict.Add("keyRange", keyRange.ToDictionary()); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -35470,9 +35473,6 @@ public System.Threading.Tasks.Task DeleteObjectStoreEntr dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); - dict.Add("keyRange", keyRange.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteObjectStoreEntries", dict); } @@ -35496,23 +35496,28 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); } - partial void ValidateRequestData(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); + partial void ValidateRequestData(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); /// /// Requests data from object store or index. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// Database name. /// Object store name. /// Index name, empty string for object store data requests. /// Number of records to skip. /// Number of records to fetch. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// Key range. /// returns System.Threading.Tasks.Task<RequestDataResponse> - public System.Threading.Tasks.Task RequestDataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) + public System.Threading.Tasks.Task RequestDataAsync(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) { - ValidateRequestData(securityOrigin, storageKey, databaseName, objectStoreName, indexName, skipCount, pageSize, keyRange); + ValidateRequestData(databaseName, objectStoreName, indexName, skipCount, pageSize, securityOrigin, storageKey, keyRange); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); + dict.Add("indexName", indexName); + dict.Add("skipCount", skipCount); + dict.Add("pageSize", pageSize); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -35523,11 +35528,6 @@ public System.Threading.Tasks.Task RequestDataAsync(string dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); - dict.Add("indexName", indexName); - dict.Add("skipCount", skipCount); - dict.Add("pageSize", pageSize); if ((keyRange) != (null)) { dict.Add("keyRange", keyRange.ToDictionary()); @@ -35536,19 +35536,21 @@ public System.Threading.Tasks.Task RequestDataAsync(string return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); } - partial void ValidateGetMetadata(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName); + partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); /// /// Gets metadata of an object store /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. - /// Storage key. /// Database name. /// Object store name. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<GetMetadataResponse> - public System.Threading.Tasks.Task GetMetadataAsync(string securityOrigin = null, string storageKey, string databaseName, string objectStoreName) + public System.Threading.Tasks.Task GetMetadataAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) { - ValidateGetMetadata(securityOrigin, storageKey, databaseName, objectStoreName); + ValidateGetMetadata(databaseName, objectStoreName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); + dict.Add("objectStoreName", objectStoreName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -35559,23 +35561,22 @@ public System.Threading.Tasks.Task GetMetadataAsync(string dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); - dict.Add("objectStoreName", objectStoreName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); } - partial void ValidateRequestDatabase(string securityOrigin = null, string storageKey, string databaseName); + partial void ValidateRequestDatabase(string databaseName, string securityOrigin = null, string storageKey = null); /// /// Requests database with given name in given frame. /// + /// Database name. /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. /// Storage key. - /// Database name. /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> - public System.Threading.Tasks.Task RequestDatabaseAsync(string securityOrigin = null, string storageKey, string databaseName) + public System.Threading.Tasks.Task RequestDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) { - ValidateRequestDatabase(securityOrigin, storageKey, databaseName); + ValidateRequestDatabase(databaseName, securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) { dict.Add("securityOrigin", securityOrigin); @@ -35586,7 +35587,6 @@ public System.Threading.Tasks.Task RequestDatabaseAsync dict.Add("storageKey", storageKey); } - dict.Add("databaseName", databaseName); return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); } @@ -38351,25 +38351,25 @@ public System.Threading.Tasks.Task EnableReportingApiAsy return _client.ExecuteDevToolsMethodAsync("Network.enableReportingApi", dict); } - partial void ValidateLoadNetworkResource(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options); + partial void ValidateLoadNetworkResource(string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options, string frameId = null); /// /// Fetches the resource and returns the content. /// - /// Frame id to get the resource for. Mandatory for frame targets, andshould be omitted for worker targets. /// URL of the resource to get content for. /// Options for the request. + /// Frame id to get the resource for. Mandatory for frame targets, andshould be omitted for worker targets. /// returns System.Threading.Tasks.Task<LoadNetworkResourceResponse> - public System.Threading.Tasks.Task LoadNetworkResourceAsync(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options) + public System.Threading.Tasks.Task LoadNetworkResourceAsync(string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options, string frameId = null) { - ValidateLoadNetworkResource(frameId, url, options); + ValidateLoadNetworkResource(url, options, frameId); var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + dict.Add("options", options.ToDictionary()); if (!(string.IsNullOrEmpty(frameId))) { dict.Add("frameId", frameId); } - dict.Add("url", url); - dict.Add("options", options.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict); } } diff --git a/CefSharp/DevTools/DevToolsClient.Partial.cs b/CefSharp/DevTools/DevToolsClient.Partial.cs index 2f0de8374..6a0f6266b 100644 --- a/CefSharp/DevTools/DevToolsClient.Partial.cs +++ b/CefSharp/DevTools/DevToolsClient.Partial.cs @@ -17,3 +17,33 @@ public Viewport() } } } + +namespace CefSharp.DevTools.Network +{ + public partial class NetworkClient + { + /// + /// Fetches the resource and returns the content. + /// + /// Frame id to get the resource for. Mandatory for frame targets, and should be omitted for worker targets. + /// URL of the resource to get content for. + /// Options for the request. + /// returns System.Threading.Tasks.Task<LoadNetworkResourceResponse> + /// + /// This overload of LoadNetworkResourceAsync exists to avoid a breaking change as optional params are now always at the end + /// where previously they weren't marked as optional when at the beginning. + /// + public System.Threading.Tasks.Task LoadNetworkResourceAsync(string frameId, string url, CefSharp.DevTools.Network.LoadNetworkResourceOptions options) + { + var dict = new System.Collections.Generic.Dictionary(); + if (!(string.IsNullOrEmpty(frameId))) + { + dict.Add("frameId", frameId); + } + + dict.Add("url", url); + dict.Add("options", options.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("Network.loadNetworkResource", dict); + } + } +} diff --git a/CefSharp/DevTools/TargetFilter.cs b/CefSharp/DevTools/TargetFilter.cs new file mode 100644 index 000000000..bb1d798e5 --- /dev/null +++ b/CefSharp/DevTools/TargetFilter.cs @@ -0,0 +1,23 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +namespace CefSharp.DevTools.Target +{ + /// + /// The entries in TargetFilter are matched sequentially against targets and the first entry that matches + /// determines if the target is included or not, depending on the value of exclude field in the entry. + /// If filter is not specified, the one assumed is [{type: "browser", exclude: true}, {type: "tab", exclude: true}, {}] (i.e. include everything but browser and tab). + /// + public class TargetFilter : DevToolsDomainEntityBase + { + /// + /// Type + /// + public string Type { get; set; } + /// + /// Exclude + /// + public bool Exclude { get; set; } + } +} From e540131dae22d66f3bc12ecee6d5dc5c7cc972bd Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 4 Oct 2022 13:31:47 +1000 Subject: [PATCH 110/543] Core - Migrate from CefTime to CefBaseTime (Binding Tests) - Add new QUnit tests for sync and async bindings to confirm dates round trip (echo) correctly Issue #4234 --- .../JavascriptBinding/AsyncBoundObject.cs | 10 ++++++++ .../Resources/BindingTestAsync.js | 23 +++++++++++++++++++ CefSharp.Example/Resources/BindingTestSync.js | 23 +++++++++++++++++++ 3 files changed, 56 insertions(+) diff --git a/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs b/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs index d805b601c..6ddf4b738 100644 --- a/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs +++ b/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs @@ -105,6 +105,16 @@ public JsSerializableClass[] ReturnClassesArray(string name) }; } + public DateTime EchoDateTime(DateTime arg0) + { + return arg0; + } + + public DateTime? EchoNullableDateTime(DateTime? arg0) + { + return arg0; + } + public string[] EchoArray(string[] arg) { return arg; diff --git a/CefSharp.Example/Resources/BindingTestAsync.js b/CefSharp.Example/Resources/BindingTestAsync.js index 17fbb6f1c..722d6daf6 100644 --- a/CefSharp.Example/Resources/BindingTestAsync.js +++ b/CefSharp.Example/Resources/BindingTestAsync.js @@ -108,6 +108,29 @@ QUnit.module('BindingTestAsync', (hooks) => }); }); + QUnit.test("Async call (echoDateTime):", async (assert) => + { + const now = new Date(); + const res = await boundAsync.echoDateTime(now); + + assert.deepEqual(res, now, "Expected echo datetime"); + }); + + QUnit.test("Async call (echoNullableDateTime):", async (assert) => + { + const now = new Date(); + const res = await boundAsync.echoNullableDateTime(now); + + assert.deepEqual(res, now, "Expected echo datetime"); + }); + + QUnit.test("Async call (echoNullableDateTime) null param:", async (assert) => + { + const res = await boundAsync.echoNullableDateTime(null); + + assert.equal(res, null, "Expected null"); + }); + QUnit.test("Async call (echoArray):", async (assert) => { const res = await boundAsync.echoArray(["one", null, "three"]); diff --git a/CefSharp.Example/Resources/BindingTestSync.js b/CefSharp.Example/Resources/BindingTestSync.js index 49bbefcbc..d7b77e8b7 100644 --- a/CefSharp.Example/Resources/BindingTestSync.js +++ b/CefSharp.Example/Resources/BindingTestSync.js @@ -68,6 +68,29 @@ QUnit.module('BindingTestSync', (hooks) => assert.equal(actualResult, expectedResult, "Call to bound.getSubObject().simpleProperty resulted in : " + actualResult); }); + QUnit.test("Call (echoDateTime):", (assert) => + { + const now = new Date(); + const res = bound.echoDateTime(now); + + assert.deepEqual(res, now, "Expected echo datetime"); + }); + + QUnit.test("Call (echoNullableDateTime):", (assert) => + { + const now = new Date(); + const res = bound.echoNullableDateTime(now); + + assert.deepEqual(res, now, "Expected echo datetime"); + }); + + QUnit.test("Call (echoNullableDateTime) null param:", (assert) => + { + const res = bound.echoNullableDateTime(null); + + assert.equal(res, null, "Expected null"); + }); + QUnit.test("Stress Test", function (assert) { let stressTestCallCount = 1000; From db986a29791a675a9b63f97f0e1528ed934c3fbe Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 4 Oct 2022 13:46:37 +1000 Subject: [PATCH 111/543] Core - Migrate from CefTime to CefBaseTime (Binding Tests) - Add QUnit unit time zero (01/01/1970) Issue #4234 --- CefSharp.Example/Resources/BindingTestAsync.js | 10 +++++++++- CefSharp.Example/Resources/BindingTestSync.js | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CefSharp.Example/Resources/BindingTestAsync.js b/CefSharp.Example/Resources/BindingTestAsync.js index 722d6daf6..7defa8741 100644 --- a/CefSharp.Example/Resources/BindingTestAsync.js +++ b/CefSharp.Example/Resources/BindingTestAsync.js @@ -108,7 +108,7 @@ QUnit.module('BindingTestAsync', (hooks) => }); }); - QUnit.test("Async call (echoDateTime):", async (assert) => + QUnit.test("Async call (echoDateTime): now", async (assert) => { const now = new Date(); const res = await boundAsync.echoDateTime(now); @@ -116,6 +116,14 @@ QUnit.module('BindingTestAsync', (hooks) => assert.deepEqual(res, now, "Expected echo datetime"); }); + QUnit.test("Async call (echoDateTime): unixTimeZero", async (assert) => + { + const unixTimeZero = new Date(Date.parse('01 Jan 1970 00:00:00 GMT')); + const res = await boundAsync.echoDateTime(unixTimeZero); + + assert.deepEqual(res, unixTimeZero, "Expected echo unixTimeZero"); + }); + QUnit.test("Async call (echoNullableDateTime):", async (assert) => { const now = new Date(); diff --git a/CefSharp.Example/Resources/BindingTestSync.js b/CefSharp.Example/Resources/BindingTestSync.js index d7b77e8b7..51c150c8a 100644 --- a/CefSharp.Example/Resources/BindingTestSync.js +++ b/CefSharp.Example/Resources/BindingTestSync.js @@ -68,7 +68,7 @@ QUnit.module('BindingTestSync', (hooks) => assert.equal(actualResult, expectedResult, "Call to bound.getSubObject().simpleProperty resulted in : " + actualResult); }); - QUnit.test("Call (echoDateTime):", (assert) => + QUnit.test("Call (echoDateTime): now", (assert) => { const now = new Date(); const res = bound.echoDateTime(now); @@ -76,6 +76,14 @@ QUnit.module('BindingTestSync', (hooks) => assert.deepEqual(res, now, "Expected echo datetime"); }); + QUnit.test("Call (echoDateTime): unixTimeZero", (assert) => + { + const unixTimeZero = new Date(Date.parse('01 Jan 1970 00:00:00 GMT')); + const res = bound.echoDateTime(unixTimeZero); + + assert.deepEqual(res, unixTimeZero, "Expected echo unixTimeZero"); + }); + QUnit.test("Call (echoNullableDateTime):", (assert) => { const now = new Date(); From f84f3986cf20288940fb0589ac36c9272f75f46f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 4 Oct 2022 14:17:36 +1000 Subject: [PATCH 112/543] Test - Tweaks to browser ref count logging --- .../BrowserRefCountDebuggingAttribute.cs | 9 +++++- CefSharp.Test/Wpf/WaitForRenderIdleTests.cs | 2 +- CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs | 2 +- CefSharp.WinForms/CefSharp.WinForms.csproj | 9 ++---- CefSharp/Internals/BrowserRefCounter.cs | 32 +++++-------------- 5 files changed, 20 insertions(+), 34 deletions(-) diff --git a/CefSharp.Test/BrowserRefCountDebuggingAttribute.cs b/CefSharp.Test/BrowserRefCountDebuggingAttribute.cs index a355c2504..8c3d21360 100644 --- a/CefSharp.Test/BrowserRefCountDebuggingAttribute.cs +++ b/CefSharp.Test/BrowserRefCountDebuggingAttribute.cs @@ -1,3 +1,4 @@ +using System; using System.Reflection; using CefSharp.Internals; using Xunit.Sdk; @@ -6,9 +7,15 @@ namespace CefSharp.Test { internal class BrowserRefCountDebuggingAttribute : BeforeAfterTestAttribute { + private Type type; + internal BrowserRefCountDebuggingAttribute(Type type) + { + this.type = type; + } + public override void Before(MethodInfo methodUnderTest) { - ((BrowserRefCounter)BrowserRefCounter.Instance).AppendLineToLog($"Test Method {methodUnderTest.DeclaringType} {methodUnderTest.Name}"); + ((BrowserRefCounter)BrowserRefCounter.Instance).AppendLineToLog($"{type} - TestMethod {methodUnderTest.DeclaringType} {methodUnderTest.Name}"); base.Before(methodUnderTest); } diff --git a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs index 60119f4df..92162d4e4 100644 --- a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs @@ -11,7 +11,7 @@ namespace CefSharp.Test.Wpf { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - [BrowserRefCountDebugging] + [BrowserRefCountDebugging(typeof(ChromiumWebBrowser))] public class WaitForRenderIdleTests { diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs index b6748813e..1663a9ad9 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs @@ -14,7 +14,7 @@ namespace CefSharp.Test.Wpf { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - [BrowserRefCountDebugging] + [BrowserRefCountDebugging(typeof(ChromiumWebBrowser))] public class WpfBrowserBasicFacts { private readonly ITestOutputHelper output; diff --git a/CefSharp.WinForms/CefSharp.WinForms.csproj b/CefSharp.WinForms/CefSharp.WinForms.csproj index e3a436eb0..232089801 100644 --- a/CefSharp.WinForms/CefSharp.WinForms.csproj +++ b/CefSharp.WinForms/CefSharp.WinForms.csproj @@ -26,14 +26,9 @@ ChromiumWebBrowser.Partial.cs - Component - - - Component - - - Component + + diff --git a/CefSharp/Internals/BrowserRefCounter.cs b/CefSharp/Internals/BrowserRefCounter.cs index f84d9b2e1..d5c23b9a9 100644 --- a/CefSharp/Internals/BrowserRefCounter.cs +++ b/CefSharp/Internals/BrowserRefCounter.cs @@ -50,10 +50,7 @@ void IBrowserRefCounter.Increment(Type type) { manualResetEvent.Reset(); - if (loggingEnabled) - { - logger.AppendLine($"Incremented - {type} : ManualResetEvent was reset"); - } + AppendLineToLog($"{type} - Incremented (ManualResetEvent was reset)"); } else if(loggingEnabled) { @@ -66,10 +63,7 @@ bool IBrowserRefCounter.Decrement(Type type) { var newCount = Interlocked.Decrement(ref count); - if (loggingEnabled) - { - logger.AppendLine($"Decremented - {type} : Current Count {newCount}"); - } + AppendLineToLog($"{type} - Decremented (Current Count {newCount})"); if (newCount == 0) { @@ -79,6 +73,8 @@ bool IBrowserRefCounter.Decrement(Type type) if (newCount < 0) { + AppendLineToLog($"{type} - Decremented (Less than 0 : Current Count {newCount})"); + //If we went below 0 then reset to 0 // TODO: something went wrong with our tracking Interlocked.Exchange(ref count, 0); @@ -102,39 +98,27 @@ int IBrowserRefCounter.Count /// void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds) { - if (loggingEnabled) - { - logger.AppendLine($"WaitForBrowsersToClose - Current Count {count}"); - } + AppendLineToLog($"WaitForBrowsersToClose - Current Count {count}"); if (!manualResetEvent.IsSet) { manualResetEvent.Wait(timeoutInMiliseconds); } - if (loggingEnabled) - { - logger.AppendLine($"WaitForBrowsersToClose - Updated Count {count}"); - } + AppendLineToLog($"WaitForBrowsersToClose - Updated Count {count}"); } /// void IBrowserRefCounter.WaitForBrowsersToClose(int timeoutInMiliseconds, CancellationToken cancellationToken) { - if (loggingEnabled) - { - logger.AppendLine($"WaitForBrowsersToClose - Current Count {count}"); - } + AppendLineToLog($"WaitForBrowsersToClose - Current Count {count}"); if (!manualResetEvent.IsSet) { manualResetEvent.Wait(timeoutInMiliseconds, cancellationToken); } - if (loggingEnabled) - { - logger.AppendLine($"WaitForBrowsersToClose - Updated Count {count}"); - } + AppendLineToLog($"WaitForBrowsersToClose - Updated Count {count}"); } /// From 8342bf52c886a8902969fac8bcd4b8baf10cfdec Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 4 Oct 2022 15:52:36 +1000 Subject: [PATCH 113/543] Core - Update CefErrorCode (106.0.5249.61) --- CefSharp/Enums/CefErrorCode.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CefSharp/Enums/CefErrorCode.cs b/CefSharp/Enums/CefErrorCode.cs index 1a4724879..b56eb1d75 100644 --- a/CefSharp/Enums/CefErrorCode.cs +++ b/CefSharp/Enums/CefErrorCode.cs @@ -754,7 +754,7 @@ public enum CefErrorCode /// CertWeakSignatureAlgorithm = -208, - // -209 is availible: was CERT_NOT_IN_DNS. + // -209 is available: was CERT_NOT_IN_DNS. /// /// The host name specified in the certificate is not unique. @@ -1049,7 +1049,7 @@ public enum CefErrorCode ResponseHeadersTruncated = -357, /// - /// The QUIC crytpo handshake failed. This means that the server was unable + /// The QUIC crypto handshake failed. This means that the server was unable /// to read any requests sent, so they may be resent. /// QuicHandshakeFailed = -358, @@ -1190,6 +1190,12 @@ public enum CefErrorCode /// InconsistentIpAddressSpace = -383, + /// + /// The IP address space of the cached remote endpoint is blocked by private + /// network access check. + /// + CachedIpAddressSpaceBlockedByPrivateNetworkAccessPolicy = -384, + /// /// The cache does not have the requested entry. /// @@ -1256,7 +1262,7 @@ public enum CefErrorCode /// /// Internal not-quite error code for the HTTP cache. In-memory hints suggest - /// that the cache entry would not have been useable with the transaction's + /// that the cache entry would not have been usable with the transaction's /// current configuration (e.g. load flags, mode, etc.) /// CacheEntryNotSuitable = -411, From bda48d4c6eff1783eea98fc882d94ec6089fae19 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 5 Oct 2022 11:45:32 +1000 Subject: [PATCH 114/543] Upgrade to 106.0.26+ge105400+chromium-106.0.5249.91 / Chromium 106.0.5249.91 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index fbc24e90a..9ab2c037c 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 3724a19ca..2c6f06e0f 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 2c89f1951..9efc51993 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,250 - PRODUCTVERSION 106,0,250 + FILEVERSION 106,0,260 + PRODUCTVERSION 106,0,260 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "106.0.250" + VALUE "FileVersion", "106.0.260" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.250" + VALUE "ProductVersion", "106.0.260" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 9b0eecb13..c635550df 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 908ce0f6b..49e9b75f5 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 2e0a9c6e5..a073937ef 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 4a62f365f..25fd715e7 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 1c59c7f68..56c9137ca 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 2e6344895..c4c9fe68d 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,250 - PRODUCTVERSION 106,0,250 + FILEVERSION 106,0,260 + PRODUCTVERSION 106,0,260 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "106.0.250" + VALUE "FileVersion", "106.0.260" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.250" + VALUE "ProductVersion", "106.0.260" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 9b0eecb13..c635550df 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 908ce0f6b..49e9b75f5 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index c46441cee..6d4a9badc 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 92c3ff1b9..4274a8579 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 6eacb96e8..79cf6d6dc 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 490ad4d71..733b2ab21 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 783b02085..7a6af0160 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index f0ecae085..bfe761417 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 1f91c197f..11cee4d68 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 3b89dc7e9..f0a138cc3 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 43a6b2ba6..f0a5c3b98 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 843187a31..11e249dcb 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 6d09637f1..198e34b62 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 78564e1e8..73d0dc0a2 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 106.0.250 + 106.0.260 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 106.0.250 + Version 106.0.260 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 338b72858..a6991a4c9 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "106.0.250"; - public const string AssemblyFileVersion = "106.0.250.0"; + public const string AssemblyVersion = "106.0.260"; + public const string AssemblyFileVersion = "106.0.260.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 17cb72943..596e0c1fe 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 9b3cb6206..5415d7912 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index b97adae72..aeff9db27 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index af880e432..a4d08f870 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "106.0.25", + [string] $CefVersion = "106.0.26", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index ee10930b1..fe80d1f7a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 106.0.250-CI{build} +version: 106.0.260-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index d90ef2080..8ae698a6c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "106.0.250", + [string] $Version = "106.0.260", [Parameter(Position = 2)] - [string] $AssemblyVersion = "106.0.250", + [string] $AssemblyVersion = "106.0.260", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 54e4a44ff27d834200968c6bb4eeace7ef5c8963 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 5 Oct 2022 12:37:27 +1000 Subject: [PATCH 115/543] README.md - Update version numbers --- .github/ISSUE_TEMPLATE/bug_report.md | 14 +++++++------- CONTRIBUTING.md | 6 +++--- README.md | 5 +++-- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index bf5990b1a..d84edc310 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -31,18 +31,18 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 105.3.330 or greater. + - Please only create an issue if you can reproduce the problem with version 106.0.260 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 105.3.330 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 106.0.260 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** - + - **What version of .Net?** <.Net 4.x/.Net Core 3.1/.Net 5.0> - **On what operating system?** - + - **Are you using `WinForms`, `WPF` or `OffScreen`?** @@ -68,9 +68,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e197e0c9d..ebbbe256b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_105.3.39%2Bg2ec21f9%2Bchromium-105.0.5195.127_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 3c87338c1..2c39e40c1 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,9 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5195 | 2019* | 4.5.2** | Development | -| [cefsharp/105](https://github.com/cefsharp/CefSharp/tree/cefsharp/105)| 5195 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5249 | 2019* | 4.5.2** | Development | +| [cefsharp/106](https://github.com/cefsharp/CefSharp/tree/cefsharp/106)| 5249 | 2019* | 4.5.2** | **Release** | +| [cefsharp/105](https://github.com/cefsharp/CefSharp/tree/cefsharp/105)| 5195 | 2019* | 4.5.2** | Unsupported | | [cefsharp/104](https://github.com/cefsharp/CefSharp/tree/cefsharp/104)| 5112 | 2019* | 4.5.2** | Unsupported | | [cefsharp/103](https://github.com/cefsharp/CefSharp/tree/cefsharp/103)| 5060 | 2019* | 4.5.2** | Unsupported | | [cefsharp/102](https://github.com/cefsharp/CefSharp/tree/cefsharp/102)| 5005 | 2019* | 4.5.2** | Unsupported | From 9dc158693d6aa25cc6905ea10db90f1f548857e5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 14 Oct 2022 11:57:50 +1000 Subject: [PATCH 116/543] Core - Migrate from CefTime to CefBaseTime (MaxValue handling) - Validate large dates and return DateTime.MaxValue if greater than allowable DateTime Issue #4272 --- CefSharp/Internals/CefTimeUtils.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index f4c1efc92..9087ebe7e 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -27,7 +27,7 @@ public static class CefTimeUtils return null; } - return DateTime.FromFileTime(val * 10); + return FromBaseTimeToDateTime(val); } /// @@ -41,7 +41,16 @@ public static class CefTimeUtils /// returns a of public static DateTime FromBaseTimeToDateTime(long val) { - return DateTime.FromFileTime(val * 10); + const long MaxFileTime = 2650467743999999999; + + var fileTime = val * 10; + + if (fileTime > MaxFileTime) + { + return DateTime.MaxValue; + } + + return DateTime.FromFileTime(fileTime); } /// From 9db6bec21b6de70d6ab32ff4f8f709c8a3f32a62 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 16 Oct 2022 11:51:04 +1000 Subject: [PATCH 117/543] Core - Migrate from CefTime to CefBaseTime (Add custom conversion support) - Add new IBaseTimeConverter interface to allow for custom conversion of DateTime to/from CefBaseTime - Add some CefTimeUtils tests Issues #4234 #4272 --- CefSharp.Test/Framework/CefTimeUtilsFacts.cs | 66 ++++++++++++++++++++ CefSharp/Internals/BaseTimeConverter.cs | 35 +++++++++++ CefSharp/Internals/CefTimeUtils.cs | 36 +++++++---- CefSharp/Internals/IBaseTimeConverter.cs | 34 ++++++++++ 4 files changed, 158 insertions(+), 13 deletions(-) create mode 100644 CefSharp.Test/Framework/CefTimeUtilsFacts.cs create mode 100644 CefSharp/Internals/BaseTimeConverter.cs create mode 100644 CefSharp/Internals/IBaseTimeConverter.cs diff --git a/CefSharp.Test/Framework/CefTimeUtilsFacts.cs b/CefSharp.Test/Framework/CefTimeUtilsFacts.cs new file mode 100644 index 000000000..ed96aa5bf --- /dev/null +++ b/CefSharp.Test/Framework/CefTimeUtilsFacts.cs @@ -0,0 +1,66 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using CefSharp.Internals; +using System; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Framework +{ + public class CefTimeUtilsFacts + { + private readonly ITestOutputHelper output; + + public CefTimeUtilsFacts(ITestOutputHelper output) + { + this.output = output; + } + + [Theory] + [InlineData(0, "1601-01-01")] + [InlineData(2650467743999999999, "9999-12-31 23:59:59")] + [InlineData(759797148870000000, "9999-12-31 23:59:59")] + public void FromBaseTimeToDateTimeShouldWork(long val, string expectedDateTime) + { + var actual = CefTimeUtils.FromBaseTimeToDateTime(val); + var expected = DateTime.Parse(expectedDateTime).ToLocalTime(); + + Assert.Equal(actual, expected); + } + + [Fact] + public void FromDateTimeToBaseTimeShouldWorkForMaxValue() + { + const long expected = 265046774399999999; + var maxValueAsUtc = DateTime.SpecifyKind(DateTime.MaxValue, DateTimeKind.Utc); + + var actual = CefTimeUtils.FromDateTimeToBaseTime(maxValueAsUtc); + + Assert.Equal(actual, expected); + } + + [Fact] + public void FromDateTimeToBaseTimeShouldWorkForWindowsEpoch() + { + const long expected = 0; + var utcTime = DateTime.SpecifyKind(new DateTime(1601, 01, 01), DateTimeKind.Utc); + + var actual = CefTimeUtils.FromDateTimeToBaseTime(utcTime); + + Assert.Equal(actual, expected); + } + + //[Fact] + //public void FromDateTimeToBaseTimeShouldWorkForMinValue() + //{ + // const long expected = 0; + // var utcTime = DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind.Utc); + + // var actual = CefTimeUtils.FromDateTimeToBaseTime(utcTime); + + // Assert.Equal(actual, expected); + //} + } +} diff --git a/CefSharp/Internals/BaseTimeConverter.cs b/CefSharp/Internals/BaseTimeConverter.cs new file mode 100644 index 000000000..f6bfb06e4 --- /dev/null +++ b/CefSharp/Internals/BaseTimeConverter.cs @@ -0,0 +1,35 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; + +namespace CefSharp.Internals +{ + /// + public sealed class BaseTimeConverter : IBaseTimeConverter + { + /// + DateTime IBaseTimeConverter.FromBaseTimeToDateTime(long val) + { + const long MaxFileTime = 2650467743999999999; + + var fileTime = val * 10; + + if (fileTime > MaxFileTime) + { + return DateTime.MaxValue; + } + + return DateTime.FromFileTime(fileTime); + } + + /// + long IBaseTimeConverter.FromDateTimeToBaseTime(DateTime dateTime) + { + // Same as calling ToFileTime, this to me is a little + // more self descriptive of what's going on. + return dateTime.ToUniversalTime().ToFileTimeUtc() / 10; + } + } +} diff --git a/CefSharp/Internals/CefTimeUtils.cs b/CefSharp/Internals/CefTimeUtils.cs index 9087ebe7e..a7a143b81 100644 --- a/CefSharp/Internals/CefTimeUtils.cs +++ b/CefSharp/Internals/CefTimeUtils.cs @@ -11,6 +11,27 @@ namespace CefSharp.Internals /// public static class CefTimeUtils { + private static IBaseTimeConverter BaseTimeConverter = new BaseTimeConverter(); + + /// + /// Assign your own custom converter + /// used to convert to/from CefBaseTime + /// + /// converter + /// + /// Must be called in all processes for custom conversion of DateTime + /// used by the Sync Javascript Binding (.Net 4.x only) + /// + public static void UseBaseTimeConveter(IBaseTimeConverter converter) + { + if (converter == null) + { + throw new ArgumentNullException(nameof(converter)); + } + + BaseTimeConverter = converter; + } + /// /// Converts from CefBaseTime to DateTime? /// @@ -41,16 +62,7 @@ public static class CefTimeUtils /// returns a of public static DateTime FromBaseTimeToDateTime(long val) { - const long MaxFileTime = 2650467743999999999; - - var fileTime = val * 10; - - if (fileTime > MaxFileTime) - { - return DateTime.MaxValue; - } - - return DateTime.FromFileTime(fileTime); + return BaseTimeConverter.FromBaseTimeToDateTime(val); } /// @@ -62,9 +74,7 @@ public static DateTime FromBaseTimeToDateTime(long val) /// public static long FromDateTimeToBaseTime(DateTime dateTime) { - // Same as calling ToFileTime, this to me is a little - // more self descriptive of what's going on. - return dateTime.ToUniversalTime().ToFileTimeUtc() / 10; + return BaseTimeConverter.FromDateTimeToBaseTime(dateTime); } } } diff --git a/CefSharp/Internals/IBaseTimeConverter.cs b/CefSharp/Internals/IBaseTimeConverter.cs new file mode 100644 index 000000000..beabf3270 --- /dev/null +++ b/CefSharp/Internals/IBaseTimeConverter.cs @@ -0,0 +1,34 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; + +namespace CefSharp.Internals +{ + /// + /// Convert to/from and CefBaseTime + /// + public interface IBaseTimeConverter + { + /// + /// Converts from CefBaseTime to DateTime + /// + /// + /// Represents a wall clock time in UTC. Values are not guaranteed to be monotonically + /// non-decreasing and are subject to large amounts of skew. Time is stored internally + /// as microseconds since the Windows epoch (1601). + /// + /// returns a + DateTime FromBaseTimeToDateTime(long val); + + /// + /// Converts from DateTime to CefBaseTime + /// + /// DateTime + /// + /// Represents a wall clock time in UTC. Time as microseconds since the Windows epoch (1601). + /// + long FromDateTimeToBaseTime(DateTime dateTime); + } +} From 60df304c9392fdf580e79037dc4896bf14bd0397 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 16 Oct 2022 12:03:40 +1000 Subject: [PATCH 118/543] Upgrade to 106.0.29+gc10d419+chromium-106.0.5249.119 / Chromium 106.0.5249.119 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 9ab2c037c..a8da3183e 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 2c6f06e0f..75e2dfcf5 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 9efc51993..a5a6032e0 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,260 - PRODUCTVERSION 106,0,260 + FILEVERSION 106,0,290 + PRODUCTVERSION 106,0,290 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "106.0.260" + VALUE "FileVersion", "106.0.290" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.260" + VALUE "ProductVersion", "106.0.290" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index c635550df..0b007d0ba 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 49e9b75f5..5558c7ee1 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index a073937ef..de67a3d2b 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 25fd715e7..a2db78fdf 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 56c9137ca..4f9eb1a01 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index c4c9fe68d..e6b38b59d 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,260 - PRODUCTVERSION 106,0,260 + FILEVERSION 106,0,290 + PRODUCTVERSION 106,0,290 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "106.0.260" + VALUE "FileVersion", "106.0.290" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.260" + VALUE "ProductVersion", "106.0.290" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index c635550df..0b007d0ba 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 49e9b75f5..5558c7ee1 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 6d4a9badc..b6f052902 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 4274a8579..0c899852b 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 79cf6d6dc..65973c27e 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 733b2ab21..33c712d20 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 7a6af0160..fee878945 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index bfe761417..67fd82e6f 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 11cee4d68..465a7309b 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index f0a138cc3..57ede4f5a 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index f0a5c3b98..f85a989f8 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 11e249dcb..4950d232d 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 198e34b62..8a0fb1a4c 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 73d0dc0a2..24ae07188 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 106.0.260 + 106.0.290 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 106.0.260 + Version 106.0.290 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index a6991a4c9..a6c6dda86 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "106.0.260"; - public const string AssemblyFileVersion = "106.0.260.0"; + public const string AssemblyVersion = "106.0.290"; + public const string AssemblyFileVersion = "106.0.290.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 596e0c1fe..a6eb2d872 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 5415d7912..815ce8dfc 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index aeff9db27..6a3037b49 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index a4d08f870..b401c0814 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "106.0.26", + [string] $CefVersion = "106.0.29", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index fe80d1f7a..3955e0044 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 106.0.260-CI{build} +version: 106.0.290-CI{build} clone_depth: 10 From 0f99d4f9458b9fb1846e81118ef5f4f69539ddc8 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 16 Oct 2022 13:29:19 +1000 Subject: [PATCH 119/543] Core - Migrate from CefTime to CefBaseTime (Support dates less than Windows Epoch) - DateTime won't work for anything less than Windows Epoch so we have to manually handle those dates. Issues #4234 --- CefSharp.Test/Framework/CefTimeUtilsFacts.cs | 43 ++++++++++++++++---- CefSharp/Internals/BaseTimeConverter.cs | 32 ++++++++++++++- 2 files changed, 66 insertions(+), 9 deletions(-) diff --git a/CefSharp.Test/Framework/CefTimeUtilsFacts.cs b/CefSharp.Test/Framework/CefTimeUtilsFacts.cs index ed96aa5bf..ebf3db3e2 100644 --- a/CefSharp.Test/Framework/CefTimeUtilsFacts.cs +++ b/CefSharp.Test/Framework/CefTimeUtilsFacts.cs @@ -19,6 +19,8 @@ public CefTimeUtilsFacts(ITestOutputHelper output) } [Theory] + [InlineData(-50491123200000000, "0001-01-01")] + [InlineData(-86400000000, "1600-12-31")] [InlineData(0, "1601-01-01")] [InlineData(2650467743999999999, "9999-12-31 23:59:59")] [InlineData(759797148870000000, "9999-12-31 23:59:59")] @@ -52,15 +54,40 @@ public void FromDateTimeToBaseTimeShouldWorkForWindowsEpoch() Assert.Equal(actual, expected); } - //[Fact] - //public void FromDateTimeToBaseTimeShouldWorkForMinValue() - //{ - // const long expected = 0; - // var utcTime = DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind.Utc); + [Fact] + public void FromDateTimeToBaseTimeShouldWorkForMinValue() + { + const long expected = -50491123200000000; + var utcTime = DateTime.SpecifyKind(DateTime.MinValue, DateTimeKind.Utc); + + var actual = CefTimeUtils.FromDateTimeToBaseTime(utcTime); + + Assert.Equal(actual, expected); + } + + + [Fact] + public void ShouldConvertMinValueToAndFromDateTime() + { + var expected = DateTime.MinValue.ToLocalTime(); - // var actual = CefTimeUtils.FromDateTimeToBaseTime(utcTime); + var baseTime = CefTimeUtils.FromDateTimeToBaseTime(expected); - // Assert.Equal(actual, expected); - //} + var actual = CefTimeUtils.FromBaseTimeToDateTime(baseTime); + + Assert.Equal(actual, expected); + } + + [Fact] + public void ShouldConvertMaxValueToAndFromDateTime() + { + var expected = DateTime.MaxValue.ToLocalTime(); + + var baseTime = CefTimeUtils.FromDateTimeToBaseTime(expected); + + var actual = CefTimeUtils.FromBaseTimeToDateTime(baseTime); + + Assert.Equal(actual, expected, TimeSpan.FromMilliseconds(10)); + } } } diff --git a/CefSharp/Internals/BaseTimeConverter.cs b/CefSharp/Internals/BaseTimeConverter.cs index f6bfb06e4..bdd40ffd6 100644 --- a/CefSharp/Internals/BaseTimeConverter.cs +++ b/CefSharp/Internals/BaseTimeConverter.cs @@ -9,10 +9,15 @@ namespace CefSharp.Internals /// public sealed class BaseTimeConverter : IBaseTimeConverter { + private static DateTime UtcWindowsEpoch = DateTime.SpecifyKind(DateTime.Parse("1601-01-01"), DateTimeKind.Utc); + /// DateTime IBaseTimeConverter.FromBaseTimeToDateTime(long val) { + //DateTime.MaxTicks - DateTime.FileTimeOffset const long MaxFileTime = 2650467743999999999; + //DateTime.FileTimeOffset + const long FileTimeOffset = 504911232000000000; var fileTime = val * 10; @@ -21,15 +26,40 @@ DateTime IBaseTimeConverter.FromBaseTimeToDateTime(long val) return DateTime.MaxValue; } + if (fileTime < 0) + { + var universalTicks = fileTime + FileTimeOffset; + + if(universalTicks <= 0) + { + return DateTime.MinValue.ToLocalTime(); + } + + return new DateTime(universalTicks, DateTimeKind.Utc).ToLocalTime(); + } + return DateTime.FromFileTime(fileTime); } /// long IBaseTimeConverter.FromDateTimeToBaseTime(DateTime dateTime) { + //DateTime.FileTimeOffset + const long FileTimeOffset = 504911232000000000; + + var utcDateTime = dateTime.ToUniversalTime(); + + // FileTime doesn't support less than Epoch + if(utcDateTime < UtcWindowsEpoch) + { + var ticks = utcDateTime.Ticks - FileTimeOffset; + + return ticks / 10; + } + // Same as calling ToFileTime, this to me is a little // more self descriptive of what's going on. - return dateTime.ToUniversalTime().ToFileTimeUtc() / 10; + return utcDateTime.ToFileTimeUtc() / 10; } } } From baf487f958f012bf8be59997faf48fdaae9a4e6a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 17 Oct 2022 13:39:53 +1000 Subject: [PATCH 120/543] Test - CefTimeUtilsFacts.FromBaseTimeToDateTimeShouldWork add precision - Add precision to deal with minor loss in precision (expected) - Fix actual/expected order --- CefSharp.Test/Framework/CefTimeUtilsFacts.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CefSharp.Test/Framework/CefTimeUtilsFacts.cs b/CefSharp.Test/Framework/CefTimeUtilsFacts.cs index ebf3db3e2..e9b5a43ab 100644 --- a/CefSharp.Test/Framework/CefTimeUtilsFacts.cs +++ b/CefSharp.Test/Framework/CefTimeUtilsFacts.cs @@ -29,7 +29,7 @@ public void FromBaseTimeToDateTimeShouldWork(long val, string expectedDateTime) var actual = CefTimeUtils.FromBaseTimeToDateTime(val); var expected = DateTime.Parse(expectedDateTime).ToLocalTime(); - Assert.Equal(actual, expected); + Assert.Equal(expected, actual, TimeSpan.FromSeconds(1)); } [Fact] @@ -40,7 +40,7 @@ public void FromDateTimeToBaseTimeShouldWorkForMaxValue() var actual = CefTimeUtils.FromDateTimeToBaseTime(maxValueAsUtc); - Assert.Equal(actual, expected); + Assert.Equal(expected, actual); } [Fact] @@ -51,7 +51,7 @@ public void FromDateTimeToBaseTimeShouldWorkForWindowsEpoch() var actual = CefTimeUtils.FromDateTimeToBaseTime(utcTime); - Assert.Equal(actual, expected); + Assert.Equal(expected, actual); } [Fact] @@ -62,7 +62,7 @@ public void FromDateTimeToBaseTimeShouldWorkForMinValue() var actual = CefTimeUtils.FromDateTimeToBaseTime(utcTime); - Assert.Equal(actual, expected); + Assert.Equal(expected, actual); } @@ -75,7 +75,7 @@ public void ShouldConvertMinValueToAndFromDateTime() var actual = CefTimeUtils.FromBaseTimeToDateTime(baseTime); - Assert.Equal(actual, expected); + Assert.Equal(expected, actual); } [Fact] @@ -87,7 +87,7 @@ public void ShouldConvertMaxValueToAndFromDateTime() var actual = CefTimeUtils.FromBaseTimeToDateTime(baseTime); - Assert.Equal(actual, expected, TimeSpan.FromMilliseconds(10)); + Assert.Equal(expected, actual, TimeSpan.FromMilliseconds(10)); } } } From 6b3438e4d83869d0f1c50a323058e896793b22bc Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 19 Oct 2022 16:04:48 +1000 Subject: [PATCH 121/543] WPF Example - Update PopupTest.html to use resource on same domain --- CefSharp.Example/Resources/PopupTest.html | 36 ++++++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/CefSharp.Example/Resources/PopupTest.html b/CefSharp.Example/Resources/PopupTest.html index 4cbdbf6de..4286cc8d2 100644 --- a/CefSharp.Example/Resources/PopupTest.html +++ b/CefSharp.Example/Resources/PopupTest.html @@ -12,22 +12,42 @@
MultiBindingTest.html
- - + + From 1dc45b3468f24dd88ed91dccd4ea010618d0760c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 25 Oct 2022 11:17:56 +1000 Subject: [PATCH 122/543] Example - Add ImageTest.html - basic html page to display embedded image resource --- CefSharp.Example/CefSharp.Example.csproj | 1 + .../CefSharpSchemeHandlerFactory.cs | 28 +++++++++++++------ .../Properties/Resources.Designer.cs | 21 ++++++++++++++ CefSharp.Example/Properties/Resources.resx | 3 ++ CefSharp.Example/Resources/ImageTest.html | 12 ++++++++ 5 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 CefSharp.Example/Resources/ImageTest.html diff --git a/CefSharp.Example/CefSharp.Example.csproj b/CefSharp.Example/CefSharp.Example.csproj index a6ff1e596..587251935 100644 --- a/CefSharp.Example/CefSharp.Example.csproj +++ b/CefSharp.Example/CefSharp.Example.csproj @@ -38,6 +38,7 @@ + diff --git a/CefSharp.Example/CefSharpSchemeHandlerFactory.cs b/CefSharp.Example/CefSharpSchemeHandlerFactory.cs index 034a1097f..a077a479d 100644 --- a/CefSharp.Example/CefSharpSchemeHandlerFactory.cs +++ b/CefSharp.Example/CefSharpSchemeHandlerFactory.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.IO; using CefSharp.Example.Properties; @@ -14,11 +15,11 @@ public class CefSharpSchemeHandlerFactory : ISchemeHandlerFactory public const string SchemeName = "custom"; public const string SchemeNameTest = "test"; - private static readonly IDictionary ResourceDictionary; + private static readonly IDictionary ResourceDictionary; static CefSharpSchemeHandlerFactory() { - ResourceDictionary = new Dictionary + ResourceDictionary = new Dictionary { { "/home.html", Resources.home_html }, @@ -60,8 +61,11 @@ static CefSharpSchemeHandlerFactory() { "/JavascriptCallbackTest.html", Resources.JavascriptCallbackTest }, { "/BindingTestsAsyncTask.html", Resources.BindingTestsAsyncTask }, { "/BindingApiCustomObjectNameTest.html", Resources.BindingApiCustomObjectNameTest }, - { "/HelloWorld.html", Resources.HelloWorld } + { "/HelloWorld.html", Resources.HelloWorld }, + { "/ImageTest.html", Resources.ImageTest } }; + + ResourceDictionary.Add("/assets/images/beach-2089936_1920.jpg", (byte[])TypeDescriptor.GetConverter(Resources.beach.GetType()).ConvertTo(Resources.beach, typeof(byte[]))); } public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName, IRequest request) @@ -81,7 +85,6 @@ public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName //Convenient helper method to lookup the mimeType var mimeType = Cef.GetMimeType("xml"); //Load a resource handler for CefSharp.Core.xml - //mimeType is optional and will default to text/html return ResourceHandler.FromFilePath("CefSharp.Core.xml", mimeType, autoDisposeStream: true); } @@ -90,7 +93,6 @@ public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName //Convenient helper method to lookup the mimeType var mimeType = Cef.GetMimeType("png"); //Load a resource handler for Logo.png - //mimeType is optional and will default to text/html return ResourceHandler.FromFilePath("..\\..\\..\\..\\CefSharp.WinForms.Example\\Resources\\chromium-256.png", mimeType, autoDisposeStream: true); } @@ -105,11 +107,21 @@ public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName return ResourceHandler.FromString("", mimeType: ResourceHandler.DefaultMimeType); } - string resource; - if (ResourceDictionary.TryGetValue(fileName, out resource) && !string.IsNullOrEmpty(resource)) + object resource; + if (ResourceDictionary.TryGetValue(fileName, out resource)) { var fileExtension = Path.GetExtension(fileName); - return ResourceHandler.FromString(resource, includePreamble: true, mimeType: Cef.GetMimeType(fileExtension)); + var mimeType = Cef.GetMimeType(fileExtension); + + if (resource is string resourceString) + { + return ResourceHandler.FromString(resourceString, includePreamble: true, mimeType: mimeType); + } + + if(resource is byte[] resourceByteArray) + { + return ResourceHandler.FromByteArray(resourceByteArray, mimeType: mimeType); + } } return null; diff --git a/CefSharp.Example/Properties/Resources.Designer.cs b/CefSharp.Example/Properties/Resources.Designer.cs index 4912093d8..e469af3dc 100644 --- a/CefSharp.Example/Properties/Resources.Designer.cs +++ b/CefSharp.Example/Properties/Resources.Designer.cs @@ -680,6 +680,27 @@ public static string home_html { } } + /// + /// Looks up a localized string similar to <!DOCTYPE html> + /// + ///<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> + ///<head> + /// <meta charset="utf-8" /> + /// <title>Image Test</title> + ///</head> + ///<body> + /// <p>Image Loaded From Scheme Handler</p> + /// <img src="/assets/images/beach-2089936_1920.jpg" width="800" /> + ///</body> + ///</html> + ///. + /// + public static string ImageTest { + get { + return ResourceManager.GetString("ImageTest", resourceCulture); + } + } + /// /// Looks up a localized string similar to <!DOCTYPE html> /// diff --git a/CefSharp.Example/Properties/Resources.resx b/CefSharp.Example/Properties/Resources.resx index 5558d1eb0..0528d6814 100644 --- a/CefSharp.Example/Properties/Resources.resx +++ b/CefSharp.Example/Properties/Resources.resx @@ -235,4 +235,7 @@ ..\Resources\HelloWorld.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 + + ..\Resources\ImageTest.html;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 + \ No newline at end of file diff --git a/CefSharp.Example/Resources/ImageTest.html b/CefSharp.Example/Resources/ImageTest.html new file mode 100644 index 000000000..f0a138559 --- /dev/null +++ b/CefSharp.Example/Resources/ImageTest.html @@ -0,0 +1,12 @@ + + + + + + Image Test + + +

Image Loaded From Scheme Handler

+ + + From 92892c9b8537c1486c5e1c67d1b23559e28548b9 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 25 Oct 2022 12:32:01 +1000 Subject: [PATCH 123/543] WPF - Add ChromiumWebBrowser.ToggleAudioMuteCommand - Add new extension method to toggle audio mute - Add new command to toggle audio mute - Add new menu item to WPF Example Resolves #3247 --- CefSharp.Core/WebBrowserExtensionsEx.cs | 31 ++++++++++++++++++++++++- CefSharp.Wpf.Example/MainWindow.xaml | 1 + CefSharp.Wpf.Example/MainWindow.xaml.cs | 5 ++++ CefSharp.Wpf/ChromiumWebBrowser.cs | 4 ++++ CefSharp.Wpf/IWpfWebBrowser.cs | 5 ++++ 5 files changed, 45 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core/WebBrowserExtensionsEx.cs b/CefSharp.Core/WebBrowserExtensionsEx.cs index 2936c0c7d..78b28b32f 100644 --- a/CefSharp.Core/WebBrowserExtensionsEx.cs +++ b/CefSharp.Core/WebBrowserExtensionsEx.cs @@ -5,7 +5,6 @@ using CefSharp.Internals; using System; using System.IO; -using System.Threading; using System.Threading.Tasks; namespace CefSharp @@ -143,5 +142,35 @@ public static Task DownloadUrlAsync(this IFrame frame, string url) return taskCompletionSource.Task; } + + /// + /// Toggles audio mute for the current browser. + /// If the is null or has been disposed + /// then this command will be a no-op. + /// + /// The ChromiumWebBrowser instance this method extends. + public static void ToggleAudioMute(this IChromiumWebBrowserBase browser) + { + if (browser.IsDisposed || Cef.IsShutdown) + { + return; + } + + _ = Cef.UIThreadTaskFactory.StartNew(delegate + { + var cefBrowser = browser.BrowserCore; + + if (cefBrowser == null || cefBrowser.IsDisposed) + { + return; + } + + var host = cefBrowser.GetHost(); + + var isAudioMuted = host.IsAudioMuted; + + host.SetAudioMuted(!isAudioMuted); + }); + } } } diff --git a/CefSharp.Wpf.Example/MainWindow.xaml b/CefSharp.Wpf.Example/MainWindow.xaml index a8e4b8a31..39a2129a7 100644 --- a/CefSharp.Wpf.Example/MainWindow.xaml +++ b/CefSharp.Wpf.Example/MainWindow.xaml @@ -18,6 +18,7 @@ + diff --git a/CefSharp.Wpf.Example/MainWindow.xaml.cs b/CefSharp.Wpf.Example/MainWindow.xaml.cs index 227ed152b..d4711ad9e 100644 --- a/CefSharp.Wpf.Example/MainWindow.xaml.cs +++ b/CefSharp.Wpf.Example/MainWindow.xaml.cs @@ -131,6 +131,11 @@ private void CustomCommandBinding(object sender, ExecutedRoutedEventArgs e) var cmd = browserViewModel.WebBrowser.ZoomResetCommand; cmd.Execute(null); } + else if (param == "ToggleAudioMute") + { + var cmd = browserViewModel.WebBrowser.ToggleAudioMuteCommand; + cmd.Execute(null); + } else if (param == "ClearHttpAuthCredentials") { var browserHost = browserViewModel.WebBrowser.GetBrowserHost(); diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 4f55b09ca..f88e6ca92 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -319,6 +319,9 @@ public IRequestContext RequestContext /// The redo command. public ICommand RedoCommand { get; private set; } + /// + public ICommand ToggleAudioMuteCommand { get; private set; } + /// /// The dpi scale factor, if the browser has already been initialized /// you must manually call IBrowserHost.NotifyScreenInfoChanged for the @@ -555,6 +558,7 @@ private void NoInliningConstructor() SelectAllCommand = new DelegateCommand(this.SelectAll); UndoCommand = new DelegateCommand(this.Undo); RedoCommand = new DelegateCommand(this.Redo); + ToggleAudioMuteCommand = new DelegateCommand(this.ToggleAudioMute); managedCefBrowserAdapter = ManagedCefBrowserAdapter.Create(this, true); diff --git a/CefSharp.Wpf/IWpfWebBrowser.cs b/CefSharp.Wpf/IWpfWebBrowser.cs index a30dc2353..0fb0c0e4c 100644 --- a/CefSharp.Wpf/IWpfWebBrowser.cs +++ b/CefSharp.Wpf/IWpfWebBrowser.cs @@ -117,6 +117,11 @@ public interface IWpfWebBrowser : IWebBrowser, IInputElement /// The redo command. ICommand RedoCommand { get; } + /// + /// Toggles the audio mute for the current browser. + /// + ICommand ToggleAudioMuteCommand { get; } + /// /// Gets the associated with this instance. /// From aa582e83e105c82d936ccd1c193157c9df438438 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 25 Oct 2022 13:12:20 +1000 Subject: [PATCH 124/543] WinForms/WPF - Add ChromiumWebBrowser.UnregisterShutdownHandler Resolves #4096 --- CefSharp.WinForms/ChromiumWebBrowser.cs | 9 +++++++++ CefSharp.Wpf/ChromiumWebBrowser.cs | 24 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index 0924173e7..77c4b773e 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -271,6 +271,15 @@ private static void OnApplicationExit(object sender, EventArgs e) Cef.Shutdown(); } + /// + /// To control how is called, this method will + /// unsubscribe from , + /// + public static void UnregisterShutdownHandler() + { + Application.ApplicationExit -= OnApplicationExit; + } + /// /// Important!!! /// This constructor exists as the WinForms designer requires a parameterless constructor, if you are instantiating diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index f88e6ca92..59e5b7fdd 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -428,6 +428,30 @@ private static void CefShutdown() Cef.Shutdown(); } + /// + /// To control how is called, this method will + /// unsubscribe from , + /// and . + /// + public static void UnregisterShutdownHandler() + { + //Use Dispatcher.FromThread as it returns null if no dispatcher + //is available for this thread. + var dispatcher = Dispatcher.FromThread(Thread.CurrentThread); + if (dispatcher != null) + { + dispatcher.ShutdownStarted -= DispatcherShutdownStarted; + dispatcher.ShutdownFinished -= DispatcherShutdownFinished; + } + + var app = Application.Current; + + if (app != null) + { + app.Exit -= OnApplicationExit; + } + } + /// /// Initializes a new instance of the class. /// From 299f63e64fd913d6be4fed57cb37c8335e08dc30 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 25 Oct 2022 14:23:18 +1000 Subject: [PATCH 125/543] Doc - Clarify LifeSpanHandler.OnBeforePopup return true behaviour - Better explanation of return true in OnBeforePopup - Also Add example doc links Resolves #3847 --- .../Handlers/ExperimentalLifespanHandler.cs | 35 +++++++------------ CefSharp/Handler/ILifeSpanHandler.cs | 33 +++++++++-------- CefSharp/Handler/LifeSpanHandler.cs | 33 +++++++++-------- 3 files changed, 45 insertions(+), 56 deletions(-) diff --git a/CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs b/CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs index 7265b3b93..f85b1c8ad 100644 --- a/CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs +++ b/CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs @@ -5,16 +5,14 @@ using System; using System.Runtime.InteropServices; using System.Text; -using System.Windows; -using System.Windows.Interop; namespace CefSharp.Wpf.Example.Handlers { /// - /// LifeSpanHandler implementation that demos hosting a popup in a new ChromiumWebBrowser instance. - /// This example code is EXPERIMENTAL + /// WPF - EXPERIMENTAL LifeSpanHandler implementation that demos hosting a popup in a new ChromiumWebBrowser instance + /// hosted in a new Window. /// - public class ExperimentalLifespanHandler : ILifeSpanHandler + public class ExperimentalLifespanHandler : CefSharp.Handler.LifeSpanHandler { [DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)] private static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount); @@ -31,11 +29,8 @@ private static string GetWindowTitle(IntPtr hWnd) return sb.ToString(); } - bool ILifeSpanHandler.OnBeforePopup(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) + protected override bool OnBeforePopup(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) { - //Set newBrowser to null unless your attempting to host the popup in a new instance of ChromiumWebBrowser - //newBrowser = null; - var chromiumWebBrowser = (ChromiumWebBrowser)browserControl; ChromiumWebBrowser popupChromiumWebBrowser = null; @@ -45,15 +40,16 @@ bool ILifeSpanHandler.OnBeforePopup(IWebBrowser browserControl, IBrowser browser var windowWidth = (windowInfo.Width == int.MinValue) ? double.NaN : windowInfo.Width; var windowHeight = (windowInfo.Height == int.MinValue) ? double.NaN : windowInfo.Height; + // Invoke onto the WPF UI Thread to create a new Window/UI Control chromiumWebBrowser.Dispatcher.Invoke(() => { - var owner = Window.GetWindow(chromiumWebBrowser); + var owner = System.Windows.Window.GetWindow(chromiumWebBrowser); popupChromiumWebBrowser = new ChromiumWebBrowser(); popupChromiumWebBrowser.SetAsPopup(); popupChromiumWebBrowser.LifeSpanHandler = this; - var popup = new Window + var popup = new System.Windows.Window { Left = windowX, Top = windowY, @@ -64,7 +60,7 @@ bool ILifeSpanHandler.OnBeforePopup(IWebBrowser browserControl, IBrowser browser Title = targetFrameName }; - var windowInteropHelper = new WindowInteropHelper(popup); + var windowInteropHelper = new System.Windows.Interop.WindowInteropHelper(popup); //Create the handle Window handle (In WPF there's only one handle per window, not per control) var handle = windowInteropHelper.EnsureHandle(); @@ -75,7 +71,7 @@ bool ILifeSpanHandler.OnBeforePopup(IWebBrowser browserControl, IBrowser browser popup.Closed += (o, e) => { - var w = o as Window; + var w = o as System.Windows.Window; if (w != null && w.Content is IWebBrowser) { (w.Content as IWebBrowser).Dispose(); @@ -89,7 +85,7 @@ bool ILifeSpanHandler.OnBeforePopup(IWebBrowser browserControl, IBrowser browser return false; } - void ILifeSpanHandler.OnAfterCreated(IWebBrowser browserControl, IBrowser browser) + protected override void OnAfterCreated(IWebBrowser browserControl, IBrowser browser) { if (!browser.IsDisposed && browser.IsPopup) { @@ -104,7 +100,7 @@ void ILifeSpanHandler.OnAfterCreated(IWebBrowser browserControl, IBrowser browse chromiumWebBrowser.Dispatcher.Invoke(() => { - var owner = Window.GetWindow(chromiumWebBrowser); + var owner = System.Windows.Window.GetWindow(chromiumWebBrowser); if (owner != null && owner.Content == browserControl) { @@ -115,12 +111,7 @@ void ILifeSpanHandler.OnAfterCreated(IWebBrowser browserControl, IBrowser browse } } - bool ILifeSpanHandler.DoClose(IWebBrowser browserControl, IBrowser browser) - { - return false; - } - - void ILifeSpanHandler.OnBeforeClose(IWebBrowser browserControl, IBrowser browser) + protected override void OnBeforeClose(IWebBrowser browserControl, IBrowser browser) { if (!browser.IsDisposed && browser.IsPopup) { @@ -131,7 +122,7 @@ void ILifeSpanHandler.OnBeforeClose(IWebBrowser browserControl, IBrowser browser chromiumWebBrowser.Dispatcher.Invoke(() => { - var owner = Window.GetWindow(chromiumWebBrowser); + var owner = System.Windows.Window.GetWindow(chromiumWebBrowser); if (owner != null && owner.Content == browserControl) { diff --git a/CefSharp/Handler/ILifeSpanHandler.cs b/CefSharp/Handler/ILifeSpanHandler.cs index d1e8ca4d7..d2b15879d 100644 --- a/CefSharp/Handler/ILifeSpanHandler.cs +++ b/CefSharp/Handler/ILifeSpanHandler.cs @@ -11,7 +11,7 @@ namespace CefSharp public interface ILifeSpanHandler { /// - /// Called before a popup window is created. + /// Called before a popup window is created. By default the popup (browser) is created in a new native window. /// /// the ChromiumWebBrowser control /// The browser instance that launched this popup. @@ -27,23 +27,22 @@ public interface ILifeSpanHandler /// browser settings, defaults to source browsers /// value indicates whether the new browser window should be scriptable /// and in the same process as the source browser. - /// EXPERIMENTAL - A newly created browser that will host the popup. Set to null - /// for default behaviour. - /// To cancel creation of the popup window return true otherwise return false. + /// + /// EXPERIMENTAL - Low level this allows for assigning the CefClient instance associated with the new ChromiumWebBrowser instance to the CefClient param of the CefLifeSpanHandler::OnBeforeBrowser method. + /// This allows for all the handlers, LifeSpanHandler, DisplayHandler, etc to be associated with the CefClient of the new ChromiumWebBrowser instance to be associated with the popup (browser). + /// WPF/WinForms specific code is still required to host the popup (browser) in the new ChromiumWebBrowser instance. + /// Set to null for default behaviour. If you return true (cancel popup creation) then his property **MUST** be null, an exception will be thrown otherwise. + /// + /// + /// By default the popup (browser) is opened in a new native window. If you return true then creation of the popup (browser) is cancelled, no further action will occur. + /// Otherwise return false to allow creation of the popup (browser). + /// /// - /// CEF documentation: - /// - /// Called on the IO thread before a new popup window is created. The |browser| - /// and |frame| parameters represent the source of the popup request. The - /// |target_url| and |target_frame_name| values may be empty if none were - /// specified with the request. The |popupFeatures| structure contains - /// information about the requested popup window. To allow creation of the - /// popup window optionally modify |windowInfo|, |client|, |settings| and - /// |no_javascript_access| and return false. To cancel creation of the popup - /// window return true. The |client| and |settings| values will default to the - /// source browser's values. The |no_javascript_access| value indicates whether - /// the new browser window should be scriptable and in the same process as the - /// source browser. + /// If you return true and set to not null then an exception will be thrown as creation of the popup (browser) was cancelled. + /// WinForms - To host the popup (browser) in a TAB/Custom Window see https://github.com/cefsharp/CefSharp/wiki/General-Usage#winforms---hosting-popup-using-tab-control for an easy method. + /// WPF - For an example of hosting the popup (browser) in a custom window see https://github.com/cefsharp/CefSharp/wiki/General-Usage#wpf---hosting-popup-in-new-window-experimental + /// Same can be applied for hosting the popup in a TAB. + /// This method is still EXPERIMENTAL and will likely require upstream bug fixes in CEF (https://bitbucket.org/chromiumembedded/cef). /// bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser); diff --git a/CefSharp/Handler/LifeSpanHandler.cs b/CefSharp/Handler/LifeSpanHandler.cs index dc56c9298..f100c2d08 100644 --- a/CefSharp/Handler/LifeSpanHandler.cs +++ b/CefSharp/Handler/LifeSpanHandler.cs @@ -136,7 +136,7 @@ bool ILifeSpanHandler.OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser bro } /// - /// Called before a popup window is created. + /// Called before a popup window is created. By default the popup (browser) is created in a new native window. /// /// the ChromiumWebBrowser control /// The browser instance that launched this popup. @@ -152,23 +152,22 @@ bool ILifeSpanHandler.OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser bro /// browser settings, defaults to source browsers /// value indicates whether the new browser window should be scriptable /// and in the same process as the source browser. - /// EXPERIMENTAL - A newly created browser that will host the popup. Set to null - /// for default behaviour. - /// To cancel creation of the popup window return true otherwise return false. + /// + /// EXPERIMENTAL - Low level this allows for assigning the CefClient instance associated with the new ChromiumWebBrowser instance to the CefClient param of the CefLifeSpanHandler::OnBeforeBrowser method. + /// This allows for all the handlers, LifeSpanHandler, DisplayHandler, etc to be associated with the CefClient of the new ChromiumWebBrowser instance to be associated with the popup (browser). + /// WPF/WinForms specific code is still required to host the popup (browser) in the new ChromiumWebBrowser instance. + /// Set to null for default behaviour. If you return true (cancel popup creation) then his property **MUST** be null, an exception will be thrown otherwise. + /// + /// + /// By default the popup (browser) is opened in a new native window. If you return true then creation of the popup (browser) is cancelled, no further action will occur. + /// Otherwise return false to allow creation of the popup (browser). + /// /// - /// CEF documentation: - /// - /// Called on the IO thread before a new popup window is created. The |browser| - /// and |frame| parameters represent the source of the popup request. The - /// |target_url| and |target_frame_name| values may be empty if none were - /// specified with the request. The |popupFeatures| structure contains - /// information about the requested popup window. To allow creation of the - /// popup window optionally modify |windowInfo|, |client|, |settings| and - /// |no_javascript_access| and return false. To cancel creation of the popup - /// window return true. The |client| and |settings| values will default to the - /// source browser's values. The |no_javascript_access| value indicates whether - /// the new browser window should be scriptable and in the same process as the - /// source browser. + /// If you return true and set to not null then an exception will be thrown as creation of the popup (browser) was cancelled. + /// WinForms - To host the popup (browser) in a TAB/Custom Window see https://github.com/cefsharp/CefSharp/wiki/General-Usage#winforms---hosting-popup-using-tab-control for an easy method. + /// WPF - For an example of hosting the popup (browser) in a custom window see https://github.com/cefsharp/CefSharp/wiki/General-Usage#wpf---hosting-popup-in-new-window-experimental + /// Same can be applied for hosting the popup in a TAB. + /// This method is still EXPERIMENTAL and will likely require upstream bug fixes in CEF (https://bitbucket.org/chromiumembedded/cef). /// protected virtual bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) { From ec8e3405bd2b9529c76e17d6999441057d36f09f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 25 Oct 2022 15:22:35 +1000 Subject: [PATCH 126/543] WPF - Add Experimental LifeSpanHandler capable of hosting pop-ups as Tabs/Controls Issue #4285 --- .../Handlers/ExperimentalLifespanHandler.cs | 136 --------- .../Views/BrowserTabView.xaml.cs | 67 ++++- .../Experimental/LifeSpanHandlerBuilder.cs | 91 ++++++ CefSharp.Wpf/Experimental/LifespanHandler.cs | 279 ++++++++++++++++++ CefSharp.Wpf/Experimental/PopupCreation.cs | 25 ++ 5 files changed, 459 insertions(+), 139 deletions(-) delete mode 100644 CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs create mode 100644 CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs create mode 100644 CefSharp.Wpf/Experimental/LifespanHandler.cs create mode 100644 CefSharp.Wpf/Experimental/PopupCreation.cs diff --git a/CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs b/CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs deleted file mode 100644 index f85b1c8ad..000000000 --- a/CefSharp.Wpf.Example/Handlers/ExperimentalLifespanHandler.cs +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright © 2015 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; -using System.Runtime.InteropServices; -using System.Text; - -namespace CefSharp.Wpf.Example.Handlers -{ - /// - /// WPF - EXPERIMENTAL LifeSpanHandler implementation that demos hosting a popup in a new ChromiumWebBrowser instance - /// hosted in a new Window. - /// - public class ExperimentalLifespanHandler : CefSharp.Handler.LifeSpanHandler - { - [DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - private static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount); - - [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)] - private static extern int GetWindowTextLength(IntPtr hWnd); - - private static string GetWindowTitle(IntPtr hWnd) - { - // Allocate correct string length first - int length = GetWindowTextLength(hWnd); - var sb = new StringBuilder(length + 1); - GetWindowText(hWnd, sb, sb.Capacity); - return sb.ToString(); - } - - protected override bool OnBeforePopup(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) - { - var chromiumWebBrowser = (ChromiumWebBrowser)browserControl; - - ChromiumWebBrowser popupChromiumWebBrowser = null; - - var windowX = (windowInfo.X == int.MinValue) ? double.NaN : windowInfo.X; - var windowY = (windowInfo.Y == int.MinValue) ? double.NaN : windowInfo.Y; - var windowWidth = (windowInfo.Width == int.MinValue) ? double.NaN : windowInfo.Width; - var windowHeight = (windowInfo.Height == int.MinValue) ? double.NaN : windowInfo.Height; - - // Invoke onto the WPF UI Thread to create a new Window/UI Control - chromiumWebBrowser.Dispatcher.Invoke(() => - { - var owner = System.Windows.Window.GetWindow(chromiumWebBrowser); - popupChromiumWebBrowser = new ChromiumWebBrowser(); - - popupChromiumWebBrowser.SetAsPopup(); - popupChromiumWebBrowser.LifeSpanHandler = this; - - var popup = new System.Windows.Window - { - Left = windowX, - Top = windowY, - Width = windowWidth, - Height = windowHeight, - Content = popupChromiumWebBrowser, - Owner = owner, - Title = targetFrameName - }; - - var windowInteropHelper = new System.Windows.Interop.WindowInteropHelper(popup); - //Create the handle Window handle (In WPF there's only one handle per window, not per control) - var handle = windowInteropHelper.EnsureHandle(); - - //The parentHandle value will be used to identify monitor info and to act as the parent window for dialogs, - //context menus, etc. If parentHandle is not provided then the main screen monitor will be used and some - //functionality that requires a parent window may not function correctly. - windowInfo.SetAsWindowless(handle); - - popup.Closed += (o, e) => - { - var w = o as System.Windows.Window; - if (w != null && w.Content is IWebBrowser) - { - (w.Content as IWebBrowser).Dispose(); - w.Content = null; - } - }; - }); - - newBrowser = popupChromiumWebBrowser; - - return false; - } - - protected override void OnAfterCreated(IWebBrowser browserControl, IBrowser browser) - { - if (!browser.IsDisposed && browser.IsPopup) - { - var windowTitle = GetWindowTitle(browser.GetHost().GetWindowHandle()); - - //CEF doesn't currently provide an option to determine if the new Popup is - //DevTools so we use a hackyworkaround to check the Window Title. - //DevTools is hosted in it's own popup, we don't perform any action here - if (windowTitle != "DevTools") - { - var chromiumWebBrowser = (ChromiumWebBrowser)browserControl; - - chromiumWebBrowser.Dispatcher.Invoke(() => - { - var owner = System.Windows.Window.GetWindow(chromiumWebBrowser); - - if (owner != null && owner.Content == browserControl) - { - owner.Show(); - } - }); - } - } - } - - protected override void OnBeforeClose(IWebBrowser browserControl, IBrowser browser) - { - if (!browser.IsDisposed && browser.IsPopup) - { - //DevTools is hosted in it's own popup, we don't perform any action here - if (!browser.MainFrame.Url.Equals("devtools://devtools/devtools_app.html")) - { - var chromiumWebBrowser = (ChromiumWebBrowser)browserControl; - - chromiumWebBrowser.Dispatcher.Invoke(() => - { - var owner = System.Windows.Window.GetWindow(chromiumWebBrowser); - - if (owner != null && owner.Content == browserControl) - { - owner.Close(); - } - }); - } - } - } - } -} diff --git a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs index bf0e3777d..4f057b68d 100644 --- a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs +++ b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs @@ -119,9 +119,70 @@ public BrowserTabView() }; browser.DisplayHandler = new DisplayHandler(); - //This LifeSpanHandler implementaion demos hosting a popup in a ChromiumWebBrowser - //instance, it's still considered Experimental - //browser.LifeSpanHandler = new ExperimentalLifespanHandler(); + // This LifeSpanHandler implementaion demos hosting a popup in a ChromiumWebBrowser + // instance, it's still considered Experimental. The ChromiumWebBrowser + // is shown in a new Window. This could just as easily be a Tab/ContentControl/etc + /* + browser.LifeSpanHandler = CefSharp.Wpf.Experimental.LifeSpanHandler + .Create() + .OnPopupCreated((ctrl, targetUrl, targetFrameName, windowInfo) => + { + var windowX = (windowInfo.X == int.MinValue) ? double.NaN : windowInfo.X; + var windowY = (windowInfo.Y == int.MinValue) ? double.NaN : windowInfo.Y; + var windowWidth = (windowInfo.Width == int.MinValue) ? double.NaN : windowInfo.Width; + var windowHeight = (windowInfo.Height == int.MinValue) ? double.NaN : windowInfo.Height; + + var popup = new System.Windows.Window + { + Left = windowX, + Top = windowY, + Width = windowWidth, + Height = windowHeight, + Content = ctrl, + Owner = Window.GetWindow(browser), + Title = targetFrameName + }; + + popup.Closed += (o, e) => + { + var w = o as System.Windows.Window; + if (w != null && w.Content is IWebBrowser) + { + (w.Content as IWebBrowser)?.Dispose(); + w.Content = null; + } + }; + }) + .OnPopupBrowserCreated((ctrl, browser) => + { + ctrl.Dispatcher.Invoke(() => + { + var owner = System.Windows.Window.GetWindow(ctrl); + + if (owner != null && owner.Content == ctrl) + { + owner.Show(); + } + }); + }) + .OnPopupDestroyed((ctrl, popupBrowser) => + { + //If browser is disposed then we don't need to remove the tab + if (!ctrl.IsDisposed) + { + ctrl.Dispatcher.Invoke(() => + { + var owner = System.Windows.Window.GetWindow(ctrl); + + if (owner != null && owner.Content == ctrl) + { + owner.Close(); + } + }); + } + }).Build(); + */ + browser.MenuHandler = new MenuHandler(addDevtoolsMenuItems:true); //Enable experimental Accessibility support diff --git a/CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs b/CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs new file mode 100644 index 000000000..e3c78c422 --- /dev/null +++ b/CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs @@ -0,0 +1,91 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +namespace CefSharp.Wpf.Experimental +{ + /// + /// Fluent Builder + /// + public class LifeSpanHandlerBuilder + { + private readonly LifeSpanHandler handler; + + /// + /// LifeSpanHandlerBuilder + /// + /// + /// When specified the delegate will be used to create the + /// instance. Allowing users to create their own custom instance that extends + /// + public LifeSpanHandlerBuilder(CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate) + { + handler = new LifeSpanHandler(chromiumWebBrowserCreatedDelegate); + } + + /// + /// The will be called before the popup has been created and + /// can be used to cancel popup creation if required, modify and disable javascript. + /// + /// Action to be invoked before popup is created. + /// instance allowing you to chain method calls together + public LifeSpanHandlerBuilder OnBeforePopupCreated(OnBeforePopupCreatedDelegate onBeforePopupCreated) + { + handler.OnBeforePopupCreated(onBeforePopupCreated); + + return this; + } + + /// + /// The will be called when the has been + /// created. When the is called you must add the control to it's intended parent. + /// + /// Action to be invoked when the Popup is to be destroyed. + /// instance allowing you to chain method calls together + public LifeSpanHandlerBuilder OnPopupCreated(OnPopupCreatedDelegate onPopupCreated) + { + handler.OnPopupCreated(onPopupCreated); + + return this; + } + + /// + /// The will be called when the has been + /// created. The instance is valid until + /// is called. provides low level access to the CEF Browser, you can access frames, view source, + /// perform navigation (via frame) etc. + /// + /// Action to be invoked when the has been created. + /// instance allowing you to chain method calls together + public LifeSpanHandlerBuilder OnPopupBrowserCreated(OnPopupBrowserCreatedDelegate onPopupBrowserCreated) + { + handler.OnPopupBrowserCreated(onPopupBrowserCreated); + + return this; + } + + /// + /// The will be called when the is to be + /// removed from it's parent. + /// When the is called you must remove/dispose of the . + /// + /// Action to be invoked when the Popup is to be destroyed. + /// instance allowing you to chain method calls together + public LifeSpanHandlerBuilder OnPopupDestroyed(OnPopupDestroyedDelegate onPopupDestroyed) + { + handler.OnPopupDestroyed(onPopupDestroyed); + + return this; + } + + /// + /// Creates an implementation + /// that can be used to host popups as tabs/controls. + /// + /// a instance + public ILifeSpanHandler Build() + { + return handler; + } + } +} diff --git a/CefSharp.Wpf/Experimental/LifespanHandler.cs b/CefSharp.Wpf/Experimental/LifespanHandler.cs new file mode 100644 index 000000000..cd58c124c --- /dev/null +++ b/CefSharp.Wpf/Experimental/LifespanHandler.cs @@ -0,0 +1,279 @@ +// Copyright © 2015 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Collections.Generic; +using System.Windows.Controls; + +namespace CefSharp.Wpf.Experimental +{ + /// + /// Called beforethe popup is created, can be used to cancel popup creation if required + /// or modify . + /// It's important to note that the methods of this interface are called on a CEF UI thread, + /// which by default is not the same as your application UI thread. + /// + /// the ChromiumWebBrowser control + /// The browser instance that launched this popup. + /// The HTML frame that launched this popup. + /// The URL of the popup content. (This may be empty/null) + /// The name of the popup. (This may be empty/null) + /// The value indicates where the user intended to + /// open the popup (e.g. current tab, new tab, etc) + /// The value will be true if the popup was opened via explicit user gesture + /// (e.g. clicking a link) or false if the popup opened automatically (e.g. via the DomContentLoaded event). + /// browser settings, defaults to source browsers + /// To cancel creation of the popup return true otherwise return false. + public delegate PopupCreation OnBeforePopupCreatedDelegate(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IBrowserSettings browserSettings); + + /// + /// Called when the has been created. + /// When called you must add the control to it's intended parent. + /// + /// popup host control + /// url + /// target frame name + /// WindowInfo + public delegate void OnPopupCreatedDelegate(ChromiumWebBrowser control, string url, string targetFrameName, IWindowInfo windowInfo); + + /// + /// Called when the instance has been created. + /// The reference will be valid until is called + /// + /// popup host control, maybe null if Browser is hosted in a native Popup window. + /// DevTools by default will be hosted in a native popup window. + /// browser + public delegate void OnPopupBrowserCreatedDelegate(ChromiumWebBrowser control, IBrowser browser); + + /// + /// Called when the is to be removed from it's parent. + /// When called you must remove/dispose of the . + /// + /// popup host control + /// browser + public delegate void OnPopupDestroyedDelegate(ChromiumWebBrowser control, IBrowser browser); + + /// + /// Called to create a new instance of . Allows creation of a derived + /// implementation of . + /// + /// A custom instance of . + public delegate ChromiumWebBrowser CreatePopupChromiumWebBrowser(); + + /// + /// WPF - EXPERIMENTAL LifeSpanHandler implementation that can be used to host a popup using a new instance. + /// + public class LifeSpanHandler : CefSharp.Handler.LifeSpanHandler + { + private OnBeforePopupCreatedDelegate onBeforePopupCreated; + private OnPopupDestroyedDelegate onPopupDestroyed; + private OnPopupBrowserCreatedDelegate onPopupBrowserCreated; + private OnPopupCreatedDelegate onPopupCreated; + private CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate; + private Dictionary chromiumWebBrowserMap = new Dictionary(); + private ChromiumWebBrowser pendingChromiumWebBrowser; + + public LifeSpanHandler(CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate) + { + this.chromiumWebBrowserCreatedDelegate = chromiumWebBrowserCreatedDelegate; + } + + /// + /// The will be called before the popup has been created and + /// can be used to cancel popup creation if required or modify . + /// + /// Action to be invoked before popup is created. + /// instance allowing you to chain method calls together + public LifeSpanHandler OnBeforePopupCreated(OnBeforePopupCreatedDelegate onBeforePopupCreated) + { + this.onBeforePopupCreated = onBeforePopupCreated; + + return this; + } + + /// + /// The will be called when the has been + /// created. When the is called you must add the control to it's intended parent. + /// + /// Action to be invoked when the Popup host has been created and is ready to be attached to it's parent. + /// instance allowing you to chain method calls together + public LifeSpanHandler OnPopupCreated(OnPopupCreatedDelegate onPopupCreated) + { + this.onPopupCreated = onPopupCreated; + + return this; + } + + /// + /// The will be called when the has been + /// created. The instance is valid until + /// is called. provides low level access to the CEF Browser, you can access frames, view source, + /// perform navigation (via frame) etc. + /// + /// Action to be invoked when the has been created. + /// instance allowing you to chain method calls together + public LifeSpanHandler OnPopupBrowserCreated(OnPopupBrowserCreatedDelegate onPopupBrowserCreated) + { + this.onPopupBrowserCreated = onPopupBrowserCreated; + + return this; + } + + /// + /// The will be called when the is to be + /// removed from it's parent. + /// When the is called you must remove/dispose of the . + /// + /// Action to be invoked when the Popup is to be destroyed. + /// instance allowing you to chain method calls together + public LifeSpanHandler OnPopupDestroyed(OnPopupDestroyedDelegate onPopupDestroyed) + { + this.onPopupDestroyed = onPopupDestroyed; + + return this; + } + + /// + /// Create a new instance of the + /// which can be used to create a WinForms specific + /// implementation that simplifies the process of hosting a Popup as a Control/Tab. + /// + /// + /// A which can be used to fluently create an . + /// Call to create the actual instance after you have call + /// etc. + /// + public static LifeSpanHandlerBuilder Create(CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate = null) + { + return new LifeSpanHandlerBuilder(chromiumWebBrowserCreatedDelegate); + } + + /// + protected override bool OnBeforePopup(IWebBrowser browserControl, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) + { + newBrowser = null; + + var userAction = onBeforePopupCreated?.Invoke(browserControl, browser, frame, targetUrl, targetFrameName, targetDisposition, userGesture, browserSettings) ?? PopupCreation.Continue; + + // Cancel popup creation + if (userAction == PopupCreation.Cancel) + { + return true; + } + + if (userAction == PopupCreation.ContinueWithJavascriptDisabled) + { + noJavascriptAccess = true; + } + + //No action so we'll go with the default behaviour. + if (onPopupCreated == null) + { + return false; + } + + var chromiumWebBrowser = (ChromiumWebBrowser)browserControl; + + ChromiumWebBrowser control = null; + + // Invoke onto the WPF UI Thread to create a new ChromiumWebBrowser + chromiumWebBrowser.Dispatcher.Invoke(() => + { + control = chromiumWebBrowserCreatedDelegate?.Invoke(); + + if (control == null) + { + control = new ChromiumWebBrowser(); + } + + control.SetAsPopup(); + control.LifeSpanHandler = this; + + // Current assumption is that popups are created in sequence + pendingChromiumWebBrowser = control; + + onPopupCreated?.Invoke(control, targetUrl, targetFrameName, windowInfo); + + var owner = System.Windows.Window.GetWindow(control); + + if (owner == null) + { + windowInfo.SetAsWindowless(IntPtr.Zero); + } + else + { + var windowInteropHelper = new System.Windows.Interop.WindowInteropHelper(owner); + //Ensure the Window handle has been created (In WPF there's only one handle per window, not per control) + var handle = windowInteropHelper.EnsureHandle(); + + //The parentHandle value will be used to identify monitor info and to act as the parent window for dialogs, + //context menus, etc. If parentHandle is not provided then the main screen monitor will be used and some + //functionality that requires a parent window may not function correctly. + windowInfo.SetAsWindowless(parentHandle: handle); + } + }); + + newBrowser = control; + + return false; + } + + /// + protected override void OnAfterCreated(IWebBrowser browserControl, IBrowser browser) + { + // For DevTools/Native Popup windows pendingChromiumWebBrowser should be null + if (browser.IsPopup && pendingChromiumWebBrowser != null) + { + chromiumWebBrowserMap.Add(browser.GetHost().GetWindowHandle(), pendingChromiumWebBrowser); + + onPopupBrowserCreated?.Invoke(pendingChromiumWebBrowser, browser); + + pendingChromiumWebBrowser = null; + } + } + + /// + protected override bool DoClose(IWebBrowser chromiumWebBrowser, IBrowser browser) + { + if (browser.IsPopup && !browser.IsDisposed) + { + var handle = browser.GetHost().GetWindowHandle(); + + if (chromiumWebBrowserMap.TryGetValue(handle, out ChromiumWebBrowser control)) + { + // Control is null, use default behaviour + if (control == null) + { + return false; + } + + if (!control.Dispatcher.HasShutdownStarted) + { + //We need to invoke in a sync fashion so our IBrowser object is still in scope + //Calling in an async fashion leads to the IBrowser being disposed before we + //can access it. + control.Dispatcher.Invoke(new Action(() => + { + onPopupDestroyed?.Invoke(control, browser); + + if (!control.IsDisposed) + { + control.Dispose(); + } + })); + } + + chromiumWebBrowserMap.Remove(handle); + + return true; + } + } + + // We didn't find the control, so we use default behaviour + // default popups e.g. DevTools need to return false + // so WM_CLOSE is sent to close the window. + return false; + } + } +} diff --git a/CefSharp.Wpf/Experimental/PopupCreation.cs b/CefSharp.Wpf/Experimental/PopupCreation.cs new file mode 100644 index 000000000..9eb1f7bbe --- /dev/null +++ b/CefSharp.Wpf/Experimental/PopupCreation.cs @@ -0,0 +1,25 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +namespace CefSharp.Wpf.Experimental +{ + /// + /// Popup Creation options + /// + public enum PopupCreation + { + /// + /// Popup creation is cancled, no further action will occur + /// + Cancel = 0, + /// + /// Popup creation will continue as per normal. + /// + Continue, + /// + /// Popup creation will continue with javascript disabled. + /// + ContinueWithJavascriptDisabled + } +} From 8cbd572f98055f3ac1d301a87c5e6b3c782fa7b2 Mon Sep 17 00:00:00 2001 From: Fabian van der Veen Date: Sat, 29 Oct 2022 01:26:42 +0200 Subject: [PATCH 127/543] WPF - Send keyboard modifiers along with drag events (#4287) Fixes #4286 --- CefSharp.Wpf/ChromiumWebBrowser.cs | 2 +- CefSharp.Wpf/Internals/WpfExtensions.cs | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 59e5b7fdd..592701c42 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -2024,7 +2024,7 @@ private MouseEvent GetMouseEvent(DragEventArgs e) { var point = e.GetPosition(this); - return new MouseEvent((int)point.X, (int)point.Y, CefEventFlags.None); + return new MouseEvent((int)point.X, (int)point.Y, e.GetModifiers()); } /// diff --git a/CefSharp.Wpf/Internals/WpfExtensions.cs b/CefSharp.Wpf/Internals/WpfExtensions.cs index 10749baa2..ba8c5d6e7 100644 --- a/CefSharp.Wpf/Internals/WpfExtensions.cs +++ b/CefSharp.Wpf/Internals/WpfExtensions.cs @@ -43,6 +43,17 @@ public static CefEventFlags GetModifiers(this MouseEventArgs e) return modifiers; } + /// + /// Gets the modifiers. + /// + /// The instance containing the event data. + /// CefEventFlags. + public static CefEventFlags GetModifiers(this DragEventArgs e) + { + return GetModifierKeys(); + } + + /// /// Gets keyboard modifiers. /// From 91b79262fae2c95e31976f1035b9fe823eb47c9e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 30 Oct 2022 12:58:47 +1000 Subject: [PATCH 128/543] Upgrade to 107.1.4+geb36a79+chromium-107.0.5304.68 / Chromium 107.0.5304.68 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index a8da3183e..79f62a861 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 75e2dfcf5..b6f7653e6 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index a5a6032e0..ba2bac543 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,290 - PRODUCTVERSION 106,0,290 + FILEVERSION 107,1,40 + PRODUCTVERSION 107,1,40 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "106.0.290" + VALUE "FileVersion", "107.1.40" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.290" + VALUE "ProductVersion", "107.1.40" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 0b007d0ba..6c191e997 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 5558c7ee1..3cd3a37d6 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index de67a3d2b..655691012 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index a2db78fdf..0eea1fc0d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 4f9eb1a01..a8fc008ea 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index e6b38b59d..cf82d0f13 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 106,0,290 - PRODUCTVERSION 106,0,290 + FILEVERSION 107,1,40 + PRODUCTVERSION 107,1,40 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "106.0.290" + VALUE "FileVersion", "107.1.40" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "106.0.290" + VALUE "ProductVersion", "107.1.40" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 0b007d0ba..6c191e997 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 5558c7ee1..3cd3a37d6 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index b6f052902..e2730cec7 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 0c899852b..e9abf8dc6 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 65973c27e..18edccda1 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 33c712d20..c5bd68c4e 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index fee878945..57f96b3e0 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 67fd82e6f..4d326572b 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 465a7309b..719f32480 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 57ede4f5a..3ae38708b 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index f85a989f8..3a807db4a 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 4950d232d..ad2a4793e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 8a0fb1a4c..64325a795 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 24ae07188..faa7e16a8 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 106.0.290 + 107.1.40 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 106.0.290 + Version 107.1.40 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index a6c6dda86..41dad452b 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "106.0.290"; - public const string AssemblyFileVersion = "106.0.290.0"; + public const string AssemblyVersion = "107.1.40"; + public const string AssemblyFileVersion = "107.1.40.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index a6eb2d872..b5b028d4d 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 815ce8dfc..3ded9789d 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 6a3037b49..511d14133 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index b401c0814..a412fc412 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "106.0.29", + [string] $CefVersion = "107.1.4", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 3955e0044..55c67ad98 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 106.0.290-CI{build} +version: 107.1.40-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 8ae698a6c..94a715a6e 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "106.0.260", + [string] $Version = "107.1.40", [Parameter(Position = 2)] - [string] $AssemblyVersion = "106.0.260", + [string] $AssemblyVersion = "107.1.40", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From cfe6fe8a8a2078942c82286e8a84054587711882 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 2 Nov 2022 12:57:38 +1000 Subject: [PATCH 129/543] DevTools Client - Update to 107.0.5304.68 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 37 +++++++++++++------ .../DevToolsClient.Generated.netcore.cs | 37 +++++++++++++------ 2 files changed, 52 insertions(+), 22 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 401dceeb4..fe12e0245 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 106.0.5249.61 +// CHROMIUM VERSION 107.0.5304.68 namespace CefSharp.DevTools.Accessibility { /// @@ -3205,10 +3205,10 @@ internal string federatedAuthRequestIssueReason public enum FederatedAuthRequestIssueReason { /// - /// ApprovalDeclined + /// ShouldEmbargo /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ApprovalDeclined"))] - ApprovalDeclined, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ShouldEmbargo"))] + ShouldEmbargo, /// /// TooManyRequests /// @@ -3328,7 +3328,12 @@ public enum FederatedAuthRequestIssueReason /// Canceled /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Canceled"))] - Canceled + Canceled, + /// + /// RpPageNotVisible + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RpPageNotVisible"))] + RpPageNotVisible } /// @@ -7382,7 +7387,7 @@ public int ParentNodeId } /// - /// If of the previous siblint. + /// Id of the previous sibling. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("previousNodeId"), IsRequired = (true))] public int PreviousNodeId @@ -20937,7 +20942,17 @@ public enum PrerenderFinalStatus /// DataSaverEnabled /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DataSaverEnabled"))] - DataSaverEnabled + DataSaverEnabled, + /// + /// HasEffectiveUrl + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HasEffectiveUrl"))] + HasEffectiveUrl, + /// + /// ActivatedBeforeStarted + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivatedBeforeStarted"))] + ActivatedBeforeStarted } /// @@ -21778,11 +21793,11 @@ internal string finalStatus } /// - /// This is used to give users more information about the cancellation details, - /// and this will be formatted for display. + /// This is used to give users more information about the name of the API call + /// that is incompatible with prerender and has caused the cancellation of the attempt /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reasonDetails"), IsRequired = (false))] - public string ReasonDetails + [System.Runtime.Serialization.DataMemberAttribute(Name = ("disallowedApiMethod"), IsRequired = (false))] + public string DisallowedApiMethod { get; private set; diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index dfa299b52..c8929a510 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 106.0.5249.61 +// CHROMIUM VERSION 107.0.5304.68 namespace CefSharp.DevTools.Accessibility { /// @@ -2876,10 +2876,10 @@ public CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason FederatedAuthReq public enum FederatedAuthRequestIssueReason { /// - /// ApprovalDeclined + /// ShouldEmbargo /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ApprovalDeclined")] - ApprovalDeclined, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ShouldEmbargo")] + ShouldEmbargo, /// /// TooManyRequests /// @@ -2999,7 +2999,12 @@ public enum FederatedAuthRequestIssueReason /// Canceled /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("Canceled")] - Canceled + Canceled, + /// + /// RpPageNotVisible + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("RpPageNotVisible")] + RpPageNotVisible } /// @@ -6872,7 +6877,7 @@ public int ParentNodeId } /// - /// If of the previous siblint. + /// Id of the previous sibling. /// [System.Text.Json.Serialization.JsonIncludeAttribute] [System.Text.Json.Serialization.JsonPropertyNameAttribute("previousNodeId")] @@ -19518,7 +19523,17 @@ public enum PrerenderFinalStatus /// DataSaverEnabled /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("DataSaverEnabled")] - DataSaverEnabled + DataSaverEnabled, + /// + /// HasEffectiveUrl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("HasEffectiveUrl")] + HasEffectiveUrl, + /// + /// ActivatedBeforeStarted + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivatedBeforeStarted")] + ActivatedBeforeStarted } /// @@ -20276,12 +20291,12 @@ public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus } /// - /// This is used to give users more information about the cancellation details, - /// and this will be formatted for display. + /// This is used to give users more information about the name of the API call + /// that is incompatible with prerender and has caused the cancellation of the attempt /// [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reasonDetails")] - public string ReasonDetails + [System.Text.Json.Serialization.JsonPropertyNameAttribute("disallowedApiMethod")] + public string DisallowedApiMethod { get; private set; From 7b9770a42a7e46acac3b257e3b7e998b2612d157 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 2 Nov 2022 13:07:54 +1000 Subject: [PATCH 130/543] WPF - Experimental LifeSpanHandler renaming - Rename the delegates (add prefix) Issue #4285 --- .../Experimental/LifeSpanHandlerBuilder.cs | 24 ++++---- CefSharp.Wpf/Experimental/LifespanHandler.cs | 57 +++++++++---------- 2 files changed, 40 insertions(+), 41 deletions(-) diff --git a/CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs b/CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs index e3c78c422..6c5edf107 100644 --- a/CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs +++ b/CefSharp.Wpf/Experimental/LifeSpanHandlerBuilder.cs @@ -18,18 +18,18 @@ public class LifeSpanHandlerBuilder /// When specified the delegate will be used to create the /// instance. Allowing users to create their own custom instance that extends /// - public LifeSpanHandlerBuilder(CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate) + public LifeSpanHandlerBuilder(LifeSpanHandlerCreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate) { handler = new LifeSpanHandler(chromiumWebBrowserCreatedDelegate); } /// - /// The will be called before the popup has been created and + /// The will be called before the popup has been created and /// can be used to cancel popup creation if required, modify and disable javascript. /// /// Action to be invoked before popup is created. /// instance allowing you to chain method calls together - public LifeSpanHandlerBuilder OnBeforePopupCreated(OnBeforePopupCreatedDelegate onBeforePopupCreated) + public LifeSpanHandlerBuilder OnBeforePopupCreated(LifeSpanHandlerOnBeforePopupCreatedDelegate onBeforePopupCreated) { handler.OnBeforePopupCreated(onBeforePopupCreated); @@ -37,12 +37,12 @@ public LifeSpanHandlerBuilder OnBeforePopupCreated(OnBeforePopupCreatedDelegate } /// - /// The will be called when the has been - /// created. When the is called you must add the control to it's intended parent. + /// The will be called when the has been + /// created. When the is called you must add the control to it's intended parent. /// /// Action to be invoked when the Popup is to be destroyed. /// instance allowing you to chain method calls together - public LifeSpanHandlerBuilder OnPopupCreated(OnPopupCreatedDelegate onPopupCreated) + public LifeSpanHandlerBuilder OnPopupCreated(LifeSpanHandlerOnPopupCreatedDelegate onPopupCreated) { handler.OnPopupCreated(onPopupCreated); @@ -50,14 +50,14 @@ public LifeSpanHandlerBuilder OnPopupCreated(OnPopupCreatedDelegate onPopupCreat } /// - /// The will be called when the has been - /// created. The instance is valid until + /// The will be called when the has been + /// created. The instance is valid until /// is called. provides low level access to the CEF Browser, you can access frames, view source, /// perform navigation (via frame) etc. /// /// Action to be invoked when the has been created. /// instance allowing you to chain method calls together - public LifeSpanHandlerBuilder OnPopupBrowserCreated(OnPopupBrowserCreatedDelegate onPopupBrowserCreated) + public LifeSpanHandlerBuilder OnPopupBrowserCreated(LifeSpanHandlerOnPopupBrowserCreatedDelegate onPopupBrowserCreated) { handler.OnPopupBrowserCreated(onPopupBrowserCreated); @@ -65,13 +65,13 @@ public LifeSpanHandlerBuilder OnPopupBrowserCreated(OnPopupBrowserCreatedDelegat } /// - /// The will be called when the is to be + /// The will be called when the is to be /// removed from it's parent. - /// When the is called you must remove/dispose of the . + /// When the is called you must remove/dispose of the . /// /// Action to be invoked when the Popup is to be destroyed. /// instance allowing you to chain method calls together - public LifeSpanHandlerBuilder OnPopupDestroyed(OnPopupDestroyedDelegate onPopupDestroyed) + public LifeSpanHandlerBuilder OnPopupDestroyed(LifeSpanHandlerOnPopupDestroyedDelegate onPopupDestroyed) { handler.OnPopupDestroyed(onPopupDestroyed); diff --git a/CefSharp.Wpf/Experimental/LifespanHandler.cs b/CefSharp.Wpf/Experimental/LifespanHandler.cs index cd58c124c..68b81b793 100644 --- a/CefSharp.Wpf/Experimental/LifespanHandler.cs +++ b/CefSharp.Wpf/Experimental/LifespanHandler.cs @@ -4,7 +4,6 @@ using System; using System.Collections.Generic; -using System.Windows.Controls; namespace CefSharp.Wpf.Experimental { @@ -25,7 +24,7 @@ namespace CefSharp.Wpf.Experimental /// (e.g. clicking a link) or false if the popup opened automatically (e.g. via the DomContentLoaded event). /// browser settings, defaults to source browsers /// To cancel creation of the popup return true otherwise return false. - public delegate PopupCreation OnBeforePopupCreatedDelegate(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IBrowserSettings browserSettings); + public delegate PopupCreation LifeSpanHandlerOnBeforePopupCreatedDelegate(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IBrowserSettings browserSettings); /// /// Called when the has been created. @@ -35,57 +34,57 @@ namespace CefSharp.Wpf.Experimental /// url /// target frame name /// WindowInfo - public delegate void OnPopupCreatedDelegate(ChromiumWebBrowser control, string url, string targetFrameName, IWindowInfo windowInfo); + public delegate void LifeSpanHandlerOnPopupCreatedDelegate(ChromiumWebBrowser control, string url, string targetFrameName, IWindowInfo windowInfo); /// /// Called when the instance has been created. - /// The reference will be valid until is called + /// The reference will be valid until is called /// - /// popup host control, maybe null if Browser is hosted in a native Popup window. + /// popup ChromiumWebBrowser control, maybe null if Browser is hosted in a native Popup window. /// DevTools by default will be hosted in a native popup window. /// browser - public delegate void OnPopupBrowserCreatedDelegate(ChromiumWebBrowser control, IBrowser browser); + public delegate void LifeSpanHandlerOnPopupBrowserCreatedDelegate(ChromiumWebBrowser control, IBrowser browser); /// /// Called when the is to be removed from it's parent. /// When called you must remove/dispose of the . /// - /// popup host control + /// popup ChromiumWebBrowser control /// browser - public delegate void OnPopupDestroyedDelegate(ChromiumWebBrowser control, IBrowser browser); + public delegate void LifeSpanHandlerOnPopupDestroyedDelegate(ChromiumWebBrowser control, IBrowser browser); /// - /// Called to create a new instance of . Allows creation of a derived + /// Called to create a new instance of . Allows creation of a derived/custom /// implementation of . /// /// A custom instance of . - public delegate ChromiumWebBrowser CreatePopupChromiumWebBrowser(); + public delegate ChromiumWebBrowser LifeSpanHandlerCreatePopupChromiumWebBrowser(); /// /// WPF - EXPERIMENTAL LifeSpanHandler implementation that can be used to host a popup using a new instance. /// public class LifeSpanHandler : CefSharp.Handler.LifeSpanHandler { - private OnBeforePopupCreatedDelegate onBeforePopupCreated; - private OnPopupDestroyedDelegate onPopupDestroyed; - private OnPopupBrowserCreatedDelegate onPopupBrowserCreated; - private OnPopupCreatedDelegate onPopupCreated; - private CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate; + private LifeSpanHandlerOnBeforePopupCreatedDelegate onBeforePopupCreated; + private LifeSpanHandlerOnPopupDestroyedDelegate onPopupDestroyed; + private LifeSpanHandlerOnPopupBrowserCreatedDelegate onPopupBrowserCreated; + private LifeSpanHandlerOnPopupCreatedDelegate onPopupCreated; + private LifeSpanHandlerCreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate; private Dictionary chromiumWebBrowserMap = new Dictionary(); private ChromiumWebBrowser pendingChromiumWebBrowser; - public LifeSpanHandler(CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate) + public LifeSpanHandler(LifeSpanHandlerCreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate) { this.chromiumWebBrowserCreatedDelegate = chromiumWebBrowserCreatedDelegate; } /// - /// The will be called before the popup has been created and + /// The will be called before the popup has been created and /// can be used to cancel popup creation if required or modify . /// /// Action to be invoked before popup is created. /// instance allowing you to chain method calls together - public LifeSpanHandler OnBeforePopupCreated(OnBeforePopupCreatedDelegate onBeforePopupCreated) + public LifeSpanHandler OnBeforePopupCreated(LifeSpanHandlerOnBeforePopupCreatedDelegate onBeforePopupCreated) { this.onBeforePopupCreated = onBeforePopupCreated; @@ -93,12 +92,12 @@ public LifeSpanHandler OnBeforePopupCreated(OnBeforePopupCreatedDelegate onBefor } /// - /// The will be called when the has been - /// created. When the is called you must add the control to it's intended parent. + /// The will be called when the has been + /// created. When the is called you must add the control to it's intended parent. /// /// Action to be invoked when the Popup host has been created and is ready to be attached to it's parent. /// instance allowing you to chain method calls together - public LifeSpanHandler OnPopupCreated(OnPopupCreatedDelegate onPopupCreated) + public LifeSpanHandler OnPopupCreated(LifeSpanHandlerOnPopupCreatedDelegate onPopupCreated) { this.onPopupCreated = onPopupCreated; @@ -106,14 +105,14 @@ public LifeSpanHandler OnPopupCreated(OnPopupCreatedDelegate onPopupCreated) } /// - /// The will be called when the has been - /// created. The instance is valid until + /// The will be called when the has been + /// created. The instance is valid until /// is called. provides low level access to the CEF Browser, you can access frames, view source, /// perform navigation (via frame) etc. /// /// Action to be invoked when the has been created. /// instance allowing you to chain method calls together - public LifeSpanHandler OnPopupBrowserCreated(OnPopupBrowserCreatedDelegate onPopupBrowserCreated) + public LifeSpanHandler OnPopupBrowserCreated(LifeSpanHandlerOnPopupBrowserCreatedDelegate onPopupBrowserCreated) { this.onPopupBrowserCreated = onPopupBrowserCreated; @@ -121,13 +120,13 @@ public LifeSpanHandler OnPopupBrowserCreated(OnPopupBrowserCreatedDelegate onPop } /// - /// The will be called when the is to be + /// The will be called when the is to be /// removed from it's parent. - /// When the is called you must remove/dispose of the . + /// When the is called you must remove/dispose of the . /// /// Action to be invoked when the Popup is to be destroyed. /// instance allowing you to chain method calls together - public LifeSpanHandler OnPopupDestroyed(OnPopupDestroyedDelegate onPopupDestroyed) + public LifeSpanHandler OnPopupDestroyed(LifeSpanHandlerOnPopupDestroyedDelegate onPopupDestroyed) { this.onPopupDestroyed = onPopupDestroyed; @@ -142,9 +141,9 @@ public LifeSpanHandler OnPopupDestroyed(OnPopupDestroyedDelegate onPopupDestroye /// /// A which can be used to fluently create an . /// Call to create the actual instance after you have call - /// etc. + /// etc. /// - public static LifeSpanHandlerBuilder Create(CreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate = null) + public static LifeSpanHandlerBuilder Create(LifeSpanHandlerCreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate = null) { return new LifeSpanHandlerBuilder(chromiumWebBrowserCreatedDelegate); } From 766ebbc8f6046c4100c5f88d4b1397647b556a14 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 3 Nov 2022 11:14:12 +1000 Subject: [PATCH 131/543] Core - IFrame.IsMain remove ThrowIfFrameInvalid guard - Calling IsMain on an invalid frame is allowable --- CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp index 0d10be063..384ed5848 100644 --- a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp @@ -271,7 +271,6 @@ Task^ CefFrameWrapper::EvaluateScriptAsync(String^ script, bool CefFrameWrapper::IsMain::get() { ThrowIfDisposed(); - ThrowIfFrameInvalid(); return _frame->IsMain(); } From 5feb8c0d741bb3b70fe6ecee97dd07492864b0f3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 3 Nov 2022 18:31:54 +1000 Subject: [PATCH 132/543] WinForms - LifeSpanHandler default delegate to null as optional --- CefSharp.WinForms/Handler/LifeSpanHandler.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CefSharp.WinForms/Handler/LifeSpanHandler.cs b/CefSharp.WinForms/Handler/LifeSpanHandler.cs index a06a8695f..9db4a93bc 100644 --- a/CefSharp.WinForms/Handler/LifeSpanHandler.cs +++ b/CefSharp.WinForms/Handler/LifeSpanHandler.cs @@ -78,7 +78,11 @@ public class LifeSpanHandler : CefSharp.Handler.LifeSpanHandler private OnPopupCreatedDelegate onPopupCreated; private CreatePopupChromiumHostControl chromiumHostControlCreatedDelegate; - public LifeSpanHandler(CreatePopupChromiumHostControl chromiumHostControlCreatedDelegate) + /// + /// Default constructor + /// + /// Optional delegate used to create custom instances. + public LifeSpanHandler(CreatePopupChromiumHostControl chromiumHostControlCreatedDelegate = null) { this.chromiumHostControlCreatedDelegate = chromiumHostControlCreatedDelegate; } From 2bf95438a999383cd7309b0b098e6d5d9bb70c59 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 8 Nov 2022 14:42:12 +1000 Subject: [PATCH 133/543] Core - Add Cef.ShutdownStarted event --- CefSharp.Core/Cef.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core/Cef.cs b/CefSharp.Core/Cef.cs index b0edcd568..714092e25 100644 --- a/CefSharp.Core/Cef.cs +++ b/CefSharp.Core/Cef.cs @@ -5,7 +5,6 @@ //NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly using System; -using System.Collections.Generic; using System.Threading.Tasks; using CefSharp.Internals; @@ -18,6 +17,15 @@ namespace CefSharp /// public static class Cef { + /// + /// Event is raised when is called, + /// before the shutdown logic is executed. + /// + /// + /// Will be called on the same thread as + /// + public static event EventHandler ShutdownStarted; + public static TaskFactory UIThreadTaskFactory { get { return Core.Cef.UIThreadTaskFactory; } @@ -380,6 +388,9 @@ public static void PreShutdown() /// public static void Shutdown() { + ShutdownStarted?.Invoke(null, EventArgs.Empty); + ShutdownStarted = null; + Core.Cef.Shutdown(); } @@ -394,6 +405,9 @@ public static void Shutdown() /// public static void ShutdownWithoutChecks() { + ShutdownStarted?.Invoke(null, EventArgs.Empty); + ShutdownStarted = null; + Core.Cef.ShutdownWithoutChecks(); } From c11b92912aca1bf3448485c0fa8ef860d2587406 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 8 Nov 2022 14:57:59 +1000 Subject: [PATCH 134/543] Core - Cef.Initialize exception wording improvements --- CefSharp.Core.Runtime/Cef.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index 497d7eb19..9f4233278 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -257,17 +257,18 @@ namespace CefSharp if (_initialized) { // NOTE: Can only initialize Cef once, to make this explicitly clear throw exception on subsiquent attempts - throw gcnew Exception("CEF can only be initialized once per process. This is a limitation of the underlying " + + throw gcnew Exception("Cef.Initialize can only be called once per process. This is a limitation of the underlying " + "CEF/Chromium framework. You can change many (not all) settings at runtime through RequestContext.SetPreference. " + "See https://github.com/cefsharp/CefSharp/wiki/General-Usage#request-context-browser-isolation " + - "Use Cef.IsInitialized to guard against this exception. If you are seeing this unexpectedly then you are likely " + - "calling Cef.Initialize after you've created an instance of ChromiumWebBrowser, it must be before the first instance is created."); + "Use Cef.IsInitialized to check if Cef.Initialize has already been called to avoid this exception. " + + "If you are seeing this unexpectedly then you are likely " + + "calling Cef.Initialize after you've created an instance of ChromiumWebBrowser, it must be called before the first instance is created."); } if (_hasShutdown) { // NOTE: CefShutdown has already been called. - throw gcnew Exception("Cef.Shutdown has already been called. CEF can only be initialized once per process. " + + throw gcnew Exception("Cef.Shutdown has already been called. Cef.Initialize can only be called once per process. " + "This is a limitation of the underlying CEF/Chromium framework. Calling Cef.Initialize after Cef.Shutdown is not supported. " "You can change many (not all) settings at runtime through RequestContext.SetPreference." + "See https://github.com/cefsharp/CefSharp/wiki/General-Usage#request-context-browser-isolation"); From 0243bfa1f400016a79ea57bbf69af7dcea662900 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 10 Nov 2022 12:39:24 +1000 Subject: [PATCH 135/543] Upgrade to 107.1.5+g58ed78e+chromium-107.0.5304.88 / Chromium 107.0.5304.88 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- 28 files changed, 38 insertions(+), 38 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 79f62a861..2237ffa00 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index b6f7653e6..1868752c8 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index ba2bac543..b7a70d3e2 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 107,1,40 - PRODUCTVERSION 107,1,40 + FILEVERSION 107,1,50 + PRODUCTVERSION 107,1,50 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "107.1.40" + VALUE "FileVersion", "107.1.50" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "107.1.40" + VALUE "ProductVersion", "107.1.50" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 6c191e997..f54ae8f60 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 3cd3a37d6..7c6b94fae 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 655691012..82eadd62a 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 0eea1fc0d..ffbf8faff 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index a8fc008ea..80bd83e32 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index cf82d0f13..7df5a5b43 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 107,1,40 - PRODUCTVERSION 107,1,40 + FILEVERSION 107,1,50 + PRODUCTVERSION 107,1,50 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "107.1.40" + VALUE "FileVersion", "107.1.50" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "107.1.40" + VALUE "ProductVersion", "107.1.50" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 6c191e997..f54ae8f60 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 3cd3a37d6..7c6b94fae 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index e2730cec7..7807a7e80 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index e9abf8dc6..0a6973edb 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 18edccda1..d14176bfd 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index c5bd68c4e..e0ac979f9 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 57f96b3e0..14d940108 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 4d326572b..4221f9bf0 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 719f32480..fcafad699 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 3ae38708b..392941a74 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 3a807db4a..f4bce3de3 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index ad2a4793e..30f062b1e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 64325a795..27c69964a 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index faa7e16a8..1e1cc50b2 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 107.1.40 + 107.1.50 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 107.1.40 + Version 107.1.50 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 41dad452b..4c5746cc2 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "107.1.40"; - public const string AssemblyFileVersion = "107.1.40.0"; + public const string AssemblyVersion = "107.1.50"; + public const string AssemblyFileVersion = "107.1.50.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index b5b028d4d..a55aeac61 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 3ded9789d..21892eb58 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 511d14133..334090155 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index a412fc412..edbbdefb7 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "107.1.4", + [string] $CefVersion = "107.1.5", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) From 3866af03ca7d4352964a926a483fef7fd1231211 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 14 Nov 2022 13:59:06 +1000 Subject: [PATCH 136/543] Upgrade to 107.1.9+g1f0a21a+chromium-107.0.5304.110 / Chromium 107.0.5304.110 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 2237ffa00..166d7bf63 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 1868752c8..9a7339152 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index b7a70d3e2..eef4d93ee 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 107,1,50 - PRODUCTVERSION 107,1,50 + FILEVERSION 107,1,90 + PRODUCTVERSION 107,1,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "107.1.50" + VALUE "FileVersion", "107.1.90" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "107.1.50" + VALUE "ProductVersion", "107.1.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index f54ae8f60..6ce71f958 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 7c6b94fae..3e6bdbcc0 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 82eadd62a..3903792b0 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index ffbf8faff..0d264516d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 80bd83e32..7a5fd0f59 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 7df5a5b43..4d6b0f3cb 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 107,1,50 - PRODUCTVERSION 107,1,50 + FILEVERSION 107,1,90 + PRODUCTVERSION 107,1,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "107.1.50" + VALUE "FileVersion", "107.1.90" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "107.1.50" + VALUE "ProductVersion", "107.1.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index f54ae8f60..6ce71f958 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 7c6b94fae..3e6bdbcc0 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 7807a7e80..9d7b2ee7c 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 0a6973edb..27b86cadc 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index d14176bfd..7858ec5a1 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index e0ac979f9..582c3bc6e 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 14d940108..d6bef958a 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 4221f9bf0..142311b94 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index fcafad699..7079a7305 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 392941a74..658634638 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index f4bce3de3..d23f63f96 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 30f062b1e..ca30cd2c6 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 27c69964a..6b32f0b3e 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 1e1cc50b2..96af0c494 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 107.1.50 + 107.1.90 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 107.1.50 + Version 107.1.90 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 4c5746cc2..d9b9b3598 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "107.1.50"; - public const string AssemblyFileVersion = "107.1.50.0"; + public const string AssemblyVersion = "107.1.90"; + public const string AssemblyFileVersion = "107.1.90.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index a55aeac61..4bb7a329c 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 21892eb58..e7b80155a 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 334090155..052f7134b 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index edbbdefb7..709c27c56 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "107.1.5", + [string] $CefVersion = "107.1.9", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 55c67ad98..1271549d4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 107.1.40-CI{build} +version: 107.1.90-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 94a715a6e..2344a9491 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "107.1.40", + [string] $Version = "107.1.90", [Parameter(Position = 2)] - [string] $AssemblyVersion = "107.1.40", + [string] $AssemblyVersion = "107.1.90", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 824ba98c6fdf7a068b896f4de592cd3dceef231d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 14 Nov 2022 14:13:58 +1000 Subject: [PATCH 137/543] WPF - Experimental LifeSpanHandler optional LifespanHandler constructor arg Resolves #4285 --- CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs | 13 +++++-------- CefSharp.Wpf/Experimental/LifespanHandler.cs | 6 +++++- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs index 4f057b68d..367bdc537 100644 --- a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs +++ b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs @@ -170,15 +170,12 @@ public BrowserTabView() //If browser is disposed then we don't need to remove the tab if (!ctrl.IsDisposed) { - ctrl.Dispatcher.Invoke(() => - { - var owner = System.Windows.Window.GetWindow(ctrl); + var owner = System.Windows.Window.GetWindow(ctrl); - if (owner != null && owner.Content == ctrl) - { - owner.Close(); - } - }); + if (owner != null && owner.Content == ctrl) + { + owner.Close(); + } } }).Build(); */ diff --git a/CefSharp.Wpf/Experimental/LifespanHandler.cs b/CefSharp.Wpf/Experimental/LifespanHandler.cs index 68b81b793..a9fc37b72 100644 --- a/CefSharp.Wpf/Experimental/LifespanHandler.cs +++ b/CefSharp.Wpf/Experimental/LifespanHandler.cs @@ -73,7 +73,11 @@ public class LifeSpanHandler : CefSharp.Handler.LifeSpanHandler private Dictionary chromiumWebBrowserMap = new Dictionary(); private ChromiumWebBrowser pendingChromiumWebBrowser; - public LifeSpanHandler(LifeSpanHandlerCreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate) + /// + /// Default constructor + /// + /// optional delegate to create a custom + public LifeSpanHandler(LifeSpanHandlerCreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate = null) { this.chromiumWebBrowserCreatedDelegate = chromiumWebBrowserCreatedDelegate; } From 7f02409c37dee7880fec8afd1158dcdaac2ad318 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 21 Nov 2022 11:50:16 +1000 Subject: [PATCH 138/543] Upgrade to 108.4.10+g8d6f4e3+chromium-108.0.5359.48 / Chromium 108.0.5359.48 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 166d7bf63..7f1acf2f1 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 9a7339152..a3cb9d87e 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index eef4d93ee..a799fe053 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 107,1,90 - PRODUCTVERSION 107,1,90 + FILEVERSION 108,4,100 + PRODUCTVERSION 108,4,100 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "107.1.90" + VALUE "FileVersion", "108.4.100" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "107.1.90" + VALUE "ProductVersion", "108.4.100" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 6ce71f958..1b4d29574 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 3e6bdbcc0..acee4097b 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 3903792b0..a57978d09 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 0d264516d..5872b4128 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 7a5fd0f59..e74020c7f 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 4d6b0f3cb..151df1b03 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 107,1,90 - PRODUCTVERSION 107,1,90 + FILEVERSION 108,4,100 + PRODUCTVERSION 108,4,100 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "107.1.90" + VALUE "FileVersion", "108.4.100" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "107.1.90" + VALUE "ProductVersion", "108.4.100" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 6ce71f958..1b4d29574 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 3e6bdbcc0..acee4097b 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 9d7b2ee7c..c708c5056 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 27b86cadc..423168dc0 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 7858ec5a1..a34273806 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 582c3bc6e..ac1839dc8 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index d6bef958a..b79765dcc 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 142311b94..430100ade 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 7079a7305..3a6d1befd 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 658634638..1e17cc509 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index d23f63f96..7807efe3f 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index ca30cd2c6..9fcd52224 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 6b32f0b3e..a1263f2d5 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 96af0c494..75cd52e80 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 107.1.90 + 108.4.100 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 107.1.90 + Version 108.4.100 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index d9b9b3598..b22a8ba35 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "107.1.90"; - public const string AssemblyFileVersion = "107.1.90.0"; + public const string AssemblyVersion = "108.4.100"; + public const string AssemblyFileVersion = "108.4.100.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 4bb7a329c..e56f69400 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index e7b80155a..b765a5c55 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 052f7134b..7bbfc51eb 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 709c27c56..4789bb1a4 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "107.1.9", + [string] $CefVersion = "108.4.10", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 1271549d4..3ce116fd0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 107.1.90-CI{build} +version: 108.4.100-CI{build} clone_depth: 10 From 346b66ff1be8052ca531dcf1689cbd9feb62bf7b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 21 Nov 2022 11:55:53 +1000 Subject: [PATCH 139/543] README.md - Update as 107 released --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++----- CONTRIBUTING.md | 6 +++--- README.md | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d84edc310..335bbd0d9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -31,9 +31,9 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 106.0.260 or greater. + - Please only create an issue if you can reproduce the problem with version 107.1.90 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 106.0.260 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 107.1.90 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** @@ -68,9 +68,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg26c0b5e%2Bchromium-107.0.5304.110_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ebbbe256b..0d18912fb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_106.0.26%2Bge105400%2Bchromium-106.0.5249.91_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg26c0b5e%2Bchromium-107.0.5304.110_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 2c39e40c1..20e43a2cd 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,9 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5249 | 2019* | 4.5.2** | Development | -| [cefsharp/106](https://github.com/cefsharp/CefSharp/tree/cefsharp/106)| 5249 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5359 | 2019* | 4.5.2** | Development | +| [cefsharp/107](https://github.com/cefsharp/CefSharp/tree/cefsharp/107)| 5304 | 2019* | 4.5.2** | **Release** | +| [cefsharp/106](https://github.com/cefsharp/CefSharp/tree/cefsharp/106)| 5249 | 2019* | 4.5.2** | Unsupported | | [cefsharp/105](https://github.com/cefsharp/CefSharp/tree/cefsharp/105)| 5195 | 2019* | 4.5.2** | Unsupported | | [cefsharp/104](https://github.com/cefsharp/CefSharp/tree/cefsharp/104)| 5112 | 2019* | 4.5.2** | Unsupported | | [cefsharp/103](https://github.com/cefsharp/CefSharp/tree/cefsharp/103)| 5060 | 2019* | 4.5.2** | Unsupported | From 06c6520e05731f61f78dfb0a2bd7dcd95f692b8d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 21 Nov 2022 11:58:43 +1000 Subject: [PATCH 140/543] build.ps1 - Update version --- build.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.ps1 b/build.ps1 index 2344a9491..de31e2e64 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "107.1.90", + [string] $Version = "108.4.100", [Parameter(Position = 2)] - [string] $AssemblyVersion = "107.1.90", + [string] $AssemblyVersion = "108.4.100", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 2e7dbef9eff312fc6796083b441562fcef7c1d9b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 21 Nov 2022 15:04:59 +1000 Subject: [PATCH 141/543] Core - Update PdfPrintSettings Resolves #4311 --- .../Internals/CefBrowserHostWrapper.cpp | 19 +-- CefSharp/PdfPrintSettings.cs | 130 +++++++++++++----- 2 files changed, 108 insertions(+), 41 deletions(-) diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp index dc7a3a6e6..143f278c3 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp @@ -87,20 +87,21 @@ void CefBrowserHostWrapper::PrintToPdf(String^ path, PdfPrintSettings^ settings, CefPdfPrintSettings nativeSettings; if (settings != nullptr) { - StringUtils::AssignNativeFromClr(nativeSettings.header_footer_title, settings->HeaderFooterTitle); - StringUtils::AssignNativeFromClr(nativeSettings.header_footer_url, settings->HeaderFooterUrl); - nativeSettings.backgrounds_enabled = settings->BackgroundsEnabled ? 1 : 0; - nativeSettings.header_footer_enabled = settings->HeaderFooterEnabled ? 1 : 0; nativeSettings.landscape = settings->Landscape ? 1 : 0; - nativeSettings.selection_only = settings->SelectionOnly ? 1 : 0; + nativeSettings.print_background = settings->PrintBackground ? 1 : 0; + nativeSettings.scale = settings->Scale; + nativeSettings.paper_height = settings->PaperHeight; + nativeSettings.paper_width = settings->PaperWidth; + nativeSettings.prefer_css_page_size = settings->PreferCssPageSize ? 1 : 0; + nativeSettings.margin_type = static_cast(settings->MarginType); nativeSettings.margin_bottom = settings->MarginBottom; nativeSettings.margin_top = settings->MarginTop; nativeSettings.margin_left = settings->MarginLeft; nativeSettings.margin_right = settings->MarginRight; - nativeSettings.scale_factor = settings->ScaleFactor; - nativeSettings.page_height = settings->PageHeight; - nativeSettings.page_width = settings->PageWidth; - nativeSettings.margin_type = static_cast(settings->MarginType); + StringUtils::AssignNativeFromClr(nativeSettings.page_ranges, settings->PageRanges); + nativeSettings.display_header_footer = settings->DisplayHeaderFooter ? 1 : 0; + StringUtils::AssignNativeFromClr(nativeSettings.header_template, settings->HeaderTemplate); + StringUtils::AssignNativeFromClr(nativeSettings.footer_template, settings->FooterTemplate); } _browserHost->PrintToPDF(StringUtils::ToNative(path), nativeSettings, new CefPdfPrintCallbackWrapper(callback)); diff --git a/CefSharp/PdfPrintSettings.cs b/CefSharp/PdfPrintSettings.cs index afd26b438..43e577125 100644 --- a/CefSharp/PdfPrintSettings.cs +++ b/CefSharp/PdfPrintSettings.cs @@ -2,6 +2,8 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; + namespace CefSharp { /// @@ -10,79 +12,143 @@ namespace CefSharp public sealed class PdfPrintSettings { /// - /// Page title to display in the header. Only used if - /// is set to true. + /// Set to true for landscape mode or false for portrait mode. /// - public string HeaderFooterTitle { get; set; } + public bool Landscape { get; set; } /// - /// URL to display in the footer. Only used if is set - /// to true. + /// Set to true to print background graphics or false to not print + /// background graphics. /// - public string HeaderFooterUrl { get; set; } + public bool PrintBackground { get; set; } /// - /// Output page size in microns. If either of these values is less than or - /// equal to zero then the default paper size (A4) will be used. + /// The percentage to scale the PDF by before printing (e.g. .5 is 50%). + /// If this value is less than or equal to zero the default value of 1.0 + /// will be used. /// - public int PageWidth { get; set; } + public double Scale { get; set; } /// - /// Output page size in microns. If either of these values is less than or - /// equal to zero then the default paper size (A4) will be used. + /// Output paper size in inches. If either of these values is less than or + /// equal to zero then the default paper size (letter, 8.5 x 11 inches) will + /// be used. /// - public int PageHeight { get; set; } + public double PaperWidth { get; set; } /// - /// Margin in points (1"/72). Only used if MarginType is set to Custom. + /// Output paper size in inches. If either of these values is less than or + /// equal to zero then the default paper size (letter, 8.5 x 11 inches) will + /// be used. /// - public int MarginLeft { get; set; } + public double PaperHeight { get; set; } /// - /// Margin in points (1"/72). Only used if MarginType is set to Custom. + /// Set to true to prefer page size as defined by css. Defaults to false + /// in which case the content will be scaled to fit the paper size. /// - public int MarginTop { get; set; } + public bool PreferCssPageSize { get; set; } /// - /// Margin in points (1"/72). Only used if MarginType is set to Custom. + /// Margin type. /// - public int MarginRight { get; set; } + public CefPdfPrintMarginType MarginType { get; set; } /// - /// Margin in points (1"/72). Only used if MarginType is set to Custom. + /// Margins in inches. Only used if is set to + /// . /// - public int MarginBottom { get; set; } + public double MarginLeft { get; set; } /// - /// Margin type. + /// Margins in inches. Only used if is set to + /// . /// - public CefPdfPrintMarginType MarginType { get; set; } + public double MarginTop { get; set; } /// - /// Scale the PDF by the specified amount, defaults to 100%. + /// Margins in inches. Only used if is set to + /// . /// - public int ScaleFactor { get; set; } + public double MarginRight { get; set; } /// - /// Set to true to print headers and footers or false to not print - /// headers and footers. + /// Margins in inches. Only used if is set to + /// . /// - public bool HeaderFooterEnabled { get; set; } + public double MarginBottom { get; set; } /// - /// Set to true to print the selection only or false to print all. + /// Paper ranges to print, one based, e.g. '1-5, 8, 11-13'. Pages are printed + /// in the document order, not in the order specified, and no more than once. + /// Defaults to empty string, which implies the entire document is printed. + /// The page numbers are quietly capped to actual page count of the document, + /// and ranges beyond the end of the document are ignored. If this results in + /// no pages to print, an error is reported. It is an error to specify a range + /// with start greater than end. /// - public bool SelectionOnly { get; set; } + public string PageRanges { get; set; } /// - /// Set to true for landscape mode or false for portrait mode. + /// Set to true to display the header and/or footer. Modify + /// |header_template| and/or |footer_template| to customize the display. /// - public bool Landscape { get; set; } + public bool DisplayHeaderFooter { get; set; } + + /// + /// HTML template for the print header. Only displayed if + /// is true. Should be valid HTML markup with + /// the following classes used to inject printing values into them: + /// + /// - date: formatted print date + /// - title: document title + /// - url: document location + /// - pageNumber: current page number + /// - totalPages: total pages in the document + /// + /// For example, "<span class=title></span>" would generate a span containing + /// the title. + /// + public string HeaderTemplate { get; set; } + + /// + /// HTML template for the print footer. Only displayed if + /// is true. Should be valid HTML markup with + /// the following classes used to inject printing values into them: + /// + /// - date: formatted print date + /// - title: document title + /// - url: document location + /// - pageNumber: current page number + /// - totalPages: total pages in the document + /// + /// For example, "<span class=title></span>" would generate a span containing + /// the title. + /// + public string FooterTemplate { get; set; } + + // Obsolete properties /// /// Set to true to print background graphics or false to not print /// background graphics. /// - public bool BackgroundsEnabled { get; set; } + [Obsolete("Use PrintBackground instead")] + public bool BackgroundsEnabled + { + get { return PrintBackground; } + set { PrintBackground = value; } + } + + /// + /// Set to true to print headers and footers or false to not print + /// headers and footers. + /// + [Obsolete("Use DisplayHeaderFooter instead")] + public bool HeaderFooterEnabled + { + get { return DisplayHeaderFooter; } + set { DisplayHeaderFooter = value; } + } } } From 5316c6e9e642114c7707a2da4b4c01b216bf5ba1 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 21 Nov 2022 18:56:58 +1000 Subject: [PATCH 142/543] Core - Update PdfPrintSettings (Continued) - Update MarginType - Update example #4311 --- CefSharp.Wpf.Example/MainWindow.xaml.cs | 8 ++++---- CefSharp/Enums/CefPdfPrintMarginType.cs | 9 ++------- CefSharp/PdfPrintSettings.cs | 2 +- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CefSharp.Wpf.Example/MainWindow.xaml.cs b/CefSharp.Wpf.Example/MainWindow.xaml.cs index d4711ad9e..0633b7d55 100644 --- a/CefSharp.Wpf.Example/MainWindow.xaml.cs +++ b/CefSharp.Wpf.Example/MainWindow.xaml.cs @@ -261,10 +261,10 @@ private async void PrintToPdfCommandBinding(object sender, ExecutedRoutedEventAr var success = await browserViewModel.WebBrowser.PrintToPdfAsync(dialog.FileName, new PdfPrintSettings { MarginType = CefPdfPrintMarginType.Custom, - MarginBottom = 10, - MarginTop = 0, - MarginLeft = 20, - MarginRight = 10, + MarginBottom = 0.01, + MarginTop = 0.01, + MarginLeft = 0.01, + MarginRight = 0.01, }); if (success) diff --git a/CefSharp/Enums/CefPdfPrintMarginType.cs b/CefSharp/Enums/CefPdfPrintMarginType.cs index 205c3b285..64acc33eb 100644 --- a/CefSharp/Enums/CefPdfPrintMarginType.cs +++ b/CefSharp/Enums/CefPdfPrintMarginType.cs @@ -10,20 +10,15 @@ namespace CefSharp public enum CefPdfPrintMarginType { /// - /// Default margins. + /// Default margins of 1cm (~0.4 inches) /// - Default, + Default = 0, /// /// No margins. /// None, - /// - /// Minimum margins - /// - Minimum, - /// /// Custom margins. /// diff --git a/CefSharp/PdfPrintSettings.cs b/CefSharp/PdfPrintSettings.cs index 43e577125..0e0f00678 100644 --- a/CefSharp/PdfPrintSettings.cs +++ b/CefSharp/PdfPrintSettings.cs @@ -27,7 +27,7 @@ public sealed class PdfPrintSettings /// If this value is less than or equal to zero the default value of 1.0 /// will be used. /// - public double Scale { get; set; } + public double Scale { get; set; } = 1.0; /// /// Output paper size in inches. If either of these values is less than or From f025e9d00d5d628f057849ac3dc6b4fcbbf891d0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 3 Dec 2022 14:24:05 +1000 Subject: [PATCH 143/543] Upgrade to 108.4.12+g2e23ced+chromium-108.0.5359.71 / Chromium 108.0.5359.71 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 7f1acf2f1..2735eb181 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index a3cb9d87e..c3b40f8c0 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index a799fe053..6704f5cc9 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 108,4,100 - PRODUCTVERSION 108,4,100 + FILEVERSION 108,4,120 + PRODUCTVERSION 108,4,120 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "108.4.100" + VALUE "FileVersion", "108.4.120" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "108.4.100" + VALUE "ProductVersion", "108.4.120" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 1b4d29574..1b0645a89 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index acee4097b..b090fb5c3 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index a57978d09..582780d67 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 5872b4128..e8da742fa 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index e74020c7f..e94a8944b 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 151df1b03..03b8b24bf 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 108,4,100 - PRODUCTVERSION 108,4,100 + FILEVERSION 108,4,120 + PRODUCTVERSION 108,4,120 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "108.4.100" + VALUE "FileVersion", "108.4.120" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "108.4.100" + VALUE "ProductVersion", "108.4.120" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 1b4d29574..1b0645a89 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index acee4097b..b090fb5c3 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index c708c5056..507138660 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 423168dc0..884c53168 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index a34273806..19781200c 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index ac1839dc8..4f737767b 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,7 +33,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index b79765dcc..a56749a4b 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 430100ade..ed9224181 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 3a6d1befd..e4c91eafb 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 1e17cc509..b2e48fcc7 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 7807efe3f..b06f1b435 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 9fcd52224..fa7270bc1 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index a1263f2d5..a06820451 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 75cd52e80..1d0444581 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 108.4.100 + 108.4.120 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 108.4.100 + Version 108.4.120 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index b22a8ba35..658cb7007 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "108.4.100"; - public const string AssemblyFileVersion = "108.4.100.0"; + public const string AssemblyVersion = "108.4.120"; + public const string AssemblyFileVersion = "108.4.120.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index e56f69400..2dc4d9576 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index b765a5c55..2a56f7b33 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 7bbfc51eb..45c51a67c 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 4789bb1a4..eecdf05ed 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "108.4.10", + [string] $CefVersion = "108.4.12", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 3ce116fd0..1d39d12c3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 108.4.100-CI{build} +version: 108.4.120-CI{build} clone_depth: 10 From 6b7a28c618f3e628a7623cef20cc0b81666b189a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 13:42:02 +1000 Subject: [PATCH 144/543] appveyor.yml - dotnet test increase verbosity Test running is crashing, need more detail --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1d39d12c3..63a3ec21f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,8 +12,8 @@ build_script: test_script: # Test our Release x64 build - - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll - - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll + - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity normal + - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity normal artifacts: - path: NuGet\**\*.nupkg From 7a8f6197b4e93a7a9177e1c13dbac1ea252925b5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 14:28:49 +1000 Subject: [PATCH 145/543] Test - Use Appveyor.TestLogger package --- CefSharp.Test/CefSharp.Test.csproj | 1 + appveyor.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 4f737767b..74a2bb021 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -33,6 +33,7 @@ + diff --git a/appveyor.yml b/appveyor.yml index 63a3ec21f..80afa91a3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,8 +12,8 @@ build_script: test_script: # Test our Release x64 build - - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity normal - - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity normal + - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity normal --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity normal --test-adapter-path:. --logger:Appveyor artifacts: - path: NuGet\**\*.nupkg From e5c3e790fb2feff0755bdb967aa9a78f70fdc7f4 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 14:36:48 +1000 Subject: [PATCH 146/543] Test - Switch to using xunit.runner.json Use json config file to configure tests --- CefSharp.Test/CefSharp.Test.csproj | 7 ++++++- CefSharp.Test/app.config | 5 ----- CefSharp.Test/xunit.runner.json | 8 ++++++++ 3 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 CefSharp.Test/xunit.runner.json diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 74a2bb021..f556d90ee 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -1,4 +1,4 @@ - + net472 Library @@ -62,5 +62,10 @@ + + + PreserveNewest + + \ No newline at end of file diff --git a/CefSharp.Test/app.config b/CefSharp.Test/app.config index a524c32f9..f31f20cd6 100644 --- a/CefSharp.Test/app.config +++ b/CefSharp.Test/app.config @@ -3,11 +3,6 @@ - - - - - diff --git a/CefSharp.Test/xunit.runner.json b/CefSharp.Test/xunit.runner.json new file mode 100644 index 000000000..37e0bd80f --- /dev/null +++ b/CefSharp.Test/xunit.runner.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", + "diagnosticMessages": true, + "parallelizeAssembly": false, + "maxParallelThreads": -1, + "shadowCopy": false, + "appDomain": "denied" +} From daf79aacf43d5642ec1b987e73e6d828f18504ef Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 15:12:56 +1000 Subject: [PATCH 147/543] Test - Readd app.config settings Use both app.config and xunit.runner.json Shouldn't be necessary, though still seeing problems on appveyor --- CefSharp.Test/app.config | 6 ++++++ CefSharp.Test/xunit.runner.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CefSharp.Test/app.config b/CefSharp.Test/app.config index f31f20cd6..393f9b466 100644 --- a/CefSharp.Test/app.config +++ b/CefSharp.Test/app.config @@ -3,6 +3,12 @@ + + + + + + diff --git a/CefSharp.Test/xunit.runner.json b/CefSharp.Test/xunit.runner.json index 37e0bd80f..5dba78d06 100644 --- a/CefSharp.Test/xunit.runner.json +++ b/CefSharp.Test/xunit.runner.json @@ -2,7 +2,7 @@ "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", "diagnosticMessages": true, "parallelizeAssembly": false, - "maxParallelThreads": -1, + "maxParallelThreads": 1, "shadowCopy": false, "appDomain": "denied" } From 33766c06585c3f9ec7599861ab8f51f8185b0fbe Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 16:48:05 +1000 Subject: [PATCH 148/543] appveyor - Test enable diag verbosity Still not sure why tests are aborting the host process Hopefully this will give some insight into which fails --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 80afa91a3..b74883cee 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,8 +12,8 @@ build_script: test_script: # Test our Release x64 build - - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity normal --test-adapter-path:. --logger:Appveyor - - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity normal --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity diag --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity diag --test-adapter-path:. --logger:Appveyor artifacts: - path: NuGet\**\*.nupkg From 9145a97aad34ff0d371df083aae0155eff3f7741 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 17:36:42 +1000 Subject: [PATCH 149/543] appveyor - Test verbosity Using diag didn't work, change to Diagnostic --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index b74883cee..7ef0441bc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,8 +12,8 @@ build_script: test_script: # Test our Release x64 build - - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity diag --test-adapter-path:. --logger:Appveyor - - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity diag --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity diagnostic --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity diagnostic --test-adapter-path:. --logger:Appveyor artifacts: - path: NuGet\**\*.nupkg From 12e0e984d7036627e4230a880852a13ec037684b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 18:19:37 +1000 Subject: [PATCH 150/543] Test - Remove xunit.runner.json Revert to using just app.config to config xunit --- CefSharp.Test/CefSharp.Test.csproj | 7 +------ CefSharp.Test/xunit.runner.json | 8 -------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 CefSharp.Test/xunit.runner.json diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index f556d90ee..74a2bb021 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -1,4 +1,4 @@ - + net472 Library @@ -62,10 +62,5 @@ - - - PreserveNewest - - \ No newline at end of file diff --git a/CefSharp.Test/xunit.runner.json b/CefSharp.Test/xunit.runner.json deleted file mode 100644 index 5dba78d06..000000000 --- a/CefSharp.Test/xunit.runner.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", - "diagnosticMessages": true, - "parallelizeAssembly": false, - "maxParallelThreads": 1, - "shadowCopy": false, - "appDomain": "denied" -} From fa1d4ed35ada7958f6b38667c667a11e7734665b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 18:57:48 +1000 Subject: [PATCH 151/543] Test - Change back to detailed as diagnostic doesn't work --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 7ef0441bc..1384361d2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,8 +12,8 @@ build_script: test_script: # Test our Release x64 build - - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity diagnostic --test-adapter-path:. --logger:Appveyor - - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity diagnostic --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity detailed --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity detailed --test-adapter-path:. --logger:Appveyor artifacts: - path: NuGet\**\*.nupkg From 4084cc575ba216ac890b8ebf7afd099348a06f88 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Dec 2022 19:10:58 +1000 Subject: [PATCH 152/543] Example - Remove async keyword Wasn't required --- CefSharp.Example/CefExample.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.Example/CefExample.cs b/CefSharp.Example/CefExample.cs index b00baf0ed..47bd704f0 100644 --- a/CefSharp.Example/CefExample.cs +++ b/CefSharp.Example/CefExample.cs @@ -253,7 +253,7 @@ public static void Init(CefSettingsBase settings, IBrowserProcessHandler browser Cef.AddCrossOriginWhitelistEntry(BaseUrl, "https", "cefsharp.com", false); } - public static async void RegisterTestResources(IWebBrowser browser) + public static void RegisterTestResources(IWebBrowser browser) { if (browser.ResourceRequestHandlerFactory == null) { From f5c601d60842bc9fb611a1f4aa99ff2f2988e53d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 5 Dec 2022 09:10:55 +1000 Subject: [PATCH 153/543] Test - Add more logging - Reduce verbosity to normal - Remove appveyor specific logging for now - Add TestCaseOrderer to output message before test run --- CefSharp.Test/CefSharpFixture.cs | 23 +++++++++++++-- CefSharp.Test/CefSharpTestCaseOrderer.cs | 37 ++++++++++++++++++++++++ CefSharp.Test/Properties/AssemblyInfo.cs | 3 +- CefSharp.Test/app.config | 2 +- appveyor.yml | 4 +-- 5 files changed, 62 insertions(+), 7 deletions(-) create mode 100644 CefSharp.Test/CefSharpTestCaseOrderer.cs diff --git a/CefSharp.Test/CefSharpFixture.cs b/CefSharp.Test/CefSharpFixture.cs index f68132671..275b20bde 100644 --- a/CefSharp.Test/CefSharpFixture.cs +++ b/CefSharp.Test/CefSharpFixture.cs @@ -12,6 +12,8 @@ using Titanium.Web.Proxy; using Titanium.Web.Proxy.Models; using Xunit; +using Xunit.Abstractions; +using Xunit.Sdk; namespace CefSharp.Test { @@ -19,10 +21,12 @@ public class CefSharpFixture : IAsyncLifetime, IDisposable { private readonly AsyncContextThread contextThread; private ProxyServer proxyServer; + private readonly IMessageSink diagnosticMessageSink; - public CefSharpFixture() + public CefSharpFixture(IMessageSink messageSink) { contextThread = new AsyncContextThread(); + diagnosticMessageSink = messageSink; } private void CefInitialize() @@ -55,7 +59,9 @@ private void CefInitialize() //settings.CefCommandLineArgs.Add("renderer-startup-dialog"); //settings.CefCommandLineArgs.Add("disable-site-isolation-trials"); - Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null); + var success = Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null); + + diagnosticMessageSink.OnMessage(new DiagnosticMessage("Cef Initialized:" + success)); } } @@ -63,9 +69,20 @@ private void CefShutdown() { if (Cef.IsInitialized) { + diagnosticMessageSink.OnMessage(new DiagnosticMessage("Before Cef Shutdown")); + Cef.WaitForBrowsersToClose(); - Cef.Shutdown(); + try + { + Cef.Shutdown(); + } + catch(Exception ex) + { + diagnosticMessageSink.OnMessage(new DiagnosticMessage("Cef Shutdown Exception:" + ex.ToString())); + } + + diagnosticMessageSink.OnMessage(new DiagnosticMessage("After Cef Shutdown")); } StopProxyServer(); diff --git a/CefSharp.Test/CefSharpTestCaseOrderer.cs b/CefSharp.Test/CefSharpTestCaseOrderer.cs new file mode 100644 index 000000000..5e2b56d18 --- /dev/null +++ b/CefSharp.Test/CefSharpTestCaseOrderer.cs @@ -0,0 +1,37 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Collections.Generic; +using System.Linq; +using Xunit.Abstractions; +using Xunit.Sdk; + +namespace CefSharp.Test +{ + public class CefSharpTestCaseOrderer : ITestCaseOrderer + { + private readonly IMessageSink diagnosticMessageSink; + + public CefSharpTestCaseOrderer(IMessageSink diagnosticMessageSink) + { + this.diagnosticMessageSink = diagnosticMessageSink; + } + + IEnumerable ITestCaseOrderer.OrderTestCases(IEnumerable testCases) + { + var result = testCases.ToList(); // Run them in discovery order + + if(result.Count > 0) + { + var firstTestCase = result[0]; + + var message = new DiagnosticMessage("Ordered Test Cases for : {0} ", firstTestCase.TestMethod.TestClass.Class.ToString()); + diagnosticMessageSink.OnMessage(message); + } + + return result; + } + } +} diff --git a/CefSharp.Test/Properties/AssemblyInfo.cs b/CefSharp.Test/Properties/AssemblyInfo.cs index af7f059be..4d3495199 100644 --- a/CefSharp.Test/Properties/AssemblyInfo.cs +++ b/CefSharp.Test/Properties/AssemblyInfo.cs @@ -18,4 +18,5 @@ [assembly: AssemblyFileVersion(AssemblyInfo.AssemblyFileVersion)] [assembly: CLSCompliant(AssemblyInfo.ClsCompliant)] -[assembly: CollectionBehavior(DisableTestParallelization = true)] +[assembly: CollectionBehavior(DisableTestParallelization = true, MaxParallelThreads = 1)] +[assembly: TestCaseOrderer("CefSharp.Test.CefSharpTestCaseOrderer", "CefSharp.Test")] diff --git a/CefSharp.Test/app.config b/CefSharp.Test/app.config index 393f9b466..d4899ad18 100644 --- a/CefSharp.Test/app.config +++ b/CefSharp.Test/app.config @@ -7,7 +7,7 @@ - + diff --git a/appveyor.yml b/appveyor.yml index 1384361d2..63a3ec21f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,8 +12,8 @@ build_script: test_script: # Test our Release x64 build - - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity detailed --test-adapter-path:. --logger:Appveyor - - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity detailed --test-adapter-path:. --logger:Appveyor + - dotnet test CefSharp.Test\bin\x64\Release\win7-x64\CefSharp.Test.dll --verbosity normal + - dotnet test CefSharp.Test\bin.netcore\x64\Release\netcoreapp3.1\win-x64\CefSharp.Test.dll --verbosity normal artifacts: - path: NuGet\**\*.nupkg From d4d1350a3d61271598d84eb3aac0972a6172a5e0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 5 Dec 2022 09:41:38 +1000 Subject: [PATCH 154/543] Test - Second attempt at migrating to xunit.runner.json --- CefSharp.Test/CefSharp.Test.csproj | 3 +++ CefSharp.Test/app.config | 6 ------ CefSharp.Test/xunit.runner.json | 7 +++++++ 3 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 CefSharp.Test/xunit.runner.json diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 74a2bb021..9a425458d 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -62,5 +62,8 @@ + + + \ No newline at end of file diff --git a/CefSharp.Test/app.config b/CefSharp.Test/app.config index d4899ad18..f31f20cd6 100644 --- a/CefSharp.Test/app.config +++ b/CefSharp.Test/app.config @@ -3,12 +3,6 @@ - - - - - - diff --git a/CefSharp.Test/xunit.runner.json b/CefSharp.Test/xunit.runner.json new file mode 100644 index 000000000..96f1bd534 --- /dev/null +++ b/CefSharp.Test/xunit.runner.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://xunit.net/schema/current/xunit.runner.schema.json", + "diagnosticMessages": true, + "parallelizeTestCollections": false, + "maxParallelThreads": 1, + "appDomain": "denied" +} From 90328398f54170f8ac2d1bc5b4fea2978b5cfb5c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 5 Dec 2022 09:54:29 +1000 Subject: [PATCH 155/543] Test - Skip WPF tests - Attempt to isolate failing test --- CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs index 1663a9ad9..f75247441 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs @@ -26,7 +26,7 @@ public WpfBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixture) this.output = output; } - [WpfFact] + [WpfFact(Skip = "Appveyor build failure debugging")] public async Task CanLoadGoogle() { using (var browser = new ChromiumWebBrowser(null, "www.google.com", new Size(1024, 786))) @@ -41,7 +41,7 @@ public async Task CanLoadGoogle() } } - [WpfFact] + [WpfFact(Skip = "Appveyor build failure debugging")] public async Task CanCallLoadUrlAsyncImmediately() { using (var browser = new ChromiumWebBrowser(null, string.Empty, new Size(1024, 786))) @@ -58,7 +58,7 @@ public async Task CanCallLoadUrlAsyncImmediately() } } - [WpfFact] + [WpfFact(Skip = "Appveyor build failure debugging")] public async Task CanCallLoadUrlImmediately() { using (var browser = new ChromiumWebBrowser()) @@ -78,7 +78,7 @@ public async Task CanCallLoadUrlImmediately() } } - [WpfFact] + [WpfFact(Skip = "Appveyor build failure debugging")] public async Task CanSetRequestContext() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -96,7 +96,7 @@ public async Task CanSetRequestContext() } } - [WpfFact] + [WpfFact(Skip = "Appveyor build failure debugging")] public async Task CanSetRequestContextViaBuilder() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -115,7 +115,7 @@ public async Task CanSetRequestContextViaBuilder() } } - [WpfFact] + [WpfFact(Skip = "Appveyor build failure debugging")] public async Task ShouldRespectDisposed() { ChromiumWebBrowser browser; From 2f36099e266cd5ac78988c1df06391a651018994 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 5 Dec 2022 10:07:36 +1000 Subject: [PATCH 156/543] Test - Skip WinForms tests - Attempt to isolate failing test --- CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs index 05ac69e7f..e083f2f26 100644 --- a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs +++ b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs @@ -24,7 +24,7 @@ public WinFormsBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixtu this.output = output; } - [WinFormsFact] + [WinFormsFact(Skip = "Appveyor build failure debugging")] public async Task CanLoadGoogle() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -42,7 +42,7 @@ public async Task CanLoadGoogle() } } - [WinFormsFact] + [WinFormsFact(Skip = "Appveyor build failure debugging")] public async Task CanSetBrowserSettingsDisableImageLoadingViaObjectFactory() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -64,7 +64,7 @@ public async Task CanSetBrowserSettingsDisableImageLoadingViaObjectFactory() } } - [WinFormsFact] + [WinFormsFact(Skip = "Appveyor build failure debugging")] public async Task CanSetBrowserSettingsDisableImageLoading() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -87,7 +87,7 @@ public async Task CanSetBrowserSettingsDisableImageLoading() } } - [WinFormsFact] + [WinFormsFact(Skip = "Appveyor build failure debugging")] public async Task CanSetRequestContextViaRequestContextBuilder() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -109,7 +109,7 @@ public async Task CanSetRequestContextViaRequestContextBuilder() } } - [WinFormsFact] + [WinFormsFact(Skip = "Appveyor build failure debugging")] public async Task CanSetRequestContext() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -129,7 +129,7 @@ public async Task CanSetRequestContext() } } - [WinFormsFact] + [WinFormsFact(Skip = "Appveyor build failure debugging")] public async Task ShouldRespectDisposed() { ChromiumWebBrowser browser; From 7ace5ef8ff281bc6a0f85a06b247ee54b59c6a6c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 5 Dec 2022 10:10:06 +1000 Subject: [PATCH 157/543] Test - NetCore copy xunit json to output --- CefSharp.Test/CefSharp.Test.netcore.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index a56749a4b..2b1b8f815 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -54,6 +54,10 @@ + + + + From 138f397d7d3fde03c6d147e202c62ff56945b0eb Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Dec 2022 09:22:42 +1000 Subject: [PATCH 158/543] Test - Re-enable some WPF tests - Re-enable all but the RequestContext tests and see if appveyor builds --- CefSharp.Test/Wpf/WaitForRenderIdleTests.cs | 2 +- CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs index 92162d4e4..8ba04724c 100644 --- a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs @@ -112,7 +112,7 @@ public async Task ShouldRespectCancellation() using (var cancellationSource = new CancellationTokenSource()) using (var browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) { - cancellationSource.CancelAfter(400); + cancellationSource.CancelAfter(200); var exception = await Assert.ThrowsAsync(async () => { diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs index f75247441..21a742e96 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs @@ -26,7 +26,7 @@ public WpfBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixture) this.output = output; } - [WpfFact(Skip = "Appveyor build failure debugging")] + [WpfFact] public async Task CanLoadGoogle() { using (var browser = new ChromiumWebBrowser(null, "www.google.com", new Size(1024, 786))) @@ -41,7 +41,7 @@ public async Task CanLoadGoogle() } } - [WpfFact(Skip = "Appveyor build failure debugging")] + [WpfFact] public async Task CanCallLoadUrlAsyncImmediately() { using (var browser = new ChromiumWebBrowser(null, string.Empty, new Size(1024, 786))) @@ -58,7 +58,7 @@ public async Task CanCallLoadUrlAsyncImmediately() } } - [WpfFact(Skip = "Appveyor build failure debugging")] + [WpfFact] public async Task CanCallLoadUrlImmediately() { using (var browser = new ChromiumWebBrowser()) @@ -115,7 +115,7 @@ public async Task CanSetRequestContextViaBuilder() } } - [WpfFact(Skip = "Appveyor build failure debugging")] + [WpfFact] public async Task ShouldRespectDisposed() { ChromiumWebBrowser browser; From 852b0f2d7f14fc1cd881db2d508f9c6e2a35af7f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Dec 2022 10:03:47 +1000 Subject: [PATCH 159/543] Core - RequestContext add ArgumentNull checks --- CefSharp.Core/RequestContext.cs | 32 ++++++++++++++++++++++++++ CefSharp.Core/RequestContextBuilder.cs | 7 +++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core/RequestContext.cs b/CefSharp.Core/RequestContext.cs index c38a088b4..4023cc7a0 100644 --- a/CefSharp.Core/RequestContext.cs +++ b/CefSharp.Core/RequestContext.cs @@ -24,30 +24,62 @@ public RequestContext() /// public RequestContext(IRequestContext otherRequestContext) { + if (otherRequestContext == null) + { + throw new ArgumentNullException(nameof(otherRequestContext)); + } requestContext = new CefSharp.Core.RequestContext(otherRequestContext); } /// public RequestContext(IRequestContext otherRequestContext, IRequestContextHandler requestContextHandler) { + if (otherRequestContext == null) + { + throw new ArgumentNullException(nameof(otherRequestContext)); + } + + if (requestContextHandler == null) + { + throw new ArgumentNullException(nameof(requestContextHandler)); + } + requestContext = new CefSharp.Core.RequestContext(otherRequestContext, requestContextHandler); } /// public RequestContext(IRequestContextHandler requestContextHandler) { + if (requestContextHandler == null) + { + throw new ArgumentNullException(nameof(requestContextHandler)); + } requestContext = new CefSharp.Core.RequestContext(requestContextHandler); } /// public RequestContext(RequestContextSettings settings) { + if (settings == null) + { + throw new ArgumentNullException(nameof(settings)); + } requestContext = new CefSharp.Core.RequestContext(settings.settings); } /// public RequestContext(RequestContextSettings settings, IRequestContextHandler requestContextHandler) { + if (settings == null) + { + throw new ArgumentNullException(nameof(settings)); + } + + if (requestContextHandler == null) + { + throw new ArgumentNullException(nameof(requestContextHandler)); + } + requestContext = new CefSharp.Core.RequestContext(settings.settings, requestContextHandler); } diff --git a/CefSharp.Core/RequestContextBuilder.cs b/CefSharp.Core/RequestContextBuilder.cs index 738ebd891..b5969d5c0 100644 --- a/CefSharp.Core/RequestContextBuilder.cs +++ b/CefSharp.Core/RequestContextBuilder.cs @@ -49,7 +49,12 @@ public IRequestContext Create() return new CefSharp.Core.RequestContext(_settings.settings, _handler); } - return new CefSharp.Core.RequestContext(_handler); + if (_handler != null) + { + return new CefSharp.Core.RequestContext(_handler); + } + + return new CefSharp.Core.RequestContext(); } /// From 570ce89926368eecdb1abef890e00faac1eab62f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Dec 2022 10:05:58 +1000 Subject: [PATCH 160/543] Test - Re-enable some WinForms tests - Re-enable all but the RequestContext tests and see if appveyor builds --- CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs index e083f2f26..83be284f0 100644 --- a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs +++ b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs @@ -24,7 +24,7 @@ public WinFormsBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixtu this.output = output; } - [WinFormsFact(Skip = "Appveyor build failure debugging")] + [WinFormsFact] public async Task CanLoadGoogle() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -42,7 +42,7 @@ public async Task CanLoadGoogle() } } - [WinFormsFact(Skip = "Appveyor build failure debugging")] + [WinFormsFact] public async Task CanSetBrowserSettingsDisableImageLoadingViaObjectFactory() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -64,7 +64,7 @@ public async Task CanSetBrowserSettingsDisableImageLoadingViaObjectFactory() } } - [WinFormsFact(Skip = "Appveyor build failure debugging")] + [WinFormsFact] public async Task CanSetBrowserSettingsDisableImageLoading() { using (var browser = new ChromiumWebBrowser("www.google.com")) @@ -92,8 +92,6 @@ public async Task CanSetRequestContextViaRequestContextBuilder() { using (var browser = new ChromiumWebBrowser("www.google.com")) { - var settings = Core.ObjectFactory.CreateBrowserSettings(true); - settings.ImageLoading = CefState.Disabled; browser.RequestContext = RequestContext.Configure().Create(); browser.Size = new System.Drawing.Size(1024, 768); @@ -129,7 +127,7 @@ public async Task CanSetRequestContext() } } - [WinFormsFact(Skip = "Appveyor build failure debugging")] + [WinFormsFact] public async Task ShouldRespectDisposed() { ChromiumWebBrowser browser; From de438ab846e5f5a287f1ae3062103e2fdb16cbaf Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Dec 2022 10:41:24 +1000 Subject: [PATCH 161/543] Bug Report - Update cefclient links --- .github/ISSUE_TEMPLATE/bug_report.md | 6 +++--- CONTRIBUTING.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 335bbd0d9..f8a445172 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -68,9 +68,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg26c0b5e%2Bchromium-107.0.5304.110_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0d18912fb..84b4293fc 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg26c0b5e%2Bchromium-107.0.5304.110_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.9%2Bg1f0a21a%2Bchromium-107.0.5304.110_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` From 7a7cce494cd21b34a69fec4e11ab7cbca7b0ef0c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Dec 2022 11:00:53 +1000 Subject: [PATCH 162/543] DevTools Client - Update to 108.0.5359.71 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 316 ++++++++---------- .../DevToolsClient.Generated.netcore.cs | 295 ++++++++-------- 2 files changed, 279 insertions(+), 332 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index fe12e0245..8bbb2e1cf 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 107.0.5304.68 +// CHROMIUM VERSION 108.0.5359.71 namespace CefSharp.DevTools.Accessibility { /// @@ -2911,11 +2911,6 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecurePrivateNetworkSubresourceRequest"))] InsecurePrivateNetworkSubresourceRequest, /// - /// LegacyConstraintGoogIPv6 - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LegacyConstraintGoogIPv6"))] - LegacyConstraintGoogIPv6, - /// /// LocalCSSFileExtensionRejected /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LocalCSSFileExtensionRejected"))] @@ -2931,16 +2926,6 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaSourceDurationTruncatingBuffered"))] MediaSourceDurationTruncatingBuffered, /// - /// NavigateEventRestoreScroll - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigateEventRestoreScroll"))] - NavigateEventRestoreScroll, - /// - /// NavigateEventTransitionWhile - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigateEventTransitionWhile"))] - NavigateEventTransitionWhile, - /// /// NoSysexWebMIDIWithoutPermission /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoSysexWebMIDIWithoutPermission"))] @@ -2971,6 +2956,16 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OverflowVisibleOnReplacedElement"))] OverflowVisibleOnReplacedElement, /// + /// PaymentInstruments + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PaymentInstruments"))] + PaymentInstruments, + /// + /// PaymentRequestCSPViolation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PaymentRequestCSPViolation"))] + PaymentRequestCSPViolation, + /// /// PersistentQuotaType /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PersistentQuotaType"))] @@ -12568,6 +12563,53 @@ public enum TrustTokenOperationType Signing } + /// + /// The reason why Chrome uses a specific transport protocol for HTTP semantics. + /// + public enum AlternateProtocolUsage + { + /// + /// alternativeJobWonWithoutRace + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("alternativeJobWonWithoutRace"))] + AlternativeJobWonWithoutRace, + /// + /// alternativeJobWonRace + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("alternativeJobWonRace"))] + AlternativeJobWonRace, + /// + /// mainJobWonRace + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mainJobWonRace"))] + MainJobWonRace, + /// + /// mappingMissing + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mappingMissing"))] + MappingMissing, + /// + /// broken + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("broken"))] + Broken, + /// + /// dnsAlpnH3JobWonWithoutRace + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dnsAlpnH3JobWonWithoutRace"))] + DnsAlpnH3JobWonWithoutRace, + /// + /// dnsAlpnH3JobWonRace + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dnsAlpnH3JobWonRace"))] + DnsAlpnH3JobWonRace, + /// + /// unspecifiedReason + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unspecifiedReason"))] + UnspecifiedReason + } + /// /// HTTP response data. /// @@ -12800,6 +12842,32 @@ public string Protocol set; } + /// + /// The reason why Chrome uses a specific transport protocol for HTTP semantics. + /// + public CefSharp.DevTools.Network.AlternateProtocolUsage? AlternateProtocolUsage + { + get + { + return (CefSharp.DevTools.Network.AlternateProtocolUsage? )(StringToEnum(typeof(CefSharp.DevTools.Network.AlternateProtocolUsage? ), alternateProtocolUsage)); + } + + set + { + this.alternateProtocolUsage = (EnumToString(value)); + } + } + + /// + /// The reason why Chrome uses a specific transport protocol for HTTP semantics. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("alternateProtocolUsage"), IsRequired = (false))] + internal string alternateProtocolUsage + { + get; + set; + } + /// /// Security state of the request resource. /// @@ -18080,6 +18148,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-prefers-color-scheme"))] ChPrefersColorScheme, /// + /// ch-prefers-reduced-motion + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-prefers-reduced-motion"))] + ChPrefersReducedMotion, + /// /// ch-rtt /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-rtt"))] @@ -18210,11 +18283,6 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("execution-while-not-rendered"))] ExecutionWhileNotRendered, /// - /// federated-credentials - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("federated-credentials"))] - FederatedCredentials, - /// /// focus-without-user-activation /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("focus-without-user-activation"))] @@ -18250,6 +18318,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hid"))] Hid, /// + /// identity-credentials-get + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("identity-credentials-get"))] + IdentityCredentialsGet, + /// /// idle-detection /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("idle-detection"))] @@ -20919,11 +20992,6 @@ public enum PrerenderFinalStatus [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TriggerBackgrounded"))] TriggerBackgrounded, /// - /// EmbedderTriggeredAndSameOriginRedirected - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndSameOriginRedirected"))] - EmbedderTriggeredAndSameOriginRedirected, - /// /// EmbedderTriggeredAndCrossOriginRedirected /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] @@ -20952,7 +21020,22 @@ public enum PrerenderFinalStatus /// ActivatedBeforeStarted /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivatedBeforeStarted"))] - ActivatedBeforeStarted + ActivatedBeforeStarted, + /// + /// InactivePageRestriction + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InactivePageRestriction"))] + InactivePageRestriction, + /// + /// StartFailed + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("StartFailed"))] + StartFailed, + /// + /// TimeoutBackgrounded + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TimeoutBackgrounded"))] + TimeoutBackgrounded } /// @@ -24426,6 +24509,17 @@ public string BrowserContextId get; set; } + + /// + /// Provides additional details for specific target types. For example, for + /// the type of "page", this may be set to "portal" or "prerender". + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("subtype"), IsRequired = (false))] + public string Subtype + { + get; + set; + } } /// @@ -25486,6 +25580,17 @@ public string NetworkId get; private set; } + + /// + /// If the request is due to a redirect response from the server, the id of the request that + /// has caused the redirect. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("redirectedRequestId"), IsRequired = (false))] + public string RedirectedRequestId + { + get; + private set; + } } /// @@ -28794,87 +28899,6 @@ public System.Collections.Generic.IList - /// Describes a type collected during runtime. - /// - [System.Runtime.Serialization.DataContractAttribute] - public partial class TypeObject : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// Name of a type collected with type profiling. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] - public string Name - { - get; - set; - } - } - - /// - /// Source offset and types for a parameter or return value. - /// - [System.Runtime.Serialization.DataContractAttribute] - public partial class TypeProfileEntry : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// Source offset of the parameter or end of function for return values. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offset"), IsRequired = (true))] - public int Offset - { - get; - set; - } - - /// - /// The types for this parameter or return value. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("types"), IsRequired = (true))] - public System.Collections.Generic.IList Types - { - get; - set; - } - } - - /// - /// Type profile data collected during runtime for a JavaScript script. - /// - [System.Runtime.Serialization.DataContractAttribute] - public partial class ScriptTypeProfile : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// JavaScript script id. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] - public string ScriptId - { - get; - set; - } - - /// - /// JavaScript script name or url. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] - public string Url - { - get; - set; - } - - /// - /// Type profile entries for parameters and return values of the functions in the script. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("entries"), IsRequired = (true))] - public System.Collections.Generic.IList Entries - { - get; - set; - } - } - /// /// consoleProfileFinished /// @@ -49248,21 +49272,33 @@ public System.Threading.Tasks.Task GetSamplingProfil return _client.ExecuteDevToolsMethodAsync("HeapProfiler.getSamplingProfile", dict); } - partial void ValidateStartSampling(double? samplingInterval = null); + partial void ValidateStartSampling(double? samplingInterval = null, bool? includeObjectsCollectedByMajorGC = null, bool? includeObjectsCollectedByMinorGC = null); /// /// StartSampling /// /// Average sample interval in bytes. Poisson distribution is used for the intervals. Thedefault value is 32768 bytes. + /// By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded bymajor GC, which will show which functions cause large temporary memoryusage or long GC pauses. + /// By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded byminor GC, which is useful when tuning a latency-sensitive applicationfor minimal GC activity. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StartSamplingAsync(double? samplingInterval = null) + public System.Threading.Tasks.Task StartSamplingAsync(double? samplingInterval = null, bool? includeObjectsCollectedByMajorGC = null, bool? includeObjectsCollectedByMinorGC = null) { - ValidateStartSampling(samplingInterval); + ValidateStartSampling(samplingInterval, includeObjectsCollectedByMajorGC, includeObjectsCollectedByMinorGC); var dict = new System.Collections.Generic.Dictionary(); if (samplingInterval.HasValue) { dict.Add("samplingInterval", samplingInterval.Value); } + if (includeObjectsCollectedByMajorGC.HasValue) + { + dict.Add("includeObjectsCollectedByMajorGC", includeObjectsCollectedByMajorGC.Value); + } + + if (includeObjectsCollectedByMinorGC.HasValue) + { + dict.Add("includeObjectsCollectedByMinorGC", includeObjectsCollectedByMinorGC.Value); + } + return _client.ExecuteDevToolsMethodAsync("HeapProfiler.startSampling", dict); } @@ -49498,34 +49534,6 @@ public double Timestamp } } -namespace CefSharp.DevTools.Profiler -{ - /// - /// TakeTypeProfileResponse - /// - [System.Runtime.Serialization.DataContractAttribute] - public class TakeTypeProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase - { - [System.Runtime.Serialization.DataMemberAttribute] - internal System.Collections.Generic.IList result - { - get; - set; - } - - /// - /// result - /// - public System.Collections.Generic.IList Result - { - get - { - return result; - } - } - } -} - namespace CefSharp.DevTools.Profiler { using System.Linq; @@ -49683,16 +49691,6 @@ public System.Threading.Tasks.Task StartPreciseCov return _client.ExecuteDevToolsMethodAsync("Profiler.startPreciseCoverage", dict); } - /// - /// Enable type profile. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StartTypeProfileAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Profiler.startTypeProfile", dict); - } - /// /// Stop /// @@ -49714,16 +49712,6 @@ public System.Threading.Tasks.Task StopPreciseCoverageAs return _client.ExecuteDevToolsMethodAsync("Profiler.stopPreciseCoverage", dict); } - /// - /// Disable type profile. Disabling releases type profile data collected so far. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StopTypeProfileAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Profiler.stopTypeProfile", dict); - } - /// /// Collect coverage data for the current isolate, and resets execution counters. Precise code /// coverage needs to have started. @@ -49734,16 +49722,6 @@ public System.Threading.Tasks.Task TakePreciseCover System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.takePreciseCoverage", dict); } - - /// - /// Collect type profile. - /// - /// returns System.Threading.Tasks.Task<TakeTypeProfileResponse> - public System.Threading.Tasks.Task TakeTypeProfileAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Profiler.takeTypeProfile", dict); - } } } diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index c8929a510..93458f4c8 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 107.0.5304.68 +// CHROMIUM VERSION 108.0.5359.71 namespace CefSharp.DevTools.Accessibility { /// @@ -2615,11 +2615,6 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecurePrivateNetworkSubresourceRequest")] InsecurePrivateNetworkSubresourceRequest, /// - /// LegacyConstraintGoogIPv6 - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("LegacyConstraintGoogIPv6")] - LegacyConstraintGoogIPv6, - /// /// LocalCSSFileExtensionRejected /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("LocalCSSFileExtensionRejected")] @@ -2635,16 +2630,6 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaSourceDurationTruncatingBuffered")] MediaSourceDurationTruncatingBuffered, /// - /// NavigateEventRestoreScroll - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigateEventRestoreScroll")] - NavigateEventRestoreScroll, - /// - /// NavigateEventTransitionWhile - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigateEventTransitionWhile")] - NavigateEventTransitionWhile, - /// /// NoSysexWebMIDIWithoutPermission /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoSysexWebMIDIWithoutPermission")] @@ -2675,6 +2660,16 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("OverflowVisibleOnReplacedElement")] OverflowVisibleOnReplacedElement, /// + /// PaymentInstruments + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PaymentInstruments")] + PaymentInstruments, + /// + /// PaymentRequestCSPViolation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PaymentRequestCSPViolation")] + PaymentRequestCSPViolation, + /// /// PersistentQuotaType /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("PersistentQuotaType")] @@ -11811,6 +11806,53 @@ public enum TrustTokenOperationType Signing } + /// + /// The reason why Chrome uses a specific transport protocol for HTTP semantics. + /// + public enum AlternateProtocolUsage + { + /// + /// alternativeJobWonWithoutRace + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("alternativeJobWonWithoutRace")] + AlternativeJobWonWithoutRace, + /// + /// alternativeJobWonRace + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("alternativeJobWonRace")] + AlternativeJobWonRace, + /// + /// mainJobWonRace + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mainJobWonRace")] + MainJobWonRace, + /// + /// mappingMissing + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mappingMissing")] + MappingMissing, + /// + /// broken + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("broken")] + Broken, + /// + /// dnsAlpnH3JobWonWithoutRace + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsAlpnH3JobWonWithoutRace")] + DnsAlpnH3JobWonWithoutRace, + /// + /// dnsAlpnH3JobWonRace + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsAlpnH3JobWonRace")] + DnsAlpnH3JobWonRace, + /// + /// unspecifiedReason + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("unspecifiedReason")] + UnspecifiedReason + } + /// /// HTTP response data. /// @@ -12030,6 +12072,16 @@ public string Protocol set; } + /// + /// The reason why Chrome uses a specific transport protocol for HTTP semantics. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("alternateProtocolUsage")] + public CefSharp.DevTools.Network.AlternateProtocolUsage? AlternateProtocolUsage + { + get; + set; + } + /// /// Security state of the request resource. /// @@ -16845,6 +16897,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-prefers-color-scheme")] ChPrefersColorScheme, /// + /// ch-prefers-reduced-motion + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-prefers-reduced-motion")] + ChPrefersReducedMotion, + /// /// ch-rtt /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-rtt")] @@ -16975,11 +17032,6 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("execution-while-not-rendered")] ExecutionWhileNotRendered, /// - /// federated-credentials - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("federated-credentials")] - FederatedCredentials, - /// /// focus-without-user-activation /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("focus-without-user-activation")] @@ -17015,6 +17067,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("hid")] Hid, /// + /// identity-credentials-get + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("identity-credentials-get")] + IdentityCredentialsGet, + /// /// idle-detection /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("idle-detection")] @@ -19500,11 +19557,6 @@ public enum PrerenderFinalStatus [System.Text.Json.Serialization.JsonPropertyNameAttribute("TriggerBackgrounded")] TriggerBackgrounded, /// - /// EmbedderTriggeredAndSameOriginRedirected - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndSameOriginRedirected")] - EmbedderTriggeredAndSameOriginRedirected, - /// /// EmbedderTriggeredAndCrossOriginRedirected /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndCrossOriginRedirected")] @@ -19533,7 +19585,22 @@ public enum PrerenderFinalStatus /// ActivatedBeforeStarted /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivatedBeforeStarted")] - ActivatedBeforeStarted + ActivatedBeforeStarted, + /// + /// InactivePageRestriction + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("InactivePageRestriction")] + InactivePageRestriction, + /// + /// StartFailed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("StartFailed")] + StartFailed, + /// + /// TimeoutBackgrounded + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TimeoutBackgrounded")] + TimeoutBackgrounded } /// @@ -22801,6 +22868,17 @@ public string BrowserContextId get; set; } + + /// + /// Provides additional details for specific target types. For example, for + /// the type of "page", this may be set to "portal" or "prerender". + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + public string Subtype + { + get; + set; + } } /// @@ -23750,6 +23828,18 @@ public string NetworkId get; private set; } + + /// + /// If the request is due to a redirect response from the server, the id of the request that + /// has caused the redirect. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("redirectedRequestId")] + public string RedirectedRequestId + { + get; + private set; + } } /// @@ -26928,89 +27018,6 @@ public System.Collections.Generic.IList - /// Describes a type collected during runtime. - /// - public partial class TypeObject : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// Name of a type collected with type profiling. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Name - { - get; - set; - } - } - - /// - /// Source offset and types for a parameter or return value. - /// - public partial class TypeProfileEntry : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// Source offset of the parameter or end of function for return values. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offset")] - public int Offset - { - get; - set; - } - - /// - /// The types for this parameter or return value. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("types")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Types - { - get; - set; - } - } - - /// - /// Type profile data collected during runtime for a JavaScript script. - /// - public partial class ScriptTypeProfile : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// JavaScript script id. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string ScriptId - { - get; - set; - } - - /// - /// JavaScript script name or url. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Url - { - get; - set; - } - - /// - /// Type profile entries for parameters and return values of the functions in the script. - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Entries - { - get; - set; - } - } - /// /// consoleProfileFinished /// @@ -45448,21 +45455,33 @@ public System.Threading.Tasks.Task GetSamplingProfil return _client.ExecuteDevToolsMethodAsync("HeapProfiler.getSamplingProfile", dict); } - partial void ValidateStartSampling(double? samplingInterval = null); + partial void ValidateStartSampling(double? samplingInterval = null, bool? includeObjectsCollectedByMajorGC = null, bool? includeObjectsCollectedByMinorGC = null); /// /// StartSampling /// /// Average sample interval in bytes. Poisson distribution is used for the intervals. Thedefault value is 32768 bytes. + /// By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded bymajor GC, which will show which functions cause large temporary memoryusage or long GC pauses. + /// By default, the sampling heap profiler reports only objects which arestill alive when the profile is returned via getSamplingProfile orstopSampling, which is useful for determining what functions contributethe most to steady-state memory usage. This flag instructs the samplingheap profiler to also include information about objects discarded byminor GC, which is useful when tuning a latency-sensitive applicationfor minimal GC activity. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StartSamplingAsync(double? samplingInterval = null) + public System.Threading.Tasks.Task StartSamplingAsync(double? samplingInterval = null, bool? includeObjectsCollectedByMajorGC = null, bool? includeObjectsCollectedByMinorGC = null) { - ValidateStartSampling(samplingInterval); + ValidateStartSampling(samplingInterval, includeObjectsCollectedByMajorGC, includeObjectsCollectedByMinorGC); var dict = new System.Collections.Generic.Dictionary(); if (samplingInterval.HasValue) { dict.Add("samplingInterval", samplingInterval.Value); } + if (includeObjectsCollectedByMajorGC.HasValue) + { + dict.Add("includeObjectsCollectedByMajorGC", includeObjectsCollectedByMajorGC.Value); + } + + if (includeObjectsCollectedByMinorGC.HasValue) + { + dict.Add("includeObjectsCollectedByMinorGC", includeObjectsCollectedByMinorGC.Value); + } + return _client.ExecuteDevToolsMethodAsync("HeapProfiler.startSampling", dict); } @@ -45659,26 +45678,6 @@ public double Timestamp } } -namespace CefSharp.DevTools.Profiler -{ - /// - /// TakeTypeProfileResponse - /// - public class TakeTypeProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase - { - /// - /// result - /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] - public System.Collections.Generic.IList Result - { - get; - private set; - } - } -} - namespace CefSharp.DevTools.Profiler { using System.Linq; @@ -45836,16 +45835,6 @@ public System.Threading.Tasks.Task StartPreciseCov return _client.ExecuteDevToolsMethodAsync("Profiler.startPreciseCoverage", dict); } - /// - /// Enable type profile. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StartTypeProfileAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Profiler.startTypeProfile", dict); - } - /// /// Stop /// @@ -45867,16 +45856,6 @@ public System.Threading.Tasks.Task StopPreciseCoverageAs return _client.ExecuteDevToolsMethodAsync("Profiler.stopPreciseCoverage", dict); } - /// - /// Disable type profile. Disabling releases type profile data collected so far. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task StopTypeProfileAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Profiler.stopTypeProfile", dict); - } - /// /// Collect coverage data for the current isolate, and resets execution counters. Precise code /// coverage needs to have started. @@ -45887,16 +45866,6 @@ public System.Threading.Tasks.Task TakePreciseCover System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Profiler.takePreciseCoverage", dict); } - - /// - /// Collect type profile. - /// - /// returns System.Threading.Tasks.Task<TakeTypeProfileResponse> - public System.Threading.Tasks.Task TakeTypeProfileAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Profiler.takeTypeProfile", dict); - } } } From 74f9d86bb8424d6304b97bf605ca2842c902fdf5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Dec 2022 11:04:52 +1000 Subject: [PATCH 163/543] Test - Update CanSetRequestContextViaBuilder - See if sharing settings with GlobalRequestContext allows appveyor tests to pass Tests are running locally without problem in VS2022 --- CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs index 21a742e96..1ac4f6ac6 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs @@ -96,12 +96,14 @@ public async Task CanSetRequestContext() } } - [WpfFact(Skip = "Appveyor build failure debugging")] + [WpfFact] public async Task CanSetRequestContextViaBuilder() { using (var browser = new ChromiumWebBrowser("www.google.com")) { - browser.RequestContext = RequestContext.Configure().Create(); + browser.RequestContext = RequestContext.Configure() + .WithSharedSettings(Cef.GetGlobalRequestContext()) + .Create(); browser.CreateBrowser(null, new Size(1024, 786)); From 4ff673e76a7e8b3e24fbbf245e30443bb86955db Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Dec 2022 14:54:19 +1000 Subject: [PATCH 164/543] Enhancement - Improve Promise support (#4326) * Enhancement - Improved promise support Resolves #4276 --- .../CefAppUnmanagedWrapper.cpp | 38 ++++++++++ .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 + ...arp.BrowserSubprocess.Core.vcxproj.filters | 6 ++ .../JavascriptPromiseResolverCatch.h | 71 +++++++++++++++++++ .../JavascriptPromiseResolverThen.h | 59 +++++++++++++++ CefSharp.Example/CefExample.cs | 1 + .../Javascript/EvaluateScriptAsyncFacts.cs | 51 +++++++++++++ .../Javascript/JavascriptCallbackFacts.cs | 49 +++++++++++++ 8 files changed, 277 insertions(+) create mode 100644 CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h create mode 100644 CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h diff --git a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp index 45d024b60..dfbdb7578 100644 --- a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp +++ b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp @@ -13,6 +13,8 @@ #include "JavascriptPostMessageHandler.h" #include "JavascriptRootObjectWrapper.h" #include "JavascriptPromiseHandler.h" +#include "JavascriptPromiseResolverCatch.h" +#include "JavascriptPromiseResolverThen.h" #include "Async\JavascriptAsyncMethodCallback.h" #include "Serialization\V8Serialization.h" #include "Serialization\JsObjectsSerialization.h" @@ -446,6 +448,24 @@ namespace CefSharp { sendResponse = false; } + else if (result->IsPromise()) + { + sendResponse = false; + + auto promiseThen = result->GetValue("then"); + auto promiseCatch = result->GetValue("catch"); + + auto promiseThenFunc = CefV8Value::CreateFunction("promiseResolverThen", new JavascriptPromiseResolverThen(callbackId, false)); + auto promiseCatchFunc = CefV8Value::CreateFunction("promiseResolverCatch", new JavascriptPromiseResolverCatch(callbackId, false)); + + CefV8ValueList promiseThenArgs; + promiseThenArgs.push_back(promiseThenFunc); + promiseThen->ExecuteFunction(result, promiseThenArgs); + + CefV8ValueList promiseCatchArgs; + promiseCatchArgs.push_back(promiseCatchFunc); + promiseCatch->ExecuteFunction(result, promiseCatchArgs); + } else { auto responseArgList = response->GetArgumentList(); @@ -521,6 +541,24 @@ namespace CefSharp { sendResponse = false; } + else if (result->IsPromise()) + { + sendResponse = false; + + auto promiseThen = result->GetValue("then"); + auto promiseCatch = result->GetValue("catch"); + + auto promiseThenFunc = CefV8Value::CreateFunction("promiseResolverThen", new JavascriptPromiseResolverThen(callbackId, true)); + auto promiseCatchFunc = CefV8Value::CreateFunction("promiseResolverCatch", new JavascriptPromiseResolverCatch(callbackId, true)); + + CefV8ValueList promiseThenArgs; + promiseThenArgs.push_back(promiseThenFunc); + promiseThen->ExecuteFunction(result, promiseThenArgs); + + CefV8ValueList promiseCatchArgs; + promiseCatchArgs.push_back(promiseCatchFunc); + promiseCatch->ExecuteFunction(result, promiseCatchArgs); + } else { auto responseArgList = response->GetArgumentList(); diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index c3b40f8c0..32aa97cd4 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -183,6 +183,8 @@ + + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters index 659e3820c..8b695aad3 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj.filters @@ -122,6 +122,12 @@ Header Files + + Header Files + + + Header Files + diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h new file mode 100644 index 000000000..c3dbddac2 --- /dev/null +++ b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h @@ -0,0 +1,71 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +#pragma once + +#include "include/cef_v8.h" + +using namespace System; + +namespace CefSharp +{ + namespace BrowserSubprocess + { + private class JavascriptPromiseResolverCatch : public CefV8Handler + { + int64 _callbackId; + bool _isJsCallback; + + public: + JavascriptPromiseResolverCatch(int64 callbackId, bool isJsCallback) : _callbackId(callbackId), _isJsCallback(isJsCallback) + { + + } + + virtual bool Execute(const CefString& name, + CefRefPtr object, + const CefV8ValueList& arguments, + CefRefPtr& retval, + CefString& exception) + { + auto context = CefV8Context::GetCurrentContext(); + + auto reason = arguments[0]; + CefString reasonString; + + if (reason->IsString()) + { + reasonString = reason->GetStringValue(); + } + else + { + //Convert value to String + auto strFunc = context->GetGlobal()->GetValue("String"); + CefV8ValueList args; + args.push_back(reason); + auto strVal = strFunc->ExecuteFunction(nullptr, args); + + reasonString = strVal->GetStringValue(); + } + + auto response = CefProcessMessage::Create(_isJsCallback ? kJavascriptCallbackResponse : kEvaluateJavascriptResponse); + auto responseArgList = response->GetArgumentList(); + + //Success + responseArgList->SetBool(0, false); + //Callback Id + SetInt64(responseArgList, 1, _callbackId); + responseArgList->SetString(2, reasonString); + + auto frame = context->GetFrame(); + + frame->SendProcessMessage(CefProcessId::PID_BROWSER, response); + + return true; + } + + IMPLEMENT_REFCOUNTINGM(JavascriptPromiseResolverCatch); + }; + } +} diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h new file mode 100644 index 000000000..e2fa33721 --- /dev/null +++ b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h @@ -0,0 +1,59 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +#pragma once + +#include "include/cef_v8.h" +#include "..\CefSharp.Core.Runtime\Internals\Messaging\Messages.h" +#include "..\CefSharp.Core.Runtime\Internals\Serialization\Primitives.h" +#include "Serialization\V8Serialization.h" + +using namespace System; +using namespace CefSharp::Internals::Messaging; +using namespace CefSharp::BrowserSubprocess::Serialization; + +namespace CefSharp +{ + namespace BrowserSubprocess + { + private class JavascriptPromiseResolverThen : public CefV8Handler + { + int64 _callbackId; + bool _isJsCallback; + + public: + JavascriptPromiseResolverThen(int64 callbackId, bool isJsCallback) : _callbackId(callbackId), _isJsCallback(isJsCallback) + { + + } + + virtual bool Execute(const CefString& name, + CefRefPtr object, + const CefV8ValueList& arguments, + CefRefPtr& retval, + CefString& exception) + { + auto response = CefProcessMessage::Create(_isJsCallback ? kJavascriptCallbackResponse : kEvaluateJavascriptResponse); + + auto responseArgList = response->GetArgumentList(); + + //Success + responseArgList->SetBool(0, true); + //Callback Id + SetInt64(responseArgList, 1, _callbackId); + SerializeV8Object(arguments[0], responseArgList, 2, nullptr); + + auto context = CefV8Context::GetCurrentContext(); + + auto frame = context->GetFrame(); + + frame->SendProcessMessage(CefProcessId::PID_BROWSER, response); + + return true; + } + + IMPLEMENT_REFCOUNTINGM(JavascriptPromiseResolverThen); + }; + } +} diff --git a/CefSharp.Example/CefExample.cs b/CefSharp.Example/CefExample.cs index 47bd704f0..2c4984524 100644 --- a/CefSharp.Example/CefExample.cs +++ b/CefSharp.Example/CefExample.cs @@ -81,6 +81,7 @@ public static void Init(CefSettingsBase settings, IBrowserProcessHandler browser settings.CachePath = Path.GetFullPath("cache\\global"); //settings.UserAgent = "CefSharp Browser" + Cef.CefSharpVersion; // Example User Agent //settings.CefCommandLineArgs.Add("renderer-startup-dialog"); + //settings.CefCommandLineArgs.Add("disable-site-isolation-trials"); //settings.CefCommandLineArgs.Add("enable-media-stream"); //Enable WebRTC //settings.CefCommandLineArgs.Add("no-proxy-server"); //Don't use a proxy server, always make direct connections. Overrides any other proxy server flags that are passed. //settings.CefCommandLineArgs.Add("allow-running-insecure-content"); //By default, an https page cannot run JavaScript or CSS from http URLs. This provides an override to get the old insecure behavior. Only available in 47 and above. diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs index f60090180..de3890112 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs @@ -122,5 +122,56 @@ public async Task CanEvaluateDateValues(DateTime expected, string actual) output.WriteLine("Expected {0} : Actual {1}", expected.ToLocalTime(), actualDateTime); } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { resolve(42); });", true, "42")] + [InlineData("new Promise(function(resolve, reject) { reject('reject test'); });", false, "reject test")] + [InlineData("Promise.resolve(42);", true, "42")] + [InlineData("(async () => { throw('reject test'); })();", false, "reject test")] + [InlineData("(async () => { var result = await fetch('https://cefsharp.example/HelloWorld.html'); return result.status;})();", true, "200")] + public async Task CanEvaluateScriptAsyncReturnPromisePrimative(string script, bool success, string expected) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + + var javascriptResponse = await browser.EvaluateScriptAsync(script); + + Assert.Equal(success, javascriptResponse.Success); + + if (success) + { + Assert.Equal(expected, javascriptResponse.Result.ToString()); + } + else + { + Assert.Equal(expected, javascriptResponse.Message); + } + } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", "CefSharp", "42")] + [InlineData("new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", "CefSharp", "42")] + [InlineData("(async () => { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result; })();", "CefSharp", "42")] + public async Task CanEvaluateScriptAsyncReturnPromiseObject(string script, string expectedA, string expectedB) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + + var javascriptResponse = await browser.EvaluateScriptAsync(script); + + Assert.True(javascriptResponse.Success); + + dynamic result = javascriptResponse.Result; + Assert.Equal(expectedA, result.a.ToString()); + Assert.Equal(expectedB, result.b.ToString()); + } } } diff --git a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs index 10fe532a0..ffb1303d9 100644 --- a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs +++ b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs @@ -24,6 +24,55 @@ public JavascriptCallbackFacts(ITestOutputHelper output, CefSharpFixture collect this.classFixture = classFixture; } + [Theory] + [InlineData("(function() { return Promise.resolve(53)})", 53)] + [InlineData("(function() { return Promise.resolve('53')})", "53")] + [InlineData("(function() { return Promise.resolve(true)})", true)] + [InlineData("(function() { return Promise.resolve(false)})", false)] + public async Task CanEvaluatePromise(string script, object expected) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync(script); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(); + + Assert.True(callbackResponse.Success); + + Assert.Equal(expected, callbackResponse.Result); + + output.WriteLine("Script {0} : Result {1}", script, callbackResponse.Result); + } + + [Theory] + [InlineData("(function() { return Promise.reject(new Error('My Error'))})", "Error: My Error")] + [InlineData("(function() { return Promise.reject(42)})", "42")] + [InlineData("(function() { return Promise.reject(false)})", "false")] + public async Task CanEvaluatePromiseRejected(string script, string expected) + { + var browser = classFixture.Browser; + + Assert.False(browser.IsLoading); + + var javascriptResponse = await browser.EvaluateScriptAsync(script); + Assert.True(javascriptResponse.Success); + + var callback = (IJavascriptCallback)javascriptResponse.Result; + + var callbackResponse = await callback.ExecuteAsync(); + + Assert.False(callbackResponse.Success); + + Assert.Equal(expected, callbackResponse.Message); + + output.WriteLine("Script {0} : Result {1}", script, callbackResponse.Result); + } + [Theory] [InlineData(double.MaxValue, "Number.MAX_VALUE")] [InlineData(double.MaxValue / 2, "Number.MAX_VALUE / 2")] From e57151030321526d569deb55a248efed83f7b065 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 7 Dec 2022 08:47:06 +1000 Subject: [PATCH 165/543] Test - Improve JavascriptCallbackFacts.CanEvaluatePromiseRejected - Fix output message - Add test case for passing in null Issue https://github.com/cefsharp/CefSharp/issues/4276 --- CefSharp.Test/Javascript/JavascriptCallbackFacts.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs index ffb1303d9..29508d308 100644 --- a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs +++ b/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs @@ -53,6 +53,7 @@ public async Task CanEvaluatePromise(string script, object expected) [InlineData("(function() { return Promise.reject(new Error('My Error'))})", "Error: My Error")] [InlineData("(function() { return Promise.reject(42)})", "42")] [InlineData("(function() { return Promise.reject(false)})", "false")] + [InlineData("(function() { return Promise.reject(null)})", "null")] public async Task CanEvaluatePromiseRejected(string script, string expected) { var browser = classFixture.Browser; @@ -70,7 +71,7 @@ public async Task CanEvaluatePromiseRejected(string script, string expected) Assert.Equal(expected, callbackResponse.Message); - output.WriteLine("Script {0} : Result {1}", script, callbackResponse.Result); + output.WriteLine("Script {0} : Message {1}", script, callbackResponse.Message); } [Theory] From aca3385954586448270e76f96b838dbf990a1f9c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 7 Dec 2022 08:58:40 +1000 Subject: [PATCH 166/543] Test - Renable WinForms CanSetRequestContextViaRequestContextBuilder - Share RequestContext settings with GlobalRequestContext --- CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs index 83be284f0..b67c26afe 100644 --- a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs +++ b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs @@ -87,12 +87,14 @@ public async Task CanSetBrowserSettingsDisableImageLoading() } } - [WinFormsFact(Skip = "Appveyor build failure debugging")] + [WinFormsFact] public async Task CanSetRequestContextViaRequestContextBuilder() { using (var browser = new ChromiumWebBrowser("www.google.com")) { - browser.RequestContext = RequestContext.Configure().Create(); + browser.RequestContext = RequestContext.Configure() + .WithSharedSettings(Cef.GetGlobalRequestContext()) + .Create(); browser.Size = new System.Drawing.Size(1024, 768); browser.CreateControl(); From 977020a7abd36e9e675ac8cd01334c4ac717ae89 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 7 Dec 2022 12:30:26 +1000 Subject: [PATCH 167/543] Net Core - Update Nuget Readme.txt - Add quick start reference - Replace changelog with releases link --- NuGet/PackageReference/Readme.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NuGet/PackageReference/Readme.txt b/NuGet/PackageReference/Readme.txt index 1a5ad4790..27514016d 100644 --- a/NuGet/PackageReference/Readme.txt +++ b/NuGet/PackageReference/Readme.txt @@ -5,6 +5,7 @@ Background: CEF is a C/C++ library that allows developers to embed the HTML content rendering strengths of Google's Chrome open source WebKit engine (Chromium). Post Installation: + - Read the quick start guide https://github.com/cefsharp/CefSharp/wiki/Quick-Start-For-MS-.Net-5.0-or-greater - Read the release notes for your version https://github.com/cefsharp/CefSharp/releases (Any known issues will be listed here) - It is recommended that you set a during development, adding the following to your project file $(NETCoreSdkRuntimeIdentifier) Please read https://github.com/cefsharp/CefSharp/issues/3284#issuecomment-772132523 for more information. @@ -16,7 +17,7 @@ Deployment: - Make sure a minimum of `Visual C++ 2019` is installed (`x86`, `x64` or `arm64` depending on your build) or package the runtime dlls with your application, see the FAQ for details. What's New: - See https://github.com/cefsharp/CefSharp/wiki/ChangeLog + See https://github.com/cefsharp/CefSharp/releases Basic Troubleshooting: - Minimum of .Net Core 3.1 (.Net 5.0 and greater are also supported) From 8e322164eac7d404ec9b9e0cf1f8279a6b48bb44 Mon Sep 17 00:00:00 2001 From: Wupval <65329634+Wupval@users.noreply.github.com> Date: Tue, 13 Dec 2022 03:02:26 +0100 Subject: [PATCH 168/543] WPF - Add simplified resize hack (disabled by default) (#4307) - Adds a simplified version of the resize hack used to workaround issue #2779 Related discussion https://github.com/cefsharp/CefSharp/discussions/4274 Upstream Issue https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and --- CefSharp.Wpf/ChromiumWebBrowser.cs | 93 +++++++++++++++++++++++++++++- 1 file changed, 92 insertions(+), 1 deletion(-) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 592701c42..0497ada71 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -140,12 +140,29 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro /// private static bool DesignMode; + private bool resizeHackForIssue2779Enabled; + private Structs.Size? resizeHackForIssue2779Size; + /// /// This flag is set when the browser gets focus before the underlying CEF browser /// has been initialized. /// private bool initialFocus; + /// + /// Hack to work around issue https://github.com/cefsharp/CefSharp/issues/2779 + /// Disabled by default + /// + public bool EnableResizeHackForIssue2779 { get; set; } + + /// + /// Number of milliseconds to wait after resizing the browser when it first + /// becomes visible. After the delay the browser will revert to it's + /// original size. + /// Hack to work around issue https://github.com/cefsharp/CefSharp/issues/2779 + /// + public int ResizeHackForIssue2779DelayInMs { get; set; } + /// /// Gets a value indicating whether this instance is disposed. /// @@ -526,6 +543,9 @@ public ChromiumWebBrowser(string initialAddress) [MethodImpl(MethodImplOptions.NoInlining)] private void NoInliningConstructor() { + EnableResizeHackForIssue2779 = false; + ResizeHackForIssue2779DelayInMs = 50; + //Initialize CEF if it hasn't already been initialized if (!Cef.IsInitialized) { @@ -800,7 +820,18 @@ Rect IRenderWebBrowser.GetViewRect() /// View Rectangle protected virtual Rect GetViewRect() { - return viewRect; + //Take a local copy as the value is set on a different thread, + //Its possible the struct is set to null after our initial check. + var resizeRect = resizeHackForIssue2779Size; + + if (resizeRect == null) + { + return viewRect; + } + + var size = resizeRect.Value; + + return new Rect(0, 0, size.Width, size.Height); } /// @@ -953,6 +984,11 @@ void IRenderWebBrowser.OnPaint(PaintElementType type, Rect dirtyRect, IntPtr buf /// height protected virtual void OnPaint(bool isPopup, Rect dirtyRect, IntPtr buffer, int width, int height) { + if (resizeHackForIssue2779Enabled) + { + return; + } + var paint = Paint; if (paint != null) { @@ -1764,6 +1800,21 @@ protected virtual void OnBrowserWasHidden(bool hidden) if (browser != null) { browser.GetHost().WasHidden(hidden); + + if (EnableResizeHackForIssue2779) + { + if (hidden) + { + resizeHackForIssue2779Enabled = true; + } + else + { + _ = CefUiThreadRunAsync(async () => + { + await ResizeHackForIssue2779(); + }); + } + } } } @@ -2696,5 +2747,45 @@ public IBrowser GetBrowser() return browser; } + + private async Task CefUiThreadRunAsync(Action action) + { + if (!IsDisposed && InternalIsBrowserInitialized()) + { + if (Cef.CurrentlyOnThread(CefThreadIds.TID_UI)) + { + action(); + } + else + { + await Cef.UIThreadTaskFactory.StartNew(delegate + { + action(); + }); + } + } + } + + private async Task ResizeHackForIssue2779() + { + var host = browser?.GetHost(); + if (host != null && !host.IsDisposed) + { + resizeHackForIssue2779Size = new Structs.Size(viewRect.Width + 1, viewRect.Height + 1); + host.WasResized(); + + await Task.Delay(ResizeHackForIssue2779DelayInMs); + + if (!host.IsDisposed) + { + resizeHackForIssue2779Size = null; + host.WasResized(); + + resizeHackForIssue2779Enabled = false; + + host.Invalidate(PaintElementType.View); + } + } + } } } From 0131dd8a331a3f500cf1c06da2b85307e9fc6de5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 13 Dec 2022 12:13:56 +1000 Subject: [PATCH 169/543] WPF - Resize Hack Refactor - Rename properties/variables - Directly reference upstream issue Follow up to https://github.com/cefsharp/CefSharp/pull/4307 --- CefSharp.Wpf/ChromiumWebBrowser.cs | 42 ++++++++++++++++-------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 0497ada71..155c6034f 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -140,8 +140,9 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro /// private static bool DesignMode; - private bool resizeHackForIssue2779Enabled; - private Structs.Size? resizeHackForIssue2779Size; + // https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and + private bool resizeHackIgnoreOnPaint; + private Structs.Size? resizeHackSize; /// /// This flag is set when the browser gets focus before the underlying CEF browser @@ -150,18 +151,20 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro private bool initialFocus; /// - /// Hack to work around issue https://github.com/cefsharp/CefSharp/issues/2779 + /// When enabled the browser will resize by 1px when it becomes visible to workaround + /// the upstream issue + /// Hack to work around upstream issue https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and /// Disabled by default /// - public bool EnableResizeHackForIssue2779 { get; set; } + public bool ResizeHackEnabled { get; set; } = false; /// /// Number of milliseconds to wait after resizing the browser when it first /// becomes visible. After the delay the browser will revert to it's /// original size. - /// Hack to work around issue https://github.com/cefsharp/CefSharp/issues/2779 + /// Hack to workaround upstream issue https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and /// - public int ResizeHackForIssue2779DelayInMs { get; set; } + public int ResizeHackDelayInMs { get; set; } = 50; /// /// Gets a value indicating whether this instance is disposed. @@ -543,9 +546,6 @@ public ChromiumWebBrowser(string initialAddress) [MethodImpl(MethodImplOptions.NoInlining)] private void NoInliningConstructor() { - EnableResizeHackForIssue2779 = false; - ResizeHackForIssue2779DelayInMs = 50; - //Initialize CEF if it hasn't already been initialized if (!Cef.IsInitialized) { @@ -822,7 +822,7 @@ protected virtual Rect GetViewRect() { //Take a local copy as the value is set on a different thread, //Its possible the struct is set to null after our initial check. - var resizeRect = resizeHackForIssue2779Size; + var resizeRect = resizeHackSize; if (resizeRect == null) { @@ -984,7 +984,7 @@ void IRenderWebBrowser.OnPaint(PaintElementType type, Rect dirtyRect, IntPtr buf /// height protected virtual void OnPaint(bool isPopup, Rect dirtyRect, IntPtr buffer, int width, int height) { - if (resizeHackForIssue2779Enabled) + if (resizeHackIgnoreOnPaint) { return; } @@ -1801,17 +1801,17 @@ protected virtual void OnBrowserWasHidden(bool hidden) { browser.GetHost().WasHidden(hidden); - if (EnableResizeHackForIssue2779) + if (ResizeHackEnabled) { if (hidden) { - resizeHackForIssue2779Enabled = true; + resizeHackIgnoreOnPaint = true; } else { _ = CefUiThreadRunAsync(async () => { - await ResizeHackForIssue2779(); + await ResizeHackRun(); }); } } @@ -2766,22 +2766,26 @@ await Cef.UIThreadTaskFactory.StartNew(delegate } } - private async Task ResizeHackForIssue2779() + /// + /// Resize hack for https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and + /// + /// Task + private async Task ResizeHackRun() { var host = browser?.GetHost(); if (host != null && !host.IsDisposed) { - resizeHackForIssue2779Size = new Structs.Size(viewRect.Width + 1, viewRect.Height + 1); + resizeHackSize = new Structs.Size(viewRect.Width + 1, viewRect.Height + 1); host.WasResized(); - await Task.Delay(ResizeHackForIssue2779DelayInMs); + await Task.Delay(ResizeHackDelayInMs); if (!host.IsDisposed) { - resizeHackForIssue2779Size = null; + resizeHackSize = null; host.WasResized(); - resizeHackForIssue2779Enabled = false; + resizeHackIgnoreOnPaint = false; host.Invalidate(PaintElementType.View); } From 20efc0fee3e60197e3b1eb40098fd88c25b28291 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 16 Dec 2022 06:17:13 +1000 Subject: [PATCH 170/543] Core - Xml Doc fixes for Find/FindHandler - Update xml doc --- CefSharp/Handler/FindHandler.cs | 13 ++----------- CefSharp/Handler/IFindHandler.cs | 2 +- CefSharp/WebBrowserExtensions.cs | 18 ++++++++++-------- 3 files changed, 13 insertions(+), 20 deletions(-) diff --git a/CefSharp/Handler/FindHandler.cs b/CefSharp/Handler/FindHandler.cs index ab8feb007..9c540f775 100644 --- a/CefSharp/Handler/FindHandler.cs +++ b/CefSharp/Handler/FindHandler.cs @@ -12,16 +12,7 @@ namespace CefSharp.Handler /// public class FindHandler : IFindHandler { - /// - /// Called to report find results returned by - /// - /// the ChromiumWebBrowser control - /// the browser object - /// is the identifier passed to Find() - /// is the number of matches currently identified - /// is the location of where the match was found (in window coordinates) - /// is the current position in the search results - /// is true if this is the last find notification. + /// void IFindHandler.OnFindResult(IWebBrowser chromiumWebBrowser, IBrowser browser, int identifier, int count, Rect selectionRect, int activeMatchOrdinal, bool finalUpdate) { OnFindResult(chromiumWebBrowser, browser, identifier, count, selectionRect, activeMatchOrdinal, finalUpdate); @@ -32,7 +23,7 @@ void IFindHandler.OnFindResult(IWebBrowser chromiumWebBrowser, IBrowser browser, /// /// the ChromiumWebBrowser control /// the browser object - /// is the identifier passed to Find() + /// is a unique incremental identifier for the currently active search. /// is the number of matches currently identified /// is the location of where the match was found (in window coordinates) /// is the current position in the search results diff --git a/CefSharp/Handler/IFindHandler.cs b/CefSharp/Handler/IFindHandler.cs index 3267b33a3..1eafdf736 100644 --- a/CefSharp/Handler/IFindHandler.cs +++ b/CefSharp/Handler/IFindHandler.cs @@ -17,7 +17,7 @@ public interface IFindHandler /// /// the ChromiumWebBrowser control /// the browser object - /// is the identifier passed to Find() + /// is a unique incremental identifier for the currently active search. /// is the number of matches currently identified /// is the location of where the match was found (in window coordinates) /// is the current position in the search results diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index 243ee88c4..037b64d32 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -1264,10 +1264,11 @@ public static void SetZoomLevel(this IChromiumWebBrowserBase browser, double zoo /// Search for text within the current page. /// /// The ChromiumWebBrowser instance this method extends. - /// search text. - /// indicates whether to search forward or backward within the page. - /// indicates whether the search should be case-sensitive. - /// indicates whether this is the first request or a follow-up. + /// text to search for + /// indicates whether to search forward or backward within the page + /// indicates whether the search should be case-sensitive + /// indicates whether this is the first request or a follow-up + /// The instance, if any, will be called to report find results. public static void Find(this IBrowser cefBrowser, string searchText, bool forward, bool matchCase, bool findNext) { var host = cefBrowser.GetHost(); @@ -1280,10 +1281,11 @@ public static void Find(this IBrowser cefBrowser, string searchText, bool forwar /// Search for text within the current page. /// /// The ChromiumWebBrowser instance this method extends. - /// search text. - /// indicates whether to search forward or backward within the page. - /// indicates whether the search should be case-sensitive. - /// indicates whether this is the first request or a follow-up. + /// text to search for + /// indicates whether to search forward or backward within the page + /// indicates whether the search should be case-sensitive + /// indicates whether this is the first request or a follow-up + /// The instance, if any, will be called to report find results. public static void Find(this IChromiumWebBrowserBase browser, string searchText, bool forward, bool matchCase, bool findNext) { ThrowExceptionIfChromiumWebBrowserDisposed(browser); From d5813846fcdce8347d2205dcb12815f804a1db0a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 16 Dec 2022 11:59:03 +1000 Subject: [PATCH 171/543] Upgrade to 108.4.13+ga98cd4c+chromium-108.0.5359.125 / Chromium 108.0.5359.125 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 4 ++-- CefSharp.Test/CefSharp.Test.netcore.csproj | 4 ++-- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 43 insertions(+), 43 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 2735eb181..b444b00fc 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 32aa97cd4..55660fe76 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 6704f5cc9..2d000b5ef 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 108,4,120 - PRODUCTVERSION 108,4,120 + FILEVERSION 108,4,130 + PRODUCTVERSION 108,4,130 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "108.4.120" + VALUE "FileVersion", "108.4.130" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "108.4.120" + VALUE "ProductVersion", "108.4.130" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 1b0645a89..593c68d07 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index b090fb5c3..4ee13fda0 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 582780d67..2abd309ef 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index e8da742fa..2984891c7 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index e94a8944b..3cf976a41 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 03b8b24bf..bf8807739 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 108,4,120 - PRODUCTVERSION 108,4,120 + FILEVERSION 108,4,130 + PRODUCTVERSION 108,4,130 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "108.4.120" + VALUE "FileVersion", "108.4.130" VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "108.4.120" + VALUE "ProductVersion", "108.4.130" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 1b0645a89..593c68d07 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index b090fb5c3..4ee13fda0 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 507138660..217b5b24f 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 884c53168..12585ef9b 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 19781200c..195ba53a5 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 9a425458d..9d5ccd0fa 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,7 +34,7 @@ - + @@ -63,7 +63,7 @@ - + \ No newline at end of file diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 2b1b8f815..66c4ef7db 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + @@ -56,7 +56,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index ed9224181..f0bf4ba23 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index e4c91eafb..6c781cfa2 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index b2e48fcc7..575dbb91a 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index b06f1b435..e739810b2 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index fa7270bc1..6bd4ff617 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index a06820451..c8b2a757a 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 1d0444581..0d0eb57a0 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 108.4.120 + 108.4.130 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 108.4.120 + Version 108.4.130 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 658cb7007..242119054 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "108.4.120"; - public const string AssemblyFileVersion = "108.4.120.0"; + public const string AssemblyVersion = "108.4.130"; + public const string AssemblyFileVersion = "108.4.130.0"; public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 2dc4d9576..af7a0a437 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 2a56f7b33..090700a13 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 45c51a67c..48b7c23d9 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index eecdf05ed..9675fd1ef 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "108.4.12", + [string] $CefVersion = "108.4.13", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 63a3ec21f..affbca615 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 108.4.120-CI{build} +version: 108.4.130-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index de31e2e64..afe941d22 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "108.4.100", + [string] $Version = "108.4.130", [Parameter(Position = 2)] - [string] $AssemblyVersion = "108.4.100", + [string] $AssemblyVersion = "108.4.130", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 233586b50d7b77ef9442c05598cf75a70fbd1cb7 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 16 Dec 2022 12:22:29 +1000 Subject: [PATCH 172/543] README.md - Update as M108 release is imminent --- .github/ISSUE_TEMPLATE/bug_report.md | 6 +++--- CONTRIBUTING.md | 6 +++--- README.md | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f8a445172..71f330fe1 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -68,9 +68,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 84b4293fc..a4f0a483b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_107.1.12%2Bg65b79a6%2Bchromium-107.0.5304.122_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 20e43a2cd..b521682b9 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,8 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| | [master](https://github.com/cefsharp/CefSharp/) | 5359 | 2019* | 4.5.2** | Development | -| [cefsharp/107](https://github.com/cefsharp/CefSharp/tree/cefsharp/107)| 5304 | 2019* | 4.5.2** | **Release** | +| [cefsharp/108](https://github.com/cefsharp/CefSharp/tree/cefsharp/108)| 5359 | 2019* | 4.5.2** | **Release** | +| [cefsharp/107](https://github.com/cefsharp/CefSharp/tree/cefsharp/107)| 5304 | 2019* | 4.5.2** | Unsupported | | [cefsharp/106](https://github.com/cefsharp/CefSharp/tree/cefsharp/106)| 5249 | 2019* | 4.5.2** | Unsupported | | [cefsharp/105](https://github.com/cefsharp/CefSharp/tree/cefsharp/105)| 5195 | 2019* | 4.5.2** | Unsupported | | [cefsharp/104](https://github.com/cefsharp/CefSharp/tree/cefsharp/104)| 5112 | 2019* | 4.5.2** | Unsupported | From a69e6ee2a48bfbbe6804608bbab86d2cb3fddd85 Mon Sep 17 00:00:00 2001 From: mistoll Date: Mon, 19 Dec 2022 03:33:35 +0100 Subject: [PATCH 173/543] Add Visual Studio Build Tools support (#4339) Co-authored-by: Michael Stoll --- build.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index afe941d22..04a5ca24f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -189,7 +189,13 @@ function VSX if( -not $VSInstallPath -or -not (Test-Path $VSInstallPath)) { - Die "Visual Studio $VS_OFFICIAL_VER is not installed on your development machine, unable to continue, ran command: $VSWherePath -version $versionSearchStr -property installationPath" + $VSInstallPath = & $VSwherePath -version $versionSearchStr -property installationPath $VS_PRE -products 'Microsoft.VisualStudio.Product.BuildTools' + Write-Diagnostic "BuildTools $($VS_OFFICIAL_VER)InstallPath: $VSInstallPath" + + if( -not $VSInstallPath -or -not (Test-Path $VSInstallPath)) + { + Die "Visual Studio $VS_OFFICIAL_VER is not installed on your development machine, unable to continue, ran command: $VSWherePath -version $versionSearchStr -property installationPath" + } } $VisualStudioVersion = "$VS_VER.0" From 64fbf2578bf80427ede884db2b12558c6ea6575d Mon Sep 17 00:00:00 2001 From: mistoll Date: Tue, 20 Dec 2022 20:27:02 +0100 Subject: [PATCH 174/543] Fix Visual Studio 2022 support (#4346) Co-authored-by: Michael Stoll --- CefSharp.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.props b/CefSharp.props index 8981b04f8..f87b790e2 100644 --- a/CefSharp.props +++ b/CefSharp.props @@ -3,7 +3,7 @@ 2019 - VS2022 + 2022 v142 v143 From 1b779974719606d2218554b88876e97b85ee96a0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 2 Jan 2023 10:16:52 +1000 Subject: [PATCH 175/543] Update README.md - Fix financial support link - Rewrite financial support section --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b521682b9..6c5eb3207 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Got a quick question? [Discussions](https://github.com/cefsharp/CefSharp/discuss CefSharp is [BSD](https://opensource.org/licenses/BSD-3-Clause "BSD License") licensed, so it can be used in both proprietary and free/open source applications. For the full details, see the [LICENSE](LICENSE) file. -If you like and use CefSharp please consider signing up for a small monthly donation, even $25 can help tremendously. See [Financial Support](Readme.md#Financial-Support) for more details. +If you like and use CefSharp please consider signing up for a small monthly donation, even $25 can help tremendously. See [Financial Support](README.md#Financial-Support) for more details. ## Releases @@ -84,7 +84,7 @@ With each release a new branch is created, for example the `92.0.260` release co If you're new to `CefSharp` and are downloading the source to check it out, please use a **Release** branch. ***** VC++ 2019 is required starting with version 93
-****** For .Net Core Packages .Net Core 3.1/.Net 5.0 is required. +****** For .Net Core Packages .Net Core 3.1 or .Net 5/6/7 are required. | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| @@ -143,11 +143,11 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea ## Financial Support -To continue developing/supporting the project I (@amaitland) am asking for financial contributions. Donations of any size are greatly appreciated! +Is your company making money thanks to `CefSharp`? Do you rely on regular updates to the project? [Alex Maitland](https://github.com/amaitland) needs your support! Signup to [GitHub Sponsors](https://github.com/sponsors/amaitland). -One-Time or Recurring contributions can be made through [GitHub Sponsors](https://github.com/sponsors/amaitland) it only takes a GitHub account and a credit card. I can also take contributions through [PayPal](https://paypal.me/AlexMaitland). +One-Time or Recurring contributions can be made through [GitHub Sponsors](https://github.com/sponsors/amaitland) it only takes a GitHub account and a credit card. You can also make a One-Time contribution via [PayPal](https://paypal.me/AlexMaitland). -Now that I (@amaitland) am a stay at home dad your contributions are the only reason I'm allowed to continue working on the project. Without continued funding the time I currently spend on the project will have to be put into finding other paid work. +As a stay at home dad I ([@amaitland](https://github.com/amaitland)) rely on your contributions to help support my family. ## Links @@ -160,4 +160,4 @@ Now that I (@amaitland) am a stay at home dad your contributions are the only re ## Projects using CefSharp - [HtmlView](https://github.com/ramon-mendes/HtmlView) : Visual Studio extension bringing CefSharp for showing HTML pages inside VS. - [SharpBrowser](https://github.com/sharpbrowser/SharpBrowser) : The fastest web browser for C# with tabbed browsing and HTML5/CSS3. -- [Chromely CefSharp](https://github.com/chromelyapps/CefSharp) : Build HTML Desktop Apps on .NET/.NET Core 3/.NET 5 using native GUI, HTML5/CSS. \ No newline at end of file +- [Chromely CefSharp](https://github.com/chromelyapps/CefSharp) : Build HTML Desktop Apps on .NET/.NET Core 3/.NET 5 using native GUI, HTML5/CSS. From a7af5294efcbd0dfcc8f50bc0aefe0d17f5e0145 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 19 Dec 2022 14:37:03 +1000 Subject: [PATCH 176/543] Cleanup - Remove old unused projects --- .../CefSharp.WinForms.Test.csproj | 76 --- CefSharp.WinForms.Test/InitTest.cs | 29 - .../Properties/AssemblyInfo.cs | 10 - old/CefSharp.Tests/BindObjectTests.cs | 565 ------------------ old/CefSharp.Tests/BoundObject.cs | 159 ----- old/CefSharp.Tests/BrowserApplication.cs | 118 ---- old/CefSharp.Tests/CefSharp.Tests.csproj | 78 --- old/CefSharp.Tests/Properties/AssemblyInfo.cs | 36 -- old/CefSharp.Tests/ResourceTests.cs | 42 -- old/CefSharp.Tests/TestPage.html | 9 - old/CefUsageTests/CefUsageTests.csproj | 99 --- old/CefUsageTests/MainForm.Designer.cs | 88 --- old/CefUsageTests/MainForm.cs | 69 --- old/CefUsageTests/MainForm.resx | 120 ---- old/CefUsageTests/Program.cs | 21 - old/CefUsageTests/Properties/AssemblyInfo.cs | 36 -- .../Properties/Resources.Designer.cs | 71 --- old/CefUsageTests/Properties/Resources.resx | 117 ---- .../Properties/Settings.Designer.cs | 30 - .../Properties/Settings.settings | 7 - old/CefUsageTests/app.config | 3 - old/run_tests.bat | 1 - 22 files changed, 1784 deletions(-) delete mode 100644 CefSharp.WinForms.Test/CefSharp.WinForms.Test.csproj delete mode 100644 CefSharp.WinForms.Test/InitTest.cs delete mode 100644 CefSharp.WinForms.Test/Properties/AssemblyInfo.cs delete mode 100644 old/CefSharp.Tests/BindObjectTests.cs delete mode 100644 old/CefSharp.Tests/BoundObject.cs delete mode 100644 old/CefSharp.Tests/BrowserApplication.cs delete mode 100644 old/CefSharp.Tests/CefSharp.Tests.csproj delete mode 100644 old/CefSharp.Tests/Properties/AssemblyInfo.cs delete mode 100644 old/CefSharp.Tests/ResourceTests.cs delete mode 100644 old/CefSharp.Tests/TestPage.html delete mode 100644 old/CefUsageTests/CefUsageTests.csproj delete mode 100644 old/CefUsageTests/MainForm.Designer.cs delete mode 100644 old/CefUsageTests/MainForm.cs delete mode 100644 old/CefUsageTests/MainForm.resx delete mode 100644 old/CefUsageTests/Program.cs delete mode 100644 old/CefUsageTests/Properties/AssemblyInfo.cs delete mode 100644 old/CefUsageTests/Properties/Resources.Designer.cs delete mode 100644 old/CefUsageTests/Properties/Resources.resx delete mode 100644 old/CefUsageTests/Properties/Settings.Designer.cs delete mode 100644 old/CefUsageTests/Properties/Settings.settings delete mode 100644 old/CefUsageTests/app.config delete mode 100644 old/run_tests.bat diff --git a/CefSharp.WinForms.Test/CefSharp.WinForms.Test.csproj b/CefSharp.WinForms.Test/CefSharp.WinForms.Test.csproj deleted file mode 100644 index 9b2c82eef..000000000 --- a/CefSharp.WinForms.Test/CefSharp.WinForms.Test.csproj +++ /dev/null @@ -1,76 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {310B527B-A811-450D-A1B2-79352FDB338A} - Library - Properties - CefSharp.WinForms.Test - CefSharp.WinForms.Test - v4.0 - 512 - - - - - 3.5 - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - AllRules.ruleset - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - AllRules.ruleset - - - - False - ..\nunit\nunit.framework.dll - - - - - - - - - - - {978c9b2b-04b6-4359-a341-ca3fcbe98d32} - CefSharp.WinForms - - - {7b495581-2271-4f41-9476-acb86e8c864f} - {978C9B2B-04B6-4359-A341-CA3FCBE98D32} - CefSharp.WinForms - - - {7B495581-2271-4F41-9476-ACB86E8C864F} - CefSharp - - - - - \ No newline at end of file diff --git a/CefSharp.WinForms.Test/InitTest.cs b/CefSharp.WinForms.Test/InitTest.cs deleted file mode 100644 index 009d489d6..000000000 --- a/CefSharp.WinForms.Test/InitTest.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using NUnit.Framework; - -namespace CefSharp.WinForms.Test -{ - [TestFixture] - public class InitTest - { - private WebView web_view; - - [SetUp] - public void SetUp() - { - var settings = new Settings(); - if (!CEF.Initialize(settings)) - { - Assert.Fail(); - } - - web_view = new WebView(); - } - - [Test] - public void Foo() - { - Assert.Pass(); - } - } -} \ No newline at end of file diff --git a/CefSharp.WinForms.Test/Properties/AssemblyInfo.cs b/CefSharp.WinForms.Test/Properties/AssemblyInfo.cs deleted file mode 100644 index 96ee8308d..000000000 --- a/CefSharp.WinForms.Test/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("CefSharp.WinForms.Test")] -[assembly: AssemblyCompany("Anthony Taranto")] -[assembly: AssemblyProduct("CefSharp.Example")] -[assembly: AssemblyCopyright("Copyright © 2013")] - -[assembly: AssemblyVersion("1.25.2.*")] -[assembly: ComVisible(false)] diff --git a/old/CefSharp.Tests/BindObjectTests.cs b/old/CefSharp.Tests/BindObjectTests.cs deleted file mode 100644 index 36bc88a92..000000000 --- a/old/CefSharp.Tests/BindObjectTests.cs +++ /dev/null @@ -1,565 +0,0 @@ -namespace CefSharp.Tests -{ - using System; - using System.Collections.Generic; - using System.Linq; - using System.Text; - using System.Threading; - using System.Windows.Forms; - using NUnit.Framework; - - [TestFixture] - public class BindObjectTests - { - private CefFormsWebBrowser WebBrowser { get { return BrowserApplication.WebBrowser; } } - - #region Page Loading Tests - [Test] - public void Load1Test() - { - WebBrowser.Load("http://google.com/"); - WebBrowser.WaitForLoadCompletion(); - } - - /* - [Test] - public void Load2Test() - { - WebBrowser.Load("http://ya.ru/"); - WebBrowser.WaitForLoadCompletion(); - } - - [Test] - public void Load3Test() - { - WebBrowser.Load("http://microsoft.com/"); - WebBrowser.WaitForLoadCompletion(); - } - */ - #endregion - - #region Running Scripts - - private string RunScript(string script, int timeout) - { - var result = WebBrowser.RunScript("function(){" + script + "}()"); - return result; - } - - private string RunScript(string script) - { - return RunScript(script, Timeout.Infinite); - } - - [Test] - public void InvalidScriptMustBeHandledTest() - { - try - { - var result = RunScript("some script with syntax error", 1000); - } - catch (TimeoutException) - { - Assert.Fail("Invalid script not executes - must generate exception. It useful when we have infinite or large timeout."); - throw; - } - catch - { - } - } - - [Test] - public void ScriptExceptionMustBeThrownTest() - { - Assert.Throws(() => - { - RunScript("return bound.__UnknownMethod();"); - }); - } - - [Test] - public void ScriptExceptionMustBeThrownStringTest() - { - try - { - RunScript("throw 'my js exception message';"); - } - catch (ScriptException ex) - { - Assert.AreEqual("my js exception message", ex.Message); - return; - } - Assert.Fail(); - } - - [Test] - public void ScriptExceptionMustBeThrownObjectTest() - { - try - { - RunScript("throw {'type':'exception type', 'message':'my js exception message'};"); - } - catch (ScriptException ex) - { - Assert.AreEqual("[object Object]", ex.Message); - return; - } - Assert.Fail(); - } - - [Test] - public void StringUnicodeTest() - { - var sb = new StringBuilder(); - var sbc = new StringBuilder(); - sb.Append('\"'); - for (var c = 1; c <= 0xFFFF; c++) - { - if (c >= 0xD800 && c <= 0xDFFF) continue; - - sb.AppendFormat("\\u{0:X4}", c); - sbc.Append((char)c); - } - sb.Append('\"'); - var testJsString = sb.ToString(); - var testString = sbc.ToString(); - - var result2 = RunScript("return bound.EchoString(" + testJsString + ");"); - Assert.AreEqual(testString, result2); - } - - [Test] - public void StringSurrogatePairsTest() - { - // Supplementary Ideographic Plane - // 20010 - var result = RunScript("return bound.EchoString('\uD840\uDC10');"); - - if (result == "\xFFFD\xFFFD") - { - // TODO: http://www.russellcottrell.com/greek/utilities/SurrogatePairCalculator.htm - // Try calculator to see that engine actually can display this chars. - Assert.Fail("Who replace unicode surrogate pairs with REPLACEMENT CHARACTER?"); - } - - Assert.AreEqual("\xD840\xDC10", result); - } - #endregion - - #region Object Members - [Test] - public void MethodIsMemberFunction() - { - var result = RunScript("return typeof(bound.EchoVoid);"); - Assert.AreEqual("function", result); - } - - [Test] - public void UndefinedMethodIsUndefined() - { - var result = RunScript("return bound.UndefinedMethod;"); - Assert.AreEqual("undefined", result); - } - #endregion - - #region JavaScript to CLR Type Conversion - - [Test] - [TestCase("VoidRetValIsUndefined", "bound.EchoVoid() === undefined", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Boolean | - | - | + | - | - | - | - | - | -*/ - [TestCase("Boolean_Undefined", "bound.EchoBoolean(undefined), false", true)] - [TestCase("Boolean_Null", "bound.EchoBoolean(null), false", true)] - [TestCase("Boolean_Boolean_True", "bound.EchoBoolean(true) === true", false)] - [TestCase("Boolean_Boolean_False", "bound.EchoBoolean(false) === false", false)] - [TestCase("Boolean_Number_0", "bound.EchoBoolean(0), false", true)] - [TestCase("Boolean_Number_1", "bound.EchoBoolean(1), false", true)] - [TestCase("Boolean_String", "bound.EchoBoolean('0'), false", true)] - [TestCase("Boolean_Date", "bound.EchoBoolean(new Date()), false", true)] - [TestCase("Boolean_Array", "bound.EchoBoolean([]), false", true)] - [TestCase("Boolean_Object", "bound.EchoBoolean({}), false", true)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Boolean? | *null | *null | + | | | | | | -*/ - [TestCase("Boolean?_Undefined", "bound.EchoNullableBoolean(undefined) === null", false)] - [TestCase("Boolean?_Null", "bound.EchoNullableBoolean(null) === null", false)] - [TestCase("Boolean?_Boolean_True", "bound.EchoNullableBoolean(true) === true", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| SByte | - | - | - | + | - | - | - | - | -*/ - [TestCase("SByte_Undefined", "bound.EchoSByte(undefined), false", true)] - [TestCase("SByte_Null", "bound.EchoSByte(null), false", true)] - [TestCase("SByte_Boolean", "bound.EchoSByte(true), false", true)] - [TestCase("SByte_Number_-128", "bound.EchoSByte(-128) === -128", false)] - [TestCase("SByte_Number_+127", "bound.EchoSByte(+127) === +127", false)] - [TestCase("SByte_Number_+100.5", "bound.EchoSByte(+100.5) === +100", false)] - [TestCase("SByte_Number_OverflowMin", "bound.EchoSByte(-129), false", true)] - [TestCase("SByte_Number_OverflowMax", "bound.EchoSByte(+128), false", true)] - [TestCase("SByte_String", "bound.EchoSByte('0'), false", true)] - [TestCase("SByte_Date", "bound.EchoSByte(new Date()), false", true)] - [TestCase("SByte_Array", "bound.EchoSByte([]), false", true)] - [TestCase("SByte_Object", "bound.EchoSByte({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| SByte? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("SByte?_Undefined", "bound.EchoNullableSByte(undefined) === null", false)] - [TestCase("SByte?_Null", "bound.EchoNullableSByte(null) === null", false)] - [TestCase("SByte?_Number_-128", "bound.EchoNullableSByte(-128) === -128", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Int16 | - | - | - | + | - | - | - | - | -*/ - [TestCase("Int16_Undefined", "bound.EchoInt16(undefined), false", true)] - [TestCase("Int16_Null", "bound.EchoInt16(null), false", true)] - [TestCase("Int16_Boolean", "bound.EchoInt16(true), false", true)] - [TestCase("Int16_Number_-32768", "bound.EchoInt16(-32768) === -32768", false)] - [TestCase("Int16_Number_+32767", "bound.EchoInt16(+32767) === +32767", false)] - [TestCase("Int16_Number_+100.5", "bound.EchoInt16(+100.5) === +100", false)] - [TestCase("Int16_Number_OverflowMin", "bound.EchoInt16(-32769), false", true)] - [TestCase("Int16_Number_OverflowMax", "bound.EchoInt16(+32768), false", true)] - [TestCase("Int16_String", "bound.EchoInt16('0'), false", true)] - [TestCase("Int16_Date", "bound.EchoInt16(new Date()), false", true)] - [TestCase("Int16_Array", "bound.EchoInt16([]), false", true)] - [TestCase("Int16_Object", "bound.EchoInt16({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Int16? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("Int16?_Undefined", "bound.EchoNullableInt16(undefined) === null", false)] - [TestCase("Int16?_Null", "bound.EchoNullableInt16(null) === null", false)] - [TestCase("Int16?_Number_-32768", "bound.EchoNullableInt16(-32768) === -32768", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Int32 | - | - | - | + | - | - | - | - | -*/ - [TestCase("Int32_Undefined", "bound.EchoInt32(undefined), false", true)] - [TestCase("Int32_Null", "bound.EchoInt32(null), false", true)] - [TestCase("Int32_Boolean", "bound.EchoInt32(true), false", true)] - [TestCase("Int32_Number_-2147483648", "bound.EchoInt32(-2147483648) === -2147483648", false)] - [TestCase("Int32_Number_+2147483647", "bound.EchoInt32(+2147483647) === +2147483647", false)] - [TestCase("Int32_Number_+100.5", "bound.EchoInt32(+100.5) === +100", false)] - [TestCase("Int32_Number_OverflowMin", "bound.EchoInt32(-2147483649), false", true)] - [TestCase("Int32_Number_OverflowMax", "bound.EchoInt32(+2147483648), false", true)] - [TestCase("Int32_String", "bound.EchoInt32('0'), false", true)] - [TestCase("Int32_Date", "bound.EchoInt32(new Date()), false", true)] - [TestCase("Int32_Array", "bound.EchoInt32([]), false", true)] - [TestCase("Int32_Object", "bound.EchoInt32({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Int32? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("Int32?_Undefined", "bound.EchoNullableInt32(undefined) === null", false)] - [TestCase("Int32?_Null", "bound.EchoNullableInt32(null) === null", false)] - [TestCase("Int32?_Number_-2147483648", "bound.EchoNullableInt32(-2147483648) === -2147483648", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Int64 | - | - | - | - | - | - | - | - | -*/ - [TestCase("Int64_Undefined", "bound.EchoInt64(undefined), false", true)] - [TestCase("Int64_Null", "bound.EchoInt64(null), false", true)] - [TestCase("Int64_Boolean", "bound.EchoInt64(true), false", true)] - [TestCase("Int64_Number_MinValue", "bound.EchoInt64(-9223372036854775808), false", true)] - [TestCase("Int64_Number_MaxValue", "bound.EchoInt64(+9223372036854775807), false", true)] - [TestCase("Int64_Number_+100.5", "bound.EchoInt64(+100.5), false", true)] - [TestCase("Int64_Number_OverflowMin", "bound.EchoInt64(-9223372036854775809), false", true)] - [TestCase("Int64_Number_OverflowMax", "bound.EchoInt64(+9223372036854775808), false", true)] - [TestCase("Int64_String_MinValue", "bound.EchoInt64('-9223372036854775808'), false", true)] - [TestCase("Int64_String_MaxValue", "bound.EchoInt64('+9223372036854775807'), false", true)] - [TestCase("Int64_Date", "bound.EchoInt64(new Date()), false", true)] - [TestCase("Int64_Array", "bound.EchoInt64([]), false", true)] - [TestCase("Int64_Object", "bound.EchoInt64({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Int64? | - | - | - | - | - | - | - | - | -*/ - [TestCase("Int64?_Undefined", "bound.EchoNullableInt64(undefined) === null", true)] - [TestCase("Int64?_Null", "bound.EchoNullableInt64(null) === null", true)] - [TestCase("Int64?_Number_MinValue", "bound.EchoNullableInt64(-9223372036854775808), false", true)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Byte | - | - | - | + | - | - | - | - | -*/ - [TestCase("Byte_Undefined", "bound.EchoByte(undefined), false", true)] - [TestCase("Byte_Null", "bound.EchoByte(null), false", true)] - [TestCase("Byte_Boolean", "bound.EchoByte(true), false", true)] - [TestCase("Byte_Number_+255", "bound.EchoByte(+255) === +255", false)] - [TestCase("Byte_Number_+100.5", "bound.EchoByte(+100.5) === +100", false)] - [TestCase("Byte_Number_OverflowMin", "bound.EchoByte(-1), false", true)] - [TestCase("Byte_Number_OverflowMax", "bound.EchoByte(+256), false", true)] - [TestCase("Byte_String", "bound.EchoByte('0'), false", true)] - [TestCase("Byte_Date", "bound.EchoByte(new Date()), false", true)] - [TestCase("Byte_Array", "bound.EchoByte([]), false", true)] - [TestCase("Byte_Object", "bound.EchoByte({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Byte? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("Byte?_Undefined", "bound.EchoNullableByte(undefined) === null", false)] - [TestCase("Byte?_Null", "bound.EchoNullableByte(null) === null", false)] - [TestCase("Byte?_Number_+255", "bound.EchoNullableByte(+255) === +255", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| UInt16 | - | - | - | + | - | - | - | - | -*/ - [TestCase("UInt16_Undefined", "bound.EchoUInt16(undefined), false", true)] - [TestCase("UInt16_Null", "bound.EchoUInt16(null), false", true)] - [TestCase("UInt16_Boolean", "bound.EchoUInt16(true), false", true)] - [TestCase("UInt16_Number_+65535", "bound.EchoUInt16(+65535) === +65535", false)] - [TestCase("UInt16_Number_+100.5", "bound.EchoUInt16(+100.5) === +100", false)] - [TestCase("UInt16_Number_OverflowMin", "bound.EchoUInt16(-1), false", true)] - [TestCase("UInt16_Number_OverflowMax", "bound.EchoUInt16(+65536), false", true)] - [TestCase("UInt16_String", "bound.EchoUInt16('0'), false", true)] - [TestCase("UInt16_Date", "bound.EchoUInt16(new Date()), false", true)] - [TestCase("UInt16_Array", "bound.EchoUInt16([]), false", true)] - [TestCase("UInt16_Object", "bound.EchoUInt16({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| UInt16? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("UInt16?_Undefined", "bound.EchoNullableUInt16(undefined) === null", false)] - [TestCase("UInt16?_Null", "bound.EchoNullableUInt16(null) === null", false)] - [TestCase("UInt16?_Number_+65535", "bound.EchoNullableUInt16(+65535) === +65535", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| UInt32 | - | - | - | + | - | - | - | - | -*/ - [TestCase("UInt32_Undefined", "bound.EchoUInt32(undefined), false", true)] - [TestCase("UInt32_Null", "bound.EchoUInt32(null), false", true)] - [TestCase("UInt32_Boolean", "bound.EchoUInt32(true), false", true)] - [TestCase("UInt32_Number_+4294967295", "bound.EchoUInt32(+4294967295) === +4294967295", false)] - [TestCase("UInt32_Number_+100.5", "bound.EchoUInt32(+100.5) === +100", false)] - [TestCase("UInt32_Number_OverflowMin", "bound.EchoUInt32(-1), false", true)] - [TestCase("UInt32_Number_OverflowMax", "bound.EchoUInt32(+4294967296), false", true)] - [TestCase("UInt32_String", "bound.EchoUInt32('0'), false", true)] - [TestCase("UInt32_Date", "bound.EchoUInt32(new Date()), false", true)] - [TestCase("UInt32_Array", "bound.EchoUInt32([]), false", true)] - [TestCase("UInt32_Object", "bound.EchoUInt32({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| UInt32? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("UInt32?_Undefined", "bound.EchoNullableUInt32(undefined) === null", false)] - [TestCase("UInt32?_Null", "bound.EchoNullableUInt32(null) === null", false)] - [TestCase("UInt32?_Number_+4294967295", "bound.EchoNullableUInt32(+4294967295) === +4294967295", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| UInt64 | - | - | - | - | - | - | - | - | -*/ - [TestCase("UInt64_Undefined", "bound.EchoUInt64(undefined), false", true)] - [TestCase("UInt64_Null", "bound.EchoUInt64(null), false", true)] - [TestCase("UInt64_Boolean", "bound.EchoUInt64(true), false", true)] - [TestCase("UInt64_Number_MinValue", "bound.EchoUInt64(+0), false", true)] - [TestCase("UInt64_Number_MaxValue", "bound.EchoUInt64(+18446744073709551615), false", true)] - [TestCase("UInt64_Number_+100.5", "bound.EchoUInt64(+100.5), false", true)] - [TestCase("UInt64_Number_OverflowMin", "bound.EchoUInt64(-1), false", true)] - [TestCase("UInt64_Number_OverflowMax", "bound.EchoUInt64(+18446744073709551616), false", true)] - [TestCase("UInt64_String_MinValue", "bound.EchoUInt64('0'), false", true)] - [TestCase("UInt64_String_MaxValue", "bound.EchoUInt64('18446744073709551615'), false", true)] - [TestCase("UInt64_Date", "bound.EchoUInt64(new Date()), false", true)] - [TestCase("UInt64_Array", "bound.EchoUInt64([]), false", true)] - [TestCase("UInt64_Object", "bound.EchoUInt64({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| UInt64? | - | - | - | - | - | - | - | - | -*/ - [TestCase("UInt64?_Undefined", "bound.EchoNullableUInt64(undefined), false", true)] - [TestCase("UInt64?_Null", "bound.EchoNullableUInt64(null), false", true)] - [TestCase("UInt64?_Number_MaxValue", "bound.EchoNullableUInt64(18446744073709551615), false", true)] - [TestCase("UInt64?_String_MaxValue", "bound.EchoNullableUInt64('18446744073709551615'), false", true)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Single | - | - | - | + | - | - | - | - | -*/ - [TestCase("Single_Undefined", "bound.EchoSingle(undefined), false", true)] - [TestCase("Single_Null", "bound.EchoSingle(null), false", true)] - [TestCase("Single_Boolean", "bound.EchoSingle(true), false", true)] - [TestCase("Single_Number_MinValue", "bound.EchoSingle(-3.402823e38) === -3.4028230607370965e+38", false)] - [TestCase("Single_Number_MaxValue", "bound.EchoSingle(+3.402823e38) === +3.4028230607370965e+38", false)] -// [TestCase("Single_Number_+100.1234", "bound.EchoSingle(+100.1234) === +100.1234", false)] - [TestCase("Single_Number_OverflowMin", "bound.EchoSingle(-3.402824e38), false", true)] - [TestCase("Single_Number_OverflowMax", "bound.EchoSingle(+3.402824e38), false", true)] - [TestCase("Single_String_MaxValue", "bound.EchoSingle(''), false", true)] - [TestCase("Single_Date", "bound.EchoSingle(new Date()), false", true)] - [TestCase("Single_Array", "bound.EchoSingle([]), false", true)] - [TestCase("Single_Object", "bound.EchoSingle({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Single? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("Single?_Undefined", "bound.EchoNullableSingle(undefined) === null", false)] - [TestCase("Single?_Null", "bound.EchoNullableSingle(null) === null", false)] - [TestCase("Single?_Number_MaxValue", "bound.EchoNullableSingle(+3.402823e38) === +3.4028230607370965e+38", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Double | - | - | - | + | - | - | - | - | -*/ - [TestCase("Double_Undefined", "bound.EchoDouble(undefined), false", true)] - [TestCase("Double_Null", "bound.EchoDouble(null), false", true)] - [TestCase("Double_Boolean", "bound.EchoDouble(true), false", true)] - [TestCase("Double_Number_MinValue", "bound.EchoDouble(Number.MIN_VALUE) === Number.MIN_VALUE", false)] - [TestCase("Double_Number_MaxValue", "bound.EchoDouble(Number.MAX_VALUE) === Number.MAX_VALUE", false)] - [TestCase("Double_Number_+0.1234567890123456", "bound.EchoDouble(+0.1234567890123456) === 0.1234567890123456", false)] -// [TestCase("Double_Number_OverflowMin", "bound.EchoDouble(-), false", true)] -// [TestCase("Double_Number_OverflowMax", "bound.EchoDouble(-), false", true)] - [TestCase("Double_String_MaxValue", "bound.EchoDouble(Number.MAX_VALUE.toString()), false", true)] - [TestCase("Double_Date", "bound.EchoDouble(new Date()), false", true)] - [TestCase("Double_Array", "bound.EchoDouble([]), false", true)] - [TestCase("Double_Object", "bound.EchoDouble({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Double? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("Double?_Undefined", "bound.EchoNullableDouble(undefined) === null", false)] - [TestCase("Double?_Null", "bound.EchoNullableDouble(null) === null", false)] - [TestCase("Double?_Number_MaxValue", "bound.EchoNullableDouble(Number.MAX_VALUE) === Number.MAX_VALUE", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Char | - | - | - | + | - | - | - | - | -*/ - [TestCase("Char_Undefined", "bound.EchoChar(undefined), false", true)] - [TestCase("Char_Null", "bound.EchoChar(null), false", true)] - [TestCase("Char_Boolean", "bound.EchoChar(true), false", true)] - [TestCase("Char_Number_MinValue", "bound.EchoChar(+0) === +0", false)] - [TestCase("Char_Number_MaxValue", "bound.EchoChar(+65535) === +65535", false)] - [TestCase("Char_Number_OverflowMin", "bound.EchoChar(-1), false", true)] - [TestCase("Char_Number_OverflowMax", "bound.EchoChar(+65536), false", true)] - [TestCase("Char_String_Empty", "bound.EchoChar(''), false", true)] - [TestCase("Char_String_TwoChar", "bound.EchoChar('ab'), false", true)] - [TestCase("Char_String_Char", "bound.EchoChar('c') === 63", true)] - [TestCase("Char_Date", "bound.EchoChar(new Date()), false", true)] - [TestCase("Char_Array", "bound.EchoChar([]), false", true)] - [TestCase("Char_Object", "bound.EchoChar({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Char? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("Char?_Undefined", "bound.EchoNullableChar(undefined) === null", false)] - [TestCase("Char?_Null", "bound.EchoNullableChar(null) === null", false)] - [TestCase("Char?_Number_MaxValue", "bound.EchoNullableChar(+65535) === +65535", false)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Decimal | - | - | - | + | - | - | - | - | -*/ - [TestCase("Decimal_Undefined", "bound.EchoDecimal(undefined), false", true)] - [TestCase("Decimal_Null", "bound.EchoDecimal(null), false", true)] - [TestCase("Decimal_Boolean", "bound.EchoDecimal(true), false", true)] -// [TestCase("Decimal_Number_MinValue", "bound.EchoDecimal(Number.MIN_VALUE), false", true)] -// [TestCase("Decimal_Number_MaxValue", "bound.EchoDecimal(Number.MAX_VALUE), false", true)] - [TestCase("Decimal_Number_+100.12345", "bound.EchoDecimal(+100.12345) === +100.12345", false)] -// [TestCase("Decimal_Number_OverflowMin", "bound.EchoDecimal(-1), false", true)] -// [TestCase("Decimal_Number_OverflowMax", "bound.EchoDecimal(+4294967296), false", true)] - [TestCase("Decimal_String_MaxValue", "bound.EchoDecimal('18446744073709551615'), false", true)] - [TestCase("Decimal_Date", "bound.EchoDecimal(new Date()), false", true)] - [TestCase("Decimal_Array", "bound.EchoDecimal([]), false", true)] - [TestCase("Decimal_Object", "bound.EchoDecimal({}), false", true)] -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| Decimal? | *null | *null | - | + | - | - | - | - | -*/ - [TestCase("Decimal?_Undefined", "bound.EchoNullableDecimal(undefined) === null", false)] - [TestCase("Decimal?_Null", "bound.EchoNullableDecimal(null) === null", false)] -// [TestCase("Decimal?_Number_MaxValue", "bound.EchoNullableDecimal(Number.MAX_VALUE), false", true)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| String | *null | *null | - | - | + | - | - | - | -*/ - [TestCase("String_Undefined", "bound.EchoString(undefined) === null", false)] - [TestCase("String_Null", "bound.EchoString(null) === null", false)] - [TestCase("String_Boolean", "bound.EchoString(true), false", true)] - [TestCase("String_Number_1000", "bound.EchoString(1000), false", true)] - [TestCase("String_Number_1000.5", "bound.EchoString(1000.5), false", true)] - [TestCase("String_String_Empty", "bound.EchoString('') === ''", false)] - [TestCase("String_String_Value", "bound.EchoString('Value') === 'Value'", false)] - [TestCase("String_Date", "bound.EchoString(new Date()), false", true)] - [TestCase("String_Array", "bound.EchoString([]), false", true)] - [TestCase("String_Object", "bound.EchoString({}), false", true)] - -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| DateTime | - | - | - | - | - | + | - | - | -*/ -/* -|=CLR Type |=JavaScript values and objects | -| |=undefined |=null |=Boolean |=Number |=String |=Date |=Array |=Object | -| DateTime? | - | - | - | - | - | + | - | - | -*/ - - - public void ExpectScriptExpr(string name, string jsExpr, bool expectScriptException) - { - string script = "return ((" + jsExpr + ")? 'pass' : 'fail');"; - string result = null; - try - { - result = RunScript(script, 1000); - if (expectScriptException) - { - Assert.Fail("TestCase '{0}' with script '{1}' must be throw exception.", name, jsExpr); - } - } - catch (TimeoutException te) - { - Assert.Fail("TestCase '{0}' with script '{1}' execution timed out. \r\n{2}", name, script, te.ToString()); - } - catch (ScriptException se) - { - if (expectScriptException) - { - Assert.Pass(se.Message); - } - else throw; - } - Assert.AreEqual("pass", result, "TestCase '{0}' with script '{1}' fails.", name, script); - } - - #endregion - } -} diff --git a/old/CefSharp.Tests/BoundObject.cs b/old/CefSharp.Tests/BoundObject.cs deleted file mode 100644 index b8220a62a..000000000 --- a/old/CefSharp.Tests/BoundObject.cs +++ /dev/null @@ -1,159 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace CefSharp.Tests -{ - public class BoundObject - { - public void EchoVoid() - { - } - - public Boolean EchoBoolean(Boolean arg0) - { - return arg0; - } - - public Boolean? EchoNullableBoolean(Boolean? arg0) - { - return arg0; - } - - public SByte EchoSByte(SByte arg0) - { - return arg0; - } - - public SByte? EchoNullableSByte(SByte? arg0) - { - return arg0; - } - - public Int16 EchoInt16(Int16 arg0) - { - return arg0; - } - - public Int16? EchoNullableInt16(Int16? arg0) - { - return arg0; - } - - public Int32 EchoInt32(Int32 arg0) - { - return arg0; - } - - public Int32? EchoNullableInt32(Int32? arg0) - { - return arg0; - } - - public Int64 EchoInt64(Int64 arg0) - { - return arg0; - } - - public Int64? EchoNullableInt64(Int64? arg0) - { - return arg0; - } - - public Byte EchoByte(Byte arg0) - { - return arg0; - } - - public Byte? EchoNullableByte(Byte? arg0) - { - return arg0; - } - - public UInt16 EchoUInt16(UInt16 arg0) - { - return arg0; - } - - public UInt16? EchoNullableUInt16(UInt16? arg0) - { - return arg0; - } - - public UInt32 EchoUInt32(UInt32 arg0) - { - return arg0; - } - - public UInt32? EchoNullableUInt32(UInt32? arg0) - { - return arg0; - } - - public UInt64 EchoUInt64(UInt64 arg0) - { - return arg0; - } - - public UInt64? EchoNullableUInt64(UInt64? arg0) - { - return arg0; - } - - public Single EchoSingle(Single arg0) - { - return arg0; - } - - public Single? EchoNullableSingle(Single? arg0) - { - return arg0; - } - - public Double EchoDouble(Double arg0) - { - return arg0; - } - - public Double? EchoNullableDouble(Double? arg0) - { - return arg0; - } - - public Char EchoChar(Char arg0) - { - return arg0; - } - - public Char? EchoNullableChar(Char? arg0) - { - return arg0; - } - - public DateTime EchoDateTime(DateTime arg0) - { - return arg0; - } - - public DateTime? EchoNullableDateTime(DateTime? arg0) - { - return arg0; - } - - public Decimal EchoDecimal(Decimal arg0) - { - return arg0; - } - - public Decimal? EchoNullableDecimal(Decimal? arg0) - { - return arg0; - } - - public String EchoString(String arg0) - { - return arg0; - } - } -} diff --git a/old/CefSharp.Tests/BrowserApplication.cs b/old/CefSharp.Tests/BrowserApplication.cs deleted file mode 100644 index 8285f5dc3..000000000 --- a/old/CefSharp.Tests/BrowserApplication.cs +++ /dev/null @@ -1,118 +0,0 @@ -namespace CefSharp.Tests -{ - using System; - using System.Threading; - using System.Windows.Forms; - using NUnit.Framework; - using System.IO; - using System.Text; - - [SetUpFixture] - public class BrowserApplication : IBeforeResourceLoad - { - public static BrowserApplication Instance { get; private set; } - public static Form MainForm { get; private set; } - public static CefFormsWebBrowser WebBrowser { get; private set; } - - private ManualResetEvent waitCreated; - - [SetUp] - public void SetUp() - { - Instance = this; - waitCreated = new ManualResetEvent(false); - - Settings settings = new Settings(); - - if(!CEF.Initialize(settings)) - { - Assert.Fail("Couldn't initialise CEF."); - return; - } - - // CEF.RegisterScheme("test", new TestSchemeHandlerFactory()); - CEF.RegisterJsObject("bound", new BoundObject()); - - // Application.EnableVisualStyles(); - // Application.SetCompatibleTextRenderingDefault(false); - - var uiThread = new Thread(UIThread); - uiThread.SetApartmentState(ApartmentState.STA); - uiThread.Start(); - waitCreated.WaitOne(); - } - - private void UIThread() - { - MainForm = new Form(); - MainForm.Shown += new EventHandler(MainForm_Shown); - - Application.Run(MainForm); - } - - void MainForm_Shown(object sender, EventArgs e) - { - WebBrowser = new CefFormsWebBrowser("http://google.com", new BrowserSettings()); - WebBrowser.Parent = MainForm; - WebBrowser.Dock = DockStyle.Fill; - WebBrowser.WaitForLoadCompletion(); - WebBrowser.BeforeResourceLoadHandler = this; - - waitCreated.Set(); - } - - [TearDown] - public void TearDown() - { - waitCreated.WaitOne(); - MainForm.Close(); - Application.Exit(); - } - - #region IBeforeResourceLoad Members - private const string testPagesBaseUrl = "http://testpages/"; - - public static string GetTestPagesUrl(string url) - { - return testPagesBaseUrl + "/" + url; - } - - public static string GetTestPagesFilePath(string url) - { - if (url.StartsWith("/") || url.StartsWith("\\")) url = "." + url; - var path = Path.Combine(".", url); - return path; - } - - private Stream GetStream(string url) - { - var path = GetTestPagesFilePath(url); - - Stream result = null; - try - { - result = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read); - } - catch (Exception ex) - { - result = new MemoryStream(Encoding.UTF8.GetBytes( - string.Format("

ERROR!

Error getting of shell resource page {0}!

{1}

", url, ex.ToString()) - )); - } - - return result; - } - - public void HandleBeforeResourceLoad(ICefWebBrowser browserControl, IRequestResponse requestResponse) - { - IRequest request = requestResponse.Request; - if (request.Url.StartsWith(testPagesBaseUrl)) - { - var url = request.Url.Substring(testPagesBaseUrl.Length); - var stream = GetStream(url); - requestResponse.RespondWith(stream, "text/html"); - } - } - #endregion - } -} diff --git a/old/CefSharp.Tests/CefSharp.Tests.csproj b/old/CefSharp.Tests/CefSharp.Tests.csproj deleted file mode 100644 index c48c2bb5d..000000000 --- a/old/CefSharp.Tests/CefSharp.Tests.csproj +++ /dev/null @@ -1,78 +0,0 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {1C6D8AFA-8EB9-47D0-9439-6073B2818ADF} - Library - Properties - CefSharp.Tests - CefSharp.Tests - v3.5 - 512 - - - true - full - false - ..\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - ..\Release\ - TRACE - prompt - 4 - - - - False - ..\libs\nunit.framework.dll - - - - 3.5 - - - - 3.5 - - - 3.5 - - - - - - - - - - - - - - {7B495581-2271-4F41-9476-ACB86E8C864F} - CefSharp - - - - - PreserveNewest - - - - - \ No newline at end of file diff --git a/old/CefSharp.Tests/Properties/AssemblyInfo.cs b/old/CefSharp.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 402b9989f..000000000 --- a/old/CefSharp.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("CefSharp.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CefSharp.Tests")] -[assembly: AssemblyCopyright("Copyright © 2010")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("b60b4128-9a18-47a6-906f-f0243dd4df18")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/old/CefSharp.Tests/ResourceTests.cs b/old/CefSharp.Tests/ResourceTests.cs deleted file mode 100644 index 3422e0876..000000000 --- a/old/CefSharp.Tests/ResourceTests.cs +++ /dev/null @@ -1,42 +0,0 @@ -namespace CefSharp.Tests -{ - using System; - using System.Collections.Generic; - using System.Linq; - using System.Text; - using NUnit.Framework; - using System.IO; - - [TestFixture] - public class ResourceTests - { - private CefFormsWebBrowser WebBrowser { get { return BrowserApplication.WebBrowser; } } - - [Test] - public void StreamClosingWithBeforeResourceLoad() - { - WebBrowser.Load(BrowserApplication.GetTestPagesUrl("TestPage.html")); - WebBrowser.WaitForLoadCompletion(); - WebBrowser.Load("about:blank"); - WebBrowser.WaitForLoadCompletion(); - - // Uncomment this to pass test. - // GC.Collect(); - - // now we will try open TestPage.html file for writing - try - { - var file = File.Open(BrowserApplication.GetTestPagesFilePath("TestPage.html"), FileMode.Open, FileAccess.ReadWrite, FileShare.Read); - file.Close(); - } - catch (IOException ioex) - { - Assert.Fail("File couldn't be opened. So underlying stream for file is not closed.\nException: {0}", ioex.ToString()); - } - catch - { - throw; - } - } - } -} diff --git a/old/CefSharp.Tests/TestPage.html b/old/CefSharp.Tests/TestPage.html deleted file mode 100644 index bad047432..000000000 --- a/old/CefSharp.Tests/TestPage.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - Test Page - - - Hello, I'm a simple test page! - - \ No newline at end of file diff --git a/old/CefUsageTests/CefUsageTests.csproj b/old/CefUsageTests/CefUsageTests.csproj deleted file mode 100644 index 3ed338221..000000000 --- a/old/CefUsageTests/CefUsageTests.csproj +++ /dev/null @@ -1,99 +0,0 @@ - - - - Debug - AnyCPU - 9.0.21022 - 2.0 - {E8A40E8F-5B1E-4021-BF60-7F7482235E81} - WinExe - Properties - CefUsageTests - CefUsageTests - v3.5 - 512 - Client - - - true - full - false - ..\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - - - pdbonly - true - ..\Release\ - TRACE - prompt - 4 - - - - - 3.5 - - - 3.5 - - - 3.5 - - - - - - - - - - Form - - - MainForm.cs - - - - - MainForm.cs - Designer - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - {7B495581-2271-4F41-9476-ACB86E8C864F} - CefSharp - - - - - \ No newline at end of file diff --git a/old/CefUsageTests/MainForm.Designer.cs b/old/CefUsageTests/MainForm.Designer.cs deleted file mode 100644 index 4f3bbbc9a..000000000 --- a/old/CefUsageTests/MainForm.Designer.cs +++ /dev/null @@ -1,88 +0,0 @@ -namespace CefUsageTests -{ - partial class MainForm - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.panel = new System.Windows.Forms.Panel(); - this.Test1Button = new System.Windows.Forms.Button(); - this.Test2Button = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // panel - // - this.panel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.panel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.panel.Location = new System.Drawing.Point(12, 106); - this.panel.Name = "panel"; - this.panel.Size = new System.Drawing.Size(556, 355); - this.panel.TabIndex = 0; - // - // Test1Button - // - this.Test1Button.Location = new System.Drawing.Point(12, 12); - this.Test1Button.Name = "Test1Button"; - this.Test1Button.Size = new System.Drawing.Size(75, 23); - this.Test1Button.TabIndex = 1; - this.Test1Button.Text = "Test1"; - this.Test1Button.UseVisualStyleBackColor = true; - this.Test1Button.Click += new System.EventHandler(this.Test1Button_Click); - // - // Test2Button - // - this.Test2Button.Location = new System.Drawing.Point(93, 12); - this.Test2Button.Name = "Test2Button"; - this.Test2Button.Size = new System.Drawing.Size(75, 23); - this.Test2Button.TabIndex = 2; - this.Test2Button.Text = "Test2"; - this.Test2Button.UseVisualStyleBackColor = true; - this.Test2Button.Click += new System.EventHandler(this.Test2Button_Click); - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(580, 473); - this.Controls.Add(this.Test2Button); - this.Controls.Add(this.Test1Button); - this.Controls.Add(this.panel); - this.Name = "MainForm"; - this.Text = "Cef Usage Tests"; - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Panel panel; - private System.Windows.Forms.Button Test1Button; - private System.Windows.Forms.Button Test2Button; - } -} - diff --git a/old/CefUsageTests/MainForm.cs b/old/CefUsageTests/MainForm.cs deleted file mode 100644 index 1c4642650..000000000 --- a/old/CefUsageTests/MainForm.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; -using CefSharp; - -namespace CefUsageTests -{ - public partial class MainForm : Form - { - public MainForm() - { - InitializeComponent(); - } - - private void PrepareTest() - { - if (browser != null) - { - browser.Dispose(); - browser = null; - } - } - - private CefFormsWebBrowser browser; - private void Test1Button_Click(object sender, EventArgs e) - { - // This is "default" usage of control. - // We don't call CEF.Initialization - it's called implicitly by CefWebBrowser constructor. - // Note, that CEF.Shutdown must called explicitly. - // Also, CEF.Shutdown now is safe to call, even if CEF.Initialization not called before. - - PrepareTest(); - browser = new CefFormsWebBrowser("http://google.com", new BrowserSettings()); - browser.Parent = panel; - browser.Dock = DockStyle.Fill; - } - - private void Test2Button_Click(object sender, EventArgs e) - { - // This is demonstration of async browser construction. - // .Load method raises exception with message 'CefBrowser is not ready.', cause underlying CefBrowser doesn't created. - - // I propose to that .Load method locks internally and wait for CefBrowser (AfterHandleCreated message). - // But note, that lock also lock main message loop (if called from UI thread), or we can got inifinite lock, if no message arrived - so some timeout required. - // If we have plans to support singlethreaded cef message loop - we must process cef message loop. - // We can give name for event AfterHandleCreated as BrowserReady or Ready. - // Note, that this is event only signals, that browser constructed, - this is NOT DocumentReady or Navigated. - // Also .BrowserReady event is good, but method to perform sync operation also can be useful. - - PrepareTest(); - browser = new CefFormsWebBrowser(); - browser.Parent = panel; - browser.Dock = DockStyle.Fill; - try - { - browser.Load("http://google.com"); - } - catch (Exception ex) - { - MessageBox.Show(ex.ToString()); - } - } - } -} diff --git a/old/CefUsageTests/MainForm.resx b/old/CefUsageTests/MainForm.resx deleted file mode 100644 index 19dc0dd8b..000000000 --- a/old/CefUsageTests/MainForm.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/old/CefUsageTests/Program.cs b/old/CefUsageTests/Program.cs deleted file mode 100644 index de1187949..000000000 --- a/old/CefUsageTests/Program.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Windows.Forms; - -namespace CefUsageTests -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new MainForm()); - } - } -} diff --git a/old/CefUsageTests/Properties/AssemblyInfo.cs b/old/CefUsageTests/Properties/AssemblyInfo.cs deleted file mode 100644 index 0f9bc2023..000000000 --- a/old/CefUsageTests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("CefUsageTests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Microsoft")] -[assembly: AssemblyProduct("CefUsageTests")] -[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("591bc205-9593-4f0f-a56e-503728ee0cc3")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/old/CefUsageTests/Properties/Resources.Designer.cs b/old/CefUsageTests/Properties/Resources.Designer.cs deleted file mode 100644 index 90aa23d0e..000000000 --- a/old/CefUsageTests/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4952 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace CefUsageTests.Properties -{ - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CefUsageTests.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - } -} diff --git a/old/CefUsageTests/Properties/Resources.resx b/old/CefUsageTests/Properties/Resources.resx deleted file mode 100644 index af7dbebba..000000000 --- a/old/CefUsageTests/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/old/CefUsageTests/Properties/Settings.Designer.cs b/old/CefUsageTests/Properties/Settings.Designer.cs deleted file mode 100644 index 919a9fbf6..000000000 --- a/old/CefUsageTests/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:2.0.50727.4952 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace CefUsageTests.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase - { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default - { - get - { - return defaultInstance; - } - } - } -} diff --git a/old/CefUsageTests/Properties/Settings.settings b/old/CefUsageTests/Properties/Settings.settings deleted file mode 100644 index 39645652a..000000000 --- a/old/CefUsageTests/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/old/CefUsageTests/app.config b/old/CefUsageTests/app.config deleted file mode 100644 index a8afe9409..000000000 --- a/old/CefUsageTests/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/old/run_tests.bat b/old/run_tests.bat deleted file mode 100644 index 9db5623fe..000000000 --- a/old/run_tests.bat +++ /dev/null @@ -1 +0,0 @@ -tools\nunit-console-x86.exe /domain=None Debug\CefSharp.Tests.dll \ No newline at end of file From a382725dca6716b47ec82f6f4d5b3284ec082889 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 6 Jan 2023 06:32:02 +1000 Subject: [PATCH 177/543] WinForms Example - Fix SimpleBrowserForm constructor --- CefSharp.WinForms.Example/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.WinForms.Example/Program.cs b/CefSharp.WinForms.Example/Program.cs index b179f9505..f0d1113af 100644 --- a/CefSharp.WinForms.Example/Program.cs +++ b/CefSharp.WinForms.Example/Program.cs @@ -78,7 +78,7 @@ public static int Main(string[] args) //TEST: There are a number of different Forms for testing purposes. var browser = new BrowserForm(multiThreadedMessageLoop); - //var browser = new SimpleBrowserForm(multiThreadedMessageLoop); + //var browser = new SimpleBrowserForm(); //var browser = new TabulationDemoForm(); IBrowserProcessHandler browserProcessHandler; From 4e2612a3bed71e1de0a259a4954e8084e699c9b2 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 8 Jan 2023 05:58:28 +1000 Subject: [PATCH 178/543] Upgrade to 109.1.7+gb7b1fdc+chromium-109.0.5414.74 / Chromium 109.0.5414.74 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 10 +++++----- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 10 +++++----- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 6 +++--- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index b444b00fc..47e1af517 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 55660fe76..7c58433f9 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 2d000b5ef..89b30ca52 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 108,4,130 - PRODUCTVERSION 108,4,130 + FILEVERSION 109,1,70 + PRODUCTVERSION 109,1,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "108.4.130" - VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" + VALUE "FileVersion", "109.1.70" + VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "108.4.130" + VALUE "ProductVersion", "109.1.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 593c68d07..be4807177 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 4ee13fda0..2bf9fde01 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 2abd309ef..9c3d4b876 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 2984891c7..0fc9f7e6e 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 3cf976a41..8e7670815 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index bf8807739..945612d29 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 108,4,130 - PRODUCTVERSION 108,4,130 + FILEVERSION 109,1,70 + PRODUCTVERSION 109,1,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "108.4.130" - VALUE "LegalCopyright", "Copyright © 2022 The CefSharp Authors" + VALUE "FileVersion", "109.1.70" + VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "108.4.130" + VALUE "ProductVersion", "109.1.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 593c68d07..be4807177 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 4ee13fda0..2bf9fde01 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 217b5b24f..27143bd7c 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@
- + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 12585ef9b..2dd244373 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 195ba53a5..93b1c3b8e 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 9d5ccd0fa..77d65eadf 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 66c4ef7db..7a727544c 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index f0bf4ba23..44b7f3420 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 6c781cfa2..ba88a95df 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 575dbb91a..4dbc03079 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index e739810b2..487865a4a 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 6bd4ff617..5235db2f7 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index c8b2a757a..6a398d152 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 0d0eb57a0..683636704 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 108.4.130 + 109.1.70 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 108.4.130 + Version 109.1.70 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 242119054..9c0930543 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,9 +26,9 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "108.4.130"; - public const string AssemblyFileVersion = "108.4.130.0"; - public const string AssemblyCopyright = "Copyright © 2022 The CefSharp Authors"; + public const string AssemblyVersion = "109.1.70"; + public const string AssemblyFileVersion = "109.1.70.0"; + public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessCoreProject = "CefSharp.BrowserSubprocess.Core, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index af7a0a437..834260d30 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 090700a13..d2789b642 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 48b7c23d9..a436e1f8d 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 9675fd1ef..843de6f32 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "108.4.13", + [string] $CefVersion = "109.1.7", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index affbca615..c1b1cc13b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 108.4.130-CI{build} +version: 109.1.70-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 04a5ca24f..f049badd8 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "108.4.130", + [string] $Version = "109.1.70", [Parameter(Position = 2)] - [string] $AssemblyVersion = "108.4.130", + [string] $AssemblyVersion = "109.1.70", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From c2edd111ebcfb61042a41fb36a46f965c3befed3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 8 Jan 2023 06:20:36 +1000 Subject: [PATCH 179/543] Core - Remove IRequestHandler.OnQuotaRequest persistent quota is no longer supported (see https://crbug.com/1208141) Resolves #4357 --- .../Internals/ClientAdapter.cpp | 15 -------- .../Internals/ClientAdapter.h | 1 - .../Handlers/ExampleRequestHandler.cs | 21 ------------ .../EventArgs/OnQuotaRequestEventArgs.cs | 34 ------------------- .../RequestEventHandler.cs | 10 ------ CefSharp/Handler/IRequestHandler.cs | 15 -------- CefSharp/Handler/RequestHandler.cs | 28 --------------- 7 files changed, 124 deletions(-) delete mode 100644 CefSharp.Example/RequestEventHandler/EventArgs/OnQuotaRequestEventArgs.cs diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index 1159ac02c..e82095b67 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -653,21 +653,6 @@ namespace CefSharp return handler->OnCertificateError(_browserControl, browserWrapper, (CefErrorCode)cert_error, StringUtils::ToClr(request_url), sslInfoWrapper, requestCallback); } - bool ClientAdapter::OnQuotaRequest(CefRefPtr browser, const CefString& originUrl, int64 newSize, CefRefPtr callback) - { - auto handler = _browserControl->RequestHandler; - - if (handler == nullptr) - { - return false; - } - - auto requestCallback = gcnew CefRequestCallbackWrapper(callback); - auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); - - return handler->OnQuotaRequest(_browserControl, browserWrapper, StringUtils::ToClr(originUrl), newSize, requestCallback); - } - void ClientAdapter::OnRenderViewReady(CefRefPtr browser) { auto handler = _browserControl->RequestHandler; diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.h b/CefSharp.Core.Runtime/Internals/ClientAdapter.h index 5057d4a49..279ab86b4 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.h +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.h @@ -130,7 +130,6 @@ namespace CefSharp CefRefPtr frame, CefRefPtr request, bool isNavigation, bool isDownload, const CefString& requestInitiator, bool& disableDefaultHandling) override; virtual DECL bool GetAuthCredentials(CefRefPtr browser, const CefString& originUrl, bool isProxy, const CefString& host, int port, const CefString& realm, const CefString& scheme, CefRefPtr callback) override; - virtual DECL bool OnQuotaRequest(CefRefPtr browser, const CefString& originUrl, int64 newSize, CefRefPtr callback) override; virtual DECL bool OnCertificateError(CefRefPtr browser, cef_errorcode_t cert_error, const CefString& request_url, CefRefPtr ssl_info, CefRefPtr callback) override; virtual DECL bool OnSelectClientCertificate(CefRefPtr browser, bool isProxy, const CefString& host, int port, const CefRequestHandler::X509CertificateList& certificates, CefRefPtr callback) override; diff --git a/CefSharp.Example/Handlers/ExampleRequestHandler.cs b/CefSharp.Example/Handlers/ExampleRequestHandler.cs index b3187001c..19e6b5ee4 100644 --- a/CefSharp.Example/Handlers/ExampleRequestHandler.cs +++ b/CefSharp.Example/Handlers/ExampleRequestHandler.cs @@ -110,27 +110,6 @@ protected override void OnRenderProcessTerminated(IWebBrowser chromiumWebBrowser chromiumWebBrowser.Load(CefExample.RenderProcessCrashedUrl); } - protected override bool OnQuotaRequest(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, long newSize, IRequestCallback callback) - { - //NOTE: If you do not wish to implement this method returning false is the default behaviour - // We also suggest you explicitly Dispose of the callback as it wraps an unmanaged resource. - //callback.Dispose(); - //return false; - - //NOTE: When executing the callback in an async fashion need to check to see if it's disposed - if (!callback.IsDisposed) - { - using (callback) - { - //Accept Request to raise Quota - //callback.Continue(true); - //return true; - } - } - - return false; - } - protected override IResourceRequestHandler GetResourceRequestHandler(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, bool isNavigation, bool isDownload, string requestInitiator, ref bool disableDefaultHandling) { //NOTE: In most cases you examine the request.Url and only handle requests you are interested in diff --git a/CefSharp.Example/RequestEventHandler/EventArgs/OnQuotaRequestEventArgs.cs b/CefSharp.Example/RequestEventHandler/EventArgs/OnQuotaRequestEventArgs.cs deleted file mode 100644 index 612dda32f..000000000 --- a/CefSharp.Example/RequestEventHandler/EventArgs/OnQuotaRequestEventArgs.cs +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright © 2017 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -namespace CefSharp.Example.RequestEventHandler -{ - public class OnQuotaRequestEventArgs : BaseRequestEventArgs - { - public OnQuotaRequestEventArgs(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, long newSize, IRequestCallback callback) - : base(chromiumWebBrowser, browser) - { - OriginUrl = originUrl; - NewSize = newSize; - Callback = callback; - - ContinueAsync = false; // default - } - - public string OriginUrl { get; private set; } - public long NewSize { get; private set; } - - /// - /// Callback interface used for asynchronous continuation of url requests. - /// - public IRequestCallback Callback { get; private set; } - - /// - /// Set to false to cancel the request immediately. Set to true to continue the request - /// and call either in this method or at a later - /// time to grant or deny the request. - /// - public bool ContinueAsync { get; set; } - } -} diff --git a/CefSharp.Example/RequestEventHandler/RequestEventHandler.cs b/CefSharp.Example/RequestEventHandler/RequestEventHandler.cs index a21a291a8..1c2fae0a1 100644 --- a/CefSharp.Example/RequestEventHandler/RequestEventHandler.cs +++ b/CefSharp.Example/RequestEventHandler/RequestEventHandler.cs @@ -24,7 +24,6 @@ public class RequestEventHandler : RequestHandler public event EventHandler OnCertificateErrorEvent; public event EventHandler GetAuthCredentialsEvent; public event EventHandler OnRenderProcessTerminatedEvent; - public event EventHandler OnQuotaRequestEvent; protected override bool OnBeforeBrowse(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IRequest request, bool userGesture, bool isRedirect) { @@ -71,15 +70,6 @@ protected override void OnRenderProcessTerminated(IWebBrowser chromiumWebBrowser OnRenderProcessTerminatedEvent?.Invoke(this, args); } - protected override bool OnQuotaRequest(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, long newSize, IRequestCallback callback) - { - var args = new OnQuotaRequestEventArgs(chromiumWebBrowser, browser, originUrl, newSize, callback); - OnQuotaRequestEvent?.Invoke(this, args); - - EnsureCallbackDisposal(callback); - return args.ContinueAsync; - } - private static void EnsureCallbackDisposal(IRequestCallback callbackToDispose) { if (callbackToDispose != null && !callbackToDispose.IsDisposed) diff --git a/CefSharp/Handler/IRequestHandler.cs b/CefSharp/Handler/IRequestHandler.cs index d63bbeaf4..d9f2859fc 100644 --- a/CefSharp/Handler/IRequestHandler.cs +++ b/CefSharp/Handler/IRequestHandler.cs @@ -88,21 +88,6 @@ bool OnOpenUrlFromTab(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame f /// Return true to continue the request and call when the authentication information is available. Return false to cancel the request. bool GetAuthCredentials(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, bool isProxy, string host, int port, string realm, string scheme, IAuthCallback callback); - /// - /// Called when JavaScript requests a specific storage quota size via the webkitStorageInfo.requestQuota function. - /// For async processing return true and execute at a later time to - /// grant or deny the request or to cancel. - /// - /// The ChromiumWebBrowser control - /// the browser object - /// the origin of the page making the request - /// is the requested quota size in bytes - /// Callback interface used for asynchronous continuation of url requests. - /// Return false to cancel the request immediately. Return true to continue the request - /// and call either in this method or at a later time to - /// grant or deny the request. - bool OnQuotaRequest(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, Int64 newSize, IRequestCallback callback); - /// /// Called to handle requests for URLs with an invalid SSL certificate. /// Return true and call either diff --git a/CefSharp/Handler/RequestHandler.cs b/CefSharp/Handler/RequestHandler.cs index 36ab55c5b..e93460579 100644 --- a/CefSharp/Handler/RequestHandler.cs +++ b/CefSharp/Handler/RequestHandler.cs @@ -128,34 +128,6 @@ protected virtual bool GetAuthCredentials(IWebBrowser chromiumWebBrowser, IBrows return false; } - /// - bool IRequestHandler.OnQuotaRequest(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, long newSize, - IRequestCallback callback) - { - return OnQuotaRequest(chromiumWebBrowser, browser, originUrl, newSize, callback); - } - - /// - /// Called when JavaScript requests a specific storage quota size via the webkitStorageInfo.requestQuota function. For async - /// processing return true and execute at a later time to grant or deny the request or - /// to cancel. - /// - /// The ChromiumWebBrowser control. - /// the browser object. - /// the origin of the page making the request. - /// is the requested quota size in bytes. - /// Callback interface used for asynchronous continuation of url requests. - /// - /// Return false to cancel the request immediately. Return true to continue the request and call - /// either in this method or at a later time to grant or deny the request. - /// - protected virtual bool OnQuotaRequest(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, long newSize, - IRequestCallback callback) - { - callback.Dispose(); - return false; - } - /// bool IRequestHandler.OnCertificateError(IWebBrowser chromiumWebBrowser, IBrowser browser, CefErrorCode errorCode, string requestUrl, ISslInfo sslInfo, IRequestCallback callback) From 3cb6bbfc66ca7ed92ac784d8f4426c8b38a092b8 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 8 Jan 2023 11:52:30 +1000 Subject: [PATCH 180/543] Test - Renable RequestContext tests - Upstream issue has reportedly been resolved https://bitbucket.org/chromiumembedded/cef/issues/3434/cef-108-creates-web-data-and-web-data --- CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs | 2 +- CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs index b67c26afe..f41f03495 100644 --- a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs +++ b/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs @@ -109,7 +109,7 @@ public async Task CanSetRequestContextViaRequestContextBuilder() } } - [WinFormsFact(Skip = "Appveyor build failure debugging")] + [WinFormsFact] public async Task CanSetRequestContext() { using (var browser = new ChromiumWebBrowser("www.google.com")) diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs index 1ac4f6ac6..354ccb844 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs @@ -78,7 +78,7 @@ public async Task CanCallLoadUrlImmediately() } } - [WpfFact(Skip = "Appveyor build failure debugging")] + [WpfFact] public async Task CanSetRequestContext() { using (var browser = new ChromiumWebBrowser("www.google.com")) From ec282d4c4fe79e363408f43d35e17b9c672c6a42 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 6 Jan 2023 10:50:16 +1000 Subject: [PATCH 181/543] WinForms - Set Initial Focus on UI Thread - Call CefBrowserHost.SetFocus(true) on the WinForms UI Thread to workaround upstream issue, see code comment for more detail. - Add OnSetInitialFocus to allow for providing custom behaviour - MultiThreadedMessageLoop = false gets focus correctly from parent, no need to call SetFocus(true) https://bitbucket.org/chromiumembedded/cef/issues/3436/chromium-based-browser-loses-focus-when --- CefSharp.WinForms/ChromiumWebBrowser.cs | 40 +++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index 77c4b773e..a0cb9e323 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -699,6 +699,42 @@ private void CreateBrowser() } } + /// + /// Called from when we set focus + /// to the CefBrowser instance via . + /// Method is only called if the browser got focus via + /// before the call to . + /// Can be overridden to provide custom behaviour. + /// + protected virtual void OnSetBrowserInitialFocus() + { + // MultiThreadedMessageLoop = true + // Starting in M104 CEF changes mean that calling CefBrowserHost::SetFocus(true) + // directly in OnAfterCreated result in the browser focus being in a strange state when using + // MultiThreadedMessageLoop. Dealaying the SetFocus call results in the correct behaviour. + // Here we Invoke back into the WinForms UI Thread, check if we have Focus then call + // SetFocus (which will call back onto the CEF UI Thread). + // It's possible to use Cef.PostAction to invoke directly on the CEF UI Thread, + // this also seems to work as expected, using the WinForms UI Thread allows + // us to check the Focused property to determine if we actully have focus + // https://bitbucket.org/chromiumembedded/cef/issues/3436/chromium-based-browser-loses-focus-when + if (InvokeRequired) + { + BeginInvoke((Action)(() => + { + if (Disposing || IsDisposed || browser?.IsDisposed == true) + { + return; + } + + if (Focused) + { + browser?.GetHost()?.SetFocus(true); + } + })); + } + } + /// /// Called after browser created. /// @@ -737,8 +773,8 @@ partial void OnAfterBrowserCreated(IBrowser browser) if(initialFocus) { - browser.GetHost()?.SetFocus(true); - } + OnSetBrowserInitialFocus(); + } RaiseIsBrowserInitializedChangedEvent(); } From f68616c54e92f51b7d66fa9c0a7637cea2b64b9c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 13 Jan 2023 05:53:05 +1000 Subject: [PATCH 182/543] Nuget - Update Readme.txt --- NuGet/Readme.txt | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/NuGet/Readme.txt b/NuGet/Readme.txt index 5924cebb9..3d6c0effa 100644 --- a/NuGet/Readme.txt +++ b/NuGet/Readme.txt @@ -5,21 +5,21 @@ Background: CEF is a C/C++ library that allows developers to embed the HTML content rendering strengths of Google's Chrome open source WebKit engine (Chromium). Post Installation: - - Read the release notes for your version https://github.com/cefsharp/CefSharp/releases (Any known issues will be listed here) - - Read the `Need to know/limitations` section of the General usage guide (https://github.com/cefsharp/CefSharp/wiki/General-Usage#need-to-knowlimitations) + - Add an app.manifest to your exe if you don't already have one, it's required for Windows 10 compatability, GPU detection, HighDPI support and tooltips. The https://github.com/cefsharp/CefSharp.MinimalExample project contains an example app.manifest file in the root of the WPF/WinForms/OffScreen examples. - For `x86` or x64` set your projects PlatformTarget architecture to `x86` or `x64`. - `AnyCPU` target is supported though requires additional code/changes see https://github.com/cefsharp/CefSharp/issues/1714 for details. + - Read the release notes for your version https://github.com/cefsharp/CefSharp/releases (Any known issues will be listed here) + - Read the `Need to know/limitations` section of the General usage guide (https://github.com/cefsharp/CefSharp/wiki/General-Usage#need-to-knowlimitations) - Check your output `\bin` directory to make sure the appropriate references have been copied. - - Add an app.manifest to your exe if you don't already have one, it's required for Windows 10 compatability, HighDPI support and tooltips. The https://github.com/cefsharp/CefSharp.MinimalExample project contains an example app.manifest file in the root of the WPF/WinForms/OffScreen examples. Deployment: - Make sure a minimum of `Visual C++ 2019` is installed (`x86` or x64` depending on your build) or package the runtime dlls with your application, see the FAQ for details. What's New: - See https://github.com/cefsharp/CefSharp/wiki/ChangeLog - IMPORTANT NOTE - Visual C++ 2019 is now required - IMPORTANT NOTE - .NET Framework 4.5.2 is now required. - IMPORTANT NOTE - Chromium has removed support for Windows XP/2003 and Windows Vista/Server 2008 (non R2). + See https://github.com/cefsharp/CefSharp/releases + IMPORTANT NOTE - Visual C++ 2019 or greater is required + IMPORTANT NOTE - .NET Framework 4.5.2 or greater is required. + IMPORTANT NOTE - Chromium support for Windows 7/8/8.1 ends with version 109, starting with version 110 a minimum of Windows 10 is required. Basic Troubleshooting: - Minimum of .Net 4.5.2 @@ -44,18 +44,19 @@ Basic Troubleshooting: - By default `CEF` has it's own log file, `Debug.log` which is located in your executing folder. e.g. `bin` For further help please read the following content: + - Quick Start https://github.com/cefsharp/CefSharp/wiki/Quick-Start - General Usage Guide https://github.com/cefsharp/CefSharp/wiki/General-Usage - Minimal Example Projects showing the browser in action (https://github.com/cefsharp/CefSharp.MinimalExample) - CefSharp GitHub https://github.com/cefsharp/CefSharp - CefSharp's Wiki on github (https://github.com/cefsharp/CefSharp/wiki) - FAQ: https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions - Troubleshooting guide (https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting) - - Google Groups (https://groups.google.com/forum/#!forum/cefsharp) - Historic reference only - CefSharp vs Cef (https://github.com/cefsharp/CefSharp/blob/master/CONTRIBUTING.md#cefsharp-vs-cef) - - Join the active community and ask your question on Gitter Chat (https://gitter.im/cefsharp/CefSharp) - - If you have a reproducible bug then please open an issue on `GitHub` + - Got a question? Ask it on GitHub Discussions (https://github.com/cefsharp/CefSharp/discussions) + - If you have a reproducible bug then please open an issue on `GitHub` making sure to complete the bug report template. Please consider giving back, it's only with your help will this project to continue. +Sponsor the project via GitHub sponsors (https://github.com/sponsors/amaitland) Regards, -CefSharp Team +Alex Maitland From ceb347988dee0f4723b750e4475701f123441ea9 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 13 Jan 2023 20:35:28 +1000 Subject: [PATCH 183/543] Upgrade to 109.1.8+g44ba3e7+chromium-109.0.5414.87 / Chromium 109.0.5414.87 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 47e1af517..318d8242c 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 7c58433f9..cd4d77c6d 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 89b30ca52..9bd41d531 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 109,1,70 - PRODUCTVERSION 109,1,70 + FILEVERSION 109,1,80 + PRODUCTVERSION 109,1,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "109.1.70" + VALUE "FileVersion", "109.1.80" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "109.1.70" + VALUE "ProductVersion", "109.1.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index be4807177..3f9f94fac 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 2bf9fde01..33b1a44e8 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 9c3d4b876..6f0bc85be 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 0fc9f7e6e..873b76d0a 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 8e7670815..cbdeb5c2b 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 945612d29..2dfdf9430 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 109,1,70 - PRODUCTVERSION 109,1,70 + FILEVERSION 109,1,80 + PRODUCTVERSION 109,1,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "109.1.70" + VALUE "FileVersion", "109.1.80" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "109.1.70" + VALUE "ProductVersion", "109.1.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index be4807177..3f9f94fac 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 2bf9fde01..33b1a44e8 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 27143bd7c..56c2ee9ee 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 2dd244373..d34ff1dc1 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 93b1c3b8e..c34edad71 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 77d65eadf..fed2c29bc 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 7a727544c..fe5911457 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 44b7f3420..99a0be87a 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index ba88a95df..03d7fa5ae 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 4dbc03079..153162060 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 487865a4a..c5f9dc28e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 5235db2f7..dad86de0c 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 6a398d152..f43572d85 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 683636704..43772816f 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 109.1.70 + 109.1.80 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 109.1.70 + Version 109.1.80 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 9c0930543..5b666016b 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "109.1.70"; - public const string AssemblyFileVersion = "109.1.70.0"; + public const string AssemblyVersion = "109.1.80"; + public const string AssemblyFileVersion = "109.1.80.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 834260d30..6ee206ede 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index d2789b642..52f50e137 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index a436e1f8d..ad0b56947 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 843de6f32..b9d7436c6 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "109.1.7", + [string] $CefVersion = "109.1.8", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index c1b1cc13b..62141fad9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 109.1.70-CI{build} +version: 109.1.80-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index f049badd8..a718055f4 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "109.1.70", + [string] $Version = "109.1.80", [Parameter(Position = 2)] - [string] $AssemblyVersion = "109.1.70", + [string] $AssemblyVersion = "109.1.80", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 2ee7e9d442217a76770ae6ceba276d076b6c5199 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 14 Jan 2023 07:16:02 +1000 Subject: [PATCH 184/543] Upgrade to 109.1.11+g6d4fdb2+chromium-109.0.5414.87 / Chromium 109.0.5414.87 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 318d8242c..2172dbd54 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index cd4d77c6d..1d347e585 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 9bd41d531..b58a633fd 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 109,1,80 - PRODUCTVERSION 109,1,80 + FILEVERSION 109,1,110 + PRODUCTVERSION 109,1,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "109.1.80" + VALUE "FileVersion", "109.1.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "109.1.80" + VALUE "ProductVersion", "109.1.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 3f9f94fac..982ccc0c4 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 33b1a44e8..0f6c7ce45 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 6f0bc85be..eef3bfd5e 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 873b76d0a..c7cbc115d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index cbdeb5c2b..88cbca55d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 2dfdf9430..dbf1d35a5 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 109,1,80 - PRODUCTVERSION 109,1,80 + FILEVERSION 109,1,110 + PRODUCTVERSION 109,1,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "109.1.80" + VALUE "FileVersion", "109.1.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "109.1.80" + VALUE "ProductVersion", "109.1.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 3f9f94fac..982ccc0c4 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 33b1a44e8..0f6c7ce45 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 56c2ee9ee..276faef2b 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index d34ff1dc1..15d843238 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index c34edad71..57e1d6828 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index fed2c29bc..38159ae01 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index fe5911457..7087272a4 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 99a0be87a..0f6c5d33c 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 03d7fa5ae..fb5c99736 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 153162060..691de21c9 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index c5f9dc28e..0bcd6d876 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index dad86de0c..9c5025721 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index f43572d85..31e1e358e 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 43772816f..187f23f03 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 109.1.80 + 109.1.110 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 109.1.80 + Version 109.1.110 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 5b666016b..cc68397dc 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "109.1.80"; - public const string AssemblyFileVersion = "109.1.80.0"; + public const string AssemblyVersion = "109.1.110"; + public const string AssemblyFileVersion = "109.1.110.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 6ee206ede..8285859b4 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 52f50e137..f6243ba80 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index ad0b56947..decba48ed 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index b9d7436c6..77d8fb13c 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "109.1.8", + [string] $CefVersion = "109.1.11", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 62141fad9..22a21fdbe 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 109.1.80-CI{build} +version: 109.1.110-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index a718055f4..b8e898a43 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "109.1.80", + [string] $Version = "109.1.110", [Parameter(Position = 2)] - [string] $AssemblyVersion = "109.1.80", + [string] $AssemblyVersion = "109.1.110", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From aa3d0606397122be2df566b11e2d420a0f004edd Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 14 Jan 2023 09:53:29 +1000 Subject: [PATCH 185/543] DevTools Client - Update to 109.0.5414.87 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 967 ++++++++++++++++-- .../DevToolsClient.Generated.netcore.cs | 905 ++++++++++++++-- 2 files changed, 1669 insertions(+), 203 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 8bbb2e1cf..06a89cfaa 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 108.0.5359.71 +// CHROMIUM VERSION 109.0.5414.87 namespace CefSharp.DevTools.Accessibility { /// @@ -4086,6 +4086,16 @@ public enum PermissionType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("geolocation"))] Geolocation, /// + /// idleDetection + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("idleDetection"))] + IdleDetection, + /// + /// localFonts + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("localFonts"))] + LocalFonts, + /// /// midi /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("midi"))] @@ -4126,6 +4136,11 @@ public enum PermissionType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("sensors"))] Sensors, /// + /// storageAccess + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storageAccess"))] + StorageAccess, + /// /// videoCapture /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("videoCapture"))] @@ -4136,11 +4151,6 @@ public enum PermissionType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("videoCapturePanTiltZoom"))] VideoCapturePanTiltZoom, /// - /// idleDetection - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("idleDetection"))] - IdleDetection, - /// /// wakeLockScreen /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wakeLockScreen"))] @@ -4149,7 +4159,12 @@ public enum PermissionType /// wakeLockSystem /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wakeLockSystem"))] - WakeLockSystem + WakeLockSystem, + /// + /// windowManagement + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("windowManagement"))] + WindowManagement } /// @@ -4166,12 +4181,7 @@ public enum PermissionSetting /// denied /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("denied"))] - Denied, - /// - /// prompt - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("prompt"))] - Prompt + Denied } /// @@ -5561,6 +5571,58 @@ public string Name get; set; } + + /// + /// Optional physical axes queried for the container. + /// + public CefSharp.DevTools.DOM.PhysicalAxes? PhysicalAxes + { + get + { + return (CefSharp.DevTools.DOM.PhysicalAxes? )(StringToEnum(typeof(CefSharp.DevTools.DOM.PhysicalAxes? ), physicalAxes)); + } + + set + { + this.physicalAxes = (EnumToString(value)); + } + } + + /// + /// Optional physical axes queried for the container. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("physicalAxes"), IsRequired = (false))] + internal string physicalAxes + { + get; + set; + } + + /// + /// Optional logical axes queried for the container. + /// + public CefSharp.DevTools.DOM.LogicalAxes? LogicalAxes + { + get + { + return (CefSharp.DevTools.DOM.LogicalAxes? )(StringToEnum(typeof(CefSharp.DevTools.DOM.LogicalAxes? ), logicalAxes)); + } + + set + { + this.logicalAxes = (EnumToString(value)); + } + } + + /// + /// Optional logical axes queried for the container. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("logicalAxes"), IsRequired = (false))] + internal string logicalAxes + { + get; + set; + } } /// @@ -6571,30 +6633,30 @@ public enum PseudoType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("input-list-button"))] InputListButton, /// - /// page-transition + /// view-transition /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition"))] - PageTransition, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition"))] + ViewTransition, /// - /// page-transition-container + /// view-transition-group /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-container"))] - PageTransitionContainer, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-group"))] + ViewTransitionGroup, /// - /// page-transition-image-wrapper + /// view-transition-image-pair /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-image-wrapper"))] - PageTransitionImageWrapper, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-image-pair"))] + ViewTransitionImagePair, /// - /// page-transition-outgoing-image + /// view-transition-old /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-outgoing-image"))] - PageTransitionOutgoingImage, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-old"))] + ViewTransitionOld, /// - /// page-transition-incoming-image + /// view-transition-new /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("page-transition-incoming-image"))] - PageTransitionIncomingImage + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-new"))] + ViewTransitionNew } /// @@ -6641,6 +6703,50 @@ public enum CompatibilityMode NoQuirksMode } + /// + /// ContainerSelector physical axes + /// + public enum PhysicalAxes + { + /// + /// Horizontal + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Horizontal"))] + Horizontal, + /// + /// Vertical + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Vertical"))] + Vertical, + /// + /// Both + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Both"))] + Both + } + + /// + /// ContainerSelector logical axes + /// + public enum LogicalAxes + { + /// + /// Inline + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Inline"))] + Inline, + /// + /// Block + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Block"))] + Block, + /// + /// Both + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Both"))] + Both + } + /// /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. /// DOMNode is a base node mirror type. @@ -9460,7 +9566,12 @@ public enum ScreenshotParamsFormat /// png /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("png"))] - Png + Png, + /// + /// webp + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webp"))] + Webp } /// @@ -9504,24 +9615,15 @@ public int? Quality get; set; } - } - /// - /// Issued when the target starts or stops needing BeginFrames. - /// Deprecated. Issue beginFrame unconditionally instead and use result from - /// beginFrame to detect whether the frames were suppressed. - /// - [System.Runtime.Serialization.DataContractAttribute] - public class NeedsBeginFramesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { /// - /// True if BeginFrames are needed, false otherwise. + /// Optimize image encoding for speed, not for resulting size (defaults to false) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("needsBeginFrames"), IsRequired = (true))] - public bool NeedsBeginFrames + [System.Runtime.Serialization.DataMemberAttribute(Name = ("optimizeForSpeed"), IsRequired = (false))] + public bool? OptimizeForSpeed { get; - private set; + set; } } } @@ -16309,6 +16411,16 @@ public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState get; private set; } + + /// + /// Whether the site has partitioned cookies stored in a partition different than the current one. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("siteHasCookieInOtherPartition"), IsRequired = (false))] + public bool? SiteHasCookieInOtherPartition + { + get; + private set; + } } /// @@ -18248,6 +18360,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clipboard-write"))] ClipboardWrite, /// + /// compute-pressure + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("compute-pressure"))] + ComputePressure, + /// /// cross-origin-isolated /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cross-origin-isolated"))] @@ -20420,11 +20537,6 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OutstandingIndexedDBTransaction"))] OutstandingIndexedDBTransaction, /// - /// RequestedNotificationsPermission - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedNotificationsPermission"))] - RequestedNotificationsPermission, - /// /// RequestedMIDIPermission /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedMIDIPermission"))] @@ -20575,6 +20687,11 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InjectedStyleSheet"))] InjectedStyleSheet, /// + /// KeepaliveRequest + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("KeepaliveRequest"))] + KeepaliveRequest, + /// /// Dummy /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Dummy"))] @@ -20857,16 +20974,6 @@ public enum PrerenderFinalStatus [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LowEndDevice"))] LowEndDevice, /// - /// CrossOriginRedirect - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginRedirect"))] - CrossOriginRedirect, - /// - /// CrossOriginNavigation - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginNavigation"))] - CrossOriginNavigation, - /// /// InvalidSchemeRedirect /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSchemeRedirect"))] @@ -21035,7 +21142,47 @@ public enum PrerenderFinalStatus /// TimeoutBackgrounded /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TimeoutBackgrounded"))] - TimeoutBackgrounded + TimeoutBackgrounded, + /// + /// CrossSiteRedirect + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossSiteRedirect"))] + CrossSiteRedirect, + /// + /// CrossSiteNavigation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossSiteNavigation"))] + CrossSiteNavigation, + /// + /// SameSiteCrossOriginRedirect + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginRedirect"))] + SameSiteCrossOriginRedirect, + /// + /// SameSiteCrossOriginNavigation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginNavigation"))] + SameSiteCrossOriginNavigation, + /// + /// SameSiteCrossOriginRedirectNotOptIn + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginRedirectNotOptIn"))] + SameSiteCrossOriginRedirectNotOptIn, + /// + /// SameSiteCrossOriginNavigationNotOptIn + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginNavigationNotOptIn"))] + SameSiteCrossOriginNavigationNotOptIn, + /// + /// ActivationNavigationParameterMismatch + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationNavigationParameterMismatch"))] + ActivationNavigationParameterMismatch, + /// + /// EmbedderHostDisallowed + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderHostDisallowed"))] + EmbedderHostDisallowed } /// @@ -21160,17 +21307,6 @@ public CefSharp.DevTools.Runtime.StackTrace Stack get; private set; } - - /// - /// Identifies the bottom-most script which caused the frame to be labelled - /// as an ad. Only sent if frame is labelled as an ad and id is available. - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("adScriptId"), IsRequired = (false))] - public CefSharp.DevTools.Page.AdScriptId AdScriptId - { - get; - private set; - } } /// @@ -23518,6 +23654,11 @@ public enum StorageType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("interest_groups"))] InterestGroups, /// + /// shared_storage + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared_storage"))] + SharedStorage, + /// /// all /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("all"))] @@ -23786,6 +23927,308 @@ public System.Collections.Generic.IList + /// Enum of shared storage access types. + /// + public enum SharedStorageAccessType + { + /// + /// documentAddModule + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentAddModule"))] + DocumentAddModule, + /// + /// documentSelectURL + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentSelectURL"))] + DocumentSelectURL, + /// + /// documentRun + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentRun"))] + DocumentRun, + /// + /// documentSet + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentSet"))] + DocumentSet, + /// + /// documentAppend + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentAppend"))] + DocumentAppend, + /// + /// documentDelete + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentDelete"))] + DocumentDelete, + /// + /// documentClear + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentClear"))] + DocumentClear, + /// + /// workletSet + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletSet"))] + WorkletSet, + /// + /// workletAppend + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletAppend"))] + WorkletAppend, + /// + /// workletDelete + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletDelete"))] + WorkletDelete, + /// + /// workletClear + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletClear"))] + WorkletClear, + /// + /// workletGet + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletGet"))] + WorkletGet, + /// + /// workletKeys + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletKeys"))] + WorkletKeys, + /// + /// workletEntries + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletEntries"))] + WorkletEntries, + /// + /// workletLength + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletLength"))] + WorkletLength, + /// + /// workletRemainingBudget + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletRemainingBudget"))] + WorkletRemainingBudget + } + + /// + /// Struct for a single key-value pair in an origin's shared storage. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SharedStorageEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + set; + } + + /// + /// Value + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + public string Value + { + get; + set; + } + } + + /// + /// Details for an origin's shared storage. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SharedStorageMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// CreationTime + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("creationTime"), IsRequired = (true))] + public double CreationTime + { + get; + set; + } + + /// + /// Length + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (true))] + public int Length + { + get; + set; + } + + /// + /// RemainingBudget + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("remainingBudget"), IsRequired = (true))] + public double RemainingBudget + { + get; + set; + } + } + + /// + /// Pair of reporting metadata details for a candidate URL for `selectURL()`. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SharedStorageReportingMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// EventType + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventType"), IsRequired = (true))] + public string EventType + { + get; + set; + } + + /// + /// ReportingUrl + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingUrl"), IsRequired = (true))] + public string ReportingUrl + { + get; + set; + } + } + + /// + /// Bundles a candidate URL with its reporting metadata. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SharedStorageUrlWithMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Spec of candidate URL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + set; + } + + /// + /// Any associated reporting metadata. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingMetadata"), IsRequired = (true))] + public System.Collections.Generic.IList ReportingMetadata + { + get; + set; + } + } + + /// + /// Bundles the parameters for shared storage access events whose + /// presence/absence can vary according to SharedStorageAccessType. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SharedStorageAccessParams : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Spec of the module script URL. + /// Present only for SharedStorageAccessType.documentAddModule. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptSourceUrl"), IsRequired = (false))] + public string ScriptSourceUrl + { + get; + set; + } + + /// + /// Name of the registered operation to be run. + /// Present only for SharedStorageAccessType.documentRun and + /// SharedStorageAccessType.documentSelectURL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("operationName"), IsRequired = (false))] + public string OperationName + { + get; + set; + } + + /// + /// The operation's serialized data in bytes (converted to a string). + /// Present only for SharedStorageAccessType.documentRun and + /// SharedStorageAccessType.documentSelectURL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("serializedData"), IsRequired = (false))] + public string SerializedData + { + get; + set; + } + + /// + /// Array of candidate URLs' specs, along with any associated metadata. + /// Present only for SharedStorageAccessType.documentSelectURL. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlsWithMetadata"), IsRequired = (false))] + public System.Collections.Generic.IList UrlsWithMetadata + { + get; + set; + } + + /// + /// Key for a specific entry in an origin's shared storage. + /// Present only for SharedStorageAccessType.documentSet, + /// SharedStorageAccessType.documentAppend, + /// SharedStorageAccessType.documentDelete, + /// SharedStorageAccessType.workletSet, + /// SharedStorageAccessType.workletAppend, + /// SharedStorageAccessType.workletDelete, and + /// SharedStorageAccessType.workletGet. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (false))] + public string Key + { + get; + set; + } + + /// + /// Value for a specific entry in an origin's shared storage. + /// Present only for SharedStorageAccessType.documentSet, + /// SharedStorageAccessType.documentAppend, + /// SharedStorageAccessType.workletSet, and + /// SharedStorageAccessType.workletAppend. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + public string Value + { + get; + set; + } + + /// + /// Whether or not to set an entry for a key if that key is already present. + /// Present only for SharedStorageAccessType.documentSet and + /// SharedStorageAccessType.workletSet. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("ignoreIfPresent"), IsRequired = (false))] + public bool? IgnoreIfPresent + { + get; + set; + } + } + /// /// A cache's contents have been modified. /// @@ -23966,6 +24409,81 @@ public string Name private set; } } + + /// + /// Shared storage was accessed by the associated page. + /// The following parameters are included in all events. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class SharedStorageAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Time of the access. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("accessTime"), IsRequired = (true))] + public double AccessTime + { + get; + private set; + } + + /// + /// Enum value indicating the Shared Storage API method invoked. + /// + public CefSharp.DevTools.Storage.SharedStorageAccessType Type + { + get + { + return (CefSharp.DevTools.Storage.SharedStorageAccessType)(StringToEnum(typeof(CefSharp.DevTools.Storage.SharedStorageAccessType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Enum value indicating the Shared Storage API method invoked. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + private set; + } + + /// + /// DevTools Frame Token for the primary frame tree's root. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("mainFrameId"), IsRequired = (true))] + public string MainFrameId + { + get; + private set; + } + + /// + /// Serialized origin for the context that invoked the Shared Storage API. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("ownerOrigin"), IsRequired = (true))] + public string OwnerOrigin + { + get; + private set; + } + + /// + /// The sub-parameters warapped by `params` are all optional and their + /// presence/absence depends on `type`. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("params"), IsRequired = (true))] + public CefSharp.DevTools.Storage.SharedStorageAccessParams Params + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -36286,18 +36804,21 @@ public System.Threading.Tasks.Task GetFrameOwnerAsync(str return _client.ExecuteDevToolsMethodAsync("DOM.getFrameOwner", dict); } - partial void ValidateGetContainerForNode(int nodeId, string containerName = null); + partial void ValidateGetContainerForNode(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null); /// - /// Returns the container of the given node based on container query conditions. - /// If containerName is given, it will find the nearest container with a matching name; - /// otherwise it will find the nearest container regardless of its container name. + /// Returns the query container of the given node based on container query + /// conditions: containerName, physical, and logical axes. If no axes are + /// provided, the style container is returned, which is the direct parent or the + /// closest element with a matching container-name. /// /// nodeId /// containerName + /// physicalAxes + /// logicalAxes /// returns System.Threading.Tasks.Task<GetContainerForNodeResponse> - public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null) + public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null) { - ValidateGetContainerForNode(nodeId, containerName); + ValidateGetContainerForNode(nodeId, containerName, physicalAxes, logicalAxes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); if (!(string.IsNullOrEmpty(containerName))) @@ -36305,6 +36826,16 @@ public System.Threading.Tasks.Task GetContainerForN dict.Add("containerName", containerName); } + if (physicalAxes.HasValue) + { + dict.Add("physicalAxes", EnumToString(physicalAxes)); + } + + if (logicalAxes.HasValue) + { + dict.Add("logicalAxes", EnumToString(logicalAxes)); + } + return _client.ExecuteDevToolsMethodAsync("DOM.getContainerForNode", dict); } @@ -37907,26 +38438,6 @@ public System.Threading.Tasks.Task BeginFrameAsync(double? f return _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.beginFrame", dict); } - - /// - /// Disables headless events for the target. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DisableAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.disable", dict); - } - - /// - /// Enables headless events for the target. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.enable", dict); - } } } @@ -42381,6 +42892,34 @@ public string RecommendedId } } +namespace CefSharp.DevTools.Page +{ + /// + /// GetAdScriptIdResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetAdScriptIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.Page.AdScriptId adScriptId + { + get; + set; + } + + /// + /// adScriptId + /// + public CefSharp.DevTools.Page.AdScriptId AdScriptId + { + get + { + return adScriptId; + } + } + } +} + namespace CefSharp.DevTools.Page { /// @@ -43379,7 +43918,7 @@ public System.Threading.Tasks.Task BringToFrontAsync() return _client.ExecuteDevToolsMethodAsync("Page.bringToFront", dict); } - partial void ValidateCaptureScreenshot(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null); + partial void ValidateCaptureScreenshot(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null, bool? optimizeForSpeed = null); /// /// Capture page screenshot. /// @@ -43388,10 +43927,11 @@ public System.Threading.Tasks.Task BringToFrontAsync() /// Capture the screenshot of a given region only. /// Capture the screenshot from the surface, rather than the view. Defaults to true. /// Capture the screenshot beyond the viewport. Defaults to false. + /// Optimize image encoding for speed, not for resulting size (defaults to false) /// returns System.Threading.Tasks.Task<CaptureScreenshotResponse> - public System.Threading.Tasks.Task CaptureScreenshotAsync(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null) + public System.Threading.Tasks.Task CaptureScreenshotAsync(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null, bool? optimizeForSpeed = null) { - ValidateCaptureScreenshot(format, quality, clip, fromSurface, captureBeyondViewport); + ValidateCaptureScreenshot(format, quality, clip, fromSurface, captureBeyondViewport, optimizeForSpeed); var dict = new System.Collections.Generic.Dictionary(); if (format.HasValue) { @@ -43418,6 +43958,11 @@ public System.Threading.Tasks.Task CaptureScreenshotA dict.Add("captureBeyondViewport", captureBeyondViewport.Value); } + if (optimizeForSpeed.HasValue) + { + dict.Add("optimizeForSpeed", optimizeForSpeed.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.captureScreenshot", dict); } @@ -43527,6 +44072,20 @@ public System.Threading.Tasks.Task GetAppIdAsync() return _client.ExecuteDevToolsMethodAsync("Page.getAppId", dict); } + partial void ValidateGetAdScriptId(string frameId); + /// + /// GetAdScriptId + /// + /// frameId + /// returns System.Threading.Tasks.Task<GetAdScriptIdResponse> + public System.Threading.Tasks.Task GetAdScriptIdAsync(string frameId) + { + ValidateGetAdScriptId(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + return _client.ExecuteDevToolsMethodAsync("Page.getAdScriptId", dict); + } + /// /// Returns present frame tree structure. /// @@ -44895,6 +45454,62 @@ public CefSharp.DevTools.Storage.InterestGroupDetails Details } } +namespace CefSharp.DevTools.Storage +{ + /// + /// GetSharedStorageMetadataResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetSharedStorageMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal CefSharp.DevTools.Storage.SharedStorageMetadata metadata + { + get; + set; + } + + /// + /// metadata + /// + public CefSharp.DevTools.Storage.SharedStorageMetadata Metadata + { + get + { + return metadata; + } + } + } +} + +namespace CefSharp.DevTools.Storage +{ + /// + /// GetSharedStorageEntriesResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetSharedStorageEntriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal System.Collections.Generic.IList entries + { + get; + set; + } + + /// + /// entries + /// + public System.Collections.Generic.IList Entries + { + get + { + return entries; + } + } + } +} + namespace CefSharp.DevTools.Storage { using System.Linq; @@ -44994,6 +45609,23 @@ public event System.EventHandler InterestGroupAc } } + /// + /// Shared storage was accessed by the associated page. + /// The following parameters are included in all events. + /// + public event System.EventHandler SharedStorageAccessed + { + add + { + _client.AddEventHandler("Storage.sharedStorageAccessed", value); + } + + remove + { + _client.RemoveEventHandler("Storage.sharedStorageAccessed", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -45269,6 +45901,102 @@ public System.Threading.Tasks.Task SetInterestGroupTrack dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupTracking", dict); } + + partial void ValidateGetSharedStorageMetadata(string ownerOrigin); + /// + /// Gets metadata for an origin's shared storage. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<GetSharedStorageMetadataResponse> + public System.Threading.Tasks.Task GetSharedStorageMetadataAsync(string ownerOrigin) + { + ValidateGetSharedStorageMetadata(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.getSharedStorageMetadata", dict); + } + + partial void ValidateGetSharedStorageEntries(string ownerOrigin); + /// + /// Gets the entries in an given origin's shared storage. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<GetSharedStorageEntriesResponse> + public System.Threading.Tasks.Task GetSharedStorageEntriesAsync(string ownerOrigin) + { + ValidateGetSharedStorageEntries(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.getSharedStorageEntries", dict); + } + + partial void ValidateSetSharedStorageEntry(string ownerOrigin, string key, string value, bool? ignoreIfPresent = null); + /// + /// Sets entry with `key` and `value` for a given origin's shared storage. + /// + /// ownerOrigin + /// key + /// value + /// If `ignoreIfPresent` is included and true, then only sets the entry if`key` doesn't already exist. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSharedStorageEntryAsync(string ownerOrigin, string key, string value, bool? ignoreIfPresent = null) + { + ValidateSetSharedStorageEntry(ownerOrigin, key, value, ignoreIfPresent); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + dict.Add("key", key); + dict.Add("value", value); + if (ignoreIfPresent.HasValue) + { + dict.Add("ignoreIfPresent", ignoreIfPresent.Value); + } + + return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageEntry", dict); + } + + partial void ValidateDeleteSharedStorageEntry(string ownerOrigin, string key); + /// + /// Deletes entry for `key` (if it exists) for a given origin's shared storage. + /// + /// ownerOrigin + /// key + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DeleteSharedStorageEntryAsync(string ownerOrigin, string key) + { + ValidateDeleteSharedStorageEntry(ownerOrigin, key); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + dict.Add("key", key); + return _client.ExecuteDevToolsMethodAsync("Storage.deleteSharedStorageEntry", dict); + } + + partial void ValidateClearSharedStorageEntries(string ownerOrigin); + /// + /// Clears all entries for a given origin's shared storage. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearSharedStorageEntriesAsync(string ownerOrigin) + { + ValidateClearSharedStorageEntries(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.clearSharedStorageEntries", dict); + } + + partial void ValidateSetSharedStorageTracking(bool enable); + /// + /// Enables/disables issuing of sharedStorageAccessed events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSharedStorageTrackingAsync(bool enable) + { + ValidateSetSharedStorageTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageTracking", dict); + } } } @@ -46716,7 +47444,7 @@ public System.Threading.Tasks.Task FulfillRequestAsync(s /// If set, the request url will be modified in a way that's not observable by page. /// If set, the request method is overridden. /// If set, overrides the post data in the request. - /// If set, overrides the request headers. + /// If set, overrides the request headers. Note that the overrides do notextend to subsequent redirect hops, if a redirect happens. Another overridemay be applied to a different request produced by a redirect. /// If set, overrides response interception behavior for this request. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ContinueRequestAsync(string requestId, string url = null, string method = null, byte[] postData = null, System.Collections.Generic.IList headers = null, bool? interceptResponse = null) @@ -47291,6 +48019,38 @@ public System.Threading.Tasks.Task AddVirtualAu return _client.ExecuteDevToolsMethodAsync("WebAuthn.addVirtualAuthenticator", dict); } + partial void ValidateSetResponseOverrideBits(string authenticatorId, bool? isBogusSignature = null, bool? isBadUV = null, bool? isBadUP = null); + /// + /// Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present. + /// + /// authenticatorId + /// If isBogusSignature is set, overrides the signature in the authenticator response to be zero.Defaults to false. + /// If isBadUV is set, overrides the UV bit in the flags in the authenticator response tobe zero. Defaults to false. + /// If isBadUP is set, overrides the UP bit in the flags in the authenticator response tobe zero. Defaults to false. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetResponseOverrideBitsAsync(string authenticatorId, bool? isBogusSignature = null, bool? isBadUV = null, bool? isBadUP = null) + { + ValidateSetResponseOverrideBits(authenticatorId, isBogusSignature, isBadUV, isBadUP); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + if (isBogusSignature.HasValue) + { + dict.Add("isBogusSignature", isBogusSignature.Value); + } + + if (isBadUV.HasValue) + { + dict.Add("isBadUV", isBadUV.Value); + } + + if (isBadUP.HasValue) + { + dict.Add("isBadUP", isBadUP.Value); + } + + return _client.ExecuteDevToolsMethodAsync("WebAuthn.setResponseOverrideBits", dict); + } + partial void ValidateRemoveVirtualAuthenticator(string authenticatorId); /// /// Removes the given authenticator. @@ -48249,6 +49009,11 @@ public enum SetPauseOnExceptionsState [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] None, /// + /// caught + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("caught"))] + Caught, + /// /// uncaught /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("uncaught"))] @@ -48820,8 +49585,8 @@ public System.Threading.Tasks.Task SetBreakpointsActiveA partial void ValidateSetPauseOnExceptions(CefSharp.DevTools.Debugger.SetPauseOnExceptionsState state); /// - /// Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or - /// no exceptions. Initial pause on exceptions state is `none`. + /// Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions, + /// or caught exceptions, no exceptions. Initial pause on exceptions state is `none`. /// /// Pause on exceptions mode. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index 93458f4c8..86e589092 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 108.0.5359.71 +// CHROMIUM VERSION 109.0.5414.87 namespace CefSharp.DevTools.Accessibility { /// @@ -3683,6 +3683,16 @@ public enum PermissionType [System.Text.Json.Serialization.JsonPropertyNameAttribute("geolocation")] Geolocation, /// + /// idleDetection + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("idleDetection")] + IdleDetection, + /// + /// localFonts + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("localFonts")] + LocalFonts, + /// /// midi /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("midi")] @@ -3723,6 +3733,11 @@ public enum PermissionType [System.Text.Json.Serialization.JsonPropertyNameAttribute("sensors")] Sensors, /// + /// storageAccess + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageAccess")] + StorageAccess, + /// /// videoCapture /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoCapture")] @@ -3733,11 +3748,6 @@ public enum PermissionType [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoCapturePanTiltZoom")] VideoCapturePanTiltZoom, /// - /// idleDetection - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("idleDetection")] - IdleDetection, - /// /// wakeLockScreen /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("wakeLockScreen")] @@ -3746,7 +3756,12 @@ public enum PermissionType /// wakeLockSystem /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("wakeLockSystem")] - WakeLockSystem + WakeLockSystem, + /// + /// windowManagement + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowManagement")] + WindowManagement } /// @@ -3763,12 +3778,7 @@ public enum PermissionSetting /// denied /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("denied")] - Denied, - /// - /// prompt - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("prompt")] - Prompt + Denied } /// @@ -5095,6 +5105,26 @@ public string Name get; set; } + + /// + /// Optional physical axes queried for the container. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("physicalAxes")] + public CefSharp.DevTools.DOM.PhysicalAxes? PhysicalAxes + { + get; + set; + } + + /// + /// Optional logical axes queried for the container. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("logicalAxes")] + public CefSharp.DevTools.DOM.LogicalAxes? LogicalAxes + { + get; + set; + } } /// @@ -6099,30 +6129,30 @@ public enum PseudoType [System.Text.Json.Serialization.JsonPropertyNameAttribute("input-list-button")] InputListButton, /// - /// page-transition + /// view-transition /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition")] - PageTransition, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition")] + ViewTransition, /// - /// page-transition-container + /// view-transition-group /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-container")] - PageTransitionContainer, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-group")] + ViewTransitionGroup, /// - /// page-transition-image-wrapper + /// view-transition-image-pair /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-image-wrapper")] - PageTransitionImageWrapper, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-image-pair")] + ViewTransitionImagePair, /// - /// page-transition-outgoing-image + /// view-transition-old /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-outgoing-image")] - PageTransitionOutgoingImage, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-old")] + ViewTransitionOld, /// - /// page-transition-incoming-image + /// view-transition-new /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("page-transition-incoming-image")] - PageTransitionIncomingImage + [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-new")] + ViewTransitionNew } /// @@ -6169,6 +6199,50 @@ public enum CompatibilityMode NoQuirksMode } + /// + /// ContainerSelector physical axes + /// + public enum PhysicalAxes + { + /// + /// Horizontal + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Horizontal")] + Horizontal, + /// + /// Vertical + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Vertical")] + Vertical, + /// + /// Both + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Both")] + Both + } + + /// + /// ContainerSelector logical axes + /// + public enum LogicalAxes + { + /// + /// Inline + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Inline")] + Inline, + /// + /// Block + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Block")] + Block, + /// + /// Both + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Both")] + Both + } + /// /// DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. /// DOMNode is a base node mirror type. @@ -8922,7 +8996,12 @@ public enum ScreenshotParamsFormat /// png /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("png")] - Png + Png, + /// + /// webp + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] + Webp } /// @@ -8949,24 +9028,15 @@ public int? Quality get; set; } - } - /// - /// Issued when the target starts or stops needing BeginFrames. - /// Deprecated. Issue beginFrame unconditionally instead and use result from - /// beginFrame to detect whether the frames were suppressed. - /// - public class NeedsBeginFramesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { /// - /// True if BeginFrames are needed, false otherwise. + /// Optimize image encoding for speed, not for resulting size (defaults to false) /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("needsBeginFrames")] - public bool NeedsBeginFrames + [System.Text.Json.Serialization.JsonPropertyNameAttribute("optimizeForSpeed")] + public bool? OptimizeForSpeed { get; - private set; + set; } } } @@ -15162,6 +15232,17 @@ public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState get; private set; } + + /// + /// Whether the site has partitioned cookies stored in a partition different than the current one. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("siteHasCookieInOtherPartition")] + public bool? SiteHasCookieInOtherPartition + { + get; + private set; + } } /// @@ -16997,6 +17078,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboard-write")] ClipboardWrite, /// + /// compute-pressure + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("compute-pressure")] + ComputePressure, + /// /// cross-origin-isolated /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("cross-origin-isolated")] @@ -19016,11 +19102,6 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("OutstandingIndexedDBTransaction")] OutstandingIndexedDBTransaction, /// - /// RequestedNotificationsPermission - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedNotificationsPermission")] - RequestedNotificationsPermission, - /// /// RequestedMIDIPermission /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedMIDIPermission")] @@ -19171,6 +19252,11 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("InjectedStyleSheet")] InjectedStyleSheet, /// + /// KeepaliveRequest + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("KeepaliveRequest")] + KeepaliveRequest, + /// /// Dummy /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("Dummy")] @@ -19422,16 +19508,6 @@ public enum PrerenderFinalStatus [System.Text.Json.Serialization.JsonPropertyNameAttribute("LowEndDevice")] LowEndDevice, /// - /// CrossOriginRedirect - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginRedirect")] - CrossOriginRedirect, - /// - /// CrossOriginNavigation - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginNavigation")] - CrossOriginNavigation, - /// /// InvalidSchemeRedirect /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSchemeRedirect")] @@ -19600,7 +19676,47 @@ public enum PrerenderFinalStatus /// TimeoutBackgrounded /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("TimeoutBackgrounded")] - TimeoutBackgrounded + TimeoutBackgrounded, + /// + /// CrossSiteRedirect + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossSiteRedirect")] + CrossSiteRedirect, + /// + /// CrossSiteNavigation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossSiteNavigation")] + CrossSiteNavigation, + /// + /// SameSiteCrossOriginRedirect + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginRedirect")] + SameSiteCrossOriginRedirect, + /// + /// SameSiteCrossOriginNavigation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginNavigation")] + SameSiteCrossOriginNavigation, + /// + /// SameSiteCrossOriginRedirectNotOptIn + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginRedirectNotOptIn")] + SameSiteCrossOriginRedirectNotOptIn, + /// + /// SameSiteCrossOriginNavigationNotOptIn + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginNavigationNotOptIn")] + SameSiteCrossOriginNavigationNotOptIn, + /// + /// ActivationNavigationParameterMismatch + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationNavigationParameterMismatch")] + ActivationNavigationParameterMismatch, + /// + /// EmbedderHostDisallowed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderHostDisallowed")] + EmbedderHostDisallowed } /// @@ -19716,18 +19832,6 @@ public CefSharp.DevTools.Runtime.StackTrace Stack get; private set; } - - /// - /// Identifies the bottom-most script which caused the frame to be labelled - /// as an ad. Only sent if frame is labelled as an ad and id is available. - /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("adScriptId")] - public CefSharp.DevTools.Page.AdScriptId AdScriptId - { - get; - private set; - } } /// @@ -21905,6 +22009,11 @@ public enum StorageType [System.Text.Json.Serialization.JsonPropertyNameAttribute("interest_groups")] InterestGroups, /// + /// shared_storage + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared_storage")] + SharedStorage, + /// /// all /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("all")] @@ -22161,6 +22270,309 @@ public System.Collections.Generic.IList + /// Enum of shared storage access types. + /// + public enum SharedStorageAccessType + { + /// + /// documentAddModule + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentAddModule")] + DocumentAddModule, + /// + /// documentSelectURL + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentSelectURL")] + DocumentSelectURL, + /// + /// documentRun + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentRun")] + DocumentRun, + /// + /// documentSet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentSet")] + DocumentSet, + /// + /// documentAppend + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentAppend")] + DocumentAppend, + /// + /// documentDelete + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentDelete")] + DocumentDelete, + /// + /// documentClear + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentClear")] + DocumentClear, + /// + /// workletSet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletSet")] + WorkletSet, + /// + /// workletAppend + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletAppend")] + WorkletAppend, + /// + /// workletDelete + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletDelete")] + WorkletDelete, + /// + /// workletClear + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletClear")] + WorkletClear, + /// + /// workletGet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletGet")] + WorkletGet, + /// + /// workletKeys + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletKeys")] + WorkletKeys, + /// + /// workletEntries + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletEntries")] + WorkletEntries, + /// + /// workletLength + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletLength")] + WorkletLength, + /// + /// workletRemainingBudget + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletRemainingBudget")] + WorkletRemainingBudget + } + + /// + /// Struct for a single key-value pair in an origin's shared storage. + /// + public partial class SharedStorageEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + set; + } + + /// + /// Value + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } + + /// + /// Details for an origin's shared storage. + /// + public partial class SharedStorageMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// CreationTime + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("creationTime")] + public double CreationTime + { + get; + set; + } + + /// + /// Length + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + public int Length + { + get; + set; + } + + /// + /// RemainingBudget + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("remainingBudget")] + public double RemainingBudget + { + get; + set; + } + } + + /// + /// Pair of reporting metadata details for a candidate URL for `selectURL()`. + /// + public partial class SharedStorageReportingMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// EventType + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EventType + { + get; + set; + } + + /// + /// ReportingUrl + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingUrl")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ReportingUrl + { + get; + set; + } + } + + /// + /// Bundles a candidate URL with its reporting metadata. + /// + public partial class SharedStorageUrlWithMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Spec of candidate URL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// Any associated reporting metadata. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingMetadata")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList ReportingMetadata + { + get; + set; + } + } + + /// + /// Bundles the parameters for shared storage access events whose + /// presence/absence can vary according to SharedStorageAccessType. + /// + public partial class SharedStorageAccessParams : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Spec of the module script URL. + /// Present only for SharedStorageAccessType.documentAddModule. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptSourceUrl")] + public string ScriptSourceUrl + { + get; + set; + } + + /// + /// Name of the registered operation to be run. + /// Present only for SharedStorageAccessType.documentRun and + /// SharedStorageAccessType.documentSelectURL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("operationName")] + public string OperationName + { + get; + set; + } + + /// + /// The operation's serialized data in bytes (converted to a string). + /// Present only for SharedStorageAccessType.documentRun and + /// SharedStorageAccessType.documentSelectURL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("serializedData")] + public string SerializedData + { + get; + set; + } + + /// + /// Array of candidate URLs' specs, along with any associated metadata. + /// Present only for SharedStorageAccessType.documentSelectURL. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlsWithMetadata")] + public System.Collections.Generic.IList UrlsWithMetadata + { + get; + set; + } + + /// + /// Key for a specific entry in an origin's shared storage. + /// Present only for SharedStorageAccessType.documentSet, + /// SharedStorageAccessType.documentAppend, + /// SharedStorageAccessType.documentDelete, + /// SharedStorageAccessType.workletSet, + /// SharedStorageAccessType.workletAppend, + /// SharedStorageAccessType.workletDelete, and + /// SharedStorageAccessType.workletGet. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + public string Key + { + get; + set; + } + + /// + /// Value for a specific entry in an origin's shared storage. + /// Present only for SharedStorageAccessType.documentSet, + /// SharedStorageAccessType.documentAppend, + /// SharedStorageAccessType.workletSet, and + /// SharedStorageAccessType.workletAppend. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + public string Value + { + get; + set; + } + + /// + /// Whether or not to set an entry for a key if that key is already present. + /// Present only for SharedStorageAccessType.documentSet and + /// SharedStorageAccessType.workletSet. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ignoreIfPresent")] + public bool? IgnoreIfPresent + { + get; + set; + } + } + /// /// A cache's contents have been modified. /// @@ -22344,6 +22756,72 @@ public string Name private set; } } + + /// + /// Shared storage was accessed by the associated page. + /// The following parameters are included in all events. + /// + public class SharedStorageAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Time of the access. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("accessTime")] + public double AccessTime + { + get; + private set; + } + + /// + /// Enum value indicating the Shared Storage API method invoked. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + public CefSharp.DevTools.Storage.SharedStorageAccessType Type + { + get; + private set; + } + + /// + /// DevTools Frame Token for the primary frame tree's root. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("mainFrameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string MainFrameId + { + get; + private set; + } + + /// + /// Serialized origin for the context that invoked the Shared Storage API. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ownerOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string OwnerOrigin + { + get; + private set; + } + + /// + /// The sub-parameters warapped by `params` are all optional and their + /// presence/absence depends on `type`. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("params")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.SharedStorageAccessParams Params + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -33604,18 +34082,21 @@ public System.Threading.Tasks.Task GetFrameOwnerAsync(str return _client.ExecuteDevToolsMethodAsync("DOM.getFrameOwner", dict); } - partial void ValidateGetContainerForNode(int nodeId, string containerName = null); + partial void ValidateGetContainerForNode(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null); /// - /// Returns the container of the given node based on container query conditions. - /// If containerName is given, it will find the nearest container with a matching name; - /// otherwise it will find the nearest container regardless of its container name. + /// Returns the query container of the given node based on container query + /// conditions: containerName, physical, and logical axes. If no axes are + /// provided, the style container is returned, which is the direct parent or the + /// closest element with a matching container-name. /// /// nodeId /// containerName + /// physicalAxes + /// logicalAxes /// returns System.Threading.Tasks.Task<GetContainerForNodeResponse> - public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null) + public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null) { - ValidateGetContainerForNode(nodeId, containerName); + ValidateGetContainerForNode(nodeId, containerName, physicalAxes, logicalAxes); var dict = new System.Collections.Generic.Dictionary(); dict.Add("nodeId", nodeId); if (!(string.IsNullOrEmpty(containerName))) @@ -33623,6 +34104,16 @@ public System.Threading.Tasks.Task GetContainerForN dict.Add("containerName", containerName); } + if (physicalAxes.HasValue) + { + dict.Add("physicalAxes", EnumToString(physicalAxes)); + } + + if (logicalAxes.HasValue) + { + dict.Add("logicalAxes", EnumToString(logicalAxes)); + } + return _client.ExecuteDevToolsMethodAsync("DOM.getContainerForNode", dict); } @@ -35133,26 +35624,6 @@ public System.Threading.Tasks.Task BeginFrameAsync(double? f return _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.beginFrame", dict); } - - /// - /// Disables headless events for the target. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DisableAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.disable", dict); - } - - /// - /// Enables headless events for the target. - /// - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task EnableAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("HeadlessExperimental.enable", dict); - } } } @@ -39212,6 +39683,26 @@ public string RecommendedId } } +namespace CefSharp.DevTools.Page +{ + /// + /// GetAdScriptIdResponse + /// + public class GetAdScriptIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// adScriptId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("adScriptId")] + public CefSharp.DevTools.Page.AdScriptId AdScriptId + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Page { /// @@ -40060,7 +40551,7 @@ public System.Threading.Tasks.Task BringToFrontAsync() return _client.ExecuteDevToolsMethodAsync("Page.bringToFront", dict); } - partial void ValidateCaptureScreenshot(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null); + partial void ValidateCaptureScreenshot(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null, bool? optimizeForSpeed = null); /// /// Capture page screenshot. /// @@ -40069,10 +40560,11 @@ public System.Threading.Tasks.Task BringToFrontAsync() /// Capture the screenshot of a given region only. /// Capture the screenshot from the surface, rather than the view. Defaults to true. /// Capture the screenshot beyond the viewport. Defaults to false. + /// Optimize image encoding for speed, not for resulting size (defaults to false) /// returns System.Threading.Tasks.Task<CaptureScreenshotResponse> - public System.Threading.Tasks.Task CaptureScreenshotAsync(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null) + public System.Threading.Tasks.Task CaptureScreenshotAsync(CefSharp.DevTools.Page.CaptureScreenshotFormat? format = null, int? quality = null, CefSharp.DevTools.Page.Viewport clip = null, bool? fromSurface = null, bool? captureBeyondViewport = null, bool? optimizeForSpeed = null) { - ValidateCaptureScreenshot(format, quality, clip, fromSurface, captureBeyondViewport); + ValidateCaptureScreenshot(format, quality, clip, fromSurface, captureBeyondViewport, optimizeForSpeed); var dict = new System.Collections.Generic.Dictionary(); if (format.HasValue) { @@ -40099,6 +40591,11 @@ public System.Threading.Tasks.Task CaptureScreenshotA dict.Add("captureBeyondViewport", captureBeyondViewport.Value); } + if (optimizeForSpeed.HasValue) + { + dict.Add("optimizeForSpeed", optimizeForSpeed.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.captureScreenshot", dict); } @@ -40208,6 +40705,20 @@ public System.Threading.Tasks.Task GetAppIdAsync() return _client.ExecuteDevToolsMethodAsync("Page.getAppId", dict); } + partial void ValidateGetAdScriptId(string frameId); + /// + /// GetAdScriptId + /// + /// frameId + /// returns System.Threading.Tasks.Task<GetAdScriptIdResponse> + public System.Threading.Tasks.Task GetAdScriptIdAsync(string frameId) + { + ValidateGetAdScriptId(frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("frameId", frameId); + return _client.ExecuteDevToolsMethodAsync("Page.getAdScriptId", dict); + } + /// /// Returns present frame tree structure. /// @@ -41499,6 +42010,46 @@ public CefSharp.DevTools.Storage.InterestGroupDetails Details } } +namespace CefSharp.DevTools.Storage +{ + /// + /// GetSharedStorageMetadataResponse + /// + public class GetSharedStorageMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// metadata + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("metadata")] + public CefSharp.DevTools.Storage.SharedStorageMetadata Metadata + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Storage +{ + /// + /// GetSharedStorageEntriesResponse + /// + public class GetSharedStorageEntriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// entries + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + public System.Collections.Generic.IList Entries + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Storage { using System.Linq; @@ -41598,6 +42149,23 @@ public event System.EventHandler InterestGroupAc } } + /// + /// Shared storage was accessed by the associated page. + /// The following parameters are included in all events. + /// + public event System.EventHandler SharedStorageAccessed + { + add + { + _client.AddEventHandler("Storage.sharedStorageAccessed", value); + } + + remove + { + _client.RemoveEventHandler("Storage.sharedStorageAccessed", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -41873,6 +42441,102 @@ public System.Threading.Tasks.Task SetInterestGroupTrack dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setInterestGroupTracking", dict); } + + partial void ValidateGetSharedStorageMetadata(string ownerOrigin); + /// + /// Gets metadata for an origin's shared storage. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<GetSharedStorageMetadataResponse> + public System.Threading.Tasks.Task GetSharedStorageMetadataAsync(string ownerOrigin) + { + ValidateGetSharedStorageMetadata(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.getSharedStorageMetadata", dict); + } + + partial void ValidateGetSharedStorageEntries(string ownerOrigin); + /// + /// Gets the entries in an given origin's shared storage. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<GetSharedStorageEntriesResponse> + public System.Threading.Tasks.Task GetSharedStorageEntriesAsync(string ownerOrigin) + { + ValidateGetSharedStorageEntries(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.getSharedStorageEntries", dict); + } + + partial void ValidateSetSharedStorageEntry(string ownerOrigin, string key, string value, bool? ignoreIfPresent = null); + /// + /// Sets entry with `key` and `value` for a given origin's shared storage. + /// + /// ownerOrigin + /// key + /// value + /// If `ignoreIfPresent` is included and true, then only sets the entry if`key` doesn't already exist. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSharedStorageEntryAsync(string ownerOrigin, string key, string value, bool? ignoreIfPresent = null) + { + ValidateSetSharedStorageEntry(ownerOrigin, key, value, ignoreIfPresent); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + dict.Add("key", key); + dict.Add("value", value); + if (ignoreIfPresent.HasValue) + { + dict.Add("ignoreIfPresent", ignoreIfPresent.Value); + } + + return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageEntry", dict); + } + + partial void ValidateDeleteSharedStorageEntry(string ownerOrigin, string key); + /// + /// Deletes entry for `key` (if it exists) for a given origin's shared storage. + /// + /// ownerOrigin + /// key + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DeleteSharedStorageEntryAsync(string ownerOrigin, string key) + { + ValidateDeleteSharedStorageEntry(ownerOrigin, key); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + dict.Add("key", key); + return _client.ExecuteDevToolsMethodAsync("Storage.deleteSharedStorageEntry", dict); + } + + partial void ValidateClearSharedStorageEntries(string ownerOrigin); + /// + /// Clears all entries for a given origin's shared storage. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ClearSharedStorageEntriesAsync(string ownerOrigin) + { + ValidateClearSharedStorageEntries(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.clearSharedStorageEntries", dict); + } + + partial void ValidateSetSharedStorageTracking(bool enable); + /// + /// Enables/disables issuing of sharedStorageAccessed events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSharedStorageTrackingAsync(bool enable) + { + ValidateSetSharedStorageTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageTracking", dict); + } } } @@ -43173,7 +43837,7 @@ public System.Threading.Tasks.Task FulfillRequestAsync(s /// If set, the request url will be modified in a way that's not observable by page. /// If set, the request method is overridden. /// If set, overrides the post data in the request. - /// If set, overrides the request headers. + /// If set, overrides the request headers. Note that the overrides do notextend to subsequent redirect hops, if a redirect happens. Another overridemay be applied to a different request produced by a redirect. /// If set, overrides response interception behavior for this request. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task ContinueRequestAsync(string requestId, string url = null, string method = null, byte[] postData = null, System.Collections.Generic.IList headers = null, bool? interceptResponse = null) @@ -43716,6 +44380,38 @@ public System.Threading.Tasks.Task AddVirtualAu return _client.ExecuteDevToolsMethodAsync("WebAuthn.addVirtualAuthenticator", dict); } + partial void ValidateSetResponseOverrideBits(string authenticatorId, bool? isBogusSignature = null, bool? isBadUV = null, bool? isBadUP = null); + /// + /// Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present. + /// + /// authenticatorId + /// If isBogusSignature is set, overrides the signature in the authenticator response to be zero.Defaults to false. + /// If isBadUV is set, overrides the UV bit in the flags in the authenticator response tobe zero. Defaults to false. + /// If isBadUP is set, overrides the UP bit in the flags in the authenticator response tobe zero. Defaults to false. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetResponseOverrideBitsAsync(string authenticatorId, bool? isBogusSignature = null, bool? isBadUV = null, bool? isBadUP = null) + { + ValidateSetResponseOverrideBits(authenticatorId, isBogusSignature, isBadUV, isBadUP); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("authenticatorId", authenticatorId); + if (isBogusSignature.HasValue) + { + dict.Add("isBogusSignature", isBogusSignature.Value); + } + + if (isBadUV.HasValue) + { + dict.Add("isBadUV", isBadUV.Value); + } + + if (isBadUP.HasValue) + { + dict.Add("isBadUP", isBadUP.Value); + } + + return _client.ExecuteDevToolsMethodAsync("WebAuthn.setResponseOverrideBits", dict); + } + partial void ValidateRemoveVirtualAuthenticator(string authenticatorId); /// /// Removes the given authenticator. @@ -44464,6 +45160,11 @@ public enum SetPauseOnExceptionsState [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] None, /// + /// caught + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("caught")] + Caught, + /// /// uncaught /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("uncaught")] @@ -45035,8 +45736,8 @@ public System.Threading.Tasks.Task SetBreakpointsActiveA partial void ValidateSetPauseOnExceptions(CefSharp.DevTools.Debugger.SetPauseOnExceptionsState state); /// - /// Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or - /// no exceptions. Initial pause on exceptions state is `none`. + /// Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions, + /// or caught exceptions, no exceptions. Initial pause on exceptions state is `none`. /// /// Pause on exceptions mode. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> From 2585e7de30a12e753963073d88000bba9f60fd56 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 14 Jan 2023 09:58:15 +1000 Subject: [PATCH 186/543] Core - Update CefErrorCode (109.0.5414.87) --- CefSharp/Enums/CefErrorCode.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CefSharp/Enums/CefErrorCode.cs b/CefSharp/Enums/CefErrorCode.cs index b56eb1d75..1aa23348d 100644 --- a/CefSharp/Enums/CefErrorCode.cs +++ b/CefSharp/Enums/CefErrorCode.cs @@ -173,7 +173,7 @@ public enum CefErrorCode /// /// The request failed because the response was delivered along with requirements /// which are not met ('X-Frame-Options' and 'Content-Security-Policy' ancestor - /// checks and 'Cross-Origin-Resource-Policy', for instance). + /// checks and 'Cross-Origin-Resource-Policy' for instance). /// BlockedByResponse = -27, @@ -195,6 +195,11 @@ public enum CefErrorCode /// H2OrQuicRequired = -31, + /// + /// The request was blocked by CORB or ORB. + /// + BlockedByOrb = -32, + /// /// A connection was closed (corresponding to a TCP FIN). /// From 664406869a14b65b459480e55bf73bf3592a85cb Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 15 Jan 2023 10:23:10 +1000 Subject: [PATCH 187/543] OffScreen - Lazy Initialize RenderHandler - Instead of assigning RenderHandler directly in the constructor, only assign when the new instance in ScreenshotOrNull. Avoid allocating the buffer for those using the new CaptureScreenshotAsync method. --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 3bc95ca70..d7c784ca5 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -222,8 +222,6 @@ public ChromiumWebBrowser(string address = "", IBrowserSettings browserSettings { CreateBrowser(null, browserSettings); } - - RenderHandler = new DefaultRenderHandler(this); } /// @@ -447,9 +445,10 @@ public float DeviceScaleFactor /// Bitmap. public Bitmap ScreenshotOrNull(PopupBlending blend = PopupBlending.Main) { + // Lazy Initialize DefaultRenderHandler if (RenderHandler == null) { - throw new NullReferenceException("RenderHandler cannot be null. Use DefaultRenderHandler unless implementing your own"); + RenderHandler = new DefaultRenderHandler(this); } var renderHandler = RenderHandler as DefaultRenderHandler; From 0d790cdf8fb9d2d98526b46576afdf9b150fe11b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 15 Jan 2023 11:05:27 +1000 Subject: [PATCH 188/543] Revert "OffScreen - Lazy Initialize RenderHandler" This reverts commit 664406869a14b65b459480e55bf73bf3592a85cb. --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index d7c784ca5..3bc95ca70 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -222,6 +222,8 @@ public ChromiumWebBrowser(string address = "", IBrowserSettings browserSettings { CreateBrowser(null, browserSettings); } + + RenderHandler = new DefaultRenderHandler(this); } /// @@ -445,10 +447,9 @@ public float DeviceScaleFactor /// Bitmap. public Bitmap ScreenshotOrNull(PopupBlending blend = PopupBlending.Main) { - // Lazy Initialize DefaultRenderHandler if (RenderHandler == null) { - RenderHandler = new DefaultRenderHandler(this); + throw new NullReferenceException("RenderHandler cannot be null. Use DefaultRenderHandler unless implementing your own"); } var renderHandler = RenderHandler as DefaultRenderHandler; From a51da76ad908887fc82420c61b602f678a324956 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 15 Jan 2023 11:33:08 +1000 Subject: [PATCH 189/543] OffScreen - Add useLegacyRenderHandler optional param to constructor - Defaults to true - For those using CaptureScreenshotAsync set to false to avoid creating DefaultRenderHandler --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 19 +++++-- .../ChromiumWebBrowserOffScreenFixture.cs | 2 +- CefSharp.Test/DevTools/DevToolsClientFacts.cs | 22 ++++---- .../EvaluateScriptAsPromiseAsyncFacts.cs | 4 +- .../Navigation/WaitForNavigationAsyncTests.cs | 8 +-- .../OffScreen/OffScreenBrowserBasicFacts.cs | 53 +++++++++---------- .../OffScreen/WaitForRenderIdleTests.cs | 8 +-- .../PostMessage/IntegrationTestFacts.cs | 2 +- .../FolderSchemeHandlerFactoryTests.cs | 2 +- .../Selector/WaitForSelectorAsyncTests.cs | 14 ++--- 10 files changed, 72 insertions(+), 62 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 3bc95ca70..df9fe6f00 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -172,10 +172,15 @@ public bool IsBrowserInitialized /// this action is guranteed to be called after the browser created where as the event may be called before /// you have a chance to subscribe to the event as the CEF Browser is created async. (Issue https://github.com/cefsharp/CefSharp/issues/3552). /// + /// + /// For those using or then + /// this must be true, for those using this can be false. + /// Lower memory usage when false. Defaults to true for backwards compatability. + /// /// Cef::Initialize() failed public ChromiumWebBrowser(HtmlString html, IBrowserSettings browserSettings = null, IRequestContext requestContext = null, bool automaticallyCreateBrowser = true, - Action onAfterBrowserCreated = null) : this(html.ToDataUriString(), browserSettings, requestContext, automaticallyCreateBrowser, onAfterBrowserCreated) + Action onAfterBrowserCreated = null, bool useLegacyRenderHandler = true) : this(html.ToDataUriString(), browserSettings, requestContext, automaticallyCreateBrowser, onAfterBrowserCreated, useLegacyRenderHandler) { } @@ -195,10 +200,15 @@ public ChromiumWebBrowser(HtmlString html, IBrowserSettings browserSettings = nu /// this action is guranteed to be called after the browser created where as the event may be called before /// you have a chance to subscribe to the event as the CEF Browser is created async. (Issue https://github.com/cefsharp/CefSharp/issues/3552). /// + /// + /// For those using or then + /// this must be true, for those using this can be false. + /// Lower memory usage when false. Defaults to true for backwards compatability. + /// /// Cef::Initialize() failed public ChromiumWebBrowser(string address = "", IBrowserSettings browserSettings = null, IRequestContext requestContext = null, bool automaticallyCreateBrowser = true, - Action onAfterBrowserCreated = null) + Action onAfterBrowserCreated = null, bool useLegacyRenderHandler = true) { if (!Cef.IsInitialized) { @@ -223,7 +233,10 @@ public ChromiumWebBrowser(string address = "", IBrowserSettings browserSettings CreateBrowser(null, browserSettings); } - RenderHandler = new DefaultRenderHandler(this); + if (useLegacyRenderHandler) + { + RenderHandler = new DefaultRenderHandler(this); + } } /// diff --git a/CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs b/CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs index 40b47798c..670afd42f 100644 --- a/CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs +++ b/CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs @@ -22,7 +22,7 @@ Task IAsyncLifetime.DisposeAsync() Task IAsyncLifetime.InitializeAsync() { - Browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl); + Browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl, useLegacyRenderHandler: false); return Browser.WaitForInitialLoadAsync(); } diff --git a/CefSharp.Test/DevTools/DevToolsClientFacts.cs b/CefSharp.Test/DevTools/DevToolsClientFacts.cs index d7bc71b8c..8a3781164 100644 --- a/CefSharp.Test/DevTools/DevToolsClientFacts.cs +++ b/CefSharp.Test/DevTools/DevToolsClientFacts.cs @@ -35,7 +35,7 @@ public DevToolsClientFacts(ITestOutputHelper output, CefSharpFixture fixture) [Fact] public async Task CanCaptureScreenshot() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -81,7 +81,7 @@ public void CanConvertDevToolsObjectToDictionary() [Fact] public async Task CanGetDevToolsProtocolVersion() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -102,7 +102,7 @@ public async Task CanGetDevToolsProtocolVersion() [Fact] public async Task CanEmulationCanEmulate() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -118,7 +118,7 @@ public async Task CanEmulationCanEmulate() [Fact] public async Task CanGetPageNavigationHistory() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -141,7 +141,7 @@ public async Task CanGetPageNavigationHistory() [InlineData("CefSharpTest1", "CefSharp Test Cookie2", CefExample.ExampleDomain, CookieSameSite.Lax)] public async Task CanSetCookieForDomain(string name, string value, string domain, CookieSameSite sameSite) { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -157,7 +157,7 @@ public async Task CanSetCookieForDomain(string name, string value, string domain [Fact] public async Task CanUseMultipleDevToolsClientInstancesPerBrowser() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -190,7 +190,7 @@ public async Task CanUseMultipleDevToolsClientInstancesPerBrowser() [Fact] public async Task CanSetUserAgentOverride() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -259,7 +259,7 @@ public async Task CanSetUserAgentOverride() [Fact] public async Task CanSetExtraHTTPHeaders() { - using (var browser = new ChromiumWebBrowser("about:blank", automaticallyCreateBrowser: false)) + using (var browser = new ChromiumWebBrowser("about:blank", automaticallyCreateBrowser: false, useLegacyRenderHandler: false)) { await browser.CreateBrowserAsync(); @@ -307,7 +307,7 @@ public async Task CanSetExtraHTTPHeaders() [Fact] public async Task ExecuteDevToolsMethodThrowsExceptionWithInvalidMethod() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -327,7 +327,7 @@ public async Task ExecuteDevToolsMethodThrowsExceptionWithInvalidMethod() [Fact] public async Task CanGetMediaQueries() { - using (var browser = new ChromiumWebBrowser("https://cefsharp.github.io/demo/mediaqueryhover.html")) + using (var browser = new ChromiumWebBrowser("https://cefsharp.github.io/demo/mediaqueryhover.html", useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -346,7 +346,7 @@ public async Task CanGetMediaQueries() [Fact] public async Task CanRegisterMultipleEventHandlers() { - using (var browser = new ChromiumWebBrowser("about:blank", automaticallyCreateBrowser: false)) + using (var browser = new ChromiumWebBrowser("about:blank", automaticallyCreateBrowser: false, useLegacyRenderHandler: false)) { await browser.CreateBrowserAsync(); diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs index 4bc9f6839..734f58eb2 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs @@ -33,7 +33,7 @@ public EvaluateScriptAsPromiseAsyncFacts(ITestOutputHelper output, CefSharpFixtu [InlineData("var result = await fetch('./robots.txt'); return result.status;", true, "200")] public async Task CanEvaluateScriptAsPromiseAsync(string script, bool success, string expected) { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -66,7 +66,7 @@ public async Task CanEvaluateScriptAsPromiseAsync(string script, bool success, s [InlineData("function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result;", true, "CefSharp", "42")] public async Task CanEvaluateScriptAsPromiseAsyncReturnObject(string script, bool success, string expectedA, string expectedB) { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); diff --git a/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs b/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs index 904acdb3b..129679e80 100644 --- a/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs +++ b/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs @@ -28,7 +28,7 @@ public async Task CanWork() { const string expected = CefExample.HelloWorldUrl; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -54,7 +54,7 @@ public async Task CanWork() public async Task CanWaitForInvalidDomain() { const string expected = "https://notfound.cefsharp.test"; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -82,7 +82,7 @@ public async Task CanTimeout() { const string expected = "The operation has timed out."; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -104,7 +104,7 @@ public async Task CanCancel() { const string expected = "A task was canceled."; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs index f4f5528e1..fcf757566 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs @@ -49,7 +49,7 @@ public OffScreenBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixt [Fact] public async Task CanLoadGoogle() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler:false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -69,7 +69,7 @@ public async Task ShouldRespectDisposed() { ChromiumWebBrowser browser; - using (browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -94,7 +94,7 @@ public async Task ShouldRespectDisposed() [Fact] public async Task CanLoadInvalidDomain() { - using (var browser = new ChromiumWebBrowser("notfound.cefsharp.test")) + using (var browser = new ChromiumWebBrowser("notfound.cefsharp.test", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -110,7 +110,7 @@ public async Task CanLoadInvalidDomain() [Fact] public async Task CanLoadExpiredBadSsl() { - using (var browser = new ChromiumWebBrowser("https://expired.badssl.com/")) + using (var browser = new ChromiumWebBrowser("https://expired.badssl.com/", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -131,7 +131,7 @@ public void BrowserRefCountDecrementedOnDispose() var manualResetEvent = new ManualResetEvent(false); - var browser = new ChromiumWebBrowser("https://google.com"); + var browser = new ChromiumWebBrowser("https://google.com", useLegacyRenderHandler: false); browser.LoadingStateChanged += (sender, e) => { if (!e.IsLoading) @@ -158,7 +158,7 @@ public void BrowserRefCountDecrementedOnDispose() [Fact] public async Task CanCreateBrowserAsync() { - using (var chromiumWebBrowser = new ChromiumWebBrowser("http://www.google.com", automaticallyCreateBrowser: false)) + using (var chromiumWebBrowser = new ChromiumWebBrowser("http://www.google.com", automaticallyCreateBrowser: false, useLegacyRenderHandler: false)) { var browser = await chromiumWebBrowser.CreateBrowserAsync(); @@ -172,7 +172,7 @@ public async Task CanCreateBrowserAsync() [Fact] public async Task CanLoadGoogleAndEvaluateScript() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -192,7 +192,7 @@ public async Task CanLoadGoogleAndEvaluateScript() [Fact] public async Task CanEvaluateScriptInParallel() { - using (var browser = new ChromiumWebBrowser("www.google.com")) + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -226,7 +226,7 @@ public async Task CanEvaluateScriptInParallel() [InlineData("[,2,,3,,4,,,,5,,,]", new object[] { null, 2, null, 3, null, 4, null, null, null, 5, null, null })] public async Task CanEvaluateScriptAsyncReturnPartiallyEmptyArrays(string javascript, object[] expected) { - using (var browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl, useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); @@ -249,7 +249,7 @@ public async Task CrossSiteNavigationJavascriptBinding() var boundObj = new AsyncBoundObject(); - using (var browser = new ChromiumWebBrowser("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url")) + using (var browser = new ChromiumWebBrowser("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url", useLegacyRenderHandler: false)) { #if NETCOREAPP browser.JavascriptObjectRepository.Register("bound", boundObj); @@ -289,7 +289,7 @@ public async Task JavascriptBindingMultipleObjects() var objectNames = new List(); var boundObj = new AsyncBoundObject(); - using (var browser = new ChromiumWebBrowser("https://www.google.com")) + using (var browser = new ChromiumWebBrowser("https://www.google.com", useLegacyRenderHandler: false)) { browser.JavascriptObjectRepository.ResolveObject += (s, e) => { @@ -317,7 +317,7 @@ public async Task JavascriptBindingMultipleObjects() [Fact] public async Task CanEvaluateScriptAsyncWithEncodedStringArguments() { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -345,7 +345,7 @@ public async Task CanEvaluateScriptAsyncWithEncodedStringArguments() [Fact] public async Task CanMakeFrameUrlRequest() { - using (var browser = new ChromiumWebBrowser("https://code.jquery.com/jquery-3.4.1.min.js")) + using (var browser = new ChromiumWebBrowser("https://code.jquery.com/jquery-3.4.1.min.js", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -383,7 +383,7 @@ await Cef.UIThreadTaskFactory.StartNew(delegate [InlineData("https://code.jquery.com/jquery-3.4.1.min.js")] public async Task CanDownloadUrlForFrame(string url) { - using (var browser = new ChromiumWebBrowser(url)) + using (var browser = new ChromiumWebBrowser(url, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -413,7 +413,7 @@ public async Task CanDownloadFileToFolderWithoutAskingUser(string url) { var tcs = new TaskCompletionSource(TaskContinuationOptions.RunContinuationsAsynchronously); - using (var chromiumWebBrowser = new ChromiumWebBrowser(url)) + using (var chromiumWebBrowser = new ChromiumWebBrowser(url, useLegacyRenderHandler: false)) { var userTempPath = System.IO.Path.GetTempPath(); @@ -490,7 +490,7 @@ await Cef.UIThreadTaskFactory.StartNew(delegate [InlineData("http://www.google.com", "http://cefsharp.github.io/")] public async Task CanExecuteJavascriptInMainFrameAfterNavigatingToDifferentOrigin(string firstUrl, string secondUrl) { - using (var browser = new ChromiumWebBrowser(firstUrl)) + using (var browser = new ChromiumWebBrowser(firstUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -517,7 +517,7 @@ public async Task CanLoadRequestWithPostData(string url) //a web page of the same origin to use LoadRequest //When Site Isolation is disabled we can navigate to any web page //https://magpcss.org/ceforum/viewtopic.php?f=10&t=18672&p=50266#p50249 - using (var browser = new ChromiumWebBrowser("http://httpbin.org/")) + using (var browser = new ChromiumWebBrowser("http://httpbin.org/", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -562,7 +562,7 @@ public async Task CanLoadHttpWebsiteUsingProxy() .WithProxyServer("127.0.0.1", 8080) .Create(); - using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext)) + using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -598,7 +598,7 @@ public async Task CanLoadHttpWebsiteUsingSetProxyAsync() Assert.True(setProxyResponse.Success); - using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext)) + using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -650,7 +650,7 @@ await Cef.UIThreadTaskFactory.StartNew(delegate Assert.True(success); - using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext)) + using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -667,7 +667,7 @@ await Cef.UIThreadTaskFactory.StartNew(delegate [Fact] public async Task CanWaitForBrowserInitialLoadAfterLoad() { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -689,7 +689,7 @@ public async Task CanWaitForBrowserInitialLoadAfterLoad() [Fact] public async Task CanCallTryGetBrowserCoreByIdWithInvalidId() { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -703,7 +703,7 @@ public async Task CanCallTryGetBrowserCoreByIdWithInvalidId() [Fact] public async Task CanCallTryGetBrowserCoreByIdWithOwnId() { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -718,7 +718,7 @@ public async Task CanCallTryGetBrowserCoreByIdWithOwnId() [Fact] public async Task CanCaptureScreenshotAsync() { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler:false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -756,7 +756,6 @@ public async Task CanCaptureScreenshotAsync() Assert.Equal(400, screenshot.Height); } - var result4 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 100, Height = 200, Scale = 1 }); Assert.Equal(1466, browser.Size.Width); Assert.Equal(968, browser.Size.Height); @@ -795,7 +794,6 @@ public async Task CanResizeWithDeviceScalingFactor() Assert.Equal(1200, screenshot.Height); } - await browser.ResizeAsync(400, 300); Assert.Equal(400, browser.Size.Width); @@ -808,7 +806,6 @@ public async Task CanResizeWithDeviceScalingFactor() Assert.Equal(600, screenshot.Height); } - await browser.ResizeAsync(1366, 768, 1); Assert.Equal(1366, browser.Size.Width); @@ -829,7 +826,7 @@ public async Task CanLoadMultipleBrowserInstancesSequentially() { for (int i = 0; i < 1000; i++) { - using (var browser = new ChromiumWebBrowser(new HtmlString("Testing"))) + using (var browser = new ChromiumWebBrowser(new HtmlString("Testing"), useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); diff --git a/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs b/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs index 78a3b9ecb..fe32b4483 100644 --- a/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/OffScreen/WaitForRenderIdleTests.cs @@ -27,7 +27,7 @@ public async Task ShouldWork() { const int expected = 500; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler:false)) { var start = DateTime.Now; await browser.WaitForRenderIdleAsync(); @@ -50,7 +50,7 @@ public async Task ShouldWorkForManualInvalidateCalls() { const int expected = 600; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var start = DateTime.Now; @@ -87,7 +87,7 @@ public async Task ShouldWorkForManualInvalidateCalls() [Fact] public async Task ShouldRespectTimeout() { - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var exception = await Assert.ThrowsAsync(async () => { @@ -105,7 +105,7 @@ public async Task ShouldRespectCancellation() { using (var cancellationSource = new CancellationTokenSource()) - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { cancellationSource.CancelAfter(400); diff --git a/CefSharp.Test/PostMessage/IntegrationTestFacts.cs b/CefSharp.Test/PostMessage/IntegrationTestFacts.cs index 4b9d66b1a..64e4a3472 100644 --- a/CefSharp.Test/PostMessage/IntegrationTestFacts.cs +++ b/CefSharp.Test/PostMessage/IntegrationTestFacts.cs @@ -49,7 +49,7 @@ public async Task JavascriptCustomEvent(string jsEventObject, string eventToRais //Load a dummy page initially so we can then add our script using //Page.AddScriptToEvaluateOnNewDocument (via DevTools) - using (var browser = new ChromiumWebBrowser(new HtmlString("Initial Load"))) + using (var browser = new ChromiumWebBrowser(new HtmlString("Initial Load"), useLegacyRenderHandler: false)) { await browser.WaitForInitialLoadAsync(); diff --git a/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs index e05fbc511..6568c945f 100644 --- a/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs +++ b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs @@ -33,7 +33,7 @@ public async Task CanWork() const string expected = "https://folderschemehandlerfactory.test/"; using (var requestContext = new RequestContext(Cef.GetGlobalRequestContext())) - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, requestContext: requestContext)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, requestContext: requestContext, useLegacyRenderHandler: false)) { _ = await browser.WaitForInitialLoadAsync(); diff --git a/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs b/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs index e06ef8ddb..0459ed2ba 100644 --- a/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs +++ b/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs @@ -27,7 +27,7 @@ public async Task CanWork() { const string elementId = "newElement"; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -54,7 +54,7 @@ public async Task CanWorkForDelayedAction() { const string elementId = "newElement"; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -86,7 +86,7 @@ public async Task CanWorkForRemoved() { const string elementId = "content"; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -115,7 +115,7 @@ public async Task CanWorkForRemoved() [Fact] public async Task ShouldReturnTrueForRemovedNonExistingElement() { - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -133,7 +133,7 @@ public async Task CanTimeout() { const string expected = "The operation has timed out."; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -156,7 +156,7 @@ public async Task ShouldTimeoutIfNavigationOccurs() const string expected = "The operation has timed out."; const string url = CefExample.HelloWorldUrl; - using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl)) + using (var browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); @@ -182,7 +182,7 @@ public async Task ShouldRespondToNodeAttributeMutation() { var html = new HtmlString("
"); - using (var browser = new ChromiumWebBrowser(html)) + using (var browser = new ChromiumWebBrowser(html, useLegacyRenderHandler: false)) { var response = await browser.WaitForInitialLoadAsync(); From a51cdd3723eb28cfd5a22cef06ab79e83413b905 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 20 Dec 2022 11:18:03 +1000 Subject: [PATCH 190/543] Core - OnSelectClientCertificate copy certificate vector - Attempt to fix AccessViolationException by making a copy of the vector Issue #2948 --- CefSharp.Core.Runtime/Internals/ClientAdapter.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index e82095b67..71af300dc 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -726,9 +726,10 @@ namespace CefSharp } auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); - auto callbackWrapper = gcnew CefCertificateCallbackWrapper(callback, certificates); auto list = gcnew X509Certificate2Collection(); + // Create a copy of the vector in an attempt to fix #2948 + CefRequestHandler::X509CertificateList certs; std::vector >::const_iterator it = certificates.begin(); @@ -743,8 +744,12 @@ namespace CefSharp bytes->GetData(static_cast(src), byteSize, 0); auto cert = gcnew X509Certificate2(bufferByte); list->Add(cert); + + certs.push_back(*it); } + auto callbackWrapper = gcnew CefCertificateCallbackWrapper(callback, certs); + return handler->OnSelectClientCertificate( _browserControl, browserWrapper, isProxy, StringUtils::ToClr(host), port, list, callbackWrapper); From 17173587fedea4d1c86818ee87649ffa70694cc5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 24 Jan 2023 10:21:21 +1000 Subject: [PATCH 191/543] Core - Improve IBrowser.MainFrame and IBrowser.FocusedFrame null handling - When CEF added CefFrameManager support the lifespan of a frame changed, it's now possible for MainFrame/FocusedFrame to be null when the browser is closed. Issue #4368 --- .../Internals/CefBrowserWrapper.cpp | 19 +++++++++++++++++-- CefSharp/IBrowser.cs | 3 ++- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp index ca68cc7ff..db2d8023e 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp @@ -159,8 +159,15 @@ bool CefBrowserWrapper::HasDocument::get() IFrame^ CefBrowserWrapper::MainFrame::get() { ThrowIfDisposed(); + auto frame = _browser->GetMainFrame(); - return gcnew CefFrameWrapper(frame); + + if (frame.get()) + { + return gcnew CefFrameWrapper(frame); + } + + return nullptr; } /// @@ -170,7 +177,15 @@ IFrame^ CefBrowserWrapper::MainFrame::get() IFrame^ CefBrowserWrapper::FocusedFrame::get() { ThrowIfDisposed(); - return gcnew CefFrameWrapper(_browser->GetFocusedFrame()); + + auto frame = _browser->GetFocusedFrame(); + + if (frame.get()) + { + return gcnew CefFrameWrapper(frame); + } + + return nullptr; } /// diff --git a/CefSharp/IBrowser.cs b/CefSharp/IBrowser.cs index b7a418298..182167667 100644 --- a/CefSharp/IBrowser.cs +++ b/CefSharp/IBrowser.cs @@ -99,11 +99,12 @@ public interface IBrowser : IDisposable /// /// Returns the main (top-level) frame for the browser window. + /// Returns null if there is currently no MainFrame. /// IFrame MainFrame { get; } /// - /// Returns the focused frame for the browser window. + /// Returns the focused frame for the browser window or null. /// IFrame FocusedFrame { get; } From b8dbb0c0c5d0f51e639c81099bb1246967318b27 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 24 Jan 2023 10:53:22 +1000 Subject: [PATCH 192/543] WinForms - Throw InvalidOperationException if Load() called on invalid IBrowser - When IBrowser.IsValid == false throw an InvalidOperationException when an attempt to call Load() is made. Resolves #4368 --- CefSharp.WinForms/ChromiumWebBrowser.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index a0cb9e323..d39ae42d6 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -475,6 +475,11 @@ public void Load(string url) return; } + if(!browserCore.IsValid) + { + throw new InvalidOperationException("IBrowser instance is no longer valid. Control.Handle was likely destroyed."); + } + using (var frame = browserCore.MainFrame) { //Only attempt to call load if frame is valid From ca905157f7e6f190106d272c69d8020578239369 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 30 Jan 2023 11:35:43 +1000 Subject: [PATCH 193/543] Test - Simplify callback promise tests Issue #4276 --- .../JavascriptBinding/AsyncBoundObject.cs | 4 +- .../Resources/BindingTestSingle.html | 38 +-------- .../Resources/BindingTestsAsyncTask.html | 77 +------------------ 3 files changed, 8 insertions(+), 111 deletions(-) diff --git a/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs b/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs index 6ddf4b738..b9a86c287 100644 --- a/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs +++ b/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs @@ -218,7 +218,7 @@ public async void VoidReturnAsync() public async Task JavascriptCallbackEvalPromise(string msg, IJavascriptCallback callback) { - var response = await callback.ExecuteAsync(callback.Id, msg); + var response = await callback.ExecuteAsync(msg); //Echo the response return (string)response.Result; @@ -273,7 +273,7 @@ public async Task JavascriptOptionalCallbackEvalPromise(bool invokeCallb { if (invokeCallback) { - var response = await callback.ExecuteAsync(callback.Id, msg).ConfigureAwait(false); + var response = await callback.ExecuteAsync(msg).ConfigureAwait(false); //Echo the response return (string)response.Result; } diff --git a/CefSharp.Example/Resources/BindingTestSingle.html b/CefSharp.Example/Resources/BindingTestSingle.html index f98398a30..766cdfd4b 100644 --- a/CefSharp.Example/Resources/BindingTestSingle.html +++ b/CefSharp.Example/Resources/BindingTestSingle.html @@ -19,41 +19,7 @@ QUnit.test("Pass callback(promise) that is conditionally invoked:", async (assert) => { - let convertPromiseToCefSharpCallback = function (p) - { - let f = function (callbackId, ...args) - { - //We immediately return CefSharpDefEvalScriptRes as we will be - //using a promise and will call sendEvalScriptResponse when our - //promise has completed - (async function () - { - try - { - //Await the promise - let response = await p(...args); - - //We're done, let's send our response back to our .Net App - cefSharp.sendEvalScriptResponse(callbackId, true, response, true); - } - catch (err) - { - //An error occurred let's send the response back to our .Net App - cefSharp.sendEvalScriptResponse(callbackId, false, err.message, true); - } - })(); - - //Let CefSharp know we're going to be defering our response as we have some async/await - //processing to happen before our callback returns it's value - return "CefSharpDefEvalScriptRes"; - } - - return f; - } - - //The function convertPromiseToCefSharpCallback can be used in your own projects - //Pass in a function that wraps your promise, not your promise directly - let callback = convertPromiseToCefSharpCallback(function (msg) + let callback = function (msg) { return new Promise((resolve, reject) => { @@ -62,7 +28,7 @@ resolve(msg); }, 300); }); - }); + }; const expectedResult = "Callback has not been invoked"; const actualResult = await boundAsync.javascriptOptionalCallbackEvalPromise(false, expectedResult, callback); diff --git a/CefSharp.Example/Resources/BindingTestsAsyncTask.html b/CefSharp.Example/Resources/BindingTestsAsyncTask.html index 09b84eb8c..f3181cd36 100644 --- a/CefSharp.Example/Resources/BindingTestsAsyncTask.html +++ b/CefSharp.Example/Resources/BindingTestsAsyncTask.html @@ -98,42 +98,7 @@ QUnit.test("JavascriptCallback EvalPromise:", async (assert) => { - let convertPromiseToCefSharpCallback = function (p) - { - let f = function (callbackId, ...args) - { - //We immediately return CefSharpDefEvalScriptRes as we will be - //using a promise and will call sendEvalScriptResponse when our - //promise has completed - (async function () - { - try - { - //Await the promise - let response = await p(...args); - - //We're done, let's send our response back to our .Net App - cefSharp.sendEvalScriptResponse(callbackId, true, response, true); - } - catch (err) - { - //An error occurred let's send the response back to our .Net App - cefSharp.sendEvalScriptResponse(callbackId, false, err.message, true); - - } - })(); - - //Let CefSharp know we're going to be defering our response as we have some async/await - //processing to happen before our callback returns it's value - return "CefSharpDefEvalScriptRes"; - } - - return f; - } - - //The function convertPromiseToCefSharpCallback can be used in your own projects - //Pass in a function that wraps your promise, not your promise directly - let callback = convertPromiseToCefSharpCallback(function (msg) + let callback = function (msg) { return new Promise((resolve, reject) => { @@ -142,7 +107,7 @@ resolve(msg); }, 300); }); - }); + }; const expectedResult = "JavascriptCallback after promise"; const actualResult = await boundAsync.javascriptCallbackEvalPromise(expectedResult, callback); @@ -153,41 +118,7 @@ // Issue #3979 QUnit.test("JavascriptCallback conditionally EvalPromise:", async (assert) => { - let convertPromiseToCefSharpCallback = function (p) - { - let f = function (callbackId, ...args) - { - //We immediately return CefSharpDefEvalScriptRes as we will be - //using a promise and will call sendEvalScriptResponse when our - //promise has completed - (async function () - { - try - { - //Await the promise - let response = await p(...args); - - //We're done, let's send our response back to our .Net App - cefSharp.sendEvalScriptResponse(callbackId, true, response, true); - } - catch (err) - { - //An error occurred let's send the response back to our .Net App - cefSharp.sendEvalScriptResponse(callbackId, false, err.message, true); - } - })(); - - //Let CefSharp know we're going to be defering our response as we have some async/await - //processing to happen before our callback returns it's value - return "CefSharpDefEvalScriptRes"; - } - - return f; - } - - //The function convertPromiseToCefSharpCallback can be used in your own projects - //Pass in a function that wraps your promise, not your promise directly - let callback = convertPromiseToCefSharpCallback(function (msg) + let callback = function (msg) { return new Promise((resolve, reject) => { @@ -196,7 +127,7 @@ resolve(msg); }, 300); }); - }); + }; const expectedResult = "Callback has not been invoked"; const actualResult = await boundAsync.javascriptOptionalCallbackEvalPromise(false, expectedResult, callback); From 2cb65efeed325e3e7970f1b4d51cf7ffeff41a03 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 2 Feb 2023 11:13:47 +1000 Subject: [PATCH 194/543] Upgrade to 110.0.21+g6054757+chromium-110.0.5481.52 / Chromium 110.0.5481.52 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 2172dbd54..185962d06 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 1d347e585..9ec29aa5e 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index b58a633fd..2d7bb8708 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 109,1,110 - PRODUCTVERSION 109,1,110 + FILEVERSION 110,0,210 + PRODUCTVERSION 110,0,210 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "109.1.110" + VALUE "FileVersion", "110.0.210" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "109.1.110" + VALUE "ProductVersion", "110.0.210" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 982ccc0c4..15e4d8339 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 0f6c7ce45..dcc120e02 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index eef3bfd5e..6113e526d 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index c7cbc115d..541ccad9d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 88cbca55d..abba2fabe 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index dbf1d35a5..404236fdb 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 109,1,110 - PRODUCTVERSION 109,1,110 + FILEVERSION 110,0,210 + PRODUCTVERSION 110,0,210 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "109.1.110" + VALUE "FileVersion", "110.0.210" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "109.1.110" + VALUE "ProductVersion", "110.0.210" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 982ccc0c4..15e4d8339 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 0f6c7ce45..dcc120e02 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 276faef2b..ae5031375 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 15d843238..d172b10cf 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 57e1d6828..46efb22a5 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 38159ae01..bc40cf932 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 7087272a4..e3e254ba1 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 0f6c5d33c..24c1dbe83 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index fb5c99736..004869937 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 691de21c9..452795836 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 0bcd6d876..2426310a1 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 9c5025721..13c2678be 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 31e1e358e..93d829c65 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 187f23f03..7fa39cf9e 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 109.1.110 + 110.0.210 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 109.1.110 + Version 110.0.210 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index cc68397dc..98e44df4f 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "109.1.110"; - public const string AssemblyFileVersion = "109.1.110.0"; + public const string AssemblyVersion = "110.0.210"; + public const string AssemblyFileVersion = "110.0.210.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 8285859b4..e4dac5523 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index f6243ba80..59d988c7d 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index decba48ed..4a4341989 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 77d8fb13c..069ea00ff 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "109.1.11", + [string] $CefVersion = "110.0.21", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 22a21fdbe..4849a5fa2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 109.1.110-CI{build} +version: 110.0.210-CI{build} clone_depth: 10 From ee0c75368c41f61de20b802d95ad31b174204136 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 2 Feb 2023 11:27:51 +1000 Subject: [PATCH 195/543] Core - Update IPopupFeatures Upstream change see https://github.com/chromiumembedded/cef/commit/d04b5d4f8747ec68370740729922a9cd6868b8f5#diff-447d40892c51b4ffc870cf1a28bab2ae2d411752216be4750a17193e6675b26bL2182 Resolves #4383 --- CefSharp.Core.Runtime/PopupFeatures.h | 19 ++---------------- CefSharp/IPopupFeatures.cs | 28 ++------------------------- 2 files changed, 4 insertions(+), 43 deletions(-) diff --git a/CefSharp.Core.Runtime/PopupFeatures.h b/CefSharp.Core.Runtime/PopupFeatures.h index 7cdf83c3c..9099931d5 100644 --- a/CefSharp.Core.Runtime/PopupFeatures.h +++ b/CefSharp.Core.Runtime/PopupFeatures.h @@ -61,24 +61,9 @@ namespace CefSharp System::Nullable get() { return _popupFeatures->heightSet ? _popupFeatures->height : Nullable(); } } - virtual property bool MenuBarVisible + virtual property bool IsPopup { - bool get() { return _popupFeatures->menuBarVisible == 1; } - } - - virtual property bool StatusBarVisible - { - bool get() { return _popupFeatures->statusBarVisible == 1; } - } - - virtual property bool ToolBarVisible - { - bool get() { return _popupFeatures->toolBarVisible == 1; } - } - - virtual property bool ScrollbarsVisible - { - bool get() { return _popupFeatures->scrollbarsVisible == 1; } + bool get() { return _popupFeatures->isPopup == 1; } } }; } diff --git a/CefSharp/IPopupFeatures.cs b/CefSharp/IPopupFeatures.cs index 7b6877cc5..33159fa72 100644 --- a/CefSharp/IPopupFeatures.cs +++ b/CefSharp/IPopupFeatures.cs @@ -38,32 +38,8 @@ public interface IPopupFeatures /// int? Height { get; } /// - /// Gets a value indicating whether the menu bar is visible. + /// Returns true if browser interface elements should be hidden. /// - /// - /// True if menu bar visible, false if not. - /// - bool MenuBarVisible { get; } - /// - /// Gets a value indicating whether the status bar is visible. - /// - /// - /// True if status bar visible, false if not. - /// - bool StatusBarVisible { get; } - /// - /// Gets a value indicating whether the tool bar is visible. - /// - /// - /// True if tool bar visible, false if not. - /// - bool ToolBarVisible { get; } - /// - /// Gets a value indicating whether the scrollbars is visible. - /// - /// - /// True if scrollbars visible, false if not. - /// - bool ScrollbarsVisible { get; } + bool IsPopup { get; } } } From b5334f8d310c1cc222abed5c22c4157d1ec48dbc Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 2 Feb 2023 11:49:33 +1000 Subject: [PATCH 196/543] Net Core - Update RefAssembly - PopupFeatures was updated Issue #4383 --- .../CefSharp.Core.Runtime.netcore.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index 3a791103f..f1cd6b3ff 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -192,10 +192,7 @@ public partial class PopupFeatures : CefSharp.IPopupFeatures, System.IDisposable { internal PopupFeatures() { } public virtual int? Height { get { throw null; } } - public virtual bool MenuBarVisible { get { throw null; } } - public virtual bool ScrollbarsVisible { get { throw null; } } - public virtual bool StatusBarVisible { get { throw null; } } - public virtual bool ToolBarVisible { get { throw null; } } + public virtual bool IsPopup { get { throw null; } } public virtual int? Width { get { throw null; } } public virtual int? X { get { throw null; } } public virtual int? Y { get { throw null; } } From 7021a7da528b66ddec1ecf45e5e67dc6a69e3bb8 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 3 Feb 2023 10:33:41 +1000 Subject: [PATCH 197/543] WPF - Allow overriding of TooltipTextProperty change - Override the OnTooltipTextChanged method to customise display of browser tooltip Related to issue #4048 --- CefSharp.Wpf/ChromiumWebBrowser.cs | 36 +++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 155c6034f..385134d23 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -1580,12 +1580,28 @@ public string TooltipText /// The tooltip text property ///
public static readonly DependencyProperty TooltipTextProperty = - DependencyProperty.Register(nameof(TooltipText), typeof(string), typeof(ChromiumWebBrowser), new PropertyMetadata(null, (sender, e) => ((ChromiumWebBrowser)sender).OnTooltipTextChanged())); + DependencyProperty.Register(nameof(TooltipText), typeof(string), typeof(ChromiumWebBrowser), new PropertyMetadata(null, OnTooltipTextChanged)); /// - /// Called when [tooltip text changed]. + /// Handles the change. /// - private void OnTooltipTextChanged() + /// dependency object. + /// The instance containing property change data. + private static void OnTooltipTextChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) + { + var owner = (ChromiumWebBrowser)d; + var oldValue = (string)e.OldValue; + var newValue = (string)e.NewValue; + + owner.OnTooltipTextChanged(oldValue, newValue); + } + + /// + /// Called when tooltip text was changed changed. + /// + /// old value + /// new value + protected virtual void OnTooltipTextChanged(string oldValue, string newValue) { var timer = tooltipTimer; if (timer == null) @@ -1593,9 +1609,9 @@ private void OnTooltipTextChanged() return; } - if (string.IsNullOrEmpty(TooltipText)) + if (string.IsNullOrEmpty(newValue)) { - UiThreadRunAsync(() => UpdateTooltip(null), DispatcherPriority.Render); + UiThreadRunAsync(() => OpenOrCloseToolTip(null), DispatcherPriority.Render); if (timer.IsEnabled) { @@ -2103,7 +2119,7 @@ private void OnTooltipTimerTick(object sender, EventArgs e) { tooltipTimer.Stop(); - UpdateTooltip(TooltipText); + OpenOrCloseToolTip(TooltipText); } } @@ -2122,12 +2138,12 @@ private void OnTooltipClosed(object sender, RoutedEventArgs e) } /// - /// Updates the tooltip. + /// Open or Close the tooltip at the current mouse position. /// - /// The text. - private void UpdateTooltip(string text) + /// ToolTip text, if null or empty tooltip will be closed. + protected virtual void OpenOrCloseToolTip(string text) { - if (String.IsNullOrEmpty(text)) + if (string.IsNullOrEmpty(text)) { toolTip.IsOpen = false; } From 0916c757dd8f4a00241bcc9be088a1df19bf56a5 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 3 Feb 2023 10:55:02 +1000 Subject: [PATCH 198/543] WPF - Tooltip minor cleanup - Ignore tooltip change if both new/old values are null/empty - Change order so timer is stopped before hiding tooltip --- CefSharp.Wpf/ChromiumWebBrowser.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 385134d23..b7a2f8cd0 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -1609,14 +1609,21 @@ protected virtual void OnTooltipTextChanged(string oldValue, string newValue) return; } - if (string.IsNullOrEmpty(newValue)) + // There are cases where oldValue is null and newValue is string.Empty + // and vice versa, simply ignore when string.IsNullOrEmpty for both. + if (string.IsNullOrEmpty(oldValue) && string.IsNullOrEmpty(newValue)) { - UiThreadRunAsync(() => OpenOrCloseToolTip(null), DispatcherPriority.Render); + return; + } + if (string.IsNullOrEmpty(newValue)) + { if (timer.IsEnabled) { timer.Stop(); } + + OpenOrCloseToolTip(null); } else if (!timer.IsEnabled) { @@ -2145,7 +2152,10 @@ protected virtual void OpenOrCloseToolTip(string text) { if (string.IsNullOrEmpty(text)) { - toolTip.IsOpen = false; + if (toolTip.IsOpen) + { + toolTip.IsOpen = false; + } } else { From 91d9981ff24035fd8d6e019e23e1f868efdbb85e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 6 Feb 2023 12:08:02 +1000 Subject: [PATCH 199/543] Upgrade to 110.0.22+gb3f93d5+chromium-110.0.5481.77 / Chromium 110.0.5481.77 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 185962d06..55d33cb14 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 9ec29aa5e..cc9ac8902 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 2d7bb8708..2358f9a65 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,210 - PRODUCTVERSION 110,0,210 + FILEVERSION 110,0,220 + PRODUCTVERSION 110,0,220 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "110.0.210" + VALUE "FileVersion", "110.0.220" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.210" + VALUE "ProductVersion", "110.0.220" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 15e4d8339..8a074ae34 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index dcc120e02..0aa334595 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 6113e526d..8efbf5bf9 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 541ccad9d..0a8d6744b 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index abba2fabe..3a6bc7034 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 404236fdb..76fe2200d 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,210 - PRODUCTVERSION 110,0,210 + FILEVERSION 110,0,220 + PRODUCTVERSION 110,0,220 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "110.0.210" + VALUE "FileVersion", "110.0.220" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.210" + VALUE "ProductVersion", "110.0.220" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 15e4d8339..8a074ae34 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index dcc120e02..0aa334595 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index ae5031375..ab367e8bf 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index d172b10cf..dc4e7e96c 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 46efb22a5..e79f3b6ad 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index bc40cf932..71bb1a132 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index e3e254ba1..4b70efb4c 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 24c1dbe83..8c877b36d 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 004869937..ec4060908 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 452795836..4e0e424b1 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 2426310a1..f6aef22f8 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 13c2678be..5abe63d23 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 93d829c65..e703d0b1e 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 7fa39cf9e..00c06d936 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 110.0.210 + 110.0.220 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 110.0.210 + Version 110.0.220 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 98e44df4f..dabb1f219 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "110.0.210"; - public const string AssemblyFileVersion = "110.0.210.0"; + public const string AssemblyVersion = "110.0.220"; + public const string AssemblyFileVersion = "110.0.220.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index e4dac5523..e3ad6c327 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 59d988c7d..f9b5f784a 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 4a4341989..b62e247c7 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 069ea00ff..022056127 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "110.0.21", + [string] $CefVersion = "110.0.22", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 4849a5fa2..919e90ecb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 110.0.210-CI{build} +version: 110.0.220-CI{build} clone_depth: 10 From 929039e9e3ca14aad0583b4540aa6ef9cc0365af Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 7 Feb 2023 05:51:31 +1000 Subject: [PATCH 200/543] README.md - Update M110 release imminent --- .github/ISSUE_TEMPLATE/bug_report.md | 10 +++++----- CONTRIBUTING.md | 6 +++--- README.md | 6 ++++-- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 71f330fe1..fbaecea62 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -31,9 +31,9 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 107.1.90 or greater. + - Please only create an issue if you can reproduce the problem with version 109.1.110 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 107.1.90 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 109.1.110 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** @@ -68,9 +68,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a4f0a483b..1dc6fb7cb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_108.4.13%2Bga98cd4c%2Bchromium-108.0.5359.125_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 6c5eb3207..d150fd835 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,10 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5359 | 2019* | 4.5.2** | Development | -| [cefsharp/108](https://github.com/cefsharp/CefSharp/tree/cefsharp/108)| 5359 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5481 | 2019* | 4.5.2** | Development | +| [cefsharp/110](https://github.com/cefsharp/CefSharp/tree/cefsharp/110)| 5481 | 2019* | 4.5.2** | **Release** | +| [cefsharp/109](https://github.com/cefsharp/CefSharp/tree/cefsharp/109)| 5414 | 2019* | 4.5.2** | Unsupported | +| [cefsharp/108](https://github.com/cefsharp/CefSharp/tree/cefsharp/108)| 5359 | 2019* | 4.5.2** | Unsupported | | [cefsharp/107](https://github.com/cefsharp/CefSharp/tree/cefsharp/107)| 5304 | 2019* | 4.5.2** | Unsupported | | [cefsharp/106](https://github.com/cefsharp/CefSharp/tree/cefsharp/106)| 5249 | 2019* | 4.5.2** | Unsupported | | [cefsharp/105](https://github.com/cefsharp/CefSharp/tree/cefsharp/105)| 5195 | 2019* | 4.5.2** | Unsupported | From 2c141e0fc7123897edfa471d44811b0647859d28 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 7 Feb 2023 05:59:19 +1000 Subject: [PATCH 201/543] DevTools Client - Update to 110.0.5481.77 --- CefSharp/DevTools/DevToolsClient.Generated.cs | 362 ++++++++++++++--- .../DevToolsClient.Generated.netcore.cs | 366 +++++++++++++++--- 2 files changed, 632 insertions(+), 96 deletions(-) diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp/DevTools/DevToolsClient.Generated.cs index 06a89cfaa..c431a7dc4 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 109.0.5414.87 +// CHROMIUM VERSION 110.0.5481.77 namespace CefSharp.DevTools.Accessibility { /// @@ -1327,7 +1327,12 @@ public enum CookieExclusionReason /// ExcludeDomainNonASCII /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeDomainNonASCII"))] - ExcludeDomainNonASCII + ExcludeDomainNonASCII, + /// + /// ExcludeThirdPartyCookieBlockedInFirstPartySet + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeThirdPartyCookieBlockedInFirstPartySet"))] + ExcludeThirdPartyCookieBlockedInFirstPartySet } /// @@ -2759,7 +2764,12 @@ public enum GenericIssueErrorType /// CrossOriginPortalPostMessageError /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginPortalPostMessageError"))] - CrossOriginPortalPostMessageError + CrossOriginPortalPostMessageError, + /// + /// FormLabelForNameError + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormLabelForNameError"))] + FormLabelForNameError } /// @@ -2803,6 +2813,16 @@ public string FrameId get; set; } + + /// + /// ViolatingNodeId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("violatingNodeId"), IsRequired = (false))] + public int? ViolatingNodeId + { + get; + set; + } } /// @@ -3210,45 +3230,45 @@ public enum FederatedAuthRequestIssueReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TooManyRequests"))] TooManyRequests, /// - /// ManifestListHttpNotFound + /// WellKnownHttpNotFound /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListHttpNotFound"))] - ManifestListHttpNotFound, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownHttpNotFound"))] + WellKnownHttpNotFound, /// - /// ManifestListNoResponse + /// WellKnownNoResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListNoResponse"))] - ManifestListNoResponse, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownNoResponse"))] + WellKnownNoResponse, /// - /// ManifestListInvalidResponse + /// WellKnownInvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListInvalidResponse"))] - ManifestListInvalidResponse, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownInvalidResponse"))] + WellKnownInvalidResponse, /// - /// ManifestNotInManifestList + /// ConfigNotInWellKnown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestNotInManifestList"))] - ManifestNotInManifestList, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigNotInWellKnown"))] + ConfigNotInWellKnown, /// - /// ManifestListTooBig + /// WellKnownTooBig /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestListTooBig"))] - ManifestListTooBig, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownTooBig"))] + WellKnownTooBig, /// - /// ManifestHttpNotFound + /// ConfigHttpNotFound /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestHttpNotFound"))] - ManifestHttpNotFound, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigHttpNotFound"))] + ConfigHttpNotFound, /// - /// ManifestNoResponse + /// ConfigNoResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestNoResponse"))] - ManifestNoResponse, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigNoResponse"))] + ConfigNoResponse, /// - /// ManifestInvalidResponse + /// ConfigInvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ManifestInvalidResponse"))] - ManifestInvalidResponse, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigInvalidResponse"))] + ConfigInvalidResponse, /// /// ClientMetadataHttpNotFound /// @@ -3864,6 +3884,16 @@ public System.Collections.Generic.IList + /// Storage key this event belongs to. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + public string StorageKey + { + get; + set; + } } /// @@ -4181,7 +4211,12 @@ public enum PermissionSetting /// denied /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("denied"))] - Denied + Denied, + /// + /// prompt + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("prompt"))] + Prompt } /// @@ -6355,6 +6390,16 @@ public string SecurityOrigin set; } + /// + /// Storage key of the cache. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + public string StorageKey + { + get; + set; + } + /// /// The name of the cache. /// @@ -9538,11 +9583,6 @@ public enum DisabledImageType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("avif"))] Avif, /// - /// jxl - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("jxl"))] - Jxl, - /// /// webp /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webp"))] @@ -13569,6 +13609,11 @@ public enum SetCookieBlockedReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UserPreferences"))] UserPreferences, /// + /// ThirdPartyBlockedInFirstPartySet + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ThirdPartyBlockedInFirstPartySet"))] + ThirdPartyBlockedInFirstPartySet, + /// /// SyntaxError /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SyntaxError"))] @@ -13676,6 +13721,11 @@ public enum CookieBlockedReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UserPreferences"))] UserPreferences, /// + /// ThirdPartyBlockedInFirstPartySet + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ThirdPartyBlockedInFirstPartySet"))] + ThirdPartyBlockedInFirstPartySet, + /// /// UnknownError /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnknownError"))] @@ -16554,6 +16604,11 @@ public enum TrustTokenOperationDoneStatus [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unavailable"))] Unavailable, /// + /// Unauthorized + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unauthorized"))] + Unauthorized, + /// /// BadResponse /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BadResponse"))] @@ -18525,6 +18580,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage"))] SharedStorage, /// + /// smart-card + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("smart-card"))] + SmartCard, + /// /// storage-access /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storage-access"))] @@ -20697,6 +20757,11 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Dummy"))] Dummy, /// + /// AuthorizationHeader + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AuthorizationHeader"))] + AuthorizationHeader, + /// /// ContentSecurityHandler /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentSecurityHandler"))] @@ -21179,6 +21244,11 @@ public enum PrerenderFinalStatus [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationNavigationParameterMismatch"))] ActivationNavigationParameterMismatch, /// + /// ActivatedInBackground + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivatedInBackground"))] + ActivatedInBackground, + /// /// EmbedderHostDisallowed /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderHostDisallowed"))] @@ -23762,6 +23832,11 @@ public enum InterestGroupAccessType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("update"))] Update, /// + /// loaded + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("loaded"))] + Loaded, + /// /// bid /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bid"))] @@ -24245,6 +24320,16 @@ public string Origin private set; } + /// + /// Storage key to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + public string StorageKey + { + get; + private set; + } + /// /// Name of cache in origin. /// @@ -24271,6 +24356,16 @@ public string Origin get; private set; } + + /// + /// Storage key to update. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + public string StorageKey + { + get; + private set; + } } /// @@ -25585,8 +25680,8 @@ public double? Value } /// - /// Contains an bucket of collected trace events. When tracing is stopped collected events will be - /// send as a sequence of dataCollected events followed by tracingComplete event. + /// Contains a bucket of collected trace events. When tracing is stopped collected events will be + /// sent as a sequence of dataCollected events followed by tracingComplete event. /// [System.Runtime.Serialization.DataContractAttribute] public class DataCollectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase @@ -27406,6 +27501,60 @@ public byte[] LargeBlob set; } } + + /// + /// Triggered when a credential is added to an authenticator. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CredentialAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("authenticatorId"), IsRequired = (true))] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// Credential + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("credential"), IsRequired = (true))] + public CefSharp.DevTools.WebAuthn.Credential Credential + { + get; + private set; + } + } + + /// + /// Triggered when a credential is used in a webauthn assertion. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CredentialAssertedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("authenticatorId"), IsRequired = (true))] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// Credential + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("credential"), IsRequired = (true))] + public CefSharp.DevTools.WebAuthn.Credential Credential + { + get; + private set; + } + } } namespace CefSharp.DevTools.Media @@ -34600,17 +34749,27 @@ public System.Threading.Tasks.Task DeleteEntryAsync(stri return _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteEntry", dict); } - partial void ValidateRequestCacheNames(string securityOrigin); + partial void ValidateRequestCacheNames(string securityOrigin = null, string storageKey = null); /// /// Requests cache names. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<RequestCacheNamesResponse> - public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin) + public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin = null, string storageKey = null) { - ValidateRequestCacheNames(securityOrigin); + ValidateRequestCacheNames(securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + return _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCacheNames", dict); } @@ -43480,15 +43639,20 @@ public enum SetSPCTransactionModeMode [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] None, /// - /// autoaccept + /// autoAccept + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoAccept"))] + AutoAccept, + /// + /// autoReject /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoaccept"))] - Autoaccept, + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoReject"))] + AutoReject, /// - /// autoreject + /// autoOptOut /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoreject"))] - Autoreject + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoOptOut"))] + AutoOptOut } /// @@ -45776,6 +45940,20 @@ public System.Threading.Tasks.Task TrackCacheStorageForO return _client.ExecuteDevToolsMethodAsync("Storage.trackCacheStorageForOrigin", dict); } + partial void ValidateTrackCacheStorageForStorageKey(string storageKey); + /// + /// Registers storage key to be notified when an update occurs to its cache storage list. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TrackCacheStorageForStorageKeyAsync(string storageKey) + { + ValidateTrackCacheStorageForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.trackCacheStorageForStorageKey", dict); + } + partial void ValidateTrackIndexedDBForOrigin(string origin); /// /// Registers origin to be notified when an update occurs to its IndexedDB. @@ -45818,6 +45996,20 @@ public System.Threading.Tasks.Task UntrackCacheStorageFo return _client.ExecuteDevToolsMethodAsync("Storage.untrackCacheStorageForOrigin", dict); } + partial void ValidateUntrackCacheStorageForStorageKey(string storageKey); + /// + /// Unregisters storage key from receiving notifications for cache storage. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task UntrackCacheStorageForStorageKeyAsync(string storageKey) + { + ValidateUntrackCacheStorageForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.untrackCacheStorageForStorageKey", dict); + } + partial void ValidateUntrackIndexedDBForOrigin(string origin); /// /// Unregisters origin from receiving notifications for IndexedDB. @@ -46082,6 +46274,34 @@ public string CommandLine } } +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// GetFeatureStateResponse + /// + [System.Runtime.Serialization.DataContractAttribute] + public class GetFeatureStateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + [System.Runtime.Serialization.DataMemberAttribute] + internal bool featureEnabled + { + get; + set; + } + + /// + /// featureEnabled + /// + public bool FeatureEnabled + { + get + { + return featureEnabled; + } + } + } +} + namespace CefSharp.DevTools.SystemInfo { /// @@ -46139,6 +46359,20 @@ public System.Threading.Tasks.Task GetInfoAsync() return _client.ExecuteDevToolsMethodAsync("SystemInfo.getInfo", dict); } + partial void ValidateGetFeatureState(string featureState); + /// + /// Returns information about the feature state. + /// + /// featureState + /// returns System.Threading.Tasks.Task<GetFeatureStateResponse> + public System.Threading.Tasks.Task GetFeatureStateAsync(string featureState) + { + ValidateGetFeatureState(featureState); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("featureState", featureState); + return _client.ExecuteDevToolsMethodAsync("SystemInfo.getFeatureState", dict); + } + /// /// Returns information about all running processes. /// @@ -47055,8 +47289,8 @@ public event System.EventHandler BufferUsage } /// - /// Contains an bucket of collected trace events. When tracing is stopped collected events will be - /// send as a sequence of dataCollected events followed by tracingComplete event. + /// Contains a bucket of collected trace events. When tracing is stopped collected events will be + /// sent as a sequence of dataCollected events followed by tracingComplete event. /// public event System.EventHandler DataCollected { @@ -47976,6 +48210,38 @@ public WebAuthnClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } + /// + /// Triggered when a credential is added to an authenticator. + /// + public event System.EventHandler CredentialAdded + { + add + { + _client.AddEventHandler("WebAuthn.credentialAdded", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialAdded", value); + } + } + + /// + /// Triggered when a credential is used in a webauthn assertion. + /// + public event System.EventHandler CredentialAsserted + { + add + { + _client.AddEventHandler("WebAuthn.credentialAsserted", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialAsserted", value); + } + } + partial void ValidateEnable(bool? enableUI = null); /// /// Enable the WebAuthn domain and start intercepting credential storage and diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs index 86e589092..5d71b13c8 100644 --- a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 109.0.5414.87 +// CHROMIUM VERSION 110.0.5481.77 namespace CefSharp.DevTools.Accessibility { /// @@ -1256,7 +1256,12 @@ public enum CookieExclusionReason /// ExcludeDomainNonASCII /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeDomainNonASCII")] - ExcludeDomainNonASCII + ExcludeDomainNonASCII, + /// + /// ExcludeThirdPartyCookieBlockedInFirstPartySet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeThirdPartyCookieBlockedInFirstPartySet")] + ExcludeThirdPartyCookieBlockedInFirstPartySet } /// @@ -2480,7 +2485,12 @@ public enum GenericIssueErrorType /// CrossOriginPortalPostMessageError /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginPortalPostMessageError")] - CrossOriginPortalPostMessageError + CrossOriginPortalPostMessageError, + /// + /// FormLabelForNameError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormLabelForNameError")] + FormLabelForNameError } /// @@ -2507,6 +2517,16 @@ public string FrameId get; set; } + + /// + /// ViolatingNodeId + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatingNodeId")] + public int? ViolatingNodeId + { + get; + set; + } } /// @@ -2881,45 +2901,45 @@ public enum FederatedAuthRequestIssueReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("TooManyRequests")] TooManyRequests, /// - /// ManifestListHttpNotFound + /// WellKnownHttpNotFound /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListHttpNotFound")] - ManifestListHttpNotFound, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownHttpNotFound")] + WellKnownHttpNotFound, /// - /// ManifestListNoResponse + /// WellKnownNoResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListNoResponse")] - ManifestListNoResponse, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownNoResponse")] + WellKnownNoResponse, /// - /// ManifestListInvalidResponse + /// WellKnownInvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListInvalidResponse")] - ManifestListInvalidResponse, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownInvalidResponse")] + WellKnownInvalidResponse, /// - /// ManifestNotInManifestList + /// ConfigNotInWellKnown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestNotInManifestList")] - ManifestNotInManifestList, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigNotInWellKnown")] + ConfigNotInWellKnown, /// - /// ManifestListTooBig + /// WellKnownTooBig /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestListTooBig")] - ManifestListTooBig, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownTooBig")] + WellKnownTooBig, /// - /// ManifestHttpNotFound + /// ConfigHttpNotFound /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestHttpNotFound")] - ManifestHttpNotFound, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigHttpNotFound")] + ConfigHttpNotFound, /// - /// ManifestNoResponse + /// ConfigNoResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestNoResponse")] - ManifestNoResponse, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigNoResponse")] + ConfigNoResponse, /// - /// ManifestInvalidResponse + /// ConfigInvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ManifestInvalidResponse")] - ManifestInvalidResponse, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigInvalidResponse")] + ConfigInvalidResponse, /// /// ClientMetadataHttpNotFound /// @@ -3492,6 +3512,17 @@ public System.Collections.Generic.IList + /// Storage key this event belongs to. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StorageKey + { + get; + set; + } } /// @@ -3778,7 +3809,12 @@ public enum PermissionSetting /// denied /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("denied")] - Denied + Denied, + /// + /// prompt + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("prompt")] + Prompt } /// @@ -5846,6 +5882,17 @@ public string SecurityOrigin set; } + /// + /// Storage key of the cache. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StorageKey + { + get; + set; + } + /// /// The name of the cache. /// @@ -8968,11 +9015,6 @@ public enum DisabledImageType [System.Text.Json.Serialization.JsonPropertyNameAttribute("avif")] Avif, /// - /// jxl - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jxl")] - Jxl, - /// /// webp /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] @@ -12658,6 +12700,11 @@ public enum SetCookieBlockedReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("UserPreferences")] UserPreferences, /// + /// ThirdPartyBlockedInFirstPartySet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ThirdPartyBlockedInFirstPartySet")] + ThirdPartyBlockedInFirstPartySet, + /// /// SyntaxError /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("SyntaxError")] @@ -12765,6 +12812,11 @@ public enum CookieBlockedReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("UserPreferences")] UserPreferences, /// + /// ThirdPartyBlockedInFirstPartySet + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ThirdPartyBlockedInFirstPartySet")] + ThirdPartyBlockedInFirstPartySet, + /// /// UnknownError /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnknownError")] @@ -15367,6 +15419,11 @@ public enum TrustTokenOperationDoneStatus [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unavailable")] Unavailable, /// + /// Unauthorized + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unauthorized")] + Unauthorized, + /// /// BadResponse /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("BadResponse")] @@ -17243,6 +17300,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage")] SharedStorage, /// + /// smart-card + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("smart-card")] + SmartCard, + /// /// storage-access /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("storage-access")] @@ -19262,6 +19324,11 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("Dummy")] Dummy, /// + /// AuthorizationHeader + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AuthorizationHeader")] + AuthorizationHeader, + /// /// ContentSecurityHandler /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentSecurityHandler")] @@ -19713,6 +19780,11 @@ public enum PrerenderFinalStatus [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationNavigationParameterMismatch")] ActivationNavigationParameterMismatch, /// + /// ActivatedInBackground + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivatedInBackground")] + ActivatedInBackground, + /// /// EmbedderHostDisallowed /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderHostDisallowed")] @@ -22100,6 +22172,11 @@ public enum InterestGroupAccessType [System.Text.Json.Serialization.JsonPropertyNameAttribute("update")] Update, /// + /// loaded + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaded")] + Loaded, + /// /// bid /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("bid")] @@ -22590,6 +22667,18 @@ public string Origin private set; } + /// + /// Storage key to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StorageKey + { + get; + private set; + } + /// /// Name of cache in origin. /// @@ -22619,6 +22708,18 @@ public string Origin get; private set; } + + /// + /// Storage key to update. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StorageKey + { + get; + private set; + } } /// @@ -23907,8 +24008,8 @@ public double? Value } /// - /// Contains an bucket of collected trace events. When tracing is stopped collected events will be - /// send as a sequence of dataCollected events followed by tracingComplete event. + /// Contains a bucket of collected trace events. When tracing is stopped collected events will be + /// sent as a sequence of dataCollected events followed by tracingComplete event. /// public class DataCollectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { @@ -25527,6 +25628,66 @@ public byte[] LargeBlob set; } } + + /// + /// Triggered when a credential is added to an authenticator. + /// + public class CredentialAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("authenticatorId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// Credential + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("credential")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.WebAuthn.Credential Credential + { + get; + private set; + } + } + + /// + /// Triggered when a credential is used in a webauthn assertion. + /// + public class CredentialAssertedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("authenticatorId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// Credential + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("credential")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.WebAuthn.Credential Credential + { + get; + private set; + } + } } namespace CefSharp.DevTools.Media @@ -32122,17 +32283,27 @@ public System.Threading.Tasks.Task DeleteEntryAsync(stri return _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteEntry", dict); } - partial void ValidateRequestCacheNames(string securityOrigin); + partial void ValidateRequestCacheNames(string securityOrigin = null, string storageKey = null); /// /// Requests cache names. /// - /// Security origin. + /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// Storage key. /// returns System.Threading.Tasks.Task<RequestCacheNamesResponse> - public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin) + public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin = null, string storageKey = null) { - ValidateRequestCacheNames(securityOrigin); + ValidateRequestCacheNames(securityOrigin, storageKey); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("securityOrigin", securityOrigin); + if (!(string.IsNullOrEmpty(securityOrigin))) + { + dict.Add("securityOrigin", securityOrigin); + } + + if (!(string.IsNullOrEmpty(storageKey))) + { + dict.Add("storageKey", storageKey); + } + return _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCacheNames", dict); } @@ -40113,15 +40284,20 @@ public enum SetSPCTransactionModeMode [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] None, /// - /// autoaccept + /// autoAccept + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoAccept")] + AutoAccept, + /// + /// autoReject /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoaccept")] - Autoaccept, + [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoReject")] + AutoReject, /// - /// autoreject + /// autoOptOut /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoreject")] - Autoreject + [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoOptOut")] + AutoOptOut } /// @@ -42316,6 +42492,20 @@ public System.Threading.Tasks.Task TrackCacheStorageForO return _client.ExecuteDevToolsMethodAsync("Storage.trackCacheStorageForOrigin", dict); } + partial void ValidateTrackCacheStorageForStorageKey(string storageKey); + /// + /// Registers storage key to be notified when an update occurs to its cache storage list. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TrackCacheStorageForStorageKeyAsync(string storageKey) + { + ValidateTrackCacheStorageForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.trackCacheStorageForStorageKey", dict); + } + partial void ValidateTrackIndexedDBForOrigin(string origin); /// /// Registers origin to be notified when an update occurs to its IndexedDB. @@ -42358,6 +42548,20 @@ public System.Threading.Tasks.Task UntrackCacheStorageFo return _client.ExecuteDevToolsMethodAsync("Storage.untrackCacheStorageForOrigin", dict); } + partial void ValidateUntrackCacheStorageForStorageKey(string storageKey); + /// + /// Unregisters storage key from receiving notifications for cache storage. + /// + /// Storage key. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task UntrackCacheStorageForStorageKeyAsync(string storageKey) + { + ValidateUntrackCacheStorageForStorageKey(storageKey); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + return _client.ExecuteDevToolsMethodAsync("Storage.untrackCacheStorageForStorageKey", dict); + } + partial void ValidateUntrackIndexedDBForOrigin(string origin); /// /// Unregisters origin from receiving notifications for IndexedDB. @@ -42593,6 +42797,26 @@ public string CommandLine } } +namespace CefSharp.DevTools.SystemInfo +{ + /// + /// GetFeatureStateResponse + /// + public class GetFeatureStateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + { + /// + /// featureEnabled + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("featureEnabled")] + public bool FeatureEnabled + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.SystemInfo { /// @@ -42642,6 +42866,20 @@ public System.Threading.Tasks.Task GetInfoAsync() return _client.ExecuteDevToolsMethodAsync("SystemInfo.getInfo", dict); } + partial void ValidateGetFeatureState(string featureState); + /// + /// Returns information about the feature state. + /// + /// featureState + /// returns System.Threading.Tasks.Task<GetFeatureStateResponse> + public System.Threading.Tasks.Task GetFeatureStateAsync(string featureState) + { + ValidateGetFeatureState(featureState); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("featureState", featureState); + return _client.ExecuteDevToolsMethodAsync("SystemInfo.getFeatureState", dict); + } + /// /// Returns information about all running processes. /// @@ -43471,8 +43709,8 @@ public event System.EventHandler BufferUsage } /// - /// Contains an bucket of collected trace events. When tracing is stopped collected events will be - /// send as a sequence of dataCollected events followed by tracingComplete event. + /// Contains a bucket of collected trace events. When tracing is stopped collected events will be + /// sent as a sequence of dataCollected events followed by tracingComplete event. /// public event System.EventHandler DataCollected { @@ -44337,6 +44575,38 @@ public WebAuthnClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } + /// + /// Triggered when a credential is added to an authenticator. + /// + public event System.EventHandler CredentialAdded + { + add + { + _client.AddEventHandler("WebAuthn.credentialAdded", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialAdded", value); + } + } + + /// + /// Triggered when a credential is used in a webauthn assertion. + /// + public event System.EventHandler CredentialAsserted + { + add + { + _client.AddEventHandler("WebAuthn.credentialAsserted", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialAsserted", value); + } + } + partial void ValidateEnable(bool? enableUI = null); /// /// Enable the WebAuthn domain and start intercepting credential storage and From 7edc164206a5aea28918ecca0d115d20df4934b3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 10 Feb 2023 06:17:40 +1000 Subject: [PATCH 202/543] Upgrade to 110.0.25+g75b1c96+chromium-110.0.5481.78 / Chromium 110.0.5481.78 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 55d33cb14..36741f724 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index cc9ac8902..e77cd390b 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 2358f9a65..6ee68ac3e 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,220 - PRODUCTVERSION 110,0,220 + FILEVERSION 110,0,250 + PRODUCTVERSION 110,0,250 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "110.0.220" + VALUE "FileVersion", "110.0.250" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.220" + VALUE "ProductVersion", "110.0.250" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 8a074ae34..0cf0d8e33 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 0aa334595..b1d8e52b5 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 8efbf5bf9..782010882 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 0a8d6744b..ae02a5100 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 3a6bc7034..0fa9a4a25 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 76fe2200d..766ebb5b0 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,220 - PRODUCTVERSION 110,0,220 + FILEVERSION 110,0,250 + PRODUCTVERSION 110,0,250 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "110.0.220" + VALUE "FileVersion", "110.0.250" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.220" + VALUE "ProductVersion", "110.0.250" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 8a074ae34..0cf0d8e33 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 0aa334595..b1d8e52b5 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index ab367e8bf..3c04650dc 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index dc4e7e96c..4cb55d4fe 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index e79f3b6ad..82906aa1e 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 71bb1a132..f0026d9c6 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 4b70efb4c..a6888d072 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 8c877b36d..f75fc79fc 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index ec4060908..d8e843fbf 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 4e0e424b1..7ae679e1f 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index f6aef22f8..e53750716 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 5abe63d23..e63d7b65a 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index e703d0b1e..66b21509c 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 00c06d936..af284ccdd 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 110.0.220 + 110.0.250 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 110.0.220 + Version 110.0.250 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index dabb1f219..ba530daea 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "110.0.220"; - public const string AssemblyFileVersion = "110.0.220.0"; + public const string AssemblyVersion = "110.0.250"; + public const string AssemblyFileVersion = "110.0.250.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index e3ad6c327..427a3339c 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index f9b5f784a..7c97c771d 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index b62e247c7..160f5056d 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 022056127..b32fdd422 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "110.0.22", + [string] $CefVersion = "110.0.25", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 919e90ecb..d3b26a79e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 110.0.220-CI{build} +version: 110.0.250-CI{build} clone_depth: 10 From cafd378859ef514ffe7bdc3b5ab6d67496509442 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 15 Feb 2023 13:45:07 +1000 Subject: [PATCH 203/543] Test - Code Cleanup - Start splitting tests out into own files where relevant - Improve call ordering - Use Assert.RaisesAsync where possible - Classes have been renamed (Tests is now the standard suffix) TODO: Some of the classes still need their method names changed --- CefSharp.Test/BrowserTests.cs | 47 + .../ChromiumWebBrowserOffScreenFixture.cs | 30 - .../CookieManager/CookieManagerFacts.cs | 65 -- .../CookieManager/CookieManagerTests.cs | 220 +++++ ...sClientFacts.cs => DevToolsClientTests.cs} | 4 +- .../{HeadersFacts.cs => HeadersTests.cs} | 2 +- ...tensionFacts.cs => AsyncExtensionTests.cs} | 7 +- .../{BinderFacts.cs => BinderTests.cs} | 2 +- ...ts.cs => CamelCaseNamingConverterTests.cs} | 2 +- ...TimeUtilsFacts.cs => CefTimeUtilsTests.cs} | 4 +- ....cs => ConcurrentMethodRunnerQueueTest.cs} | 4 +- ...{HasHandlerFacts.cs => HasHandlerTests.cs} | 2 +- ...yCamelCaseJavascriptNameConverterTests.cs} | 2 +- ...ueueFacts.cs => MethodRunnerQueueTests.cs} | 2 +- ...appingFacts.cs => MimeTypeMappingTests.cs} | 2 +- .../{ParseUrlFacts.cs => ParseUrlTests.cs} | 4 +- .../{PathCheckFacts.cs => PathCheckTests.cs} | 2 +- ...Facts.cs => RequestContextBuilderTests.cs} | 4 +- ...cts.cs => RequestContextExtensionTests.cs} | 4 +- ...ContextFacts.cs => RequestContextTests.cs} | 2 +- .../EvaluateScriptAsPromiseAsyncFacts.cs | 95 -- .../EvaluateScriptAsPromiseAsyncTest.cs | 69 ++ .../Javascript/EvaluateScriptAsyncFacts.cs | 177 ---- .../Javascript/EvaluateScriptAsyncTests.cs | 244 +++++ ...ackFacts.cs => JavascriptCallbackTests.cs} | 74 +- .../JavascriptBinding/BindingTestObject.cs | 17 + ...rationTestFacts.cs => IntegrationTests.cs} | 143 +-- ....cs => JavaScriptObjectRepositoryTests.cs} | 6 +- .../JavascriptBindingTests.cs | 211 +++++ .../OffScreen/BrowserRefCountTests.cs | 58 ++ .../OffScreen/DownloadHandlerTests.cs | 71 ++ .../OffScreen/OffScreenBrowserBasicFacts.cs | 843 ------------------ .../OffScreen/OffScreenBrowserTests.cs | 317 +++++++ .../OffScreen/RequestContextTests.cs | 134 +++ CefSharp.Test/OffScreen/ScreenshotTests.cs | 131 +++ .../PostMessage/IntegrationTestFacts.cs | 79 -- CefSharp.Test/PostMessage/PostMessageTests.cs | 79 ++ .../RequestContextIsolatedBrowserTests.cs | 23 + .../FolderSchemeHandlerFactoryTests.cs | 4 +- .../Selector/WaitForSelectorAsyncTests.cs | 4 + CefSharp.Test/UrlRequest/UrlRequestTests.cs | 57 ++ CefSharp.Test/WebBrowserTestExtensions.cs | 10 + CefSharp.Test/WinForms/RequestContextTests.cs | 69 ++ ...rBasicFacts.cs => WinFormsBrowserTests.cs} | 60 +- CefSharp.Test/Wpf/RequestContextTests.cs | 66 ++ ...rowserBasicFacts.cs => WpfBrowserTests.cs} | 59 +- 46 files changed, 1900 insertions(+), 1611 deletions(-) create mode 100644 CefSharp.Test/BrowserTests.cs delete mode 100644 CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs delete mode 100644 CefSharp.Test/CookieManager/CookieManagerFacts.cs create mode 100644 CefSharp.Test/CookieManager/CookieManagerTests.cs rename CefSharp.Test/DevTools/{DevToolsClientFacts.cs => DevToolsClientTests.cs} (99%) rename CefSharp.Test/DevTools/{HeadersFacts.cs => HeadersTests.cs} (99%) rename CefSharp.Test/Framework/{AsyncExtensionFacts.cs => AsyncExtensionTests.cs} (94%) rename CefSharp.Test/Framework/{BinderFacts.cs => BinderTests.cs} (99%) rename CefSharp.Test/Framework/{CamelCaseNamingConverterFacts.cs => CamelCaseNamingConverterTests.cs} (96%) rename CefSharp.Test/Framework/{CefTimeUtilsFacts.cs => CefTimeUtilsTests.cs} (96%) rename CefSharp.Test/Framework/{ConcurrentMethodRunnerQueueFacts.cs => ConcurrentMethodRunnerQueueTest.cs} (97%) rename CefSharp.Test/Framework/{HasHandlerFacts.cs => HasHandlerTests.cs} (97%) rename CefSharp.Test/Framework/{LegacyCamelCaseJavascriptNameConverterFacts.cs => LegacyCamelCaseJavascriptNameConverterTests.cs} (95%) rename CefSharp.Test/Framework/{MethodRunnerQueueFacts.cs => MethodRunnerQueueTests.cs} (95%) rename CefSharp.Test/Framework/{MimeTypeMappingFacts.cs => MimeTypeMappingTests.cs} (97%) rename CefSharp.Test/Framework/{ParseUrlFacts.cs => ParseUrlTests.cs} (90%) rename CefSharp.Test/Framework/{PathCheckFacts.cs => PathCheckTests.cs} (98%) rename CefSharp.Test/Framework/{RequestContextBuilderFacts.cs => RequestContextBuilderTests.cs} (94%) rename CefSharp.Test/Framework/{RequestContextExtensionFacts.cs => RequestContextExtensionTests.cs} (96%) rename CefSharp.Test/Framework/{RequestContextFacts.cs => RequestContextTests.cs} (96%) delete mode 100644 CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs create mode 100644 CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncTest.cs delete mode 100644 CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs create mode 100644 CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs rename CefSharp.Test/Javascript/{JavascriptCallbackFacts.cs => JavascriptCallbackTests.cs} (75%) create mode 100644 CefSharp.Test/JavascriptBinding/BindingTestObject.cs rename CefSharp.Test/JavascriptBinding/{IntegrationTestFacts.cs => IntegrationTests.cs} (56%) rename CefSharp.Test/JavascriptBinding/{JavaScriptObjectRepositoryFacts.cs => JavaScriptObjectRepositoryTests.cs} (93%) create mode 100644 CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs create mode 100644 CefSharp.Test/OffScreen/BrowserRefCountTests.cs create mode 100644 CefSharp.Test/OffScreen/DownloadHandlerTests.cs delete mode 100644 CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs create mode 100644 CefSharp.Test/OffScreen/OffScreenBrowserTests.cs create mode 100644 CefSharp.Test/OffScreen/RequestContextTests.cs create mode 100644 CefSharp.Test/OffScreen/ScreenshotTests.cs delete mode 100644 CefSharp.Test/PostMessage/IntegrationTestFacts.cs create mode 100644 CefSharp.Test/PostMessage/PostMessageTests.cs create mode 100644 CefSharp.Test/RequestContextIsolatedBrowserTests.cs create mode 100644 CefSharp.Test/UrlRequest/UrlRequestTests.cs create mode 100644 CefSharp.Test/WinForms/RequestContextTests.cs rename CefSharp.Test/WinForms/{WinFormsBrowserBasicFacts.cs => WinFormsBrowserTests.cs} (66%) create mode 100644 CefSharp.Test/Wpf/RequestContextTests.cs rename CefSharp.Test/Wpf/{WpfBrowserBasicFacts.cs => WpfBrowserTests.cs} (62%) diff --git a/CefSharp.Test/BrowserTests.cs b/CefSharp.Test/BrowserTests.cs new file mode 100644 index 000000000..e4238de00 --- /dev/null +++ b/CefSharp.Test/BrowserTests.cs @@ -0,0 +1,47 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using CefSharp.Example; +using CefSharp.OffScreen; +using Xunit; + +namespace CefSharp.Test +{ + public abstract class BrowserTests : IAsyncLifetime + { + public ChromiumWebBrowser Browser { get; private set; } + public bool RequestContextIsolated { get; protected set; } + + protected void AssertInitialLoadComplete() + { + var t = Browser.WaitForInitialLoadAsync(); + + Assert.True(t.IsCompleted, "WaitForInitialLoadAsync Task.IsComplete"); + Assert.True(t.Result.Success, "WaitForInitialLoadAsync Result.Success"); + } + + Task IAsyncLifetime.DisposeAsync() + { + Browser?.Dispose(); + + return Task.CompletedTask; + } + + Task IAsyncLifetime.InitializeAsync() + { + IRequestContext requestContext = null; + + if (RequestContextIsolated) + { + requestContext = new RequestContext(); + requestContext.RegisterSchemeHandlerFactory("https", CefExample.ExampleDomain, new CefSharpSchemeHandlerFactory()); + } + + Browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl, requestContext: requestContext, useLegacyRenderHandler: false); + + return Browser.WaitForInitialLoadAsync(); + } + } +} diff --git a/CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs b/CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs deleted file mode 100644 index 670afd42f..000000000 --- a/CefSharp.Test/ChromiumWebBrowserOffScreenFixture.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright © 2021 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System.Threading.Tasks; -using CefSharp.Example; -using CefSharp.OffScreen; -using Xunit; - -namespace CefSharp.Test -{ - public class ChromiumWebBrowserOffScreenFixture : IAsyncLifetime - { - public ChromiumWebBrowser Browser { get; private set; } - - Task IAsyncLifetime.DisposeAsync() - { - Browser?.Dispose(); - - return Task.CompletedTask; - } - - Task IAsyncLifetime.InitializeAsync() - { - Browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl, useLegacyRenderHandler: false); - - return Browser.WaitForInitialLoadAsync(); - } - } -} diff --git a/CefSharp.Test/CookieManager/CookieManagerFacts.cs b/CefSharp.Test/CookieManager/CookieManagerFacts.cs deleted file mode 100644 index 4eeece04c..000000000 --- a/CefSharp.Test/CookieManager/CookieManagerFacts.cs +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright © 2022 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System.Threading.Tasks; -using Xunit.Abstractions; -using Xunit; -using System; -using CefSharp.Example; -using System.Linq; - -namespace CefSharp.Test.CookieManager -{ - [Collection(CefSharpFixtureCollection.Key)] - public class CookieManagerFacts : IClassFixture - { - private readonly ITestOutputHelper output; - private readonly CefSharpFixture collectionFixture; - private readonly ChromiumWebBrowserOffScreenFixture classFixture; - - public CookieManagerFacts(ITestOutputHelper output, CefSharpFixture collectionFixture, ChromiumWebBrowserOffScreenFixture classFixture) - { - this.output = output; - this.collectionFixture = collectionFixture; - this.classFixture = classFixture; - } - - [Fact] - //https://github.com/cefsharp/CefSharp/issues/4234 - public async Task CanSetAndGetCookie() - { - const string CookieName = "CefSharpExpiryTestCookie"; - var testStartDate = DateTime.Now; - var expectedExpiry = DateTime.Now.AddDays(1); - - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var cookieManager = browser.GetCookieManager(); - - await cookieManager.DeleteCookiesAsync(CefExample.HelloWorldUrl, CookieName); - - var cookieSet = await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie - { - Name = CookieName, - Value = "ILikeCookies", - Expires = expectedExpiry - }); - - Assert.True(cookieSet); - - var cookies = await cookieManager.VisitUrlCookiesAsync(CefExample.HelloWorldUrl, false); - var cookie = cookies.First(x => x.Name == CookieName); - - Assert.True(cookie.Expires.HasValue); - // Little bit of a loss in precision - Assert.Equal(expectedExpiry, cookie.Expires.Value, TimeSpan.FromMilliseconds(10)); - Assert.True(cookie.Creation > testStartDate, "Cookie Creation greater than test start."); - Assert.True(cookie.LastAccess > testStartDate, "Cookie LastAccess greater than test start."); - - output.WriteLine("Expected {0} : Actual {1}", expectedExpiry, cookie.Expires.Value); - } - } -} diff --git a/CefSharp.Test/CookieManager/CookieManagerTests.cs b/CefSharp.Test/CookieManager/CookieManagerTests.cs new file mode 100644 index 000000000..f3e54a089 --- /dev/null +++ b/CefSharp.Test/CookieManager/CookieManagerTests.cs @@ -0,0 +1,220 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using Xunit.Abstractions; +using Xunit; +using System; +using CefSharp.Example; +using System.Linq; +using System.Collections.Generic; +using CefSharp.Enums; + +namespace CefSharp.Test.CookieManager +{ + [Collection(CefSharpFixtureCollection.Key)] + public class CookieManagerTests : RequestContextIsolatedBrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture collectionFixture; + + public CookieManagerTests(ITestOutputHelper output, CefSharpFixture collectionFixture) + { + this.output = output; + this.collectionFixture = collectionFixture; + } + + [Fact] + public async Task ShouldWork() + { + AssertInitialLoadComplete(); + + const string expected = "password=123456"; + + var cookieManager = Browser.GetCookieManager(); + + var success = await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie + { + Name = "password", + Value = "123456" + }); + + Assert.True(success); + + var actual = await Browser.EvaluateScriptAndAssertAsync("document.cookie"); + + Assert.Equal(expected, actual); + } + + [Fact] + public async Task ShouldSetMultipleCookies() + { + AssertInitialLoadComplete(); + + var expected = new string[] + { + "multiple-1=123456", + "multiple-2=bar" + }; + + var cookieManager = Browser.GetCookieManager(); + + var success = await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie + { + Name = "multiple-1", + Value = "123456" + }); + + success &= await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie + { + Name = "multiple-2", + Value = "bar" + }); + + Assert.True(success); + + var actual = await Browser.EvaluateScriptAndAssertAsync>(@"(() => { + const cookies = document.cookie.split(';'); + return cookies.map(cookie => cookie.trim()).sort(); + })();"); + + Assert.Equal(expected, actual); + } + + [Fact] + public async Task ShouldGetACookie() + { + AssertInitialLoadComplete(); + + var response = await Browser.EvaluateScriptAndAssertAsync(@"(() => { + document.cookie = 'username=John Doe'; + return document.cookie; + })();"); + + Assert.Equal("username=John Doe", response); + + var cookieManager = Browser.GetCookieManager(); + + var cookie = (await cookieManager.VisitAllCookiesAsync()).Single(); + + Assert.Equal("username", cookie.Name); + Assert.Equal("John Doe", cookie.Value); + Assert.Equal("cefsharp.example", cookie.Domain); + Assert.Equal("/", cookie.Path); + Assert.Null(cookie.Expires); + Assert.False(cookie.HttpOnly); + Assert.False(cookie.Secure); + Assert.Equal(CookieSameSite.Unspecified, cookie.SameSite); + } + + [Fact] + public async Task ShouldProperlyReportSecureCookie() + { + AssertInitialLoadComplete(); + + var response = await Browser.EvaluateScriptAndAssertAsync(@"(() => { + document.cookie = 'username=John Doe;Secure;'; + return document.cookie; + })();"); + + Assert.Equal("username=John Doe", response); + + var cookieManager = Browser.GetCookieManager(); + + var cookie = (await cookieManager.VisitAllCookiesAsync()).Single(); + + Assert.True(cookie.Secure); + } + + [Fact] + public async Task ShouldProperlyReportStrictSameSiteCookie() + { + AssertInitialLoadComplete(); + + var response = await Browser.EvaluateScriptAndAssertAsync(@"(() => { + document.cookie = 'username=John Doe;SameSite=Strict;'; + return document.cookie; + })();"); + + Assert.Equal("username=John Doe", response); + + var cookieManager = Browser.GetCookieManager(); + + var cookie = (await cookieManager.VisitAllCookiesAsync()).Single(); + + Assert.Equal(CookieSameSite.StrictMode, cookie.SameSite); + } + + [Fact] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task CanSetAndGetCookie() + { + AssertInitialLoadComplete(); + + const string CookieName = "CefSharpExpiryTestCookie"; + var testStartDate = DateTime.Now; + var expectedExpiry = DateTime.Now.AddDays(1); + + Assert.False(Browser.IsLoading); + + var cookieManager = Browser.GetCookieManager(); + + await cookieManager.DeleteCookiesAsync(CefExample.HelloWorldUrl, CookieName); + + var cookieSet = await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie + { + Name = CookieName, + Value = "ILikeCookies", + Expires = expectedExpiry + }); + + Assert.True(cookieSet); + + var cookies = await cookieManager.VisitUrlCookiesAsync(CefExample.HelloWorldUrl, false); + var cookie = cookies.First(x => x.Name == CookieName); + + Assert.True(cookie.Expires.HasValue); + // Little bit of a loss in precision + Assert.Equal(expectedExpiry, cookie.Expires.Value, TimeSpan.FromMilliseconds(10)); + Assert.True(cookie.Creation > testStartDate, "Cookie Creation greater than test start."); + Assert.True(cookie.LastAccess > testStartDate, "Cookie LastAccess greater than test start."); + + output.WriteLine("Expected {0} : Actual {1}", expectedExpiry, cookie.Expires.Value); + } + + [Fact] + public async Task ShouldClearCookies() + { + AssertInitialLoadComplete(); + + var cookieManager = Browser.GetCookieManager(); + + var cookieSet = await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie + { + Name = "cookie1", + Value = "1" + }); + + Assert.True(cookieSet); + + var response = await Browser.EvaluateScriptAndAssertAsync("document.cookie"); + + Assert.Equal("cookie1=1", response); + + await cookieManager.DeleteCookiesAsync(); + + var cookies = await cookieManager.VisitAllCookiesAsync(); + + Assert.Empty(cookies); + + Browser.Reload(); + + await Browser.WaitForNavigationAsync(); + + response = await Browser.EvaluateScriptAndAssertAsync("document.cookie"); + + Assert.Equal(string.Empty, response); + } + } +} diff --git a/CefSharp.Test/DevTools/DevToolsClientFacts.cs b/CefSharp.Test/DevTools/DevToolsClientTests.cs similarity index 99% rename from CefSharp.Test/DevTools/DevToolsClientFacts.cs rename to CefSharp.Test/DevTools/DevToolsClientTests.cs index 8a3781164..b92484008 100644 --- a/CefSharp.Test/DevTools/DevToolsClientFacts.cs +++ b/CefSharp.Test/DevTools/DevToolsClientTests.cs @@ -21,12 +21,12 @@ namespace CefSharp.Test.DevTools { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - public class DevToolsClientFacts + public class DevToolsClientTests { private readonly ITestOutputHelper output; private readonly CefSharpFixture fixture; - public DevToolsClientFacts(ITestOutputHelper output, CefSharpFixture fixture) + public DevToolsClientTests(ITestOutputHelper output, CefSharpFixture fixture) { this.fixture = fixture; this.output = output; diff --git a/CefSharp.Test/DevTools/HeadersFacts.cs b/CefSharp.Test/DevTools/HeadersTests.cs similarity index 99% rename from CefSharp.Test/DevTools/HeadersFacts.cs rename to CefSharp.Test/DevTools/HeadersTests.cs index 75fb30a0c..73d9c8dc3 100644 --- a/CefSharp.Test/DevTools/HeadersFacts.cs +++ b/CefSharp.Test/DevTools/HeadersTests.cs @@ -7,7 +7,7 @@ namespace CefSharp.Test.DevTools { - public class HeadersFacts + public class HeadersTests { [Fact] public void HeadersTryGetValues() diff --git a/CefSharp.Test/Framework/AsyncExtensionFacts.cs b/CefSharp.Test/Framework/AsyncExtensionTests.cs similarity index 94% rename from CefSharp.Test/Framework/AsyncExtensionFacts.cs rename to CefSharp.Test/Framework/AsyncExtensionTests.cs index ddc6a814c..432260f64 100644 --- a/CefSharp.Test/Framework/AsyncExtensionFacts.cs +++ b/CefSharp.Test/Framework/AsyncExtensionTests.cs @@ -9,14 +9,11 @@ namespace CefSharp.Test.Framework { - /// - /// Async Extensions - This test doesn't need to be part of the - /// - public class AsyncExtensionFacts + public class AsyncExtensionTests { private readonly ITestOutputHelper output; - public AsyncExtensionFacts(ITestOutputHelper output) + public AsyncExtensionTests(ITestOutputHelper output) { this.output = output; } diff --git a/CefSharp.Test/Framework/BinderFacts.cs b/CefSharp.Test/Framework/BinderTests.cs similarity index 99% rename from CefSharp.Test/Framework/BinderFacts.cs rename to CefSharp.Test/Framework/BinderTests.cs index 1b2165f13..c2a683c1b 100644 --- a/CefSharp.Test/Framework/BinderFacts.cs +++ b/CefSharp.Test/Framework/BinderTests.cs @@ -13,7 +13,7 @@ namespace CefSharp.Test.Framework /// /// BinderFacts - Tests model default binder behavior /// - public class BinderFacts + public class BinderTests { private enum TestEnum { diff --git a/CefSharp.Test/Framework/CamelCaseNamingConverterFacts.cs b/CefSharp.Test/Framework/CamelCaseNamingConverterTests.cs similarity index 96% rename from CefSharp.Test/Framework/CamelCaseNamingConverterFacts.cs rename to CefSharp.Test/Framework/CamelCaseNamingConverterTests.cs index ec24e27e5..a8de2b4ab 100644 --- a/CefSharp.Test/Framework/CamelCaseNamingConverterFacts.cs +++ b/CefSharp.Test/Framework/CamelCaseNamingConverterTests.cs @@ -10,7 +10,7 @@ namespace CefSharp.Test.Framework /// /// JavascriptNameConverterFacts - Test the different name converters /// - public class CamelCaseNamingConverterFacts + public class CamelCaseNamingConverterTests { [Fact] public void CanConvertStringToJavascriptName() diff --git a/CefSharp.Test/Framework/CefTimeUtilsFacts.cs b/CefSharp.Test/Framework/CefTimeUtilsTests.cs similarity index 96% rename from CefSharp.Test/Framework/CefTimeUtilsFacts.cs rename to CefSharp.Test/Framework/CefTimeUtilsTests.cs index e9b5a43ab..0ef9d6548 100644 --- a/CefSharp.Test/Framework/CefTimeUtilsFacts.cs +++ b/CefSharp.Test/Framework/CefTimeUtilsTests.cs @@ -9,11 +9,11 @@ namespace CefSharp.Test.Framework { - public class CefTimeUtilsFacts + public class CefTimeUtilsTests { private readonly ITestOutputHelper output; - public CefTimeUtilsFacts(ITestOutputHelper output) + public CefTimeUtilsTests(ITestOutputHelper output) { this.output = output; } diff --git a/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueFacts.cs b/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs similarity index 97% rename from CefSharp.Test/Framework/ConcurrentMethodRunnerQueueFacts.cs rename to CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs index 67c4341ff..098d3cebb 100644 --- a/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueFacts.cs +++ b/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs @@ -13,11 +13,11 @@ namespace CefSharp.Test.Framework { - public class ConcurrentMethodRunnerQueueFacts + public class ConcurrentMethodRunnerQueueTest { private readonly ITestOutputHelper output; - public ConcurrentMethodRunnerQueueFacts(ITestOutputHelper output) + public ConcurrentMethodRunnerQueueTest(ITestOutputHelper output) { this.output = output; } diff --git a/CefSharp.Test/Framework/HasHandlerFacts.cs b/CefSharp.Test/Framework/HasHandlerTests.cs similarity index 97% rename from CefSharp.Test/Framework/HasHandlerFacts.cs rename to CefSharp.Test/Framework/HasHandlerTests.cs index 515b9cd57..6fa0a596f 100644 --- a/CefSharp.Test/Framework/HasHandlerFacts.cs +++ b/CefSharp.Test/Framework/HasHandlerTests.cs @@ -4,7 +4,7 @@ namespace CefSharp.Test.Framework { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - public class HasHandlerFacts + public class HasHandlerTests { [Fact] public void ShouldWorkForOffScreen() diff --git a/CefSharp.Test/Framework/LegacyCamelCaseJavascriptNameConverterFacts.cs b/CefSharp.Test/Framework/LegacyCamelCaseJavascriptNameConverterTests.cs similarity index 95% rename from CefSharp.Test/Framework/LegacyCamelCaseJavascriptNameConverterFacts.cs rename to CefSharp.Test/Framework/LegacyCamelCaseJavascriptNameConverterTests.cs index ded200559..e04f9d228 100644 --- a/CefSharp.Test/Framework/LegacyCamelCaseJavascriptNameConverterFacts.cs +++ b/CefSharp.Test/Framework/LegacyCamelCaseJavascriptNameConverterTests.cs @@ -10,7 +10,7 @@ namespace CefSharp.Test.Framework /// /// LegacyCamelCaseJavascriptNameConverterFacts - Test the different name converters /// - public class LegacyCamelCaseJavascriptNameConverterFacts + public class LegacyCamelCaseJavascriptNameConverterTests { [Fact] public void CanConvertStringToJavascriptName() diff --git a/CefSharp.Test/Framework/MethodRunnerQueueFacts.cs b/CefSharp.Test/Framework/MethodRunnerQueueTests.cs similarity index 95% rename from CefSharp.Test/Framework/MethodRunnerQueueFacts.cs rename to CefSharp.Test/Framework/MethodRunnerQueueTests.cs index 8b2f962bc..e542fe1e2 100644 --- a/CefSharp.Test/Framework/MethodRunnerQueueFacts.cs +++ b/CefSharp.Test/Framework/MethodRunnerQueueTests.cs @@ -7,7 +7,7 @@ namespace CefSharp.Test.Framework { - public class MethodRunnerQueueFacts + public class MethodRunnerQueueTests { [Fact] public void DisposeQueueThenEnqueueMethodInvocation() diff --git a/CefSharp.Test/Framework/MimeTypeMappingFacts.cs b/CefSharp.Test/Framework/MimeTypeMappingTests.cs similarity index 97% rename from CefSharp.Test/Framework/MimeTypeMappingFacts.cs rename to CefSharp.Test/Framework/MimeTypeMappingTests.cs index 7ad4aa1f9..5f54f47ba 100644 --- a/CefSharp.Test/Framework/MimeTypeMappingFacts.cs +++ b/CefSharp.Test/Framework/MimeTypeMappingTests.cs @@ -9,7 +9,7 @@ namespace CefSharp.Test.Framework /// /// MimeTypeMappingFacts - Tests file extension to mimeType mapping /// - public class MimeTypeMappingFacts + public class MimeTypeMappingTests { [Theory] [InlineData("html", "text/html")] diff --git a/CefSharp.Test/Framework/ParseUrlFacts.cs b/CefSharp.Test/Framework/ParseUrlTests.cs similarity index 90% rename from CefSharp.Test/Framework/ParseUrlFacts.cs rename to CefSharp.Test/Framework/ParseUrlTests.cs index 181b52882..1b222dce4 100644 --- a/CefSharp.Test/Framework/ParseUrlFacts.cs +++ b/CefSharp.Test/Framework/ParseUrlTests.cs @@ -7,11 +7,11 @@ namespace CefSharp.Test.Framework { - public class ParseUrlFacts + public class ParseUrlTests { private readonly ITestOutputHelper output; - public ParseUrlFacts(ITestOutputHelper output) + public ParseUrlTests(ITestOutputHelper output) { this.output = output; } diff --git a/CefSharp.Test/Framework/PathCheckFacts.cs b/CefSharp.Test/Framework/PathCheckTests.cs similarity index 98% rename from CefSharp.Test/Framework/PathCheckFacts.cs rename to CefSharp.Test/Framework/PathCheckTests.cs index b0694fc6b..f4063b962 100644 --- a/CefSharp.Test/Framework/PathCheckFacts.cs +++ b/CefSharp.Test/Framework/PathCheckTests.cs @@ -8,7 +8,7 @@ namespace CefSharp.Test.Framework { - public class PathCheckFacts + public class PathCheckTests { [Fact] public void IsPathAbsoluteValid() diff --git a/CefSharp.Test/Framework/RequestContextBuilderFacts.cs b/CefSharp.Test/Framework/RequestContextBuilderTests.cs similarity index 94% rename from CefSharp.Test/Framework/RequestContextBuilderFacts.cs rename to CefSharp.Test/Framework/RequestContextBuilderTests.cs index 95e428697..02a7c8ea3 100644 --- a/CefSharp.Test/Framework/RequestContextBuilderFacts.cs +++ b/CefSharp.Test/Framework/RequestContextBuilderTests.cs @@ -10,12 +10,12 @@ namespace CefSharp.Test.Framework { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - public class RequestContextBuilderFacts + public class RequestContextBuilderTests { private CefSharpFixture fixture; private ITestOutputHelper output; - public RequestContextBuilderFacts(ITestOutputHelper output, CefSharpFixture fixture) + public RequestContextBuilderTests(ITestOutputHelper output, CefSharpFixture fixture) { this.fixture = fixture; this.output = output; diff --git a/CefSharp.Test/Framework/RequestContextExtensionFacts.cs b/CefSharp.Test/Framework/RequestContextExtensionTests.cs similarity index 96% rename from CefSharp.Test/Framework/RequestContextExtensionFacts.cs rename to CefSharp.Test/Framework/RequestContextExtensionTests.cs index 5531f64dd..15899364b 100644 --- a/CefSharp.Test/Framework/RequestContextExtensionFacts.cs +++ b/CefSharp.Test/Framework/RequestContextExtensionTests.cs @@ -13,7 +13,7 @@ namespace CefSharp.Test.Framework { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - public class RequestContextExtensionFacts + public class RequestContextExtensionTests { private const string ProxyPreferenceKey = "proxy"; @@ -21,7 +21,7 @@ public class RequestContextExtensionFacts private delegate void SetPreferenceDelegate(string name, object value, out string errorMessage); - public RequestContextExtensionFacts(ITestOutputHelper output) + public RequestContextExtensionTests(ITestOutputHelper output) { this.output = output; } diff --git a/CefSharp.Test/Framework/RequestContextFacts.cs b/CefSharp.Test/Framework/RequestContextTests.cs similarity index 96% rename from CefSharp.Test/Framework/RequestContextFacts.cs rename to CefSharp.Test/Framework/RequestContextTests.cs index 9583b3e2b..dc2b3ced9 100644 --- a/CefSharp.Test/Framework/RequestContextFacts.cs +++ b/CefSharp.Test/Framework/RequestContextTests.cs @@ -10,7 +10,7 @@ namespace CefSharp.Test.Framework { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - public class RequestContextFacts + public class RequestContextTests { [Fact] public void IsSameAs() diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs deleted file mode 100644 index 734f58eb2..000000000 --- a/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncFacts.cs +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright © 2022 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System.Threading.Tasks; -using CefSharp.Example; -using CefSharp.OffScreen; -using Xunit; -using Xunit.Abstractions; - -namespace CefSharp.Test.Javascript -{ - [Collection(CefSharpFixtureCollection.Key)] - public class EvaluateScriptAsPromiseAsyncFacts : IClassFixture - { - private readonly ITestOutputHelper output; - private readonly CefSharpFixture collectionFixture; - private readonly ChromiumWebBrowserOffScreenFixture classFixture; - - public EvaluateScriptAsPromiseAsyncFacts(ITestOutputHelper output, CefSharpFixture collectionFixture, ChromiumWebBrowserOffScreenFixture classFixture) - { - this.output = output; - this.collectionFixture = collectionFixture; - this.classFixture = classFixture; - } - - [Theory] - [InlineData("return 42;", true, "42")] - [InlineData("return new Promise(function(resolve, reject) { resolve(42); });", true, "42")] - [InlineData("return new Promise(function(resolve, reject) { reject('reject test'); });", false, "reject test")] - [InlineData("return await 42;", true, "42")] - [InlineData("return await (function() { throw('reject test'); })();", false, "reject test")] - [InlineData("var result = await fetch('./robots.txt'); return result.status;", true, "200")] - public async Task CanEvaluateScriptAsPromiseAsync(string script, bool success, string expected) - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsPromiseAsync(script); - - Assert.Equal(success, javascriptResponse.Success); - - if (success) - { - Assert.Equal(expected, javascriptResponse.Result.ToString()); - } - else - { - Assert.Equal(expected, javascriptResponse.Message); - } - } - } - - [Theory] - [InlineData("return { a: 'CefSharp', b: 42, };", true, "CefSharp", "42")] - [InlineData("return new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", true, "CefSharp", "42")] - [InlineData("return new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", true, "CefSharp", "42")] - [InlineData("return await { a: 'CefSharp', b: 42, };", true, "CefSharp", "42")] - [InlineData("return await new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); }); ", true, "CefSharp", "42")] - [InlineData("function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result;", true, "CefSharp", "42")] - public async Task CanEvaluateScriptAsPromiseAsyncReturnObject(string script, bool success, string expectedA, string expectedB) - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsPromiseAsync(script); - - Assert.Equal(success, javascriptResponse.Success); - - if (success) - { - dynamic result = javascriptResponse.Result; - Assert.Equal(expectedA, result.a.ToString()); - Assert.Equal(expectedB, result.b.ToString()); - } - else - { - throw new System.Exception("Failed"); - } - } - } - } -} diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncTest.cs b/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncTest.cs new file mode 100644 index 000000000..74631cc9f --- /dev/null +++ b/CefSharp.Test/Javascript/EvaluateScriptAsPromiseAsyncTest.cs @@ -0,0 +1,69 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Javascript +{ + [Collection(CefSharpFixtureCollection.Key)] + public class EvaluateScriptAsPromiseAsyncTest : BrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture collectionFixture; + + public EvaluateScriptAsPromiseAsyncTest(ITestOutputHelper output, CefSharpFixture collectionFixture) + { + this.output = output; + this.collectionFixture = collectionFixture; + } + + [Theory] + [InlineData("return 42;", "42")] + [InlineData("return new Promise(function(resolve, reject) { resolve(42); });", "42")] + [InlineData("return await 42;", "42")] + [InlineData("var result = await fetch('./home.html'); return result.status;", "200")] + public async Task ShouldWork(string script, string expected) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsPromiseAsync(script); + + Assert.True(javascriptResponse.Success); + Assert.Equal(expected, javascriptResponse.Result.ToString()); + } + + [Theory] + [InlineData("return new Promise(function(resolve, reject) { reject('reject test'); });", "reject test")] + [InlineData("return await (function() { throw('reject test'); })();", "reject test")] + public async Task ShouldFail(string script, string expected) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsPromiseAsync(script); + + Assert.False(javascriptResponse.Success); + Assert.Equal(expected, javascriptResponse.Message); + } + + [Theory] + [InlineData("return { a: 'CefSharp', b: 42, };", "CefSharp", "42")] + [InlineData("return new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", "CefSharp", "42")] + [InlineData("return new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", "CefSharp", "42")] + [InlineData("return await { a: 'CefSharp', b: 42, };", "CefSharp", "42")] + [InlineData("return await new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); }); ", "CefSharp", "42")] + [InlineData("function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result;", "CefSharp", "42")] + public async Task ShouldWorkWithObjects(string script, string expectedA, string expectedB) + { + var javascriptResponse = await Browser.EvaluateScriptAsPromiseAsync(script); + + Assert.True(javascriptResponse.Success); + + dynamic result = javascriptResponse.Result; + Assert.Equal(expectedA, result.a.ToString()); + Assert.Equal(expectedB, result.b.ToString()); + } + } +} diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs deleted file mode 100644 index de3890112..000000000 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncFacts.cs +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright © 2021 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; -using System.Globalization; -using System.Threading.Tasks; -using Xunit; -using Xunit.Abstractions; - -namespace CefSharp.Test.Javascript -{ - [Collection(CefSharpFixtureCollection.Key)] - public class EvaluateScriptAsyncFacts : IClassFixture - { - private readonly ITestOutputHelper output; - private readonly CefSharpFixture collectionFixture; - private readonly ChromiumWebBrowserOffScreenFixture classFixture; - - public EvaluateScriptAsyncFacts(ITestOutputHelper output, CefSharpFixture collectionFixture, ChromiumWebBrowserOffScreenFixture classFixture) - { - this.output = output; - this.collectionFixture = collectionFixture; - this.classFixture = classFixture; - } - - [Theory] - [InlineData(double.MaxValue, "Number.MAX_VALUE")] - [InlineData(double.MaxValue / 2, "Number.MAX_VALUE / 2")] - //https://github.com/cefsharp/CefSharp/issues/3858 - public async Task CanEvaluateDoubleComputation(double expectedValue, string script) - { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync(script); - Assert.True(javascriptResponse.Success); - - var actualType = javascriptResponse.Result.GetType(); - - Assert.Equal(typeof(double), actualType); - Assert.Equal(expectedValue, (double)javascriptResponse.Result, 5); - - output.WriteLine("Script {0} : Result {1}", script, javascriptResponse.Result); - } - - [Theory] - [InlineData(0.5d)] - [InlineData(1.5d)] - [InlineData(-0.5d)] - [InlineData(-1.5d)] - [InlineData(100000.24500d)] - [InlineData(-100000.24500d)] - [InlineData((double)uint.MaxValue)] - [InlineData((double)int.MaxValue + 1)] - [InlineData((double)int.MaxValue + 10)] - [InlineData((double)int.MinValue - 1)] - [InlineData((double)int.MinValue - 10)] - [InlineData(((double)uint.MaxValue * 2))] - [InlineData(((double)uint.MaxValue * 2) + 0.1)] - //https://github.com/cefsharp/CefSharp/issues/3858 - public async Task CanEvaluateDoubleValues(double num) - { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString(CultureInfo.InvariantCulture)); - Assert.True(javascriptResponse.Success); - - var actualType = javascriptResponse.Result.GetType(); - - Assert.Equal(typeof(double), actualType); - Assert.Equal(num, (double)javascriptResponse.Result, 5); - - output.WriteLine("Expected {0} : Actual {1}", num, javascriptResponse.Result); - } - - [Theory] - [InlineData(0)] - [InlineData(-1)] - [InlineData(100)] - [InlineData(int.MaxValue)] - [InlineData(int.MinValue)] - //https://github.com/cefsharp/CefSharp/issues/3858 - public async Task CanEvaluateIntValues(object num) - { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync(num.ToString()); - Assert.True(javascriptResponse.Success); - - var actualType = javascriptResponse.Result.GetType(); - - Assert.Equal(typeof(int), actualType); - Assert.Equal(num, javascriptResponse.Result); - - output.WriteLine("Expected {0} : Actual {1}", num, javascriptResponse.Result); - } - - [Theory] - [InlineData("1970-01-01", "1970-01-01")] - [InlineData("1980-01-01", "1980-01-01")] - //https://github.com/cefsharp/CefSharp/issues/4234 - public async Task CanEvaluateDateValues(DateTime expected, string actual) - { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync($"new Date('{actual}');"); - Assert.True(javascriptResponse.Success); - - var actualType = javascriptResponse.Result.GetType(); - var actualDateTime = (DateTime)javascriptResponse.Result; - - Assert.Equal(typeof(DateTime), actualType); - Assert.Equal(expected.ToLocalTime(), actualDateTime); - - output.WriteLine("Expected {0} : Actual {1}", expected.ToLocalTime(), actualDateTime); - } - - [Theory] - [InlineData("new Promise(function(resolve, reject) { resolve(42); });", true, "42")] - [InlineData("new Promise(function(resolve, reject) { reject('reject test'); });", false, "reject test")] - [InlineData("Promise.resolve(42);", true, "42")] - [InlineData("(async () => { throw('reject test'); })();", false, "reject test")] - [InlineData("(async () => { var result = await fetch('https://cefsharp.example/HelloWorld.html'); return result.status;})();", true, "200")] - public async Task CanEvaluateScriptAsyncReturnPromisePrimative(string script, bool success, string expected) - { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsync(script); - - Assert.Equal(success, javascriptResponse.Success); - - if (success) - { - Assert.Equal(expected, javascriptResponse.Result.ToString()); - } - else - { - Assert.Equal(expected, javascriptResponse.Message); - } - } - - [Theory] - [InlineData("new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", "CefSharp", "42")] - [InlineData("new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", "CefSharp", "42")] - [InlineData("(async () => { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result; })();", "CefSharp", "42")] - public async Task CanEvaluateScriptAsyncReturnPromiseObject(string script, string expectedA, string expectedB) - { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsync(script); - - Assert.True(javascriptResponse.Success); - - dynamic result = javascriptResponse.Result; - Assert.Equal(expectedA, result.a.ToString()); - Assert.Equal(expectedB, result.b.ToString()); - } - } -} diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs new file mode 100644 index 000000000..dadeee12b --- /dev/null +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs @@ -0,0 +1,244 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Globalization; +using System.Linq; +using System.Threading.Tasks; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Javascript +{ + [Collection(CefSharpFixtureCollection.Key)] + public class EvaluateScriptAsyncTests : BrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture collectionFixture; + + public EvaluateScriptAsyncTests(ITestOutputHelper output, CefSharpFixture collectionFixture) + { + this.output = output; + this.collectionFixture = collectionFixture; + } + + [Theory] + [InlineData(double.MaxValue, "Number.MAX_VALUE")] + [InlineData(double.MaxValue / 2, "Number.MAX_VALUE / 2")] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task ShouldWorkForDoubleComputation(double expectedValue, string script) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync(script); + Assert.True(javascriptResponse.Success); + + var actualType = javascriptResponse.Result.GetType(); + + Assert.Equal(typeof(double), actualType); + Assert.Equal(expectedValue, (double)javascriptResponse.Result, 5); + + output.WriteLine("Script {0} : Result {1}", script, javascriptResponse.Result); + } + + [Theory] + [InlineData(0.5d)] + [InlineData(1.5d)] + [InlineData(-0.5d)] + [InlineData(-1.5d)] + [InlineData(100000.24500d)] + [InlineData(-100000.24500d)] + [InlineData((double)uint.MaxValue)] + [InlineData((double)int.MaxValue + 1)] + [InlineData((double)int.MaxValue + 10)] + [InlineData((double)int.MinValue - 1)] + [InlineData((double)int.MinValue - 10)] + [InlineData(((double)uint.MaxValue * 2))] + [InlineData(((double)uint.MaxValue * 2) + 0.1)] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task ShouldWorkForDouble(double num) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync(num.ToString(CultureInfo.InvariantCulture)); + Assert.True(javascriptResponse.Success); + + var actualType = javascriptResponse.Result.GetType(); + + Assert.Equal(typeof(double), actualType); + Assert.Equal(num, (double)javascriptResponse.Result, 5); + + output.WriteLine("Expected {0} : Actual {1}", num, javascriptResponse.Result); + } + + [Theory] + [InlineData(0)] + [InlineData(-1)] + [InlineData(100)] + [InlineData(int.MaxValue)] + [InlineData(int.MinValue)] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task ShouldWorkForInt(object num) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync(num.ToString()); + Assert.True(javascriptResponse.Success); + + var actualType = javascriptResponse.Result.GetType(); + + Assert.Equal(typeof(int), actualType); + Assert.Equal(num, javascriptResponse.Result); + + output.WriteLine("Expected {0} : Actual {1}", num, javascriptResponse.Result); + } + + [Theory] + [InlineData("1970-01-01", "1970-01-01")] + [InlineData("1980-01-01", "1980-01-01")] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task ShouldWorkForDate(DateTime expected, string actual) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync($"new Date('{actual}');"); + Assert.True(javascriptResponse.Success); + + var actualType = javascriptResponse.Result.GetType(); + var actualDateTime = (DateTime)javascriptResponse.Result; + + Assert.Equal(typeof(DateTime), actualType); + Assert.Equal(expected.ToLocalTime(), actualDateTime); + + output.WriteLine("Expected {0} : Actual {1}", expected.ToLocalTime(), actualDateTime); + } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { resolve(42); });", "42")] + [InlineData("Promise.resolve(42);", "42")] + [InlineData("(async () => { var result = await fetch('https://cefsharp.example/HelloWorld.html'); return result.status;})();", "200")] + public async Task ShouldWorkForPromisePrimative(string script, string expected) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync(script); + + Assert.True(javascriptResponse.Success); + Assert.Equal(expected, javascriptResponse.Result.ToString()); + } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { reject('reject test'); });", "reject test")] + [InlineData("(async () => { throw('reject test'); })();", "reject test")] + public async Task ShouldFailForPromisePrimative(string script, string expected) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync(script); + + Assert.False(javascriptResponse.Success); + Assert.Equal(expected, javascriptResponse.Message); + } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", "CefSharp", "42")] + [InlineData("new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", "CefSharp", "42")] + [InlineData("(async () => { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result; })();", "CefSharp", "42")] + public async Task ShouldWorkForPromisePrimativeObject(string script, string expectedA, string expectedB) + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync(script); + + Assert.True(javascriptResponse.Success); + + dynamic result = javascriptResponse.Result; + Assert.Equal(expectedA, result.a.ToString()); + Assert.Equal(expectedB, result.b.ToString()); + } + + [Fact] + public async Task ShouldLoadGoogleAndEvaluateScript() + { + AssertInitialLoadComplete(); + + var loadResponse = await Browser.LoadUrlAsync("www.google.com"); + + Assert.True(loadResponse.Success); + + var mainFrame = Browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google", mainFrame.Url); + + var response = await Browser.EvaluateScriptAndAssertAsync("2 + 2"); + Assert.Equal(4, response); + output.WriteLine("Result of 2 + 2: {0}", response); + } + + [Fact] + public async Task CanEvaluateScriptInParallel() + { + AssertInitialLoadComplete(); + + var tasks = Enumerable.Range(0, 100).Select(i => Task.Run(async () => + { + var javascriptResponse = await Browser.EvaluateScriptAsync("2 + 2"); + + if (javascriptResponse.Success) + { + return (int)javascriptResponse.Result; + } + + return -1; + })).ToList(); + + await Task.WhenAll(tasks); + + Assert.All(tasks, (t) => + { + Assert.Equal(4, t.Result); + }); + } + + [Theory] + [InlineData("[1,2,,5]", new object[] { 1, 2, null, 5 })] + [InlineData("[1,2,,]", new object[] { 1, 2, null })] + [InlineData("[,2,3]", new object[] { null, 2, 3 })] + [InlineData("[,2,,3,,4,,,,5,,,]", new object[] { null, 2, null, 3, null, 4, null, null, null, 5, null, null })] + public async Task CanEvaluateScriptAsyncReturnPartiallyEmptyArrays(string javascript, object[] expected) + { + AssertInitialLoadComplete(); + + var result = await Browser.EvaluateScriptAsync(javascript); + + Assert.True(result.Success); + Assert.Equal(expected, result.Result); + } + + /// + /// Use the EvaluateScriptAsync (IWebBrowser, String,Object[]) overload and pass in string params + /// that require encoding. Test case for https://github.com/cefsharp/CefSharp/issues/2339 + /// + /// A task + [Fact] + public async Task CanEvaluateScriptAsyncWithEncodedStringArguments() + { + AssertInitialLoadComplete(); + + var javascriptResponse = await Browser.EvaluateScriptAsync("var testfunc=function(s) { return s; }"); + Assert.True(javascriptResponse.Success); + + // now call the function we just created + string[] teststrings = new string[]{"Mary's\tLamb & \r\nOther Things", + "[{test:\"Mary's Lamb & \\nOther Things\", 'other': \"\", 'and': null}]" }; + foreach (var test in teststrings) + { + javascriptResponse = await Browser.EvaluateScriptAsync("testfunc", test); + Assert.True(javascriptResponse.Success); + Assert.Equal(test, (string)javascriptResponse.Result); + output.WriteLine("{0} passes {1}", test, javascriptResponse.Result); + } + } + } +} diff --git a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs b/CefSharp.Test/Javascript/JavascriptCallbackTests.cs similarity index 75% rename from CefSharp.Test/Javascript/JavascriptCallbackFacts.cs rename to CefSharp.Test/Javascript/JavascriptCallbackTests.cs index 29508d308..18422f52c 100644 --- a/CefSharp.Test/Javascript/JavascriptCallbackFacts.cs +++ b/CefSharp.Test/Javascript/JavascriptCallbackTests.cs @@ -11,17 +11,15 @@ namespace CefSharp.Test.Javascript { [Collection(CefSharpFixtureCollection.Key)] - public class JavascriptCallbackFacts : IClassFixture + public class JavascriptCallbackTests : BrowserTests { private readonly ITestOutputHelper output; private readonly CefSharpFixture collectionFixture; - private readonly ChromiumWebBrowserOffScreenFixture classFixture; - public JavascriptCallbackFacts(ITestOutputHelper output, CefSharpFixture collectionFixture, ChromiumWebBrowserOffScreenFixture classFixture) + public JavascriptCallbackTests(ITestOutputHelper output, CefSharpFixture collectionFixture) { this.output = output; this.collectionFixture = collectionFixture; - this.classFixture = classFixture; } [Theory] @@ -29,13 +27,11 @@ public JavascriptCallbackFacts(ITestOutputHelper output, CefSharpFixture collect [InlineData("(function() { return Promise.resolve('53')})", "53")] [InlineData("(function() { return Promise.resolve(true)})", true)] [InlineData("(function() { return Promise.resolve(false)})", false)] - public async Task CanEvaluatePromise(string script, object expected) + public async Task ShouldWorkForPromise(string script, object expected) { - var browser = classFixture.Browser; + AssertInitialLoadComplete(); - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync(script); + var javascriptResponse = await Browser.EvaluateScriptAsync(script); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; @@ -54,13 +50,11 @@ public async Task CanEvaluatePromise(string script, object expected) [InlineData("(function() { return Promise.reject(42)})", "42")] [InlineData("(function() { return Promise.reject(false)})", "false")] [InlineData("(function() { return Promise.reject(null)})", "null")] - public async Task CanEvaluatePromiseRejected(string script, string expected) + public async Task ShouldFailForPromise(string script, string expected) { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); + AssertInitialLoadComplete(); - var javascriptResponse = await browser.EvaluateScriptAsync(script); + var javascriptResponse = await Browser.EvaluateScriptAsync(script); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; @@ -78,13 +72,9 @@ public async Task CanEvaluatePromiseRejected(string script, string expected) [InlineData(double.MaxValue, "Number.MAX_VALUE")] [InlineData(double.MaxValue / 2, "Number.MAX_VALUE / 2")] //https://github.com/cefsharp/CefSharp/issues/3858 - public async Task CanEvaluateDoubleComputation(double expectedValue, string script) + public async Task ShouldWorkForDoubleComputation(double expectedValue, string script) { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return " + script + "})"); + var javascriptResponse = await Browser.EvaluateScriptAsync("(function() { return " + script + "})"); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; @@ -113,13 +103,9 @@ public async Task CanEvaluateDoubleComputation(double expectedValue, string scri [InlineData(((double)uint.MaxValue * 2))] [InlineData(((double)uint.MaxValue * 2) + 0.1)] //https://github.com/cefsharp/CefSharp/issues/3858 - public async Task CanEvaluateDoubleValues(double num) + public async Task ShouldWorkForDouble(double num) { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return " + num + "})"); + var javascriptResponse = await Browser.EvaluateScriptAsync("(function() { return " + num + "})"); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; @@ -138,13 +124,9 @@ public async Task CanEvaluateDoubleValues(double num) [InlineData(int.MaxValue)] [InlineData(int.MinValue)] //https://github.com/cefsharp/CefSharp/issues/3858 - public async Task CanEvaluateIntValues(object num) + public async Task ShouldWorkForInt(object num) { - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return " + num.ToString() + "})"); + var javascriptResponse = await Browser.EvaluateScriptAsync("(function() { return " + num.ToString() + "})"); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; @@ -160,13 +142,11 @@ public async Task CanEvaluateIntValues(object num) [InlineData("1970-01-01", "1970-01-01")] [InlineData("1980-01-01", "1980-01-01")] //https://github.com/cefsharp/CefSharp/issues/4234 - public async Task CanEvaluateDateValues(DateTime expected, string actual) + public async Task ShouldWorkForDate(DateTime expected, string actual) { - var browser = classFixture.Browser; + AssertInitialLoadComplete(); - Assert.False(browser.IsLoading); - - var javascriptResponse = await browser.EvaluateScriptAsync("(function() { return new Date('" + actual + "');})"); + var javascriptResponse = await Browser.EvaluateScriptAsync("(function() { return new Date('" + actual + "');})"); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; @@ -186,15 +166,13 @@ public async Task CanEvaluateDateValues(DateTime expected, string actual) [InlineData("1980-01-01", DateTimeStyles.AssumeLocal)] [InlineData("1980-01-01", DateTimeStyles.AssumeUniversal)] //https://github.com/cefsharp/CefSharp/issues/4234 - public async Task CanEchoDateTime(string expected, DateTimeStyles dateTimeStyle) + public async Task ShouldEchoDateTime(string expected, DateTimeStyles dateTimeStyle) { - var expectedDateTime = DateTime.Parse(expected, CultureInfo.InvariantCulture, dateTimeStyle); + AssertInitialLoadComplete(); - var browser = classFixture.Browser; - - Assert.False(browser.IsLoading); + var expectedDateTime = DateTime.Parse(expected, CultureInfo.InvariantCulture, dateTimeStyle); - var javascriptResponse = await browser.EvaluateScriptAsync("(function(p) { return p; })"); + var javascriptResponse = await Browser.EvaluateScriptAsync("(function(p) { return p; })"); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; @@ -210,15 +188,13 @@ public async Task CanEchoDateTime(string expected, DateTimeStyles dateTimeStyle) [Fact] //https://github.com/cefsharp/CefSharp/issues/4234 - public async Task CanEchoDateTimeNow() + public async Task ShouldEchoDateTimeNow() { - var expectedDateTime = DateTime.Now; - - var browser = classFixture.Browser; + AssertInitialLoadComplete(); - Assert.False(browser.IsLoading); + var expectedDateTime = DateTime.Now; - var javascriptResponse = await browser.EvaluateScriptAsync("(function(p) { return p; })"); + var javascriptResponse = await Browser.EvaluateScriptAsync("(function(p) { return p; })"); Assert.True(javascriptResponse.Success); var callback = (IJavascriptCallback)javascriptResponse.Result; diff --git a/CefSharp.Test/JavascriptBinding/BindingTestObject.cs b/CefSharp.Test/JavascriptBinding/BindingTestObject.cs new file mode 100644 index 000000000..2fc702e44 --- /dev/null +++ b/CefSharp.Test/JavascriptBinding/BindingTestObject.cs @@ -0,0 +1,17 @@ +// Copyright © 2017 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +namespace CefSharp.Test.JavascriptBinding +{ + internal class BindingTestObject + { + public int EchoMethodCallCount { get; private set; } + public string Echo(string arg) + { + EchoMethodCallCount++; + + return arg; + } + } +} diff --git a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs b/CefSharp.Test/JavascriptBinding/IntegrationTests.cs similarity index 56% rename from CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs rename to CefSharp.Test/JavascriptBinding/IntegrationTests.cs index b872be25e..60d496c21 100644 --- a/CefSharp.Test/JavascriptBinding/IntegrationTestFacts.cs +++ b/CefSharp.Test/JavascriptBinding/IntegrationTests.cs @@ -2,12 +2,9 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. -using System.Diagnostics; using System.Threading.Tasks; -using CefSharp.Event; using CefSharp.Example; using CefSharp.Example.JavascriptBinding; -using CefSharp.Internals; using CefSharp.OffScreen; using Xunit; using Xunit.Abstractions; @@ -15,20 +12,16 @@ namespace CefSharp.Test.JavascriptBinding { /// - /// This is more a set of integration tests than it is unit tests, for now we need to - /// run our QUnit tests in an automated fashion and some other testing. + /// Automated QUnit Integration Tests /// - //TODO: Improve Test Naming, we need a naming scheme that fits these cases that's consistent - //(Ideally we implement consistent naming accross all test classes, though I'm open to a different - //naming convention as these are more integration tests than unit tests). //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - public class IntegrationTestFacts + public class IntegrationTests { private readonly ITestOutputHelper output; private readonly CefSharpFixture fixture; - public IntegrationTestFacts(ITestOutputHelper output, CefSharpFixture fixture) + public IntegrationTests(ITestOutputHelper output, CefSharpFixture fixture) { this.fixture = fixture; this.output = output; @@ -206,135 +199,5 @@ public async Task LoadLegacyJavaScriptBindingQunitTestsSuccessfulCompletion() } } #endif - - [Fact] - public async Task IsObjectCachedWithInvalidObjectNameReturnsFalse() - { - using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl)) - { - await browser.WaitForInitialLoadAsync(); - - //We'll execute twice using the different cased (camelcase naming and standard) - var response = await browser.EvaluateScriptAsync("CefSharp.IsObjectCached('doesntexist')"); - - Assert.True(response.Success); - Assert.False((bool)response.Result); - - response = await browser.EvaluateScriptAsync("cefSharp.isObjectCached('doesntexist')"); - - Assert.True(response.Success); - Assert.False((bool)response.Result); - } - } - - [Fact] - public async Task JsBindingGlobalObjectNameCustomValueExecuteIsObjectCachedSuccess() - { - using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl, automaticallyCreateBrowser: false)) - { - var settings = browser.JavascriptObjectRepository.Settings; - settings.JavascriptBindingApiGlobalObjectName = "bindingApiObject"; - - //To modify the settings we need to defer browser creation slightly - browser.CreateBrowser(); - - await browser.WaitForInitialLoadAsync(); - - var result = await browser.EvaluateScriptAsync("bindingApiObject.isObjectCached('doesntexist') === false"); - - Assert.True(result.Success); - } - } - - [Fact] - public async Task JsBindingGlobalApiDisabled() - { - using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl, automaticallyCreateBrowser: false)) - { - var settings = browser.JavascriptObjectRepository.Settings; - settings.JavascriptBindingApiEnabled = false; - - //To modify the settings we need to defer browser creation slightly - browser.CreateBrowser(); - - var loadResponse = await browser.WaitForInitialLoadAsync(); - - Assert.True(loadResponse.Success); - - var response1 = await browser.EvaluateScriptAsync("typeof window.cefSharp === 'undefined'"); - var response2 = await browser.EvaluateScriptAsync("typeof window.CefSharp === 'undefined'"); - - Assert.True(response1.Success); - Assert.True((bool)response1.Result); - - Assert.True(response2.Success); - Assert.True((bool)response2.Result); - } - } - - [Fact] - public async Task JsBindingGlobalApiEnabled() - { - using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl, automaticallyCreateBrowser: false)) - { - var settings = browser.JavascriptObjectRepository.Settings; - settings.JavascriptBindingApiEnabled = true; - - //To modify the settings we need to defer browser creation slightly - browser.CreateBrowser(); - - await browser.WaitForInitialLoadAsync(); - - var response1 = await browser.EvaluateScriptAsync("typeof window.cefSharp === 'undefined'"); - var response2 = await browser.EvaluateScriptAsync("typeof window.CefSharp === 'undefined'"); - - Assert.True(response1.Success); - Assert.False((bool)response1.Result); - - Assert.True(response2.Success); - Assert.False((bool)response2.Result); - } - } - - [Theory] - [InlineData("CefSharp.RenderProcessId")] - [InlineData("cefSharp.renderProcessId")] - public async Task JsBindingRenderProcessId(string script) - { - using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl)) - { - await browser.WaitForInitialLoadAsync(); - - var result = await browser.EvaluateScriptAsync(script); - - Assert.True(result.Success); - - using (var process = Process.GetProcessById(Assert.IsType(result.Result))) - { - Assert.Equal("CefSharp.BrowserSubprocess", process.ProcessName); - } - } - } - - [Fact] - //Issue https://github.com/cefsharp/CefSharp/issues/3470 - //Verify workaround passes - public async Task CanCallCefSharpBindObjectAsyncWithoutParams() - { - using (var browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl)) - { - await browser.WaitForInitialLoadAsync(); - - //TODO: See if we can avoid GetAwaiter().GetResult() - var evt = Assert.Raises( - x => browser.JavascriptObjectRepository.ResolveObject += x, - y => browser.JavascriptObjectRepository.ResolveObject -= y, - () => { browser.EvaluateScriptAsync("CefSharp.BindObjectAsync();").GetAwaiter().GetResult(); }); - - Assert.NotNull(evt); - - Assert.Equal(JavascriptObjectRepository.AllObjects, evt.Arguments.ObjectName); - } - } } } diff --git a/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryFacts.cs b/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryTests.cs similarity index 93% rename from CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryFacts.cs rename to CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryTests.cs index 03c0b9981..c1679612f 100644 --- a/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryFacts.cs +++ b/CefSharp.Test/JavascriptBinding/JavaScriptObjectRepositoryTests.cs @@ -27,10 +27,10 @@ internal class SomeElseClass namespace CefSharp.Test.JavascriptBinding { - public class JavaScriptObjectRepositoryFacts + public class JavaScriptObjectRepositoryTests { [Fact] - public void CanRegisterJavascriptObjectBindWhenNamespaceIsNull() + public void ShouldRegisterJavascriptObjectBindWhenNamespaceIsNull() { IJavascriptObjectRepositoryInternal javascriptObjectRepository = new JavascriptObjectRepository(); var name = nameof(NoNamespaceClass); @@ -61,7 +61,7 @@ public void ShouldReturnErrorMessageForObjectInvalidId() #if !NETCOREAPP [Fact] - public void CanRegisterJavascriptObjectPropertyBindWhenNamespaceIsNull() + public void ShouldRegisterJavascriptObjectPropertyBindWhenNamespaceIsNull() { IJavascriptObjectRepositoryInternal javascriptObjectRepository = new JavascriptObjectRepository(); var name = nameof(NoNamespaceClass); diff --git a/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs new file mode 100644 index 000000000..ca405795a --- /dev/null +++ b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs @@ -0,0 +1,211 @@ +// Copyright © 2020 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Diagnostics; +using System.Threading.Tasks; +using CefSharp.Event; +using CefSharp.Example; +using CefSharp.Internals; +using CefSharp.OffScreen; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.JavascriptBinding +{ + [Collection(CefSharpFixtureCollection.Key)] + public class JavascriptBindingTests : BrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public JavascriptBindingTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + //Issue https://github.com/cefsharp/CefSharp/issues/3470 + //Verify workaround passes + public async Task ShouldWork() + { + AssertInitialLoadComplete(); + + var evt = await Assert.RaisesAsync( + x => Browser.JavascriptObjectRepository.ResolveObject += x, + y => Browser.JavascriptObjectRepository.ResolveObject -= y, + () => Browser.EvaluateScriptAsync("CefSharp.BindObjectAsync();")); + + Assert.NotNull(evt); + + Assert.Equal(JavascriptObjectRepository.AllObjects, evt.Arguments.ObjectName); + } + + [Fact] + public async Task ShouldWorkWhenUsingCustomGlobalObjectName() + { + using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl, automaticallyCreateBrowser: false)) + { + var settings = browser.JavascriptObjectRepository.Settings; + settings.JavascriptBindingApiGlobalObjectName = "bindingApiObject"; + + //To modify the settings we need to defer browser creation slightly + browser.CreateBrowser(); + + await browser.WaitForInitialLoadAsync(); + + var result = await browser.EvaluateScriptAsync("bindingApiObject.isObjectCached('doesntexist') === false"); + + Assert.True(result.Success); + } + } + + [Theory] + //We'll execute twice using the different cased (camelcase naming and standard) + [InlineData("CefSharp.IsObjectCached('doesntexist')")] + [InlineData("cefSharp.isObjectCached('doesntexist')")] + public async Task ShouldFailWhenIsObjectCachedCalledWithInvalidObjectName(string script) + { + var loadResponse = await Browser.LoadUrlAsync(CefExample.BindingApiCustomObjectNameTestUrl); + + Assert.True(loadResponse.Success); + + var response = await Browser.EvaluateScriptAsync(script); + + Assert.True(response.Success); + Assert.False((bool)response.Result); + } + + [Fact] + public async Task ShouldDisableJsBindingApi() + { + using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl, automaticallyCreateBrowser: false)) + { + var settings = browser.JavascriptObjectRepository.Settings; + settings.JavascriptBindingApiEnabled = false; + + //To modify the settings we need to defer browser creation slightly + browser.CreateBrowser(); + + var loadResponse = await browser.WaitForInitialLoadAsync(); + + Assert.True(loadResponse.Success); + + var response1 = await browser.EvaluateScriptAsync("typeof window.cefSharp === 'undefined'"); + var response2 = await browser.EvaluateScriptAsync("typeof window.CefSharp === 'undefined'"); + + Assert.True(response1.Success); + Assert.True((bool)response1.Result); + + Assert.True(response2.Success); + Assert.True((bool)response2.Result); + } + } + + [Fact] + public async Task ShouldEnableJsBindingApi() + { + using (var browser = new ChromiumWebBrowser(CefExample.BindingApiCustomObjectNameTestUrl, automaticallyCreateBrowser: false)) + { + var settings = browser.JavascriptObjectRepository.Settings; + settings.JavascriptBindingApiEnabled = true; + + //To modify the settings we need to defer browser creation slightly + browser.CreateBrowser(); + + await browser.WaitForInitialLoadAsync(); + + var response1 = await browser.EvaluateScriptAsync("typeof window.cefSharp === 'undefined'"); + var response2 = await browser.EvaluateScriptAsync("typeof window.CefSharp === 'undefined'"); + + Assert.True(response1.Success); + Assert.False((bool)response1.Result); + + Assert.True(response2.Success); + Assert.False((bool)response2.Result); + } + } + + [Theory] + [InlineData("CefSharp.RenderProcessId")] + [InlineData("cefSharp.renderProcessId")] + public async Task ShouldReturnRenderProcessId(string script) + { + var result = await Browser.EvaluateScriptAsync(script); + + Assert.True(result.Success); + + using (var process = Process.GetProcessById(Assert.IsType(result.Result))) + { + Assert.Equal("CefSharp.BrowserSubprocess", process.ProcessName); + } + } + + [Fact] + public async Task ShouldWorkAfterACrossOriginNavigation() + { + const string script = @" + (async function() + { + await CefSharp.BindObjectAsync('bound'); + return await bound.echo('test'); + })();"; + + var boundObj = new BindingTestObject(); + +#if NETCOREAPP + Browser.JavascriptObjectRepository.Register("bound", boundObj); +#else + Browser.JavascriptObjectRepository.Register("bound", boundObj, true); +#endif + + await Browser.LoadUrlAsync("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url"); + await Browser.EvaluateScriptAndAssertAsync(script); + await Browser.LoadUrlAsync("https://www.google.com"); + await Browser.EvaluateScriptAndAssertAsync(script); + + Assert.Equal(2, boundObj.EchoMethodCallCount); + } + + [Fact] + public async Task ShouldFireResolveObject() + { + AssertInitialLoadComplete(); + + var objRepository = Browser.JavascriptObjectRepository; + + var evt = await Assert.RaisesAsync( + a => objRepository.ResolveObject += a, + a => objRepository.ResolveObject -= a, + () => Browser.EvaluateScriptAsync("(async function() { await CefSharp.BindObjectAsync('first'); })();")); + + Assert.NotNull(evt); + Assert.Equal("first", evt.Arguments.ObjectName); + } + + [Fact] + public async Task ShouldFireResolveObjectForUnregisteredObject() + { + AssertInitialLoadComplete(); + + var objRepository = Browser.JavascriptObjectRepository; + + var boundObj = new BindingTestObject(); + +#if NETCOREAPP + objRepository.Register("first", boundObj); +#else + objRepository.Register("first", boundObj, true); +#endif + + var evt = await Assert.RaisesAsync( + a => objRepository.ResolveObject += a, + a => objRepository.ResolveObject -= a, + () => Browser.EvaluateScriptAsync("(async function() { await CefSharp.BindObjectAsync('first', 'second'); })();")); + + Assert.NotNull(evt); + Assert.Equal("second", evt.Arguments.ObjectName); + } + } +} diff --git a/CefSharp.Test/OffScreen/BrowserRefCountTests.cs b/CefSharp.Test/OffScreen/BrowserRefCountTests.cs new file mode 100644 index 000000000..1a51aaa76 --- /dev/null +++ b/CefSharp.Test/OffScreen/BrowserRefCountTests.cs @@ -0,0 +1,58 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading; +using CefSharp.Internals; +using CefSharp.OffScreen; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.OffScreen +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class BrowserRefCountTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public BrowserRefCountTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public void ShouldWork() + { + var currentCount = BrowserRefCounter.Instance.Count; + + var manualResetEvent = new ManualResetEvent(false); + + var browser = new ChromiumWebBrowser("https://google.com", useLegacyRenderHandler: false); + + browser.LoadingStateChanged += (sender, e) => + { + if (!e.IsLoading) + { + manualResetEvent.Set(); + } + }; + + manualResetEvent.WaitOne(); + + //TODO: Refactor this so reference is injected into browser + Assert.Equal(currentCount + 1, BrowserRefCounter.Instance.Count); + + browser.Dispose(); + + Cef.WaitForBrowsersToClose(10000); + + output.WriteLine("BrowserRefCounter Log"); + output.WriteLine(BrowserRefCounter.Instance.GetLog()); + + Assert.Equal(0, BrowserRefCounter.Instance.Count); + } + } +} diff --git a/CefSharp.Test/OffScreen/DownloadHandlerTests.cs b/CefSharp.Test/OffScreen/DownloadHandlerTests.cs new file mode 100644 index 000000000..755abcf65 --- /dev/null +++ b/CefSharp.Test/OffScreen/DownloadHandlerTests.cs @@ -0,0 +1,71 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using CefSharp.OffScreen; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.OffScreen +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class DownloadHandlerTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public DownloadHandlerTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Theory] + [InlineData("https://code.jquery.com/jquery-3.4.1.min.js")] + public async Task ShouldWorkWithoutAskingUser(string url) + { + var tcs = new TaskCompletionSource(TaskContinuationOptions.RunContinuationsAsynchronously); + + using (var chromiumWebBrowser = new ChromiumWebBrowser(url, useLegacyRenderHandler: false)) + { + var userTempPath = System.IO.Path.GetTempPath(); + + chromiumWebBrowser.DownloadHandler = + Fluent.DownloadHandler.UseFolder(userTempPath, + (chromiumBrowser, browser, downloadItem, callback) => + { + if (downloadItem.IsComplete) + { + tcs.SetResult(downloadItem.FullPath); + } + else if (downloadItem.IsCancelled) + { + tcs.SetResult(null); + } + }); + + await chromiumWebBrowser.WaitForInitialLoadAsync(); + + chromiumWebBrowser.StartDownload(url); + + var downloadedFilePath = await tcs.Task; + + Assert.NotNull(downloadedFilePath); + Assert.Contains(userTempPath, downloadedFilePath); + Assert.True(System.IO.File.Exists(downloadedFilePath)); + + var downloadedFileContent = System.IO.File.ReadAllText(downloadedFilePath); + + Assert.NotEqual(0, downloadedFileContent.Length); + + var htmlSrc = await chromiumWebBrowser.GetSourceAsync(); + + Assert.Contains(downloadedFileContent.Substring(0, 100), htmlSrc); + + System.IO.File.Delete(downloadedFilePath); + } + } + } +} diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs b/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs deleted file mode 100644 index fcf757566..000000000 --- a/CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs +++ /dev/null @@ -1,843 +0,0 @@ -// Copyright © 2017 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System; -using System.Collections.Generic; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Net; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using CefSharp.DevTools.Page; -using CefSharp.Example; -using CefSharp.Example.Handlers; -using CefSharp.Internals; -using CefSharp.OffScreen; -using CefSharp.Web; -using Xunit; -using Xunit.Abstractions; - -namespace CefSharp.Test.OffScreen -{ - //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle - [Collection(CefSharpFixtureCollection.Key)] - public class OffScreenBrowserBasicFacts - { - //TODO: Move into own file/namespace - public class AsyncBoundObject - { - public bool MethodCalled { get; set; } - public string Echo(string arg) - { - MethodCalled = true; - return arg; - } - } - - private readonly ITestOutputHelper output; - private readonly CefSharpFixture fixture; - - public OffScreenBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixture) - { - this.fixture = fixture; - this.output = output; - } - - [Fact] - public async Task CanLoadGoogle() - { - using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler:false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("www.google", mainFrame.Url); - Assert.Equal(200, response.HttpStatusCode); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [Fact] - public async Task ShouldRespectDisposed() - { - ChromiumWebBrowser browser; - - using (browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Equal(CefExample.DefaultUrl, mainFrame.Url); - Assert.Equal(200, response.HttpStatusCode); - - output.WriteLine("Url {0}", mainFrame.Url); - } - - Assert.True(browser.IsDisposed); - - Assert.Throws(() => - { - browser.Copy(); - }); - } - - [Fact] - public async Task CanLoadInvalidDomain() - { - using (var browser = new ChromiumWebBrowser("notfound.cefsharp.test", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("notfound.cefsharp.test", mainFrame.Url); - Assert.Equal(CefErrorCode.NameNotResolved, response.ErrorCode); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [Fact] - public async Task CanLoadExpiredBadSsl() - { - using (var browser = new ChromiumWebBrowser("https://expired.badssl.com/", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("", mainFrame.Url); - Assert.Equal(-1, response.HttpStatusCode); - Assert.Equal(CefErrorCode.CertDateInvalid, response.ErrorCode); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [Fact] - public void BrowserRefCountDecrementedOnDispose() - { - var currentCount = BrowserRefCounter.Instance.Count; - - var manualResetEvent = new ManualResetEvent(false); - - var browser = new ChromiumWebBrowser("https://google.com", useLegacyRenderHandler: false); - browser.LoadingStateChanged += (sender, e) => - { - if (!e.IsLoading) - { - manualResetEvent.Set(); - } - }; - - manualResetEvent.WaitOne(); - - //TODO: Refactor this so reference is injected into browser - Assert.Equal(currentCount + 1, BrowserRefCounter.Instance.Count); - - browser.Dispose(); - - Cef.WaitForBrowsersToClose(10000); - - output.WriteLine("BrowserRefCounter Log"); - output.WriteLine(BrowserRefCounter.Instance.GetLog()); - - Assert.Equal(0, BrowserRefCounter.Instance.Count); - } - - [Fact] - public async Task CanCreateBrowserAsync() - { - using (var chromiumWebBrowser = new ChromiumWebBrowser("http://www.google.com", automaticallyCreateBrowser: false, useLegacyRenderHandler: false)) - { - var browser = await chromiumWebBrowser.CreateBrowserAsync(); - - Assert.NotNull(browser); - Assert.False(browser.HasDocument); - Assert.NotEqual(0, browser.Identifier); - Assert.False(browser.IsDisposed); - } - } - - [Fact] - public async Task CanLoadGoogleAndEvaluateScript() - { - using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("www.google", mainFrame.Url); - - var javascriptResponse = await browser.EvaluateScriptAsync("2 + 2"); - Assert.True(javascriptResponse.Success); - Assert.Equal(4, (int)javascriptResponse.Result); - output.WriteLine("Result of 2 + 2: {0}", javascriptResponse.Result); - } - } - - [Fact] - public async Task CanEvaluateScriptInParallel() - { - using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var tasks = Enumerable.Range(0, 100).Select(i => Task.Run(async () => - { - var javascriptResponse = await browser.EvaluateScriptAsync("2 + 2"); - - if (javascriptResponse.Success) - { - return (int)javascriptResponse.Result; - } - - return -1; - })).ToList(); - - await Task.WhenAll(tasks); - - Assert.All(tasks, (t) => - { - Assert.Equal(4, t.Result); - }); - } - } - - [Theory] - [InlineData("[1,2,,5]", new object[] { 1, 2, null, 5 })] - [InlineData("[1,2,,]", new object[] { 1, 2, null })] - [InlineData("[,2,3]", new object[] { null, 2, 3 })] - [InlineData("[,2,,3,,4,,,,5,,,]", new object[] { null, 2, null, 3, null, 4, null, null, null, 5, null, null })] - public async Task CanEvaluateScriptAsyncReturnPartiallyEmptyArrays(string javascript, object[] expected) - { - using (var browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl, useLegacyRenderHandler: false)) - { - await browser.WaitForInitialLoadAsync(); - - var result = await browser.EvaluateScriptAsync(javascript); - - Assert.True(result.Success); - Assert.Equal(expected, result.Result); - } - } - - [Fact] - public async Task CrossSiteNavigationJavascriptBinding() - { - const string script = @" - (async function() - { - await CefSharp.BindObjectAsync('bound'); - bound.echo('test'); - })();"; - - var boundObj = new AsyncBoundObject(); - - using (var browser = new ChromiumWebBrowser("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url", useLegacyRenderHandler: false)) - { -#if NETCOREAPP - browser.JavascriptObjectRepository.Register("bound", boundObj); -#else - browser.JavascriptObjectRepository.Register("bound", boundObj, true); -#endif - - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - browser.GetMainFrame().ExecuteJavaScriptAsync(script); - - await Task.Delay(2000); - Assert.True(boundObj.MethodCalled); - - boundObj.MethodCalled = false; - - browser.Load("https://www.google.com"); - await browser.WaitForInitialLoadAsync(); - browser.GetMainFrame().ExecuteJavaScriptAsync(script); - await Task.Delay(2000); - Assert.True(boundObj.MethodCalled); - } - } - - [Fact] - public async Task JavascriptBindingMultipleObjects() - { - const string script = @" - (async function() - { - await CefSharp.BindObjectAsync('first'); - await CefSharp.BindObjectAsync('first', 'second'); - })();"; - - var objectNames = new List(); - var boundObj = new AsyncBoundObject(); - - using (var browser = new ChromiumWebBrowser("https://www.google.com", useLegacyRenderHandler: false)) - { - browser.JavascriptObjectRepository.ResolveObject += (s, e) => - { - objectNames.Add(e.ObjectName); -#if NETCOREAPP - e.ObjectRepository.Register(e.ObjectName, boundObj); -#else - e.ObjectRepository.Register(e.ObjectName, boundObj, isAsync: true); -#endif - }; - - await browser.WaitForInitialLoadAsync(); - browser.GetMainFrame().ExecuteJavaScriptAsync(script); - - await Task.Delay(2000); - Assert.Equal(new[] { "first", "second" }, objectNames); - } - } - - /// - /// Use the EvaluateScriptAsync (IWebBrowser, String,Object[]) overload and pass in string params - /// that require encoding. Test case for https://github.com/cefsharp/CefSharp/issues/2339 - /// - /// A task - [Fact] - public async Task CanEvaluateScriptAsyncWithEncodedStringArguments() - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var javascriptResponse = await browser.EvaluateScriptAsync("var testfunc=function(s) { return s; }"); - Assert.True(javascriptResponse.Success); - - // now call the function we just created - string[] teststrings = new string[]{"Mary's\tLamb & \r\nOther Things", - "[{test:\"Mary's Lamb & \\nOther Things\", 'other': \"\", 'and': null}]" }; - foreach (var test in teststrings) - { - javascriptResponse = await browser.EvaluateScriptAsync("testfunc", test); - Assert.True(javascriptResponse.Success); - Assert.Equal(test, (string)javascriptResponse.Result); - output.WriteLine("{0} passes {1}", test, javascriptResponse.Result); - } - } - } - - [Fact] - public async Task CanMakeFrameUrlRequest() - { - using (var browser = new ChromiumWebBrowser("https://code.jquery.com/jquery-3.4.1.min.js", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); - var wasCached = false; - var requestClient = new Example.UrlRequestClient((IUrlRequest req, byte[] responseBody) => - { - wasCached = req.ResponseWasCached; - taskCompletionSource.TrySetResult(Encoding.UTF8.GetString(responseBody)); - }); - - //Can be created on any valid CEF Thread, here we'll use the CEF UI Thread - await Cef.UIThreadTaskFactory.StartNew(delegate - { - var request = mainFrame.CreateRequest(false); - - request.Method = "GET"; - request.Url = "https://code.jquery.com/jquery-3.4.1.min.js"; - var urlRequest = mainFrame.CreateUrlRequest(request, requestClient); - }); - - var stringResult = await taskCompletionSource.Task; - - Assert.True(!string.IsNullOrEmpty(stringResult)); - Assert.True(wasCached); - } - } - - [Theory] - [InlineData("https://code.jquery.com/jquery-3.4.1.min.js")] - public async Task CanDownloadUrlForFrame(string url) - { - using (var browser = new ChromiumWebBrowser(url, useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var htmlSrc = await browser.GetSourceAsync(); - - Assert.NotNull(htmlSrc); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - - var data = await mainFrame.DownloadUrlAsync(url); - - Assert.NotNull(data); - Assert.True(data.Length > 0); - - var stringResult = Encoding.UTF8.GetString(data).Substring(0, 100); - - Assert.Contains(stringResult, htmlSrc); - } - } - - [Theory] - [InlineData("https://code.jquery.com/jquery-3.4.1.min.js")] - public async Task CanDownloadFileToFolderWithoutAskingUser(string url) - { - var tcs = new TaskCompletionSource(TaskContinuationOptions.RunContinuationsAsynchronously); - - using (var chromiumWebBrowser = new ChromiumWebBrowser(url, useLegacyRenderHandler: false)) - { - var userTempPath = System.IO.Path.GetTempPath(); - - chromiumWebBrowser.DownloadHandler = - Fluent.DownloadHandler.UseFolder(userTempPath, - (chromiumBrowser, browser, downloadItem, callback) => - { - if(downloadItem.IsComplete) - { - tcs.SetResult(downloadItem.FullPath); - } - else if(downloadItem.IsCancelled) - { - tcs.SetResult(null); - } - }); - - await chromiumWebBrowser.WaitForInitialLoadAsync(); - - chromiumWebBrowser.StartDownload(url); - - var downloadedFilePath = await tcs.Task; - - Assert.NotNull(downloadedFilePath); - Assert.Contains(userTempPath, downloadedFilePath); - Assert.True(System.IO.File.Exists(downloadedFilePath)); - - var downloadedFileContent = System.IO.File.ReadAllText(downloadedFilePath); - - Assert.NotEqual(0, downloadedFileContent.Length); - - var htmlSrc = await chromiumWebBrowser.GetSourceAsync(); - - Assert.Contains(downloadedFileContent.Substring(0, 100), htmlSrc); - - System.IO.File.Delete(downloadedFilePath); - } - } - - [Fact] - public async Task CanMakeUrlRequest() - { - var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); - IUrlRequest urlRequest = null; - int statusCode = -1; - - //Can be created on any valid CEF Thread, here we'll use the CEF UI Thread - await Cef.UIThreadTaskFactory.StartNew(delegate - { - var requestClient = new Example.UrlRequestClient((IUrlRequest req, byte[] responseBody) => - { - statusCode = req.Response.StatusCode; - taskCompletionSource.TrySetResult(Encoding.UTF8.GetString(responseBody)); - }); - - var request = new Request - { - Method = "GET", - Url = "https://code.jquery.com/jquery-3.4.1.min.js" - }; - - //Global RequestContext will be used - urlRequest = new UrlRequest(request, requestClient); - }); - - var stringResult = await taskCompletionSource.Task; - - Assert.True(!string.IsNullOrEmpty(stringResult)); - Assert.Equal(200, statusCode); - } - - [Theory] - //TODO: Add more urls - [InlineData("http://www.google.com", "http://cefsharp.github.io/")] - public async Task CanExecuteJavascriptInMainFrameAfterNavigatingToDifferentOrigin(string firstUrl, string secondUrl) - { - using (var browser = new ChromiumWebBrowser(firstUrl, useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - Assert.True(browser.CanExecuteJavascriptInMainFrame); - - await browser.LoadUrlAsync(secondUrl); - - Assert.True(browser.CanExecuteJavascriptInMainFrame); - - await browser.LoadUrlAsync(firstUrl); - - Assert.True(browser.CanExecuteJavascriptInMainFrame); - } - } - - [Theory] - [InlineData("http://httpbin.org/post")] - public async Task CanLoadRequestWithPostData(string url) - { - const string data = "Testing123"; - //When Chromium Site Isolation is enabled we must first navigate to - //a web page of the same origin to use LoadRequest - //When Site Isolation is disabled we can navigate to any web page - //https://magpcss.org/ceforum/viewtopic.php?f=10&t=18672&p=50266#p50249 - using (var browser = new ChromiumWebBrowser("http://httpbin.org/", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var request = new Request - { - Url = "http://httpbin.org/post", - Method = "POST" - }; - var postData = new PostData(); - postData.AddElement(new PostDataElement - { - Bytes = Encoding.UTF8.GetBytes(data) - }); - - request.PostData = postData; - - await browser.LoadRequestAsync(request); - - var mainFrame = browser.GetMainFrame(); - Assert.Equal(url, mainFrame.Url); - - var navEntry = await browser.GetVisibleNavigationEntryAsync(); - - Assert.Equal((int)HttpStatusCode.OK, navEntry.HttpStatusCode); - Assert.True(navEntry.HasPostData); - - var source = await browser.GetTextAsync(); - - Assert.Contains(data, source); - } - } - - [SkipIfRunOnAppVeyorFact] - public async Task CanLoadHttpWebsiteUsingProxy() - { - fixture.StartProxyServerIfRequired(); - - var requestContext = RequestContext - .Configure() - .WithProxyServer("127.0.0.1", 8080) - .Create(); - - using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("cefsharp.github.io", mainFrame.Url); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [SkipIfRunOnAppVeyorFact] - public async Task CanLoadHttpWebsiteUsingSetProxyAsync() - { - fixture.StartProxyServerIfRequired(); - - var tcs = new TaskCompletionSource(); - - var requestContext = RequestContext - .Configure() - .OnInitialize((ctx) => - { - tcs.SetResult(true); - }) - .Create(); - - //Wait for our RequestContext to have initialized. - await tcs.Task; - - var setProxyResponse = await requestContext.SetProxyAsync("127.0.0.1", 8080); - - Assert.True(setProxyResponse.Success); - - using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("cefsharp.github.io", mainFrame.Url); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [SkipIfRunOnAppVeyorFact] - public async Task CanLoadHttpWebsiteUsingSetProxyOnUiThread() - { - fixture.StartProxyServerIfRequired(); - - var tcs = new TaskCompletionSource(); - - var requestContext = RequestContext - .Configure() - .OnInitialize((ctx) => - { - tcs.SetResult(true); - }) - .Create(); - - //Wait for our RequestContext to have initialized. - await tcs.Task; - - var success = false; - - //To execute on the CEF UI Thread you can use - await Cef.UIThreadTaskFactory.StartNew(delegate - { - string errorMessage; - - if (!requestContext.CanSetPreference("proxy")) - { - //Unable to set proxy, if you set proxy via command line args it cannot be modified. - success = false; - - return; - } - - success = requestContext.SetProxy("127.0.0.1", 8080, out errorMessage); - }); - - Assert.True(success); - - using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("cefsharp.github.io", mainFrame.Url); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [Fact] - public async Task CanWaitForBrowserInitialLoadAfterLoad() - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("www.google.com", mainFrame.Url); - Assert.Equal(CefErrorCode.None, response.ErrorCode); - Assert.Equal(200, response.HttpStatusCode); - - output.WriteLine("Url {0}", mainFrame.Url); - - response = await browser.WaitForInitialLoadAsync(); - - Assert.Equal(CefErrorCode.None, response.ErrorCode); - Assert.Equal(200, response.HttpStatusCode); - } - } - - [Fact] - public async Task CanCallTryGetBrowserCoreByIdWithInvalidId() - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - var result = browser.TryGetBrowserCoreById(100, out IBrowser browserCore); - - Assert.False(result); - Assert.Null(browserCore); - } - } - - [Fact] - public async Task CanCallTryGetBrowserCoreByIdWithOwnId() - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - var result = browser.TryGetBrowserCoreById(browser.BrowserCore.Identifier, out IBrowser browserCore); - - Assert.True(result); - Assert.NotNull(browserCore); - Assert.Equal(browser.BrowserCore.Identifier, browserCore.Identifier); - } - } - - [Fact] - public async Task CanCaptureScreenshotAsync() - { - using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler:false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var result1 = await browser.CaptureScreenshotAsync(); - Assert.Equal(1366, browser.Size.Width); - Assert.Equal(768, browser.Size.Height); - Assert.Equal(1, browser.DeviceScaleFactor); - using (var screenshot = Image.FromStream(new MemoryStream(result1))) - { - Assert.Equal(1366, screenshot.Width); - Assert.Equal(768, screenshot.Height); - } - - - var result2 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 1366, Height = 768, X = 100, Y = 200, Scale = 2 }); - Assert.Equal(1466, browser.Size.Width); - Assert.Equal(968, browser.Size.Height); - Assert.Equal(2, browser.DeviceScaleFactor); - using (var screenshot = Image.FromStream(new MemoryStream(result2))) - { - Assert.Equal(2732, screenshot.Width); - Assert.Equal(1536, screenshot.Height); - } - - - var result3 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 100, Height = 200, Scale = 2 }); - Assert.Equal(1466, browser.Size.Width); - Assert.Equal(968, browser.Size.Height); - Assert.Equal(2, browser.DeviceScaleFactor); - using (var screenshot = Image.FromStream(new MemoryStream(result3))) - { - Assert.Equal(200, screenshot.Width); - Assert.Equal(400, screenshot.Height); - } - - var result4 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 100, Height = 200, Scale = 1 }); - Assert.Equal(1466, browser.Size.Width); - Assert.Equal(968, browser.Size.Height); - Assert.Equal(1, browser.DeviceScaleFactor); - using (var screenshot = Image.FromStream(new MemoryStream(result4))) - { - Assert.Equal(100, screenshot.Width); - Assert.Equal(200, screenshot.Height); - } - } - } - - [Fact] - public async Task CanResizeWithDeviceScalingFactor() - { - using (var browser = new ChromiumWebBrowser("http://www.google.com")) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - Assert.Equal(1366, browser.Size.Width); - Assert.Equal(768, browser.Size.Height); - Assert.Equal(1, browser.DeviceScaleFactor); - - - await browser.ResizeAsync(800, 600, 2); - - Assert.Equal(800, browser.Size.Width); - Assert.Equal(600, browser.Size.Height); - Assert.Equal(2, browser.DeviceScaleFactor); - - using (var screenshot = browser.ScreenshotOrNull()) - { - Assert.Equal(1600, screenshot.Width); - Assert.Equal(1200, screenshot.Height); - } - - await browser.ResizeAsync(400, 300); - - Assert.Equal(400, browser.Size.Width); - Assert.Equal(300, browser.Size.Height); - Assert.Equal(2, browser.DeviceScaleFactor); - - using (var screenshot = browser.ScreenshotOrNull()) - { - Assert.Equal(800, screenshot.Width); - Assert.Equal(600, screenshot.Height); - } - - await browser.ResizeAsync(1366, 768, 1); - - Assert.Equal(1366, browser.Size.Width); - Assert.Equal(768, browser.Size.Height); - Assert.Equal(1, browser.DeviceScaleFactor); - - using (var screenshot = browser.ScreenshotOrNull()) - { - Assert.Equal(1366, screenshot.Width); - Assert.Equal(768, screenshot.Height); - } - } - } - -#if DEBUG - [Fact] - public async Task CanLoadMultipleBrowserInstancesSequentially() - { - for (int i = 0; i < 1000; i++) - { - using (var browser = new ChromiumWebBrowser(new HtmlString("Testing"), useLegacyRenderHandler: false)) - { - var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - - var source = await browser.GetSourceAsync(); - - Assert.Contains("Testing", source); - } - } - } -#endif - } -} diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserTests.cs b/CefSharp.Test/OffScreen/OffScreenBrowserTests.cs new file mode 100644 index 000000000..93df75d5b --- /dev/null +++ b/CefSharp.Test/OffScreen/OffScreenBrowserTests.cs @@ -0,0 +1,317 @@ +// Copyright © 2017 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Net; +using System.Text; +using System.Threading.Tasks; +using CefSharp.Example; +using CefSharp.OffScreen; +using CefSharp.Web; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.OffScreen +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class OffScreenBrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public OffScreenBrowserTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task ShouldWorkWhenLoadingGoogle() + { + using (var browser = new ChromiumWebBrowser("www.google.com", useLegacyRenderHandler:false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(response.Success); + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google", mainFrame.Url); + Assert.Equal(200, response.HttpStatusCode); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [Theory] + [InlineData("http://httpbin.org/post")] + public async Task ShouldWorkWhenLoadingRequestWithPostData(string url) + { + const string data = "Testing123"; + //When Chromium Site Isolation is enabled we must first navigate to + //a web page of the same origin to use LoadRequest + //When Site Isolation is disabled we can navigate to any web page + //https://magpcss.org/ceforum/viewtopic.php?f=10&t=18672&p=50266#p50249 + using (var browser = new ChromiumWebBrowser("http://httpbin.org/", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var request = new Request + { + Url = "http://httpbin.org/post", + Method = "POST" + }; + var postData = new PostData(); + postData.AddElement(new PostDataElement + { + Bytes = Encoding.UTF8.GetBytes(data) + }); + + request.PostData = postData; + + await browser.LoadRequestAsync(request); + + var mainFrame = browser.GetMainFrame(); + Assert.Equal(url, mainFrame.Url); + + var navEntry = await browser.GetVisibleNavigationEntryAsync(); + + Assert.Equal((int)HttpStatusCode.OK, navEntry.HttpStatusCode); + Assert.True(navEntry.HasPostData); + + var source = await browser.GetTextAsync(); + + Assert.Contains(data, source); + } + } + + [Fact] + public async Task ShouldFailWhenLoadingInvalidDomain() + { + using (var browser = new ChromiumWebBrowser("notfound.cefsharp.test", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(mainFrame.IsValid); + Assert.Contains("notfound.cefsharp.test", mainFrame.Url); + Assert.Equal(CefErrorCode.NameNotResolved, response.ErrorCode); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [Fact] + public async Task ShouldFailWhenLoadingBadSsl() + { + using (var browser = new ChromiumWebBrowser("https://expired.badssl.com/", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(mainFrame.IsValid); + Assert.Contains("", mainFrame.Url); + Assert.Equal(-1, response.HttpStatusCode); + Assert.Equal(CefErrorCode.CertDateInvalid, response.ErrorCode); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [Fact] + public async Task ShouldRespectDisposed() + { + ChromiumWebBrowser browser; + + using (browser = new ChromiumWebBrowser(CefExample.DefaultUrl, useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(response.Success); + Assert.True(mainFrame.IsValid); + Assert.Equal(CefExample.DefaultUrl, mainFrame.Url); + Assert.Equal(200, response.HttpStatusCode); + + output.WriteLine("Url {0}", mainFrame.Url); + } + + Assert.True(browser.IsDisposed, $"Browser IsDisposed:{browser.IsDisposed}"); + + Assert.Throws(() => + { + browser.Copy(); + }); + } + + [Fact] + public async Task ShouldWorkWhenBrowserCreatedAsync() + { + using (var chromiumWebBrowser = new ChromiumWebBrowser("http://www.google.com", automaticallyCreateBrowser: false, useLegacyRenderHandler: false)) + { + var browser = await chromiumWebBrowser.CreateBrowserAsync(); + + Assert.NotNull(browser); + Assert.False(browser.HasDocument); + Assert.NotEqual(0, browser.Identifier); + Assert.False(browser.IsDisposed); + } + } + + [Fact] + public async Task ShouldMakeFrameUrlRequest() + { + using (var browser = new ChromiumWebBrowser("https://code.jquery.com/jquery-3.4.1.min.js", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(response.Success); + Assert.True(mainFrame.IsValid); + + var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + var wasCached = false; + var requestClient = new Example.UrlRequestClient((IUrlRequest req, byte[] responseBody) => + { + wasCached = req.ResponseWasCached; + taskCompletionSource.TrySetResult(Encoding.UTF8.GetString(responseBody)); + }); + + //Can be created on any valid CEF Thread, here we'll use the CEF UI Thread + await Cef.UIThreadTaskFactory.StartNew(delegate + { + var request = mainFrame.CreateRequest(false); + + request.Method = "GET"; + request.Url = "https://code.jquery.com/jquery-3.4.1.min.js"; + var urlRequest = mainFrame.CreateUrlRequest(request, requestClient); + }); + + var stringResult = await taskCompletionSource.Task; + + Assert.True(!string.IsNullOrEmpty(stringResult)); + Assert.True(wasCached); + } + } + + [Theory] + [InlineData("https://code.jquery.com/jquery-3.4.1.min.js")] + public async Task ShouldDownloadUrlForFrame(string url) + { + using (var browser = new ChromiumWebBrowser(url, useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var htmlSrc = await browser.GetSourceAsync(); + + Assert.NotNull(htmlSrc); + + var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + + var data = await mainFrame.DownloadUrlAsync(url); + + Assert.NotNull(data); + Assert.True(data.Length > 0); + + var stringResult = Encoding.UTF8.GetString(data).Substring(0, 100); + + Assert.Contains(stringResult, htmlSrc); + } + } + + [Theory] + //TODO: Add more urls + [InlineData("http://www.google.com", "http://cefsharp.github.io/")] + public async Task CanExecuteJavascriptInMainFrameAfterNavigatingToDifferentOrigin(string firstUrl, string secondUrl) + { + using (var browser = new ChromiumWebBrowser(firstUrl, useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + Assert.True(browser.CanExecuteJavascriptInMainFrame); + + await browser.LoadUrlAsync(secondUrl); + + Assert.True(browser.CanExecuteJavascriptInMainFrame); + + await browser.LoadUrlAsync(firstUrl); + + Assert.True(browser.CanExecuteJavascriptInMainFrame); + } + } + + [Fact] + public async Task ShouldWaitForBrowserInitialLoadAfterSubsequentLoad() + { + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google.com", mainFrame.Url); + Assert.Equal(CefErrorCode.None, response.ErrorCode); + Assert.Equal(200, response.HttpStatusCode); + + output.WriteLine("Url {0}", mainFrame.Url); + + response = await browser.WaitForInitialLoadAsync(); + + Assert.Equal(CefErrorCode.None, response.ErrorCode); + Assert.Equal(200, response.HttpStatusCode); + } + } + + [Fact] + public async Task ShouldFailWhenCallingTryGetBrowserCoreByIdWithInvalidId() + { + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var result = browser.TryGetBrowserCoreById(100, out IBrowser browserCore); + + Assert.False(result); + Assert.Null(browserCore); + } + } + + [Fact] + public async Task ShouldWorkWhenCallingTryGetBrowserCoreByIdWithOwnId() + { + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var result = browser.TryGetBrowserCoreById(browser.BrowserCore.Identifier, out IBrowser browserCore); + + Assert.True(result); + Assert.NotNull(browserCore); + Assert.Equal(browser.BrowserCore.Identifier, browserCore.Identifier); + } + } + + [SkipIfRunOnAppVeyorFact] + public async Task ShouldWorkWhenCreatingOneThousandBrowserSequentially() + { + for (int i = 0; i < 1000; i++) + { + using (var browser = new ChromiumWebBrowser(new HtmlString("Testing"), useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var source = await browser.GetSourceAsync(); + + Assert.Contains("Testing", source); + } + } + } + } +} diff --git a/CefSharp.Test/OffScreen/RequestContextTests.cs b/CefSharp.Test/OffScreen/RequestContextTests.cs new file mode 100644 index 000000000..0d1e6b08d --- /dev/null +++ b/CefSharp.Test/OffScreen/RequestContextTests.cs @@ -0,0 +1,134 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using CefSharp.OffScreen; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.OffScreen +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class RequestContextTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public RequestContextTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [SkipIfRunOnAppVeyorFact] + public async Task ShouldWorkWithProxy() + { + fixture.StartProxyServerIfRequired(); + + var requestContext = RequestContext + .Configure() + .WithProxyServer("127.0.0.1", 8080) + .Create(); + + using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(response.Success); + Assert.True(mainFrame.IsValid); + Assert.Contains("cefsharp.github.io", mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [SkipIfRunOnAppVeyorFact] + public async Task ShouldWorkWithSetProxyAsync() + { + fixture.StartProxyServerIfRequired(); + + var tcs = new TaskCompletionSource(); + + var requestContext = RequestContext + .Configure() + .OnInitialize((ctx) => + { + tcs.SetResult(true); + }) + .Create(); + + //Wait for our RequestContext to have initialized. + await tcs.Task; + + var setProxyResponse = await requestContext.SetProxyAsync("127.0.0.1", 8080); + + Assert.True(setProxyResponse.Success); + + using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(response.Success); + Assert.True(mainFrame.IsValid); + Assert.Contains("cefsharp.github.io", mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [SkipIfRunOnAppVeyorFact] + public async Task ShouldWorkWithProxySetOnUiThread() + { + fixture.StartProxyServerIfRequired(); + + var tcs = new TaskCompletionSource(); + + var requestContext = RequestContext + .Configure() + .OnInitialize((ctx) => + { + tcs.SetResult(true); + }) + .Create(); + + //Wait for our RequestContext to have initialized. + await tcs.Task; + + var success = false; + + //To execute on the CEF UI Thread you can use + await Cef.UIThreadTaskFactory.StartNew(delegate + { + string errorMessage; + + if (!requestContext.CanSetPreference("proxy")) + { + //Unable to set proxy, if you set proxy via command line args it cannot be modified. + success = false; + + return; + } + + success = requestContext.SetProxy("127.0.0.1", 8080, out errorMessage); + }); + + Assert.True(success); + + using (var browser = new ChromiumWebBrowser("http://cefsharp.github.io/", requestContext: requestContext, useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(response.Success); + Assert.True(mainFrame.IsValid); + Assert.Contains("cefsharp.github.io", mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + } +} diff --git a/CefSharp.Test/OffScreen/ScreenshotTests.cs b/CefSharp.Test/OffScreen/ScreenshotTests.cs new file mode 100644 index 000000000..5be4bbdeb --- /dev/null +++ b/CefSharp.Test/OffScreen/ScreenshotTests.cs @@ -0,0 +1,131 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using Xunit.Abstractions; +using Xunit; +using System.Threading.Tasks; +using CefSharp.DevTools.Page; +using System.IO; +using CefSharp.OffScreen; +using System.Drawing; + +namespace CefSharp.Test.OffScreen +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class ScreenshotTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public ScreenshotTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task ShouldWork() + { + using (var browser = new ChromiumWebBrowser("http://www.google.com", useLegacyRenderHandler: false)) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + var result1 = await browser.CaptureScreenshotAsync(); + Assert.Equal(1366, browser.Size.Width); + Assert.Equal(768, browser.Size.Height); + Assert.Equal(1, browser.DeviceScaleFactor); + using (var screenshot = Image.FromStream(new MemoryStream(result1))) + { + Assert.Equal(1366, screenshot.Width); + Assert.Equal(768, screenshot.Height); + } + + var result2 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 1366, Height = 768, X = 100, Y = 200, Scale = 2 }); + Assert.Equal(1466, browser.Size.Width); + Assert.Equal(968, browser.Size.Height); + Assert.Equal(2, browser.DeviceScaleFactor); + using (var screenshot = Image.FromStream(new MemoryStream(result2))) + { + Assert.Equal(2732, screenshot.Width); + Assert.Equal(1536, screenshot.Height); + } + + var result3 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 100, Height = 200, Scale = 2 }); + Assert.Equal(1466, browser.Size.Width); + Assert.Equal(968, browser.Size.Height); + Assert.Equal(2, browser.DeviceScaleFactor); + using (var screenshot = Image.FromStream(new MemoryStream(result3))) + { + Assert.Equal(200, screenshot.Width); + Assert.Equal(400, screenshot.Height); + } + + var result4 = await browser.CaptureScreenshotAsync(viewport: new Viewport { Width = 100, Height = 200, Scale = 1 }); + Assert.Equal(1466, browser.Size.Width); + Assert.Equal(968, browser.Size.Height); + Assert.Equal(1, browser.DeviceScaleFactor); + using (var screenshot = Image.FromStream(new MemoryStream(result4))) + { + Assert.Equal(100, screenshot.Width); + Assert.Equal(200, screenshot.Height); + } + } + } + + [Fact] + public async Task ShouldWorkWhenResizingWithDeviceScalingFactor() + { + using (var browser = new ChromiumWebBrowser("http://www.google.com")) + { + var response = await browser.WaitForInitialLoadAsync(); + + Assert.True(response.Success); + + Assert.Equal(1366, browser.Size.Width); + Assert.Equal(768, browser.Size.Height); + Assert.Equal(1, browser.DeviceScaleFactor); + + + await browser.ResizeAsync(800, 600, 2); + + Assert.Equal(800, browser.Size.Width); + Assert.Equal(600, browser.Size.Height); + Assert.Equal(2, browser.DeviceScaleFactor); + + using (var screenshot = browser.ScreenshotOrNull()) + { + Assert.Equal(1600, screenshot.Width); + Assert.Equal(1200, screenshot.Height); + } + + await browser.ResizeAsync(400, 300); + + Assert.Equal(400, browser.Size.Width); + Assert.Equal(300, browser.Size.Height); + Assert.Equal(2, browser.DeviceScaleFactor); + + using (var screenshot = browser.ScreenshotOrNull()) + { + Assert.Equal(800, screenshot.Width); + Assert.Equal(600, screenshot.Height); + } + + await browser.ResizeAsync(1366, 768, 1); + + Assert.Equal(1366, browser.Size.Width); + Assert.Equal(768, browser.Size.Height); + Assert.Equal(1, browser.DeviceScaleFactor); + + using (var screenshot = browser.ScreenshotOrNull()) + { + Assert.Equal(1366, screenshot.Width); + Assert.Equal(768, screenshot.Height); + } + } + } + } +} diff --git a/CefSharp.Test/PostMessage/IntegrationTestFacts.cs b/CefSharp.Test/PostMessage/IntegrationTestFacts.cs deleted file mode 100644 index 64e4a3472..000000000 --- a/CefSharp.Test/PostMessage/IntegrationTestFacts.cs +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright © 2020 The CefSharp Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. - -using System.Threading.Tasks; -using CefSharp.OffScreen; -using CefSharp.Web; -using Xunit; -using Xunit.Abstractions; - -namespace CefSharp.Test.PostMessage -{ - /// - /// This is more a set of integration tests than it is unit tests, for now we need to - /// run our QUnit tests in an automated fashion and some other testing. - /// - //TODO: Improve Test Naming, we need a naming scheme that fits these cases that's consistent - //(Ideally we implement consistent naming accross all test classes, though I'm open to a different - //naming convention as these are more integration tests than unit tests). - //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle - [Collection(CefSharpFixtureCollection.Key)] - public class IntegrationTestFacts - { - private readonly ITestOutputHelper output; - private readonly CefSharpFixture fixture; - - public IntegrationTestFacts(ITestOutputHelper output, CefSharpFixture fixture) - { - this.fixture = fixture; - this.output = output; - } - - [Theory] - [InlineData("Event", "Event1")] - [InlineData("Event", "Event2")] - [InlineData("CustomEvent", "Event1")] - [InlineData("CustomEvent", "Event2")] - public async Task JavascriptCustomEvent(string jsEventObject, string eventToRaise) - { - const string Script = @" - const postMessageHandler = e => { cefSharp.postMessage(e.type); }; - window.addEventListener(""Event1"", postMessageHandler, false); - window.addEventListener(""Event2"", postMessageHandler, false);"; - - string rawHtml = $"

testing

"; - int scriptId = 0; - - var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); - - //Load a dummy page initially so we can then add our script using - //Page.AddScriptToEvaluateOnNewDocument (via DevTools) - using (var browser = new ChromiumWebBrowser(new HtmlString("Initial Load"), useLegacyRenderHandler: false)) - { - await browser.WaitForInitialLoadAsync(); - - using (var devToolsClient = browser.GetDevToolsClient()) - { - var result = await devToolsClient.Page.AddScriptToEvaluateOnNewDocumentAsync(Script); - scriptId = int.Parse(result.Identifier); - - //We must use Page.Enable for the script to be added - await devToolsClient.Page.EnableAsync(); - } - - browser.LoadHtml(rawHtml); - - browser.JavascriptMessageReceived += (o, e) => - { - tcs.SetResult((string)e.Message); - }; - - var responseFromJavascript = await tcs.Task; - - Assert.True(scriptId > 0); - Assert.Equal(eventToRaise, responseFromJavascript); - } - } - } -} diff --git a/CefSharp.Test/PostMessage/PostMessageTests.cs b/CefSharp.Test/PostMessage/PostMessageTests.cs new file mode 100644 index 000000000..88a61cd08 --- /dev/null +++ b/CefSharp.Test/PostMessage/PostMessageTests.cs @@ -0,0 +1,79 @@ +// Copyright © 2020 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.PostMessage +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class PostMessageTests : BrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public PostMessageTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task ShouldWork() + { + AssertInitialLoadComplete(); + + var evt = await Assert.RaisesAsync( + a => Browser.JavascriptMessageReceived += a, + a => Browser.JavascriptMessageReceived -= a, + () => Browser.EvaluateScriptAsync("cefSharp.postMessage('test');")); + + Assert.NotNull(evt); + Assert.Equal("test", evt.Arguments.Message); + } + + [Theory] + [InlineData("Event", "Event1")] + [InlineData("Event", "Event2")] + [InlineData("CustomEvent", "Event1")] + [InlineData("CustomEvent", "Event2")] + public async Task ShouldWorkForCustomEvent(string jsEventObject, string expected) + { + const string Script = @" + const postMessageHandler = e => { cefSharp.postMessage(e.type); }; + window.addEventListener(""Event1"", postMessageHandler, false); + window.addEventListener(""Event2"", postMessageHandler, false);"; + + string rawHtml = $"

testing

"; + + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + + //Make sure to load an initial page so we can then add our script using + //Page.AddScriptToEvaluateOnNewDocument (via DevTools) + + using (var devToolsClient = Browser.GetDevToolsClient()) + { + var result = await devToolsClient.Page.AddScriptToEvaluateOnNewDocumentAsync(Script); + var scriptId = int.Parse(result.Identifier); + + //We must use Page.Enable for the script to be added + await devToolsClient.Page.EnableAsync(); + + Browser.LoadHtml(rawHtml); + + Browser.JavascriptMessageReceived += (o, e) => + { + tcs.SetResult((string)e.Message); + }; + + var actual = await tcs.Task; + + Assert.True(scriptId > 0); + Assert.Equal(expected, actual); + } + } + } +} diff --git a/CefSharp.Test/RequestContextIsolatedBrowserTests.cs b/CefSharp.Test/RequestContextIsolatedBrowserTests.cs new file mode 100644 index 000000000..5ac6dfced --- /dev/null +++ b/CefSharp.Test/RequestContextIsolatedBrowserTests.cs @@ -0,0 +1,23 @@ +// Copyright © 2023 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using CefSharp.Example; +using CefSharp.OffScreen; +using Xunit; + +namespace CefSharp.Test +{ + /// + /// Each browser instance will be created with it's own + /// using an InMemory cache + /// + public abstract class RequestContextIsolatedBrowserTests : BrowserTests + { + protected RequestContextIsolatedBrowserTests() + { + RequestContextIsolated = true; + } + } +} diff --git a/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs index 6568c945f..a75af1fee 100644 --- a/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs +++ b/CefSharp.Test/SchemeHandler/FolderSchemeHandlerFactoryTests.cs @@ -28,7 +28,7 @@ public FolderSchemeHandlerFactoryTests(ITestOutputHelper output, CefSharpFixture } [Fact] - public async Task CanWork() + public async Task ShouldWork() { const string expected = "https://folderschemehandlerfactory.test/"; @@ -57,7 +57,7 @@ public async Task CanWork() } [Fact] - public async Task CanDeleteFileAfterLoading() + public async Task ShouldAllowFileDeletionAfterLoading() { const string expected = "https://folderschemehandlerfactory.test/"; const string html = "I'm going to be deleted after use!"; diff --git a/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs b/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs index 0459ed2ba..42b4dcd6d 100644 --- a/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs +++ b/CefSharp.Test/Selector/WaitForSelectorAsyncTests.cs @@ -1,3 +1,7 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + using Xunit.Abstractions; using Xunit; using System.Threading.Tasks; diff --git a/CefSharp.Test/UrlRequest/UrlRequestTests.cs b/CefSharp.Test/UrlRequest/UrlRequestTests.cs new file mode 100644 index 000000000..03ac74f46 --- /dev/null +++ b/CefSharp.Test/UrlRequest/UrlRequestTests.cs @@ -0,0 +1,57 @@ +// Copyright © 2022 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Text; +using System.Threading.Tasks; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.UrlRequest +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class UrlRequestTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public UrlRequestTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task ShouldWork() + { + var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + IUrlRequest urlRequest = null; + int statusCode = -1; + + //Can be created on any valid CEF Thread, here we'll use the CEF UI Thread + await Cef.UIThreadTaskFactory.StartNew(delegate + { + var requestClient = new Example.UrlRequestClient((IUrlRequest req, byte[] responseBody) => + { + statusCode = req.Response.StatusCode; + taskCompletionSource.TrySetResult(Encoding.UTF8.GetString(responseBody)); + }); + + var request = new Request + { + Method = "GET", + Url = "https://code.jquery.com/jquery-3.4.1.min.js" + }; + + //Global RequestContext will be used + urlRequest = new CefSharp.UrlRequest(request, requestClient); + }); + + var stringResult = await taskCompletionSource.Task; + + Assert.True(!string.IsNullOrEmpty(stringResult)); + Assert.Equal(200, statusCode); + } + } +} diff --git a/CefSharp.Test/WebBrowserTestExtensions.cs b/CefSharp.Test/WebBrowserTestExtensions.cs index 227eb3f7c..e4b4397f0 100644 --- a/CefSharp.Test/WebBrowserTestExtensions.cs +++ b/CefSharp.Test/WebBrowserTestExtensions.cs @@ -6,11 +6,21 @@ using System.Reflection; using System.Threading.Tasks; using CefSharp.OffScreen; +using Xunit; namespace CefSharp.Test { public static class WebBrowserTestExtensions { + public static async Task EvaluateScriptAndAssertAsync(this IChromiumWebBrowserBase browser, string script) + { + var response = await browser.EvaluateScriptAsync(script).ConfigureAwait(false); + + Assert.True(response.Success, response.Message); + + return (T)response.Result; + } + public static int PaintEventHandlerCount(this CefSharp.Wpf.ChromiumWebBrowser browser) { var field = typeof(CefSharp.Wpf.ChromiumWebBrowser).GetField("Paint", BindingFlags.NonPublic | BindingFlags.Instance); diff --git a/CefSharp.Test/WinForms/RequestContextTests.cs b/CefSharp.Test/WinForms/RequestContextTests.cs new file mode 100644 index 000000000..6cae221ac --- /dev/null +++ b/CefSharp.Test/WinForms/RequestContextTests.cs @@ -0,0 +1,69 @@ +// Copyright © 2017 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Threading.Tasks; +using CefSharp.Example; +using CefSharp.WinForms; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.WinForms +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + public class RequestContextTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public RequestContextTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [WinFormsFact] + public async Task ShouldWork() + { + using (var browser = new ChromiumWebBrowser("www.google.com")) + { + browser.RequestContext = new RequestContext(); + + browser.Size = new System.Drawing.Size(1024, 768); + browser.CreateControl(); + + await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google", mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [WinFormsFact] + public async Task ShouldWorkUsingBuilder() + { + using (var browser = new ChromiumWebBrowser("www.google.com")) + { + browser.RequestContext = RequestContext.Configure() + .WithSharedSettings(Cef.GetGlobalRequestContext()) + .Create(); + + browser.Size = new System.Drawing.Size(1024, 768); + browser.CreateControl(); + + await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google", mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + } +} diff --git a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs b/CefSharp.Test/WinForms/WinFormsBrowserTests.cs similarity index 66% rename from CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs rename to CefSharp.Test/WinForms/WinFormsBrowserTests.cs index f41f03495..08bd376fd 100644 --- a/CefSharp.Test/WinForms/WinFormsBrowserBasicFacts.cs +++ b/CefSharp.Test/WinForms/WinFormsBrowserTests.cs @@ -13,19 +13,19 @@ namespace CefSharp.Test.WinForms { //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] - public class WinFormsBrowserBasicFacts + public class WinFormsBrowserTests { private readonly ITestOutputHelper output; private readonly CefSharpFixture fixture; - public WinFormsBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixture) + public WinFormsBrowserTests(ITestOutputHelper output, CefSharpFixture fixture) { this.fixture = fixture; this.output = output; } [WinFormsFact] - public async Task CanLoadGoogle() + public async Task ShouldWorkWhenLoadingGoogle() { using (var browser = new ChromiumWebBrowser("www.google.com")) { @@ -33,8 +33,8 @@ public async Task CanLoadGoogle() browser.CreateControl(); await browser.WaitForInitialLoadAsync(); - var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); Assert.Contains("www.google", mainFrame.Url); @@ -43,20 +43,19 @@ public async Task CanLoadGoogle() } [WinFormsFact] - public async Task CanSetBrowserSettingsDisableImageLoadingViaObjectFactory() + public async Task ShouldDisableImageLoadingViaObjectFactory() { using (var browser = new ChromiumWebBrowser("www.google.com")) { var settings = Core.ObjectFactory.CreateBrowserSettings(true); settings.ImageLoading = CefState.Disabled; browser.BrowserSettings = settings; - browser.Size = new System.Drawing.Size(1024, 768); browser.CreateControl(); await browser.WaitForInitialLoadAsync(); - var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); Assert.Contains("www.google", mainFrame.Url); @@ -65,7 +64,7 @@ public async Task CanSetBrowserSettingsDisableImageLoadingViaObjectFactory() } [WinFormsFact] - public async Task CanSetBrowserSettingsDisableImageLoading() + public async Task ShouldDisableImageLoading() { using (var browser = new ChromiumWebBrowser("www.google.com")) { @@ -73,55 +72,12 @@ public async Task CanSetBrowserSettingsDisableImageLoading() { ImageLoading = CefState.Disabled }; - - browser.Size = new System.Drawing.Size(1024, 768); - browser.CreateControl(); - - await browser.WaitForInitialLoadAsync(); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("www.google", mainFrame.Url); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [WinFormsFact] - public async Task CanSetRequestContextViaRequestContextBuilder() - { - using (var browser = new ChromiumWebBrowser("www.google.com")) - { - browser.RequestContext = RequestContext.Configure() - .WithSharedSettings(Cef.GetGlobalRequestContext()) - .Create(); - browser.Size = new System.Drawing.Size(1024, 768); browser.CreateControl(); await browser.WaitForInitialLoadAsync(); - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("www.google", mainFrame.Url); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [WinFormsFact] - public async Task CanSetRequestContext() - { - using (var browser = new ChromiumWebBrowser("www.google.com")) - { - browser.RequestContext = new RequestContext(); - - browser.Size = new System.Drawing.Size(1024, 768); - browser.CreateControl(); - await browser.WaitForInitialLoadAsync(); - - var mainFrame = browser.GetMainFrame(); Assert.True(mainFrame.IsValid); Assert.Contains("www.google", mainFrame.Url); @@ -140,8 +96,8 @@ public async Task ShouldRespectDisposed() browser.CreateControl(); await browser.WaitForInitialLoadAsync(); - var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); Assert.Equal(CefExample.DefaultUrl, mainFrame.Url); diff --git a/CefSharp.Test/Wpf/RequestContextTests.cs b/CefSharp.Test/Wpf/RequestContextTests.cs new file mode 100644 index 000000000..740c526a7 --- /dev/null +++ b/CefSharp.Test/Wpf/RequestContextTests.cs @@ -0,0 +1,66 @@ +// Copyright © 2017 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using System.Windows; +using CefSharp.Wpf; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Wpf +{ + //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle + [Collection(CefSharpFixtureCollection.Key)] + [BrowserRefCountDebugging(typeof(ChromiumWebBrowser))] + public class RequestContextTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public RequestContextTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [WpfFact] + public async Task ShouldWork() + { + using (var browser = new ChromiumWebBrowser("www.google.com")) + { + browser.RequestContext = new RequestContext(); + browser.CreateBrowser(null, new Size(1024, 786)); + + await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google", mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + + [WpfFact] + public async Task ShouldWorkUsingBuilder() + { + using (var browser = new ChromiumWebBrowser("www.google.com")) + { + browser.RequestContext = RequestContext.Configure() + .WithSharedSettings(Cef.GetGlobalRequestContext()) + .Create(); + + browser.CreateBrowser(null, new Size(1024, 786)); + + await browser.WaitForInitialLoadAsync(); + var mainFrame = browser.GetMainFrame(); + + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google", mainFrame.Url); + + output.WriteLine("Url {0}", mainFrame.Url); + } + } + } +} diff --git a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs b/CefSharp.Test/Wpf/WpfBrowserTests.cs similarity index 62% rename from CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs rename to CefSharp.Test/Wpf/WpfBrowserTests.cs index 354ccb844..1fd1a1765 100644 --- a/CefSharp.Test/Wpf/WpfBrowserBasicFacts.cs +++ b/CefSharp.Test/Wpf/WpfBrowserTests.cs @@ -15,25 +15,25 @@ namespace CefSharp.Test.Wpf //NOTE: All Test classes must be part of this collection as it manages the Cef Initialize/Shutdown lifecycle [Collection(CefSharpFixtureCollection.Key)] [BrowserRefCountDebugging(typeof(ChromiumWebBrowser))] - public class WpfBrowserBasicFacts + public class WpfBrowserTests { private readonly ITestOutputHelper output; private readonly CefSharpFixture fixture; - public WpfBrowserBasicFacts(ITestOutputHelper output, CefSharpFixture fixture) + public WpfBrowserTests(ITestOutputHelper output, CefSharpFixture fixture) { this.fixture = fixture; this.output = output; } [WpfFact] - public async Task CanLoadGoogle() + public async Task ShouldWorkWhenLoadingGoogle() { using (var browser = new ChromiumWebBrowser(null, "www.google.com", new Size(1024, 786))) { await browser.WaitForInitialLoadAsync(); - var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); Assert.Contains("www.google", mainFrame.Url); @@ -42,15 +42,14 @@ public async Task CanLoadGoogle() } [WpfFact] - public async Task CanCallLoadUrlAsyncImmediately() + public async Task ShouldWorkWhenLoadUrlAsyncImmediately() { using (var browser = new ChromiumWebBrowser(null, string.Empty, new Size(1024, 786))) { var response = await browser.LoadUrlAsync("www.google.com"); + var mainFrame = browser.GetMainFrame(); Assert.True(response.Success); - - var mainFrame = browser.GetMainFrame(); Assert.True(mainFrame.IsValid); Assert.Contains("www.google", mainFrame.Url); @@ -59,57 +58,17 @@ public async Task CanCallLoadUrlAsyncImmediately() } [WpfFact] - public async Task CanCallLoadUrlImmediately() + public async Task ShouldWorkWhenLoadUrlImmediately() { using (var browser = new ChromiumWebBrowser()) { - browser.Load("www.google.com"); + browser.LoadUrl("www.google.com"); browser.CreateBrowser(null, new Size(1024, 786)); var response = await browser.WaitForInitialLoadAsync(); - - Assert.True(response.Success); - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("www.google", mainFrame.Url); - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [WpfFact] - public async Task CanSetRequestContext() - { - using (var browser = new ChromiumWebBrowser("www.google.com")) - { - browser.RequestContext = new RequestContext(); - browser.CreateBrowser(null, new Size(1024, 786)); - - await browser.WaitForInitialLoadAsync(); - - var mainFrame = browser.GetMainFrame(); - Assert.True(mainFrame.IsValid); - Assert.Contains("www.google", mainFrame.Url); - - output.WriteLine("Url {0}", mainFrame.Url); - } - } - - [WpfFact] - public async Task CanSetRequestContextViaBuilder() - { - using (var browser = new ChromiumWebBrowser("www.google.com")) - { - browser.RequestContext = RequestContext.Configure() - .WithSharedSettings(Cef.GetGlobalRequestContext()) - .Create(); - - browser.CreateBrowser(null, new Size(1024, 786)); - - await browser.WaitForInitialLoadAsync(); - - var mainFrame = browser.GetMainFrame(); + Assert.True(response.Success); Assert.True(mainFrame.IsValid); Assert.Contains("www.google", mainFrame.Url); From 75a564bdff317c0bb7c193ea09676c7896140f13 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 17 Feb 2023 16:48:28 +1000 Subject: [PATCH 204/543] Test - ConcurrentMethodRunnerQueueTest cleanup Issue #3067 --- CefSharp.Test/AssertEx.cs | 79 +++++++++++++++++++ .../ConcurrentMethodRunnerQueueTest.cs | 53 +++++-------- 2 files changed, 97 insertions(+), 35 deletions(-) create mode 100644 CefSharp.Test/AssertEx.cs diff --git a/CefSharp.Test/AssertEx.cs b/CefSharp.Test/AssertEx.cs new file mode 100644 index 000000000..16a9cf8a3 --- /dev/null +++ b/CefSharp.Test/AssertEx.cs @@ -0,0 +1,79 @@ +using System; +using System.Threading.Tasks; +using Xunit.Sdk; +using Nito.AsyncEx; +using System.Threading; + +namespace CefSharp.Test +{ + internal static class AssertEx + { + /// + /// Verifies that a event with the exact event args (and not a derived type) is raised + /// This method differs from + /// in that it waits for the event to be raised before returning (or is cancelled). + /// + /// The type of the event arguments to expect + /// number of miliseconds to wait before the timeout + /// Code to attach the event handler + /// Code to detach the event handler + /// A delegate to the code to be tested + /// The event sender and arguments wrapped in an object + /// Thrown when the expected event was not raised. + public static async Task> RaisesAsync( + int cancelAfter, + Action> attach, + Action> detach, + Action testCode) where T : EventArgs + { + var raisedEvent = await RaisesAsyncInternal(cancelAfter, attach, detach, testCode); + + if (raisedEvent == null) + throw new RaisesException(typeof(T)); + + if (raisedEvent.Arguments != null && !raisedEvent.Arguments.GetType().Equals(typeof(T))) + throw new RaisesException(typeof(T), raisedEvent.Arguments.GetType()); + + return raisedEvent; + } + + private static async Task> RaisesAsyncInternal( + int cancelAfter, + Action> attach, + Action> detach, + Action testCode) where T : EventArgs + { + GuardArgumentNotNull(nameof(attach), attach); + GuardArgumentNotNull(nameof(detach), detach); + GuardArgumentNotNull(nameof(testCode), testCode); + + using var cts = new CancellationTokenSource(); + var manualResetEvent = new AsyncManualResetEvent(); + + cts.CancelAfter(cancelAfter); + + Xunit.Assert.RaisedEvent raisedEvent = null; + + attach(Handler); + testCode(); + await manualResetEvent.WaitAsync(cts.Token); + detach(Handler); + + return raisedEvent; + + void Handler(object s, T args) + { + raisedEvent = new Xunit.Assert.RaisedEvent(s, args); + manualResetEvent.Set(); + } + } + + internal static void GuardArgumentNotNull(string argName, object argValue) + { + if (argValue == null) + { + throw new ArgumentNullException(argName); + } + } + } +} diff --git a/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs b/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs index 098d3cebb..4193fbb4e 100644 --- a/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs +++ b/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs @@ -7,9 +7,9 @@ using System.Threading.Tasks; using CefSharp.Example.JavascriptBinding; using CefSharp.Internals; -using Nito.AsyncEx; using Xunit; using Xunit.Abstractions; +using Moq; namespace CefSharp.Test.Framework { @@ -68,7 +68,7 @@ public void SimulateTaskRunStartOnTaskAlreadyCompleted() } [Fact] - public void DisposeConcurrentMethodRunnerQueueThenEnqueueInvocation() + public void ShouldWorkWhenEnqueueCalledAfterDispose() { var methodInvocation = new MethodInvocation(1, 1, 1, "Testing", 1); methodInvocation.Parameters.Add("Echo Me!"); @@ -91,7 +91,7 @@ public void DisposeConcurrentMethodRunnerQueueThenEnqueueInvocation() } [Fact] - public async Task StopConcurrentMethodRunnerQueueWhenMethodRunning() + public async Task ShouldDisposeWhenRunningWithoutException() { var boundObject = new AsyncBoundObject(); @@ -116,43 +116,26 @@ public async Task StopConcurrentMethodRunnerQueueWhenMethodRunning() Assert.Null(ex); } - [Fact(Skip = "Times out when run through appveyor, issue https://github.com/cefsharp/CefSharp/issues/3067")] - public async Task ValidateAsyncTaskMethodOutput() + [Fact] + public async Task ShouldCallMethodAsync() { - const string expectedResult = "Echo Me!"; - var boundObject = new AsyncBoundObject(); - - IJavascriptObjectRepositoryInternal objectRepository = new JavascriptObjectRepository(); - objectRepository.NameConverter = null; -#if NETCOREAPP - objectRepository.Register("testObject", boundObject, BindingOptions.DefaultBinder); -#else - objectRepository.Register("testObject", boundObject, true, BindingOptions.DefaultBinder); -#endif - var methodInvocation = new MethodInvocation(1, 1, 1, nameof(boundObject.AsyncWaitTwoSeconds), 1); - methodInvocation.Parameters.Add(expectedResult); - var methodRunnerQueue = new ConcurrentMethodRunnerQueue(objectRepository); - var manualResetEvent = new AsyncManualResetEvent(); - var cancellationToken = new CancellationTokenSource(); - - cancellationToken.CancelAfter(5000); - - var actualResult = ""; - - methodRunnerQueue.MethodInvocationComplete += (sender, args) => - { - actualResult = args.Result.Result.ToString(); + const string expected = "Echo Me!"; + const string methodName = "AsyncWaitTwoSeconds"; - manualResetEvent.Set(); - }; + var mockObjectRepository = new Mock(); + mockObjectRepository.Setup(x => x.TryCallMethodAsync(1, methodName, It.IsAny())).ReturnsAsync(new TryCallMethodResult(true, expected, string.Empty)); + var methodInvocation = new MethodInvocation(1, 1, 1, methodName, 1); + methodInvocation.Parameters.Add(expected); - methodRunnerQueue.Enqueue(methodInvocation); + using var methodRunnerQueue = new ConcurrentMethodRunnerQueue(mockObjectRepository.Object); - await manualResetEvent.WaitAsync(cancellationToken.Token); + var evt = await AssertEx.RaisesAsync( + cancelAfter: 10000, + x => methodRunnerQueue.MethodInvocationComplete += x, + x => methodRunnerQueue.MethodInvocationComplete -= x, + () => methodRunnerQueue.Enqueue(methodInvocation)); - Assert.Equal(expectedResult, actualResult); - - methodRunnerQueue.Dispose(); + Assert.Equal(expected, evt.Arguments.Result.Result); } } } From d0b06b3105b22e7beb012fcabd6b8d5e913f309d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 17 Feb 2023 16:52:03 +1000 Subject: [PATCH 205/543] Test - CookieManagerTests rename method --- CefSharp.Test/CookieManager/CookieManagerTests.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CefSharp.Test/CookieManager/CookieManagerTests.cs b/CefSharp.Test/CookieManager/CookieManagerTests.cs index f3e54a089..e966c443a 100644 --- a/CefSharp.Test/CookieManager/CookieManagerTests.cs +++ b/CefSharp.Test/CookieManager/CookieManagerTests.cs @@ -148,7 +148,7 @@ public async Task ShouldProperlyReportStrictSameSiteCookie() [Fact] //https://github.com/cefsharp/CefSharp/issues/4234 - public async Task CanSetAndGetCookie() + public async Task ShouldSetAndGetCookie() { AssertInitialLoadComplete(); @@ -156,10 +156,7 @@ public async Task CanSetAndGetCookie() var testStartDate = DateTime.Now; var expectedExpiry = DateTime.Now.AddDays(1); - Assert.False(Browser.IsLoading); - var cookieManager = Browser.GetCookieManager(); - await cookieManager.DeleteCookiesAsync(CefExample.HelloWorldUrl, CookieName); var cookieSet = await cookieManager.SetCookieAsync(CefExample.HelloWorldUrl, new Cookie From abefe829aea2521392052c67a87985bc8d2d619f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 17 Feb 2023 18:04:30 +1000 Subject: [PATCH 206/543] Test - Improvements - Use LangVersion to 8.0 - Minor cleanup --- CefSharp.Test/CefSharp.Test.csproj | 1 + CefSharp.Test/CookieManager/CookieManagerTests.cs | 4 ++-- CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index f0026d9c6..be802a43c 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -9,6 +9,7 @@ true AllRules.ruleset false + 8.0 diff --git a/CefSharp.Test/CookieManager/CookieManagerTests.cs b/CefSharp.Test/CookieManager/CookieManagerTests.cs index e966c443a..9ba9845f1 100644 --- a/CefSharp.Test/CookieManager/CookieManagerTests.cs +++ b/CefSharp.Test/CookieManager/CookieManagerTests.cs @@ -174,8 +174,8 @@ public async Task ShouldSetAndGetCookie() Assert.True(cookie.Expires.HasValue); // Little bit of a loss in precision Assert.Equal(expectedExpiry, cookie.Expires.Value, TimeSpan.FromMilliseconds(10)); - Assert.True(cookie.Creation > testStartDate, "Cookie Creation greater than test start."); - Assert.True(cookie.LastAccess > testStartDate, "Cookie LastAccess greater than test start."); + Assert.True(cookie.Creation > testStartDate, $"Cookie Creation greater than test start. {cookie.Creation} > {testStartDate}"); + Assert.True(cookie.LastAccess > testStartDate, $"Cookie LastAccess greater than test start. {cookie.LastAccess} > {testStartDate}"); output.WriteLine("Expected {0} : Actual {1}", expectedExpiry, cookie.Expires.Value); } diff --git a/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs b/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs index 129679e80..f38c739f5 100644 --- a/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs +++ b/CefSharp.Test/Navigation/WaitForNavigationAsyncTests.cs @@ -3,7 +3,6 @@ using System.Threading.Tasks; using CefSharp.OffScreen; using CefSharp.Example; -using Nito.AsyncEx; using System; using System.Threading; @@ -40,8 +39,8 @@ public async Task CanWork() await Task.WhenAll(navigationTask, evaluateTask); var navigationResponse = navigationTask.Result; - var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); Assert.Equal(expected, mainFrame.Url); Assert.Equal(200, navigationResponse.HttpStatusCode); @@ -66,8 +65,8 @@ public async Task CanWaitForInvalidDomain() await Task.WhenAll(navigationTask, evaluateTask); var navigationResponse = navigationTask.Result; - var mainFrame = browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); Assert.False(navigationResponse.Success); Assert.Contains(expected, mainFrame.Url); From d960f98dd451971a1a29486682421b54380fdfc6 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 17 Feb 2023 18:48:39 +1000 Subject: [PATCH 207/543] Test - CookieManagerTests.ShouldSetAndGetCookie adjust Date comparison - Test was failing when run on Appveyor, use Assert.Equal with a 1second tolerance --- CefSharp.Test/CookieManager/CookieManagerTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/CookieManager/CookieManagerTests.cs b/CefSharp.Test/CookieManager/CookieManagerTests.cs index 9ba9845f1..42d896323 100644 --- a/CefSharp.Test/CookieManager/CookieManagerTests.cs +++ b/CefSharp.Test/CookieManager/CookieManagerTests.cs @@ -174,8 +174,8 @@ public async Task ShouldSetAndGetCookie() Assert.True(cookie.Expires.HasValue); // Little bit of a loss in precision Assert.Equal(expectedExpiry, cookie.Expires.Value, TimeSpan.FromMilliseconds(10)); - Assert.True(cookie.Creation > testStartDate, $"Cookie Creation greater than test start. {cookie.Creation} > {testStartDate}"); - Assert.True(cookie.LastAccess > testStartDate, $"Cookie LastAccess greater than test start. {cookie.LastAccess} > {testStartDate}"); + Assert.Equal(cookie.Creation ,testStartDate, TimeSpan.FromMilliseconds(1000)); + Assert.Equal(cookie.LastAccess, testStartDate, TimeSpan.FromMilliseconds(1000)); output.WriteLine("Expected {0} : Actual {1}", expectedExpiry, cookie.Expires.Value); } From 1f25de839c93718429baca057c86fd7ddfe91d00 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 17 Feb 2023 19:07:56 +1000 Subject: [PATCH 208/543] Test - JavascriptBindingTests.ShouldReturnRenderProcessId assert page loaded --- .../JavascriptBinding/JavascriptBindingTests.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs index ca405795a..b9d816782 100644 --- a/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs +++ b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs @@ -132,14 +132,15 @@ public async Task ShouldEnableJsBindingApi() [InlineData("cefSharp.renderProcessId")] public async Task ShouldReturnRenderProcessId(string script) { + AssertInitialLoadComplete(); + var result = await Browser.EvaluateScriptAsync(script); Assert.True(result.Success); - using (var process = Process.GetProcessById(Assert.IsType(result.Result))) - { - Assert.Equal("CefSharp.BrowserSubprocess", process.ProcessName); - } + using var process = Process.GetProcessById(Assert.IsType(result.Result)); + + Assert.Equal("CefSharp.BrowserSubprocess", process.ProcessName); } [Fact] From f7cc1d4b63700d402de545a69c8735835e104fdb Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 22 Feb 2023 05:53:01 +1000 Subject: [PATCH 209/543] Upgrade to 110.0.28+g16a2153+chromium-110.0.5481.104 / Chromium 110.0.5481.104 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 36741f724..898e2e2dd 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index e77cd390b..3491ee745 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 6ee68ac3e..6e271793c 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,250 - PRODUCTVERSION 110,0,250 + FILEVERSION 110,0,280 + PRODUCTVERSION 110,0,280 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "110.0.250" + VALUE "FileVersion", "110.0.280" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.250" + VALUE "ProductVersion", "110.0.280" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 0cf0d8e33..b4fee5539 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index b1d8e52b5..dbbdfc0dc 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 782010882..fb1caf387 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index ae02a5100..1f7da6459 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 0fa9a4a25..b1e2b8300 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 766ebb5b0..f9455f71d 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,250 - PRODUCTVERSION 110,0,250 + FILEVERSION 110,0,280 + PRODUCTVERSION 110,0,280 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "110.0.250" + VALUE "FileVersion", "110.0.280" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.250" + VALUE "ProductVersion", "110.0.280" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 0cf0d8e33..b4fee5539 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index b1d8e52b5..dbbdfc0dc 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 3c04650dc..8462336eb 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@
- + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 4cb55d4fe..4c0797cd1 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 82906aa1e..9b5767160 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index be802a43c..afc1f6a9d 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index a6888d072..e8a270adb 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index f75fc79fc..315da7e65 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index d8e843fbf..9ca4e2f5b 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 7ae679e1f..203992f97 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index e53750716..d9bb6bfa9 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index e63d7b65a..3fec003c3 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 66b21509c..9851c7ca1 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index af284ccdd..a760749dd 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 110.0.250 + 110.0.280 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 110.0.250 + Version 110.0.280 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index ba530daea..f342ea3bd 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "110.0.250"; - public const string AssemblyFileVersion = "110.0.250.0"; + public const string AssemblyVersion = "110.0.280"; + public const string AssemblyFileVersion = "110.0.280.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 427a3339c..c8bc9698b 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 7c97c771d..a5ebc6414 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 160f5056d..0de49b777 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index b32fdd422..f2d3dec49 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "110.0.25", + [string] $CefVersion = "110.0.28", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index d3b26a79e..36312eee3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 110.0.250-CI{build} +version: 110.0.280-CI{build} clone_depth: 10 From 89da87310135bf0b3cd10736babc8dcaee169a3e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 23 Feb 2023 12:40:16 +1000 Subject: [PATCH 210/543] Core - Make WebBrowserExtensions.ThrowExceptionIfBrowserNull public - Make public - No longer extension method so it doesn't pollute the public API --- CefSharp/WebBrowserExtensions.cs | 52 ++++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index 037b64d32..8a2d63d25 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -73,7 +73,7 @@ public static IFrame GetMainFrame(this IChromiumWebBrowserBase browser) var cefBrowser = browser.BrowserCore; - cefBrowser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(cefBrowser); return cefBrowser.MainFrame; } @@ -89,7 +89,7 @@ public static IFrame GetFocusedFrame(this IChromiumWebBrowserBase browser) var cefBrowser = browser.BrowserCore; - cefBrowser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(cefBrowser); return cefBrowser.FocusedFrame; } @@ -111,7 +111,7 @@ public static void Undo(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Undo(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -138,7 +138,7 @@ public static void Redo(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Redo(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -165,7 +165,7 @@ public static void Cut(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Cut(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -192,7 +192,7 @@ public static void Copy(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Copy(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -219,7 +219,7 @@ public static void Paste(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Paste(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -246,7 +246,7 @@ public static void Delete(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Delete(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -273,7 +273,7 @@ public static void SelectAll(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void SelectAll(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -302,7 +302,7 @@ public static void ViewSource(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void ViewSource(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.MainFrame) { @@ -335,7 +335,7 @@ public static Task GetSourceAsync(this IChromiumWebBrowserBase browser) /// public static Task GetSourceAsync(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -368,7 +368,7 @@ public static Task GetTextAsync(this IChromiumWebBrowserBase browser) /// public static Task GetTextAsync(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.FocusedFrame) { @@ -397,7 +397,7 @@ public static void StartDownload(this IChromiumWebBrowserBase browser, string ur /// url to download public static void StartDownload(this IBrowser browser, string url) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); var host = browser.GetHost(); @@ -774,7 +774,7 @@ public static void ExecuteScriptAsync(this IChromiumWebBrowserBase browser, stri /// The Javascript code that should be executed. public static void ExecuteScriptAsync(this IBrowser browser, string script) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.MainFrame) { @@ -867,7 +867,7 @@ public static void LoadUrlWithPostData(this IChromiumWebBrowserBase browser, str /// (Optional) if set the Content-Type header will be set public static void LoadUrlWithPostData(this IBrowser browser, string url, byte[] postDataBytes, string contentType = null) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.MainFrame) { @@ -1061,7 +1061,7 @@ public static void Stop(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Stop(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); browser.StopLoad(); } @@ -1083,7 +1083,7 @@ public static void Back(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Back(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); browser.GoBack(); } @@ -1105,7 +1105,7 @@ public static void Forward(this IChromiumWebBrowserBase browser) /// The IBrowser instance this method extends. public static void Forward(this IBrowser browser) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); browser.GoForward(); } @@ -1144,7 +1144,7 @@ public static void Reload(this IChromiumWebBrowserBase browser, bool ignoreCache /// files from the browser cache, if available. public static void Reload(this IBrowser browser, bool ignoreCache = false) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); browser.Reload(ignoreCache); } @@ -1236,7 +1236,7 @@ public static Task GetZoomLevelAsync(this IChromiumWebBrowserBase browse /// zoom level. public static void SetZoomLevel(this IBrowser cefBrowser, double zoomLevel) { - cefBrowser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(cefBrowser); var host = cefBrowser.GetHost(); ThrowExceptionIfBrowserHostNull(host); @@ -1291,7 +1291,7 @@ public static void Find(this IChromiumWebBrowserBase browser, string searchText, ThrowExceptionIfChromiumWebBrowserDisposed(browser); var cefBrowser = browser.BrowserCore; - cefBrowser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(cefBrowser); cefBrowser.Find(searchText, forward, matchCase, findNext); } @@ -1303,7 +1303,7 @@ public static void Find(this IChromiumWebBrowserBase browser, string searchText, /// clear the current search selection. public static void StopFinding(this IBrowser cefBrowser, bool clearSelection) { - cefBrowser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(cefBrowser); var host = cefBrowser.GetHost(); ThrowExceptionIfBrowserHostNull(host); @@ -1366,7 +1366,7 @@ public static void Print(this IChromiumWebBrowserBase browser) ThrowExceptionIfChromiumWebBrowserDisposed(browser); var cefBrowser = browser.BrowserCore; - cefBrowser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(cefBrowser); cefBrowser.Print(); } @@ -1532,7 +1532,7 @@ public static void SendMouseWheelEvent(this IChromiumWebBrowserBase browser, int /// The modifiers. public static void SendMouseWheelEvent(this IBrowser browser, int x, int y, int deltaX, int deltaY, CefEventFlags modifiers) { - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); @@ -1735,7 +1735,7 @@ public static Task EvaluateScriptAsync(this IBrowser browser throw new ArgumentOutOfRangeException("timeout", "Timeout greater than Maximum allowable value of " + UInt32.MaxValue); } - browser.ThrowExceptionIfBrowserNull(); + ThrowExceptionIfBrowserNull(browser); using (var frame = browser.MainFrame) { @@ -1953,7 +1953,7 @@ private static void ThrowExceptionIfFrameNull(IFrame frame) ///
/// Thrown when an exception error condition occurs. /// The ChromiumWebBrowser instance this method extends. - internal static void ThrowExceptionIfBrowserNull(this IBrowser browser) + public static void ThrowExceptionIfBrowserNull(IBrowser browser) { if (browser == null) { From 6df59e0cf288b00e39aaceea6e390dee05e0c286 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 23 Feb 2023 13:05:53 +1000 Subject: [PATCH 211/543] Core - Fix some xml doc mistakes --- CefSharp/Callback/IMediaAccessCallback.cs | 2 +- CefSharp/Handler/FindHandler.cs | 2 +- CefSharp/IBrowserHost.cs | 6 +++--- CefSharp/IChromiumWebBrowserBase.cs | 2 +- CefSharp/IWebBrowser.cs | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CefSharp/Callback/IMediaAccessCallback.cs b/CefSharp/Callback/IMediaAccessCallback.cs index 8ef49fbc7..fc40c2b66 100644 --- a/CefSharp/Callback/IMediaAccessCallback.cs +++ b/CefSharp/Callback/IMediaAccessCallback.cs @@ -16,7 +16,7 @@ public interface IMediaAccessCallback : IDisposable /// Call to allow or deny media access. If this callback was initiated in /// response to a getUserMedia (indicated by /// DeviceAudioCapture and/or DeviceVideoCapture being set) then - /// must match passed to + /// must match requestedPermissions param passed to /// ///
/// Allowed Permissions diff --git a/CefSharp/Handler/FindHandler.cs b/CefSharp/Handler/FindHandler.cs index 9c540f775..e8362e045 100644 --- a/CefSharp/Handler/FindHandler.cs +++ b/CefSharp/Handler/FindHandler.cs @@ -12,7 +12,7 @@ namespace CefSharp.Handler ///
public class FindHandler : IFindHandler { - /// + /// void IFindHandler.OnFindResult(IWebBrowser chromiumWebBrowser, IBrowser browser, int identifier, int count, Rect selectionRect, int activeMatchOrdinal, bool finalUpdate) { OnFindResult(chromiumWebBrowser, browser, identifier, count, selectionRect, activeMatchOrdinal, finalUpdate); diff --git a/CefSharp/IBrowserHost.cs b/CefSharp/IBrowserHost.cs index 1f1e37f44..5da568081 100644 --- a/CefSharp/IBrowserHost.cs +++ b/CefSharp/IBrowserHost.cs @@ -58,12 +58,12 @@ public interface IBrowserHost : IDisposable bool HasDevTools { get; } /// - /// Send a method call message over the DevTools protocol. must be a + /// Send a method call message over the DevTools protocol. must be a /// UTF8-encoded JSON dictionary that contains "id" (int), "method" (string) /// and "params" (dictionary, optional) values. See the DevTools protocol /// documentation at https://chromedevtools.github.io/devtools-protocol/ for /// details of supported methods and the expected "params" dictionary contents. - /// will be copied if necessary. This method will return true if + /// will be copied if necessary. This method will return true if /// called on the CEF UI thread and the message was successfully submitted for /// validation, otherwise false. Validation will be applied asynchronously and /// any messages that fail due to formatting errors or missing parameters may @@ -115,7 +115,7 @@ public interface IBrowserHost : IDisposable /// Execute a method call over the DevTools protocol. This is a more structured /// version of SendDevToolsMessage. /// See the DevTools protocol documentation at https://chromedevtools.github.io/devtools-protocol/ for details - /// of supported methods and the expected dictionary contents. + /// of supported methods and the expected dictionary contents. /// See the SendDevToolsMessage documentation for additional usage information. /// /// is an incremental number that uniquely identifies the message (pass 0 to have the next number assigned diff --git a/CefSharp/IChromiumWebBrowserBase.cs b/CefSharp/IChromiumWebBrowserBase.cs index a33efcb0b..5b8df5565 100644 --- a/CefSharp/IChromiumWebBrowserBase.cs +++ b/CefSharp/IChromiumWebBrowserBase.cs @@ -76,7 +76,7 @@ public interface IChromiumWebBrowserBase : IDisposable /// /// Loads the specified in the Main Frame. - /// Same as calling + /// Same as calling /// /// The URL to be loaded. /// diff --git a/CefSharp/IWebBrowser.cs b/CefSharp/IWebBrowser.cs index 7dbeb756a..6b9df0782 100644 --- a/CefSharp/IWebBrowser.cs +++ b/CefSharp/IWebBrowser.cs @@ -20,8 +20,8 @@ public interface IWebBrowser : IChromiumWebBrowserBase /// /// Loads the specified in the Main Frame. - /// If is true then the method call will be ignored. - /// Same as calling + /// If is true then the method call will be ignored. + /// Same as calling /// /// The URL to be loaded. void Load(string url); From 916b7e01a6c60a95a0ac10aedc7a3f32a86d2220 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 25 Feb 2023 05:36:56 +1000 Subject: [PATCH 212/543] Test - Add PostMessage IJavascriptCallback test --- CefSharp.Test/PostMessage/PostMessageTests.cs | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CefSharp.Test/PostMessage/PostMessageTests.cs b/CefSharp.Test/PostMessage/PostMessageTests.cs index 88a61cd08..d0e08717f 100644 --- a/CefSharp.Test/PostMessage/PostMessageTests.cs +++ b/CefSharp.Test/PostMessage/PostMessageTests.cs @@ -35,6 +35,28 @@ public async Task ShouldWork() Assert.Equal("test", evt.Arguments.Message); } + [Fact] + public async Task ShouldWorkWithJavascriptCallback() + { + const string expected = "Echo"; + + AssertInitialLoadComplete(); + + var evt = await Assert.RaisesAsync( + a => Browser.JavascriptMessageReceived += a, + a => Browser.JavascriptMessageReceived -= a, + () => Browser.EvaluateScriptAsync("cefSharp.postMessage({ 'Type': 'Update', Data: { 'Property': 123 }, 'Callback': (p1) => { return p1; } });")); + + Assert.NotNull(evt); + + dynamic msg = evt.Arguments.Message; + var callback = (IJavascriptCallback)msg.Callback; + var response = await callback.ExecuteAsync(expected); + + Assert.True(response.Success); + Assert.Equal(expected, response.Result); + } + [Theory] [InlineData("Event", "Event1")] [InlineData("Event", "Event2")] From 75d49a9d81797386405f83ebb9284226a0a685c6 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 27 Feb 2023 06:40:02 +1000 Subject: [PATCH 213/543] Bug Report - Update links --- .github/ISSUE_TEMPLATE/bug_report.md | 16 ++++++++-------- CONTRIBUTING.md | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index fbaecea62..fc2712c6b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -22,7 +22,7 @@ Still have a question? Great, ask it on [Discussions](https://github.com/cefshar We ask that you put in a reasonable amount of effort in searching through the resources listed above. The developers have full time jobs, they have lives, families, the time they have available to contribute this project is a precious resource, make sure you use it wisely! Remember the more time we spend answering the same questions over and over again, less time goes into writing code, adding new features, actually fixing bugs! -Still have a question to ask or unsure where to go next? Start with the Gitter Chat room : https://github.com/cefsharp/CefSharp/discussions +Still have a question to ask or unsure where to go next? Start with : https://github.com/cefsharp/CefSharp/discussions Before posting a bug report please take the time to read https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/ @@ -31,18 +31,18 @@ Before posting a bug report please take the time to read https://codeblog.jonske Delete this line and everything above, and then fill in the details below. - **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 109.1.110 or greater. + - Please only create an issue if you can reproduce the problem with version 110.0.280 or greater. - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 109.1.110 (no ambiguous statements like `Latest from Nuget`) + - Please include the exact version number you are using e.g. 110.0.280 (no ambiguous statements like `Latest from Nuget`) - **What architecture x86 or x64?** - **What version of .Net?** - <.Net 4.x/.Net Core 3.1/.Net 5.0> + <.Net 4.x/.Net Core 3.1/.Net 5.0/6.0/7.0> - **On what operating system?** - + - **Are you using `WinForms`, `WPF` or `OffScreen`?** @@ -68,9 +68,9 @@ Delete this line and everything above, and then fill in the details below. - **Does this problem also occur in the `CEF` Sample Application** - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_110.0.30%2Bg3c2b68f%2Bchromium-110.0.5481.178_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_110.0.30%2Bg3c2b68f%2Bchromium-110.0.5481.178_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_110.0.30%2Bg3c2b68f%2Bchromium-110.0.5481.178_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1dc6fb7cb..42bc60317 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_109.1.11%2Bg6d4fdb2%2Bchromium-109.0.5414.87_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_110.0.30%2Bg3c2b68f%2Bchromium-110.0.5481.178_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_110.0.30%2Bg3c2b68f%2Bchromium-110.0.5481.178_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_110.0.30%2Bg3c2b68f%2Bchromium-110.0.5481.178_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` @@ -47,7 +47,7 @@ Your bug report should **always follow this template**: - **Are you using `WinForms`, `WPF` or `OffScreen`?** - **What version of the product are you using? On what operating system? x86 or x64?** - What version are you using? Nuget? CI Nuget? build from a branch? If so which branch? - - Win7, Win 8, Win10, etc? + - Win10/11, etc? - **Please provide any additional information below.** - A stack trace if available, any Exception information. - Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory) From a39686b339e262de69df27ef565170deb95fc71f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 27 Feb 2023 08:04:40 +1000 Subject: [PATCH 214/543] Core - Cleanup WebBrowserExtensions - Add null check - Rename params - Reduce code duplication --- CefSharp.Test/PrintToPdf/PrintToPdfTests.cs | 59 +++++++++ CefSharp/WebBrowserExtensions.cs | 138 +++++++++++--------- 2 files changed, 133 insertions(+), 64 deletions(-) create mode 100644 CefSharp.Test/PrintToPdf/PrintToPdfTests.cs diff --git a/CefSharp.Test/PrintToPdf/PrintToPdfTests.cs b/CefSharp.Test/PrintToPdf/PrintToPdfTests.cs new file mode 100644 index 000000000..9a5a0f756 --- /dev/null +++ b/CefSharp.Test/PrintToPdf/PrintToPdfTests.cs @@ -0,0 +1,59 @@ +using System.Threading.Tasks; +using Xunit.Abstractions; +using Xunit; +using System.IO; +using CefSharp.OffScreen; +using CefSharp.Example; +using System; + +namespace CefSharp.Test.PrintToPdf +{ + [Collection(CefSharpFixtureCollection.Key)] + public class PrintToPdfTests : BrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture fixture; + + public PrintToPdfTests(ITestOutputHelper output, CefSharpFixture fixture) + { + this.fixture = fixture; + this.output = output; + } + + [Fact] + public async Task ShouldWork() + { + AssertInitialLoadComplete(); + + var tempFile = Path.Combine(Path.GetTempPath(), "test.pdf"); + + if(File.Exists(tempFile)) + { + File.Delete(tempFile); + } + + var success = await Browser.PrintToPdfAsync(tempFile); + + Assert.True(success, $"PDF Generation Failed {tempFile}"); + Assert.True(File.Exists(tempFile), $"PDF File not found {tempFile}"); + } + + [Fact] + public async Task ShouldFailIfPageNotLoaded() + { + var tempFile = Path.Combine(Path.GetTempPath(), "test.pdf"); + + if (File.Exists(tempFile)) + { + File.Delete(tempFile); + } + + using (var browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl, automaticallyCreateBrowser: false)) + { + var exception = await Assert.ThrowsAsync(async () => await browser.PrintToPdfAsync(tempFile)); + + Assert.Equal(WebBrowserExtensions.BrowserNullExceptionString, exception.Message); + } + } + } +} diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index 8a2d63d25..a4aac6d5c 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -743,6 +743,8 @@ public static void ExecuteScriptAsync(this IChromiumWebBrowserBase browser, stri /// , you can provide a custom implementation if you require one. public static void ExecuteScriptAsync(this IBrowser browser, string methodName, params object[] args) { + ThrowExceptionIfBrowserNull(browser); + var script = GetScriptForJavascriptMethodWithArgs(methodName, args); browser.ExecuteScriptAsync(script); @@ -1199,13 +1201,15 @@ public static IRequestContext GetRequestContext(this IChromiumWebBrowserBase bro /// /// Asynchronously gets the current Zoom Level. /// - /// The ChromiumWebBrowser instance this method extends. + /// The ChromiumWebBrowser instance this method extends. /// /// An asynchronous result that yields the zoom level. /// - public static Task GetZoomLevelAsync(this IBrowser cefBrowser) + public static Task GetZoomLevelAsync(this IBrowser browser) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); return host.GetZoomLevelAsync(); @@ -1232,13 +1236,13 @@ public static Task GetZoomLevelAsync(this IChromiumWebBrowserBase browse /// If called on the CEF UI thread the change will be applied immediately. Otherwise, the change will be applied asynchronously /// on the CEF UI thread. The CEF UI thread is different to the WPF/WinForms UI Thread. /// - /// The ChromiumWebBrowser instance this method extends. + /// The ChromiumWebBrowser instance this method extends. /// zoom level. - public static void SetZoomLevel(this IBrowser cefBrowser, double zoomLevel) + public static void SetZoomLevel(this IBrowser browser, double zoomLevel) { - ThrowExceptionIfBrowserNull(cefBrowser); + ThrowExceptionIfBrowserNull(browser); - var host = cefBrowser.GetHost(); + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.SetZoomLevel(zoomLevel); @@ -1263,15 +1267,17 @@ public static void SetZoomLevel(this IChromiumWebBrowserBase browser, double zoo /// /// Search for text within the current page. /// - /// The ChromiumWebBrowser instance this method extends. + /// The instance this method extends. /// text to search for /// indicates whether to search forward or backward within the page /// indicates whether the search should be case-sensitive /// indicates whether this is the first request or a follow-up /// The instance, if any, will be called to report find results. - public static void Find(this IBrowser cefBrowser, string searchText, bool forward, bool matchCase, bool findNext) + public static void Find(this IBrowser browser, string searchText, bool forward, bool matchCase, bool findNext) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.Find(searchText, forward, matchCase, findNext); @@ -1290,22 +1296,19 @@ public static void Find(this IChromiumWebBrowserBase browser, string searchText, { ThrowExceptionIfChromiumWebBrowserDisposed(browser); - var cefBrowser = browser.BrowserCore; - ThrowExceptionIfBrowserNull(cefBrowser); - - cefBrowser.Find(searchText, forward, matchCase, findNext); + browser.BrowserCore.Find(searchText, forward, matchCase, findNext); } /// /// Cancel all searches that are currently going on. /// - /// The ChromiumWebBrowser instance this method extends. + /// The instance this method extends. /// clear the current search selection. - public static void StopFinding(this IBrowser cefBrowser, bool clearSelection) + public static void StopFinding(this IBrowser browser, bool clearSelection) { - ThrowExceptionIfBrowserNull(cefBrowser); + ThrowExceptionIfBrowserNull(browser); - var host = cefBrowser.GetHost(); + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.StopFinding(clearSelection); @@ -1326,29 +1329,44 @@ public static void StopFinding(this IChromiumWebBrowserBase browser, bool clearS /// /// Opens a Print Dialog which if used (can be user cancelled) will print the browser contents. /// - /// The ChromiumWebBrowser instance this method extends. - public static void Print(this IBrowser cefBrowser) + /// The browser instance this method extends. + public static void Print(this IBrowser browser) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.Print(); } + /// + /// Opens a Print Dialog which if used (can be user cancelled) will print the browser contents. + /// + /// The ChromiumWebBrowser instance this method extends. + public static void Print(this IChromiumWebBrowserBase browser) + { + ThrowExceptionIfChromiumWebBrowserDisposed(browser); + + browser.BrowserCore.Print(); + } + /// /// Asynchronously prints the current browser contents to the PDF file specified. The caller is responsible for deleting the file /// when done. /// - /// The object this method extends. + /// The object this method extends. /// Output file location. /// (Optional) Print Settings. /// /// A task that represents the asynchronous print operation. The result is true on success or false on failure to generate the /// Pdf. /// - public static Task PrintToPdfAsync(this IBrowser cefBrowser, string path, PdfPrintSettings settings = null) + public static Task PrintToPdfAsync(this IBrowser browser, string path, PdfPrintSettings settings = null) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); var callback = new TaskPrintToPdfCallback(); @@ -1357,20 +1375,6 @@ public static Task PrintToPdfAsync(this IBrowser cefBrowser, string path, return callback.Task; } - /// - /// Opens a Print Dialog which if used (can be user cancelled) will print the browser contents. - /// - /// The ChromiumWebBrowser instance this method extends. - public static void Print(this IChromiumWebBrowserBase browser) - { - ThrowExceptionIfChromiumWebBrowserDisposed(browser); - - var cefBrowser = browser.BrowserCore; - ThrowExceptionIfBrowserNull(cefBrowser); - - cefBrowser.Print(); - } - /// /// Asynchronously prints the current browser contents to the PDF file specified. The caller is responsible for deleting the file /// when done. @@ -1392,13 +1396,15 @@ public static Task PrintToPdfAsync(this IChromiumWebBrowserBase browser, s /// /// Open developer tools in its own window. /// - /// The ChromiumWebBrowser instance this method extends. + /// The instance this method extends. /// (Optional) window info used for showing dev tools. /// (Optional) x coordinate (used for inspectElement) /// (Optional) y coordinate (used for inspectElement) - public static void ShowDevTools(this IBrowser cefBrowser, IWindowInfo windowInfo = null, int inspectElementAtX = 0, int inspectElementAtY = 0) + public static void ShowDevTools(this IBrowser browser, IWindowInfo windowInfo = null, int inspectElementAtX = 0, int inspectElementAtY = 0) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.ShowDevTools(windowInfo, inspectElementAtX, inspectElementAtY); @@ -1421,10 +1427,12 @@ public static void ShowDevTools(this IChromiumWebBrowserBase browser, IWindowInf /// /// Explicitly close the developer tools window if one exists for this browser instance. /// - /// The ChromiumWebBrowser instance this method extends. - public static void CloseDevTools(this IBrowser cefBrowser) + /// The instance this method extends. + public static void CloseDevTools(this IBrowser browser) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.CloseDevTools(); @@ -1444,11 +1452,13 @@ public static void CloseDevTools(this IChromiumWebBrowserBase browser) /// /// If a misspelled word is currently selected in an editable node calling this method will replace it with the specified word. /// - /// The ChromiumWebBrowser instance this method extends. + /// The instance this method extends. /// The new word that will replace the currently selected word. - public static void ReplaceMisspelling(this IBrowser cefBrowser, string word) + public static void ReplaceMisspelling(this IBrowser browser, string word) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.ReplaceMisspelling(word); @@ -1469,40 +1479,40 @@ public static void ReplaceMisspelling(this IChromiumWebBrowserBase browser, stri /// /// Add the specified word to the spelling dictionary. /// - /// The ChromiumWebBrowser instance this method extends. + /// The instance this method extends. /// The new word that will be added to the dictionary. - public static void AddWordToDictionary(this IBrowser cefBrowser, string word) + public static void AddWordToDictionary(this IBrowser browser, string word) { - var host = cefBrowser.GetHost(); + ThrowExceptionIfBrowserNull(browser); + + var host = browser.GetHost(); ThrowExceptionIfBrowserHostNull(host); host.AddWordToDictionary(word); } /// - /// Shortcut method to get the browser IBrowserHost. + /// Add the specified word to the spelling dictionary. /// /// The ChromiumWebBrowser instance this method extends. - /// - /// browserHost or null. - /// - public static IBrowserHost GetBrowserHost(this IChromiumWebBrowserBase browser) + /// The new word that will be added to the dictionary. + public static void AddWordToDictionary(this IChromiumWebBrowserBase browser, string word) { - var cefBrowser = browser.BrowserCore; + ThrowExceptionIfChromiumWebBrowserDisposed(browser); - return cefBrowser == null ? null : cefBrowser.GetHost(); + browser.BrowserCore.AddWordToDictionary(word); } /// - /// Add the specified word to the spelling dictionary. + /// Shortcut method to get the browser IBrowserHost. /// /// The ChromiumWebBrowser instance this method extends. - /// The new word that will be added to the dictionary. - public static void AddWordToDictionary(this IChromiumWebBrowserBase browser, string word) + /// + /// browserHost or null. + /// + public static IBrowserHost GetBrowserHost(this IChromiumWebBrowserBase browser) { - ThrowExceptionIfChromiumWebBrowserDisposed(browser); - - browser.BrowserCore.AddWordToDictionary(word); + return browser.BrowserCore?.GetHost(); } /// @@ -1524,7 +1534,7 @@ public static void SendMouseWheelEvent(this IChromiumWebBrowserBase browser, int /// /// Send a mouse wheel event to the browser. /// - /// The ChromiumWebBrowser instance this method extends. + /// The instance this method extends. /// The x coordinate relative to upper-left corner of view. /// The y coordinate relative to upper-left corner of view. /// The delta x coordinate. From 4f6fdf85c812e125bf37fde74368ccac3512cf8c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 4 Mar 2023 10:19:50 +1000 Subject: [PATCH 215/543] Upgrade to 111.0.11+geb023d1+chromium-111.0.5563.50 / Chromium 111.0.5563.50 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...ackages.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 6 +++--- UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- 29 files changed, 39 insertions(+), 39 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 898e2e2dd..c3e6cf129 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 3491ee745..9590bae2b 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 6e271793c..1f61c4057 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,280 - PRODUCTVERSION 110,0,280 + FILEVERSION 111,0,110 + PRODUCTVERSION 111,0,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "110.0.280" + VALUE "FileVersion", "111.0.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.280" + VALUE "ProductVersion", "111.0.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index b4fee5539..df741bafa 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index dbbdfc0dc..1518ccac5 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index fb1caf387..1814470ad 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 1f7da6459..067b67dc0 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index b1e2b8300..11f3269f4 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index f9455f71d..ccdeebf6c 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 110,0,280 - PRODUCTVERSION 110,0,280 + FILEVERSION 111,0,110 + PRODUCTVERSION 111,0,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "110.0.280" + VALUE "FileVersion", "111.0.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "110.0.280" + VALUE "ProductVersion", "111.0.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index b4fee5539..df741bafa 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index dbbdfc0dc..1518ccac5 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 8462336eb..ff13d04a3 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 4c0797cd1..37d809de3 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 9b5767160..3938bcc9d 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index afc1f6a9d..32afdaa20 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index e8a270adb..1f63a64a7 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 315da7e65..c0139eff0 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 9ca4e2f5b..2003a31fc 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 203992f97..5bf53edc1 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index d9bb6bfa9..ef4026f61 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 3fec003c3..2231edd9a 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 9851c7ca1..c31155307 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index a760749dd..259392102 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 110.0.280 + 111.0.110 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 110.0.280 + Version 111.0.110 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index f342ea3bd..27dbe3061 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "110.0.280"; - public const string AssemblyFileVersion = "110.0.280.0"; + public const string AssemblyVersion = "111.0.110"; + public const string AssemblyFileVersion = "111.0.110.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index c8bc9698b..ff135284e 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index a5ebc6414..34cef3994 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 0de49b777..6146efe20 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -141,9 +141,9 @@ - - - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index f2d3dec49..d0f937e42 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "110.0.28", + [string] $CefVersion = "111.0.11", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 36312eee3..27d84a4c5 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 110.0.280-CI{build} +version: 111.0.110-CI{build} clone_depth: 10 From edf99b5c2435562cf4e36fcacdd930c3ad5759f6 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 7 Mar 2023 10:53:16 +1000 Subject: [PATCH 216/543] Net Core - ManagePackageVersionsCentrally exclude chromiumembeddedframework.runtime packages - When Nuget packages are managed centrally the build will break when no RuntimeIdentifier is specified as the .targets file includes entries for the chromiumembeddedframework.runtime packages. For now when ManagePackageVersionsCentrally exclude the Issue #4362 --- NuGet/PackageReference/CefSharp.Common.NETCore.targets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 6146efe20..fed6f01bb 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -140,10 +140,12 @@ - + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) PreserveNewest From 5b61574a51c943289739573e6ebc414111158c3a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 7 Mar 2023 11:07:44 +1000 Subject: [PATCH 217/543] Net Core - Support Central Package Management - Use VersionOverride in .targets file when ManagePackageVersionsCentrally == true Resolves #4362 --- .../CefSharp.Common.NETCore.targets | 21 ++++++++++++++----- build.ps1 | 9 ++++++-- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index fed6f01bb..49dab7a83 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -140,11 +140,22 @@ - - - - - + + + + + + + + + + + + + + + + runtimes\win-x86\native\locales\%(RecursiveDir)%(FileName)%(Extension) diff --git a/build.ps1 b/build.ps1 index b8e898a43..bbf4f20b8 100644 --- a/build.ps1 +++ b/build.ps1 @@ -442,11 +442,16 @@ function WriteVersionToNugetTargets $Filename = Join-Path $WorkingDir NuGet\PackageReference\CefSharp.Common.NETCore.targets Write-Diagnostic "Write Version ($RedistVersion) to $Filename" + + $RunTimeJsonData = Get-Content -Encoding UTF8 $Filename + $Regex1 = '" Version=".*"'; $Replace = '" Version="' + $RedistVersion + '"'; - - $RunTimeJsonData = Get-Content -Encoding UTF8 $Filename $NewString = $RunTimeJsonData -replace $Regex1, $Replace + + $Regex1 = '" VersionOverride=".*"'; + $Replace = '" VersionOverride="' + $RedistVersion + '"'; + $NewString = $NewString -replace $Regex1, $Replace $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False [System.IO.File]::WriteAllLines($Filename, $NewString, $Utf8NoBomEncoding) From b17cd2a1b23df786c1051c7c66947f6d52239510 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 7 Mar 2023 13:03:53 +1000 Subject: [PATCH 218/543] Core - High-DPI support is now enabled by default in Chromium. - Chromium now enables DPI awareness programmatically by default - Remove Cef.EnableHighDPISupport calls and mark as obsolete - Remove dpiawareness entries from app.manifest Issues #4417 #4410 --- .../BrowserSubprocessExecutable.h | 4 ---- CefSharp.BrowserSubprocess/Program.cs | 2 -- CefSharp.BrowserSubprocess/app.manifest | 6 ------ CefSharp.Core/BrowserSubprocess/SelfHost.cs | 7 ++----- CefSharp.Core/Cef.cs | 1 + CefSharp.OffScreen.Example/app.manifest | 6 ------ CefSharp.WinForms.Example/Program.cs | 11 ----------- CefSharp.Wpf.Example/app.manifest | 7 ------- 8 files changed, 3 insertions(+), 41 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h b/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h index 0587553c0..7d624dc59 100644 --- a/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h +++ b/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h @@ -34,7 +34,6 @@ namespace CefSharp /// This overload is specifically used for .Net Core. For hosting your own BrowserSubProcess /// it's preferable to use the Main method provided by this class. /// - Obtains the command line args via a call to Environment::GetCommandLineArgs - /// - Calls CefEnableHighDPISupport before any other processing /// /// /// If called for the browser process (identified by no "type" command-line value) it will return immediately @@ -53,7 +52,6 @@ namespace CefSharp /// This overload is specifically used for .Net Core. For hosting your own BrowserSubProcess /// it's preferable to use the Main method provided by this class. /// - Obtains the command line args via a call to Environment::GetCommandLineArgs - /// - Calls CefEnableHighDPISupport before any other processing /// /// /// If called for the browser process (identified by no "type" command-line value) it will return immediately @@ -62,8 +60,6 @@ namespace CefSharp /// - - - true/PM - - - - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 34cef3994..e853da9c8 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 49dab7a83..1d588e3bd 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index d5c64c8fe..4fba4db4a 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "111.0.11", + [string] $CefVersion = "111.1.2", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 27d84a4c5..1f0467566 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 111.0.110-CI{build} +version: 111.1.20-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 800a583a3..60bb9c7f3 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "111.0.110", + [string] $Version = "111.1.20", [Parameter(Position = 2)] - [string] $AssemblyVersion = "111.0.110", + [string] $AssemblyVersion = "111.1.20", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From fa4a37a8b0c842b3fa7b2f945518f2d023e60eb4 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 10 Mar 2023 18:37:42 +1000 Subject: [PATCH 221/543] Core - Add EvaluateScriptAsync(string script) extension method - Add generic overload that uses the DefaultBinder (with CamelCaseNaming) to perform type conversion --- CefSharp.Core/WebBrowserExtensionsEx.cs | 86 ++++++++ .../CookieManager/CookieManagerTests.cs | 14 +- .../EvaluateScriptAsyncGenericTests.cs | 186 ++++++++++++++++++ .../Javascript/EvaluateScriptAsyncTests.cs | 2 +- .../JavascriptBindingTests.cs | 4 +- CefSharp.Test/WebBrowserTestExtensions.cs | 9 - CefSharp/ModelBinding/DefaultBinder.cs | 6 + CefSharp/WebBrowserExtensions.cs | 6 +- 8 files changed, 291 insertions(+), 22 deletions(-) create mode 100644 CefSharp.Test/Javascript/EvaluateScriptAsyncGenericTests.cs diff --git a/CefSharp.Core/WebBrowserExtensionsEx.cs b/CefSharp.Core/WebBrowserExtensionsEx.cs index 78b28b32f..c7278e4b1 100644 --- a/CefSharp.Core/WebBrowserExtensionsEx.cs +++ b/CefSharp.Core/WebBrowserExtensionsEx.cs @@ -3,6 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using CefSharp.Internals; +using CefSharp.ModelBinding; using System; using System.IO; using System.Threading.Tasks; @@ -172,5 +173,90 @@ public static void ToggleAudioMute(this IChromiumWebBrowserBase browser) host.SetAudioMuted(!isAudioMuted); }); } + + /// + /// Evaluate javascript code in the context of the . The script will be executed + /// asynchronously and the method returns a Task that can be awaited to obtain the result. + /// + /// Type + /// Thrown when one or more arguments are outside the required range. + /// Thrown if a Javascript error occurs. + /// The IFrame instance this method extends. + /// The Javascript code that should be executed. + /// (Optional) The timeout after which the Javascript code execution should be aborted. + /// + /// that can be awaited to obtain the result of the script execution. The + /// is used to convert the result to the desired type. Property names are converted from camelCase. + /// If the script execution returns an error then an exception is thrown. + /// + public static async Task EvaluateScriptAsync(this IFrame frame, string script, TimeSpan? timeout = null) + { + WebBrowserExtensions.ThrowExceptionIfFrameNull(frame); + + if (timeout.HasValue && timeout.Value.TotalMilliseconds > uint.MaxValue) + { + throw new ArgumentOutOfRangeException("timeout", "Timeout greater than Maximum allowable value of " + UInt32.MaxValue); + } + + var response = await frame.EvaluateScriptAsync(script, timeout: timeout, useImmediatelyInvokedFuncExpression: false).ConfigureAwait(false); + + if (response.Success) + { + var binder = DefaultBinder.Instance; + + return (T)binder.Bind(response.Result, typeof(T)); + } + + throw new Exception(response.Message); + } + + /// + /// Evaluate some Javascript code in the context of the MainFrame of the ChromiumWebBrowser. The script will be executed + /// asynchronously and the method returns a Task encapsulating the response from the Javascript + /// + /// Type + /// Thrown when one or more arguments are outside the required range. + /// The IBrowser instance this method extends. + /// The JavaScript code that should be executed. + /// (Optional) The timeout after which the JavaScript code execution should be aborted. + /// + /// that can be awaited to obtain the result of the JavaScript execution. + /// + public static Task EvaluateScriptAsync(this IBrowser browser, string script, TimeSpan? timeout = null) + { + WebBrowserExtensions.ThrowExceptionIfBrowserNull(browser); + + using (var frame = browser.MainFrame) + { + return frame.EvaluateScriptAsync(script, timeout: timeout); + } + } + + /// + /// Evaluate Javascript in the context of this Browsers Main Frame. The script will be executed + /// asynchronously and the method returns a Task encapsulating the response from the Javascript + /// + /// Thrown when one or more arguments are outside the required range. + /// Type + /// The ChromiumWebBrowser instance this method extends. + /// The Javascript code that should be executed. + /// (Optional) The timeout after which the Javascript code execution should be aborted. + /// + /// that can be awaited to obtain the result of the script execution. + /// + public static Task EvaluateScriptAsync(this IChromiumWebBrowserBase chromiumWebBrowser, string script, TimeSpan? timeout = null) + { + WebBrowserExtensions.ThrowExceptionIfChromiumWebBrowserDisposed(chromiumWebBrowser); + + if (chromiumWebBrowser is IWebBrowser b) + { + if (b.CanExecuteJavascriptInMainFrame == false) + { + WebBrowserExtensions.ThrowExceptionIfCanExecuteJavascriptInMainFrameFalse(); + } + } + + return chromiumWebBrowser.BrowserCore.EvaluateScriptAsync(script, timeout); + } } } diff --git a/CefSharp.Test/CookieManager/CookieManagerTests.cs b/CefSharp.Test/CookieManager/CookieManagerTests.cs index 42d896323..7a75b12b9 100644 --- a/CefSharp.Test/CookieManager/CookieManagerTests.cs +++ b/CefSharp.Test/CookieManager/CookieManagerTests.cs @@ -42,7 +42,7 @@ public async Task ShouldWork() Assert.True(success); - var actual = await Browser.EvaluateScriptAndAssertAsync("document.cookie"); + var actual = await Browser.EvaluateScriptAsync("document.cookie"); Assert.Equal(expected, actual); } @@ -74,7 +74,7 @@ public async Task ShouldSetMultipleCookies() Assert.True(success); - var actual = await Browser.EvaluateScriptAndAssertAsync>(@"(() => { + var actual = await Browser.EvaluateScriptAsync>(@"(() => { const cookies = document.cookie.split(';'); return cookies.map(cookie => cookie.trim()).sort(); })();"); @@ -87,7 +87,7 @@ public async Task ShouldGetACookie() { AssertInitialLoadComplete(); - var response = await Browser.EvaluateScriptAndAssertAsync(@"(() => { + var response = await Browser.EvaluateScriptAsync(@"(() => { document.cookie = 'username=John Doe'; return document.cookie; })();"); @@ -113,7 +113,7 @@ public async Task ShouldProperlyReportSecureCookie() { AssertInitialLoadComplete(); - var response = await Browser.EvaluateScriptAndAssertAsync(@"(() => { + var response = await Browser.EvaluateScriptAsync(@"(() => { document.cookie = 'username=John Doe;Secure;'; return document.cookie; })();"); @@ -132,7 +132,7 @@ public async Task ShouldProperlyReportStrictSameSiteCookie() { AssertInitialLoadComplete(); - var response = await Browser.EvaluateScriptAndAssertAsync(@"(() => { + var response = await Browser.EvaluateScriptAsync(@"(() => { document.cookie = 'username=John Doe;SameSite=Strict;'; return document.cookie; })();"); @@ -195,7 +195,7 @@ public async Task ShouldClearCookies() Assert.True(cookieSet); - var response = await Browser.EvaluateScriptAndAssertAsync("document.cookie"); + var response = await Browser.EvaluateScriptAsync("document.cookie"); Assert.Equal("cookie1=1", response); @@ -209,7 +209,7 @@ public async Task ShouldClearCookies() await Browser.WaitForNavigationAsync(); - response = await Browser.EvaluateScriptAndAssertAsync("document.cookie"); + response = await Browser.EvaluateScriptAsync("document.cookie"); Assert.Equal(string.Empty, response); } diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncGenericTests.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncGenericTests.cs new file mode 100644 index 000000000..994ea7c9b --- /dev/null +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncGenericTests.cs @@ -0,0 +1,186 @@ +// Copyright © 2021 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Globalization; +using System.Linq; +using System.Threading.Tasks; +using Xunit; +using Xunit.Abstractions; + +namespace CefSharp.Test.Javascript +{ + [Collection(CefSharpFixtureCollection.Key)] + public class EvaluateScriptAsyncGenericTests : BrowserTests + { + private readonly ITestOutputHelper output; + private readonly CefSharpFixture collectionFixture; + + public EvaluateScriptAsyncGenericTests(ITestOutputHelper output, CefSharpFixture collectionFixture) + { + this.output = output; + this.collectionFixture = collectionFixture; + } + + [Theory] + [InlineData(double.MaxValue, "Number.MAX_VALUE")] + [InlineData(double.MaxValue / 2, "Number.MAX_VALUE / 2")] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task ShouldWorkForDoubleComputation(double expectedValue, string script) + { + AssertInitialLoadComplete(); + + var actual = await Browser.EvaluateScriptAsync(script); + + Assert.Equal(expectedValue, actual); + } + + [Theory] + [InlineData(0.5d)] + [InlineData(1.5d)] + [InlineData(-0.5d)] + [InlineData(-1.5d)] + [InlineData(100000.24500d)] + [InlineData(-100000.24500d)] + [InlineData((double)uint.MaxValue)] + [InlineData((double)int.MaxValue + 1)] + [InlineData((double)int.MaxValue + 10)] + [InlineData((double)int.MinValue - 1)] + [InlineData((double)int.MinValue - 10)] + [InlineData(((double)uint.MaxValue * 2))] + [InlineData(((double)uint.MaxValue * 2) + 0.1)] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task ShouldWorkForDouble(double expected) + { + AssertInitialLoadComplete(); + + var actual = await Browser.EvaluateScriptAsync(expected.ToString(CultureInfo.InvariantCulture)); + + Assert.Equal(expected, actual, 5); + } + + [Theory] + [InlineData(0)] + [InlineData(-1)] + [InlineData(100)] + [InlineData(int.MaxValue)] + [InlineData(int.MinValue)] + //https://github.com/cefsharp/CefSharp/issues/3858 + public async Task ShouldWorkForInt(object expected) + { + AssertInitialLoadComplete(); + + var actual = await Browser.EvaluateScriptAsync(expected.ToString()); + + Assert.Equal(expected, actual); + } + + [Theory] + [InlineData("1970-01-01", "1970-01-01")] + [InlineData("1980-01-01", "1980-01-01")] + //https://github.com/cefsharp/CefSharp/issues/4234 + public async Task ShouldWorkForDate(DateTime expected, string str) + { + AssertInitialLoadComplete(); + + expected = expected.ToLocalTime(); + + var actual = await Browser.EvaluateScriptAsync($"new Date('{str}');"); + + Assert.Equal(expected, actual); + } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { resolve(42); });", "42")] + [InlineData("Promise.resolve(42);", "42")] + [InlineData("(async () => { var result = await fetch('https://cefsharp.example/HelloWorld.html'); return result.status;})();", "200")] + public async Task ShouldWorkForPromisePrimative(string script, string expected) + { + AssertInitialLoadComplete(); + + var actual = await Browser.EvaluateScriptAsync(script); + + Assert.Equal(expected, actual); + } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { reject('reject test'); });", "reject test")] + [InlineData("(async () => { throw('reject test'); })();", "reject test")] + public async Task ShouldFailForPromisePrimative(string script, string expected) + { + AssertInitialLoadComplete(); + + var exception = await Assert.ThrowsAsync(async () => + { + await Browser.EvaluateScriptAsync(script); + }); + + Assert.Equal(expected, exception.Message); + } + + [Theory] + [InlineData("new Promise(function(resolve, reject) { resolve({ a: 'CefSharp', b: 42, }); });", "CefSharp", "42")] + [InlineData("new Promise(function(resolve, reject) { setTimeout(resolve.bind(null, { a: 'CefSharp', b: 42, }), 1000); });", "CefSharp", "42")] + [InlineData("(async () => { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; async function getValAfterSleep() { await sleep(1000); return { a: 'CefSharp', b: 42 }; }; await sleep(2000); const result = await getValAfterSleep(); await sleep(2000); return result; })();", "CefSharp", "42")] + public async Task ShouldWorkForPromisePrimativeObject(string script, string expectedA, string expectedB) + { + AssertInitialLoadComplete(); + + var actual = await Browser.EvaluateScriptAsync(script); + + Assert.Equal(expectedA, actual.a.ToString()); + Assert.Equal(expectedB, actual.b.ToString()); + } + + [Fact] + public async Task ShouldLoadGoogleAndEvaluateScript() + { + AssertInitialLoadComplete(); + + var loadResponse = await Browser.LoadUrlAsync("www.google.com"); + + Assert.True(loadResponse.Success); + + var mainFrame = Browser.GetMainFrame(); + Assert.True(mainFrame.IsValid); + Assert.Contains("www.google", mainFrame.Url); + + var response = await Browser.EvaluateScriptAsync("2 + 2"); + Assert.Equal(4, response); + output.WriteLine("Result of 2 + 2: {0}", response); + } + + [Fact] + public async Task CanEvaluateScriptInParallel() + { + AssertInitialLoadComplete(); + + var tasks = Enumerable.Range(0, 100).Select(i => Task.Run(async () => + { + return await Browser.EvaluateScriptAsync("2 + 2"); + })).ToList(); + + await Task.WhenAll(tasks); + + Assert.All(tasks, (t) => + { + Assert.Equal(4, t.Result); + }); + } + + [Theory] + [InlineData("[1,2,,5]", new object[] { 1, 2, null, 5 })] + [InlineData("[1,2,,]", new object[] { 1, 2, null })] + [InlineData("[,2,3]", new object[] { null, 2, 3 })] + [InlineData("[,2,,3,,4,,,,5,,,]", new object[] { null, 2, null, 3, null, 4, null, null, null, 5, null, null })] + public async Task CanEvaluateScriptAsyncReturnPartiallyEmptyArrays(string javascript, object[] expected) + { + AssertInitialLoadComplete(); + + var actual = await Browser.EvaluateScriptAsync(javascript); + + Assert.Equal(expected, actual); + } + } +} diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs index dadeee12b..8e033d9cc 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs @@ -171,7 +171,7 @@ public async Task ShouldLoadGoogleAndEvaluateScript() Assert.True(mainFrame.IsValid); Assert.Contains("www.google", mainFrame.Url); - var response = await Browser.EvaluateScriptAndAssertAsync("2 + 2"); + var response = await Browser.EvaluateScriptAsync("2 + 2"); Assert.Equal(4, response); output.WriteLine("Result of 2 + 2: {0}", response); } diff --git a/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs index b9d816782..e896dea19 100644 --- a/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs +++ b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs @@ -162,9 +162,9 @@ public async Task ShouldWorkAfterACrossOriginNavigation() #endif await Browser.LoadUrlAsync("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/url"); - await Browser.EvaluateScriptAndAssertAsync(script); + await Browser.EvaluateScriptAsync(script); await Browser.LoadUrlAsync("https://www.google.com"); - await Browser.EvaluateScriptAndAssertAsync(script); + await Browser.EvaluateScriptAsync(script); Assert.Equal(2, boundObj.EchoMethodCallCount); } diff --git a/CefSharp.Test/WebBrowserTestExtensions.cs b/CefSharp.Test/WebBrowserTestExtensions.cs index e4b4397f0..356701f00 100644 --- a/CefSharp.Test/WebBrowserTestExtensions.cs +++ b/CefSharp.Test/WebBrowserTestExtensions.cs @@ -12,15 +12,6 @@ namespace CefSharp.Test { public static class WebBrowserTestExtensions { - public static async Task EvaluateScriptAndAssertAsync(this IChromiumWebBrowserBase browser, string script) - { - var response = await browser.EvaluateScriptAsync(script).ConfigureAwait(false); - - Assert.True(response.Success, response.Message); - - return (T)response.Result; - } - public static int PaintEventHandlerCount(this CefSharp.Wpf.ChromiumWebBrowser browser) { var field = typeof(CefSharp.Wpf.ChromiumWebBrowser).GetField("Paint", BindingFlags.NonPublic | BindingFlags.Instance); diff --git a/CefSharp/ModelBinding/DefaultBinder.cs b/CefSharp/ModelBinding/DefaultBinder.cs index c616cdbbf..e8809fdea 100644 --- a/CefSharp/ModelBinding/DefaultBinder.cs +++ b/CefSharp/ModelBinding/DefaultBinder.cs @@ -21,6 +21,12 @@ public class DefaultBinder : IBinder private static readonly MethodInfo ToArrayMethodInfo = typeof(Enumerable).GetMethod("ToArray", BindingFlags.Public | BindingFlags.Static); private readonly IJavascriptNameConverter javascriptNameConverter; + /// + /// Static Instance of this binding that can be reused as it doesn't store any state information. + /// Uses the naming converter + /// + public static readonly IBinder Instance = new DefaultBinder(new CamelCaseJavascriptNameConverter()); + /// /// Javascript Binder /// diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index a4aac6d5c..4ca10dd4e 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -1928,7 +1928,7 @@ public static string GetScriptForJavascriptMethodWithArgs(string methodName, obj return stringBuilder.ToString(); } - private static void ThrowExceptionIfChromiumWebBrowserDisposed(IChromiumWebBrowserBase browser) + public static void ThrowExceptionIfChromiumWebBrowserDisposed(IChromiumWebBrowserBase browser) { if (browser == null) { @@ -1950,7 +1950,7 @@ private static void ThrowExceptionIfChromiumWebBrowserDisposed(IChromiumWebBrows ///
/// Thrown when an exception error condition occurs. /// The instance this method extends. - private static void ThrowExceptionIfFrameNull(IFrame frame) + public static void ThrowExceptionIfFrameNull(IFrame frame) { if (frame == null) { @@ -1988,7 +1988,7 @@ public static void ThrowExceptionIfBrowserHostNull(IBrowserHost browserHost) /// Throw exception if can execute javascript in main frame false. ///
/// Thrown when an exception error condition occurs. - private static void ThrowExceptionIfCanExecuteJavascriptInMainFrameFalse() + public static void ThrowExceptionIfCanExecuteJavascriptInMainFrameFalse() { throw new Exception("Unable to execute javascript at this time, scripts can only be executed within a V8Context. " + "Use the IWebBrowser.CanExecuteJavascriptInMainFrame property to guard against this exception. " + From f6093ef54e634f575245f5d654976eede4697621 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 11 Mar 2023 06:40:51 +1000 Subject: [PATCH 222/543] Core - Add JavascriptMessageReceivedEventArgs.SetBinder method - Allow for specifying a custom binder used for converting the response from cefSharp.postMessage --- .../JavascriptMessageReceivedEventArgs.cs | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/CefSharp/Event/JavascriptMessageReceivedEventArgs.cs b/CefSharp/Event/JavascriptMessageReceivedEventArgs.cs index 2c301a8c6..972ea9309 100644 --- a/CefSharp/Event/JavascriptMessageReceivedEventArgs.cs +++ b/CefSharp/Event/JavascriptMessageReceivedEventArgs.cs @@ -13,8 +13,7 @@ namespace CefSharp ///
public class JavascriptMessageReceivedEventArgs : EventArgs { - private static readonly IBinder Binder = new DefaultBinder(); - + private static IBinder Binder = new DefaultBinder(); /// /// The frame that called CefSharp.PostMessage in Javascript @@ -60,5 +59,26 @@ public T ConvertMessageTo() } return (T)Binder.Bind(Message, typeof(T)); } + + /// + /// Provide a custom instance of + /// that will be used when + /// is called. You may wish to provide a custom instance in cases where you + /// wish to override the name conversion. + /// e.g. You wish to convert names from camelCase + /// + /// binder instance + /// + /// JavascriptMessageReceivedEventArgs.SetBinder(new DefaultBinder(new CamelCaseJavascriptNameConverter())); + /// + public static void SetBinder(IBinder binder) + { + if (binder == null) + { + throw new ArgumentNullException(nameof(binder)); + } + + Binder = binder; + } } } From 18772796018108bd409d0191c29e93d22d31a60c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 12 Mar 2023 06:49:47 +1000 Subject: [PATCH 223/543] Test - Add JavascriptBinding/JavascriptBindingSimpleTest.ShouldWork - Now a single file example using OffScreen --- .../JavascriptBindingSimpleTest.cs | 55 +++++++++++++++++++ .../JavascriptBindingTests.cs | 29 +++++++++- 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 CefSharp.Test/JavascriptBinding/JavascriptBindingSimpleTest.cs diff --git a/CefSharp.Test/JavascriptBinding/JavascriptBindingSimpleTest.cs b/CefSharp.Test/JavascriptBinding/JavascriptBindingSimpleTest.cs new file mode 100644 index 000000000..1fe97b64b --- /dev/null +++ b/CefSharp.Test/JavascriptBinding/JavascriptBindingSimpleTest.cs @@ -0,0 +1,55 @@ +// Copyright © 2023 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System.Threading.Tasks; +using CefSharp.Example; +using CefSharp.OffScreen; +using Xunit; + +namespace CefSharp.Test.JavascriptBinding +{ + [Collection(CefSharpFixtureCollection.Key)] + public class JavascriptBindingSimpleTest + { + // Keep this class inline as to provide a single file example. + private class MyBoundObject + { + public int EchoMethodCallCount { get; private set; } + public string Echo(string arg) + { + EchoMethodCallCount++; + + return arg; + } + } + + [Fact] + public async Task ShouldWork() + { + const string script = @" + (async function() + { + await CefSharp.BindObjectAsync('bound'); + return await bound.echo('Welcome to CefSharp!'); + })();"; + + using (var browser = new ChromiumWebBrowser(CefExample.HelloWorldUrl)) + { + var boundObj = new MyBoundObject(); + +#if NETCOREAPP + browser.JavascriptObjectRepository.Register("bound", boundObj); +#else + browser.JavascriptObjectRepository.Register("bound", boundObj, true); +#endif + await browser.WaitForInitialLoadAsync(); + + var result = await browser.EvaluateScriptAsync(script); + + Assert.Equal(1, boundObj.EchoMethodCallCount); + Assert.Equal("Welcome to CefSharp!", result); + } + } + } +} diff --git a/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs index e896dea19..a0ceac4c6 100644 --- a/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs +++ b/CefSharp.Test/JavascriptBinding/JavascriptBindingTests.cs @@ -6,6 +6,7 @@ using System.Threading.Tasks; using CefSharp.Event; using CefSharp.Example; +using CefSharp.Example.JavascriptBinding; using CefSharp.Internals; using CefSharp.OffScreen; using Xunit; @@ -25,10 +26,36 @@ public JavascriptBindingTests(ITestOutputHelper output, CefSharpFixture fixture) this.output = output; } + [Fact] + public async Task ShouldWork() + { + AssertInitialLoadComplete(); + + const string script = @" + (async function() + { + await CefSharp.BindObjectAsync('bound'); + return await bound.echo('Welcome to CefSharp!'); + })();"; + + var boundObj = new BindingTestObject(); + +#if NETCOREAPP + Browser.JavascriptObjectRepository.Register("bound", boundObj); +#else + Browser.JavascriptObjectRepository.Register("bound", boundObj, true); +#endif + + var result = await Browser.EvaluateScriptAsync(script); + + Assert.Equal(1, boundObj.EchoMethodCallCount); + Assert.Equal("Welcome to CefSharp!", result); + } + [Fact] //Issue https://github.com/cefsharp/CefSharp/issues/3470 //Verify workaround passes - public async Task ShouldWork() + public async Task ShouldRaiseResolveObjectEvent() { AssertInitialLoadComplete(); From a4db645e5b005e418e41b3ac8ad36010ba9956a6 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 12 Mar 2023 10:53:34 +1000 Subject: [PATCH 224/543] Core - Xml Doc fixes --- CefSharp.Core/Fluent/DownloadHandler.cs | 2 +- CefSharp.Core/WebBrowserExtensionsEx.cs | 4 ++-- CefSharp.WinForms/ChromiumWebBrowser.cs | 2 +- CefSharp.Wpf/Experimental/LifespanHandler.cs | 2 +- CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs | 1 + CefSharp/IChromiumWebBrowserBase.cs | 2 +- CefSharp/Internals/JavascriptObjectRepository.cs | 1 - 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CefSharp.Core/Fluent/DownloadHandler.cs b/CefSharp.Core/Fluent/DownloadHandler.cs index 5de602587..b32281c12 100644 --- a/CefSharp.Core/Fluent/DownloadHandler.cs +++ b/CefSharp.Core/Fluent/DownloadHandler.cs @@ -28,7 +28,7 @@ namespace CefSharp.Fluent public delegate void OnBeforeDownloadDelegate(IWebBrowser chromiumWebBrowser, IBrowser browser, DownloadItem downloadItem, IBeforeDownloadCallback callback); /// - /// Called when a download's status or progress information has been updated. This may be called multiple times before and after . + /// Called when a download's status or progress information has been updated. This may be called multiple times before and after . /// /// the ChromiumWebBrowser control /// The browser instance diff --git a/CefSharp.Core/WebBrowserExtensionsEx.cs b/CefSharp.Core/WebBrowserExtensionsEx.cs index c7278e4b1..9892ff52a 100644 --- a/CefSharp.Core/WebBrowserExtensionsEx.cs +++ b/CefSharp.Core/WebBrowserExtensionsEx.cs @@ -94,12 +94,12 @@ public static void DownloadUrl(this IFrame frame, string url, Action - /// Downloads the specified as a . + /// Downloads the specified as a . /// Makes a GET Request. /// /// valid frame /// url to download - /// A task that can be awaited to get the representing the Url + /// A task that can be awaited to get the representing the Url public static Task DownloadUrlAsync(this IFrame frame, string url) { if (!frame.IsValid) diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index d39ae42d6..de3f20fad 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -76,7 +76,7 @@ public partial class ChromiumWebBrowser : ChromiumHostControlBase, IWebBrowserIn /// /// Parking control used to temporarily host the CefBrowser instance - /// when is true. + /// when is true. /// private Control parkingControl; /// diff --git a/CefSharp.Wpf/Experimental/LifespanHandler.cs b/CefSharp.Wpf/Experimental/LifespanHandler.cs index a9fc37b72..2bc6b36e0 100644 --- a/CefSharp.Wpf/Experimental/LifespanHandler.cs +++ b/CefSharp.Wpf/Experimental/LifespanHandler.cs @@ -76,7 +76,7 @@ public class LifeSpanHandler : CefSharp.Handler.LifeSpanHandler /// /// Default constructor /// - /// optional delegate to create a custom + /// optional delegate to create a custom instance. public LifeSpanHandler(LifeSpanHandlerCreatePopupChromiumWebBrowser chromiumWebBrowserCreatedDelegate = null) { this.chromiumWebBrowserCreatedDelegate = chromiumWebBrowserCreatedDelegate; diff --git a/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs b/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs index 14740d50a..a5b1c05bc 100644 --- a/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs +++ b/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs @@ -286,6 +286,7 @@ private void OnImeComposition(IBrowserHost browserHost, IntPtr hwnd, int lParam) /// /// Cancel composition. /// + /// browser host /// The hwnd. private void CancelComposition(IBrowserHost browserHost, IntPtr hwnd) { diff --git a/CefSharp/IChromiumWebBrowserBase.cs b/CefSharp/IChromiumWebBrowserBase.cs index 5b8df5565..d710873db 100644 --- a/CefSharp/IChromiumWebBrowserBase.cs +++ b/CefSharp/IChromiumWebBrowserBase.cs @@ -9,7 +9,7 @@ namespace CefSharp { /// - /// Interface for common events/methods/properties for and popup host implementations. + /// Interface for common events/methods/properties for ChromiumWebBrowser and popup host implementations. /// /// public interface IChromiumWebBrowserBase : IDisposable diff --git a/CefSharp/Internals/JavascriptObjectRepository.cs b/CefSharp/Internals/JavascriptObjectRepository.cs index e8f79fdd6..8136b9e50 100644 --- a/CefSharp/Internals/JavascriptObjectRepository.cs +++ b/CefSharp/Internals/JavascriptObjectRepository.cs @@ -661,7 +661,6 @@ protected virtual bool TrySetProperty(long objectId, string name, object value, /// Analyse methods for inclusion in metadata model /// Analyse properties for inclusion in metadata model /// When analysis is done on a property, if true then get it's value for transmission over WCF - /// convert names of properties/methods private void AnalyseObjectForBinding(JavascriptObject obj, bool analyseMethods, bool analyseProperties, bool readPropertyValue) { if (obj.Value == null) From 7cdab11dc36a8e42a18f6cf07f8876ce28a708db Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 12 Mar 2023 16:53:52 +1000 Subject: [PATCH 225/543] Upgrade to 111.2.2+g1b83ff6+chromium-111.0.5563.65 / Chromium 111.0.5563.65 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index e7ca6c0dd..6daf8fd5e 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 421289cf6..34378b050 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index e4edfd798..9196fe8cf 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 111,1,20 - PRODUCTVERSION 111,1,20 + FILEVERSION 111,2,20 + PRODUCTVERSION 111,2,20 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "111.1.20" + VALUE "FileVersion", "111.2.20" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "111.1.20" + VALUE "ProductVersion", "111.2.20" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index b9204bb5a..7c71b1d79 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 35ceea368..b2b2f90b0 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 86d53bf7d..0217e4287 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index c52ebf72e..42f7cd339 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index c5773e58e..e7a00e28b 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index ce0020966..2bf272d64 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 111,1,20 - PRODUCTVERSION 111,1,20 + FILEVERSION 111,2,20 + PRODUCTVERSION 111,2,20 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "111.1.20" + VALUE "FileVersion", "111.2.20" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "111.1.20" + VALUE "ProductVersion", "111.2.20" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index b9204bb5a..7c71b1d79 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 35ceea368..b2b2f90b0 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 1ad0db98b..de75f29b0 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 064b4403d..bb00e31c8 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 87d739309..09997f017 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 2ab4cf309..ff681e068 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 403e140b3..976770b6e 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 0328b9dd7..b1ed373d5 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 978369ba1..9364b9267 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 5474aaa4f..0a510568e 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index d59d8e2ea..5846385d6 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 425c1a8eb..369d8cbd1 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index dee8aaa55..703af5ea0 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 7871c6040..a7fe20674 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 111.1.20 + 111.2.20 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 111.1.20 + Version 111.2.20 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 161ee9041..5e54b875a 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "111.1.20"; - public const string AssemblyFileVersion = "111.1.20.0"; + public const string AssemblyVersion = "111.2.20"; + public const string AssemblyFileVersion = "111.2.20.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 234564b3e..01e8d4bcd 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index e853da9c8..9a314a830 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 1d588e3bd..4877fdec3 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 4fba4db4a..34c0777b3 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "111.1.2", + [string] $CefVersion = "111.2.2", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 1f0467566..0cfb18167 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 111.1.20-CI{build} +version: 111.2.20-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 60bb9c7f3..1a2d9827c 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "111.1.20", + [string] $Version = "111.2.20", [Parameter(Position = 2)] - [string] $AssemblyVersion = "111.1.20", + [string] $AssemblyVersion = "111.2.20", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 1dc71ee48645ee8c75f682251eece2c87e105753 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 25 Feb 2022 10:39:30 +1000 Subject: [PATCH 226/543] WinForms - OOP Designer migrate to Microsoft.WinForms.Designer.SDK Only for Net Core (.Net 5/6/7) --- CefSharp.WinForms/CefSharp.WinForms.netcore.csproj | 6 +++++- CefSharp.WinForms/ChromiumWebBrowserDesigner.cs | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj b/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj index bf4c998a1..c300cebd5 100644 --- a/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj +++ b/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj @@ -55,7 +55,11 @@ - + + + all + compile;runtime + diff --git a/CefSharp.WinForms/ChromiumWebBrowserDesigner.cs b/CefSharp.WinForms/ChromiumWebBrowserDesigner.cs index 22e0d008f..1a2966735 100644 --- a/CefSharp.WinForms/ChromiumWebBrowserDesigner.cs +++ b/CefSharp.WinForms/ChromiumWebBrowserDesigner.cs @@ -4,7 +4,11 @@ using System.Collections; using System.Drawing; +#if NETCOREAPP +using Microsoft.DotNet.DesignTools.Designers; +#else using System.Windows.Forms.Design; +#endif namespace CefSharp.WinForms { From 8f03007cee68d44b1095f35fccd2352481d7f7b4 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 12 Mar 2023 19:31:41 +1000 Subject: [PATCH 227/543] WinForms - ChromiumHostControl change designer image --- CefSharp.WinForms/Host/ChromiumHostControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.WinForms/Host/ChromiumHostControl.cs b/CefSharp.WinForms/Host/ChromiumHostControl.cs index c5ae0f61a..a5469b86c 100644 --- a/CefSharp.WinForms/Host/ChromiumHostControl.cs +++ b/CefSharp.WinForms/Host/ChromiumHostControl.cs @@ -15,7 +15,7 @@ namespace CefSharp.WinForms.Host /// Chromium Browser Host Control, used for hosting Popups in WinForms /// /// - [Docking(DockingBehavior.AutoDock), ToolboxBitmap(typeof(ChromiumHostControl)), + [Docking(DockingBehavior.AutoDock), ToolboxBitmap(typeof(ChromiumWebBrowser)), Designer(typeof(ChromiumWebBrowserDesigner))] public class ChromiumHostControl : ChromiumHostControlBase, IWinFormsChromiumWebBrowser { From 7bfcaef94c9f386690293eac976e17f4f95d125f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 13 Mar 2023 13:03:05 +1000 Subject: [PATCH 228/543] Net Core - Remove EnableHighDPISupport from BrowserSubProcess - NetCore has it's own exe which still had a call to EnableHighDPISupport - WPF seems to default to System DPI aware, revert to using app.manifest for PerMonitorV2 Follow up to https://github.com/cefsharp/CefSharp/commit/b17cd2a1b23df786c1051c7c66947f6d52239510 Issues #4417 #4410 --- CefSharp.BrowserSubprocess/Program.netcore.cs | 2 -- CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj | 6 ++++-- CefSharp.Wpf.Example/app.manifest | 7 +++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CefSharp.BrowserSubprocess/Program.netcore.cs b/CefSharp.BrowserSubprocess/Program.netcore.cs index e021a0725..e3ad8ad90 100644 --- a/CefSharp.BrowserSubprocess/Program.netcore.cs +++ b/CefSharp.BrowserSubprocess/Program.netcore.cs @@ -19,8 +19,6 @@ public static int Main(string[] args) { Debug.WriteLine("BrowserSubprocess starting up with command line: " + string.Join("\n", args)); - SubProcess.EnableHighDPISupport(); - //Add your own custom implementation of IRenderProcessHandler here IRenderProcessHandler handler = null; diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 369d8cbd1..0a17eaece 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -11,7 +11,8 @@ WinExe - netcoreapp3.1 + netcoreapp3.1;net5.0-windows + $(TargetFrameworks);net6.0-windows CefSharp.Wpf.Example CefSharp.Wpf.Example true @@ -40,6 +41,7 @@ + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 703af5ea0..17903334b 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -28,6 +28,13 @@ + + + PerMonitorV2 + true/PM + + + - - - + + + \ No newline at end of file From 35f3a576884916338dadacf52804c33e873b5721 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 8 Mar 2023 10:11:00 +1000 Subject: [PATCH 230/543] MSBuild - change from using $(SolutionDir) to $MSBuildThisFileDirectory - Changes to make CefSharp easier to use as a git submodule - BrowserSubProcess now builds for net6.0-windows for use with WinForms example --- CefSharp.AfterBuild.targets | 4 ++-- .../CefSharp.Core.Runtime.RefAssembly.netcore.csproj | 10 +++++----- CefSharp.Native.props | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 4 ++-- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 4 ++-- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 4 ++-- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/CefSharp.AfterBuild.targets b/CefSharp.AfterBuild.targets index ef5658bd9..f26ed0b38 100644 --- a/CefSharp.AfterBuild.targets +++ b/CefSharp.AfterBuild.targets @@ -10,9 +10,9 @@ - + - + diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj index ae4256500..4f45f47d0 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.RefAssembly.netcore.csproj @@ -54,19 +54,19 @@ Haven't found a nice way to determine the Platform (resolves as AnyCPU) --> - + - $(SolutionDir)CefSharp.Core.Runtime\bin.netcore\x64\$(Configuration)\CefSharp.Core.Runtime.dll + $(MSBuildThisFileDirectory)..\CefSharp.Core.Runtime\bin.netcore\x64\$(Configuration)\CefSharp.Core.Runtime.dll - + - $(SolutionDir)CefSharp.Core.Runtime\bin.netcore\arm64\$(Configuration)\CefSharp.Core.Runtime.dll + $(MSBuildThisFileDirectory)..\CefSharp.Core.Runtime\bin.netcore\arm64\$(Configuration)\CefSharp.Core.Runtime.dll - $(SolutionDir)CefSharp.Core.Runtime\bin.netcore\win32\$(Configuration)\CefSharp.Core.Runtime.dll + $(MSBuildThisFileDirectory)..\CefSharp.Core.Runtime\bin.netcore\win32\$(Configuration)\CefSharp.Core.Runtime.dll diff --git a/CefSharp.Native.props b/CefSharp.Native.props index b6912821f..7f59ab51c 100644 --- a/CefSharp.Native.props +++ b/CefSharp.Native.props @@ -3,7 +3,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index de75f29b0..bf0217154 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -35,5 +35,5 @@ - + \ No newline at end of file diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index bb00e31c8..a85a11c24 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -55,6 +55,6 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index ff681e068..231b769d1 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -66,5 +66,5 @@ - + \ No newline at end of file diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 976770b6e..8e244ffa7 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -59,6 +59,6 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index b1ed373d5..e98bad61d 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -44,5 +44,5 @@ - + \ No newline at end of file diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 9364b9267..912302c41 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -62,6 +62,6 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 5846385d6..a16e99ec5 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -43,5 +43,5 @@ - + \ No newline at end of file diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 0a17eaece..e113cc7bb 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -57,6 +57,6 @@ - + From 0c7bc3f9b68e6196b2f2e60a2326aa8dadb7dfa2 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 13 Mar 2023 19:33:26 +1000 Subject: [PATCH 231/543] WinForms - Refactor ChromiumHostControlBase to use P/Invoke - Avoid using using NativeMethodWrapper, hopefully this keeps the designer happy, no need to load CefSharp.Core.Runtime.dll Issue #4019 --- .../Host/ChromiumHostControlBase.cs | 47 ++++++++++++------- 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/CefSharp.WinForms/Host/ChromiumHostControlBase.cs b/CefSharp.WinForms/Host/ChromiumHostControlBase.cs index aa08480ee..8cd2c1e86 100644 --- a/CefSharp.WinForms/Host/ChromiumHostControlBase.cs +++ b/CefSharp.WinForms/Host/ChromiumHostControlBase.cs @@ -6,6 +6,7 @@ using System.ComponentModel; using System.Drawing; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using System.Windows.Forms; namespace CefSharp.WinForms.Host @@ -17,6 +18,10 @@ namespace CefSharp.WinForms.Host /// public abstract class ChromiumHostControlBase : Control { + [DllImport("user32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X, int Y, int cx, int cy, uint uFlags); + /// /// IntPtr that represents the CefBrowser Hwnd /// Used for sending messages to the browser @@ -121,25 +126,10 @@ protected virtual void ResizeBrowser(int width, int height) { if (BrowserHwnd != IntPtr.Zero) { - ResizeBrowserInternal(Width, Height); + SetWindowPosition(BrowserHwnd, 0, 0, width, height); } } - /// - /// Resizes the browser. - /// - /// width - /// height - /// - /// To avoid the Designer trying to load CefSharp.Core.Runtime we explicitly - /// ask for NoInlining. - /// - [MethodImpl(MethodImplOptions.NoInlining)] - private void ResizeBrowserInternal(int width, int height) - { - NativeMethodWrapper.SetWindowPosition(BrowserHwnd, 0, 0, width, height); - } - /// /// When minimized set the browser window size to 0x0 to reduce resource usage. /// https://github.com/chromiumembedded/cef/blob/c7701b8a6168f105f2c2d6b239ce3958da3e3f13/tests/cefclient/browser/browser_window_std_win.cc#L87 @@ -148,7 +138,7 @@ internal virtual void HideInternal() { if (BrowserHwnd != IntPtr.Zero) { - NativeMethodWrapper.SetWindowPosition(BrowserHwnd, 0, 0, 0, 0); + SetWindowPosition(BrowserHwnd, 0, 0, 0, 0); } } @@ -159,7 +149,7 @@ internal virtual void ShowInternal() { if (BrowserHwnd != IntPtr.Zero) { - NativeMethodWrapper.SetWindowPosition(BrowserHwnd, 0, 0, Width, Height); + SetWindowPosition(BrowserHwnd, 0, 0, Width, Height); } } @@ -183,6 +173,27 @@ internal void RaiseIsBrowserInitializedChangedEvent() IsBrowserInitializedChanged?.Invoke(this, EventArgs.Empty); } + private void SetWindowPosition(IntPtr handle, int x, int y, int width, int height) + { + const uint SWP_NOMOVE = 0x0002; + const uint SWP_NOZORDER = 0x0004; + const uint SWP_NOACTIVATE = 0x0010; + + if (handle != IntPtr.Zero) + { + if (width == 0 && height == 0) + { + // For windowed browsers when the frame window is minimized set the + // browser window size to 0x0 to reduce resource usage. + SetWindowPos(handle, IntPtr.Zero, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOMOVE | SWP_NOACTIVATE); + } + else + { + SetWindowPos(handle, IntPtr.Zero, x, y, width, height, SWP_NOZORDER); + } + } + } + /// /// Gets the or associated with /// a specific instance. From 75fd3acf663015cc0f311e44cb4516cb3b583e04 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 14 Mar 2023 13:19:38 +1000 Subject: [PATCH 232/543] WinForms - LifeSpanHandler.DoClose add ObjectDisposedException try/catch - If the popup is being hosted on a Form that is being Closed/Disposed as we attempt to call Control.Invoke we can end up with an ObjectDisposedException --- CefSharp.WinForms/Handler/LifeSpanHandler.cs | 25 ++++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/CefSharp.WinForms/Handler/LifeSpanHandler.cs b/CefSharp.WinForms/Handler/LifeSpanHandler.cs index 9db4a93bc..87915658b 100644 --- a/CefSharp.WinForms/Handler/LifeSpanHandler.cs +++ b/CefSharp.WinForms/Handler/LifeSpanHandler.cs @@ -105,15 +105,26 @@ protected override bool DoClose(IWebBrowser chromiumWebBrowser, IBrowser browser //need to remove the popup (likely removed from menu) if (!control.IsDisposed && control.IsHandleCreated) { - //We need to invoke in a sync fashion so our IBrowser object is still in scope - //Calling in an async fashion leads to the IBrowser being disposed before we - //can access it. - control.InvokeSyncOnUiThreadIfRequired(new Action(() => + try { - onPopupDestroyed?.Invoke(control, browser); + //We need to invoke in a sync fashion so our IBrowser object is still in scope + //Calling in an async fashion leads to the IBrowser being disposed before we + //can access it. + control.InvokeSyncOnUiThreadIfRequired(new Action(() => + { + onPopupDestroyed?.Invoke(control, browser); - control.Dispose(); - })); + control.Dispose(); + })); + } + catch (ObjectDisposedException) + { + // If the popup is being hosted on a Form that is being + // Closed/Disposed as we attempt to call Control.Invoke + // we can end up with an ObjectDisposedException + // return false (Default behaviour). + return false; + } } } From fb779a5b4603a5bd30738e5383c7b67676b19097 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 13 Mar 2023 19:01:34 +1000 Subject: [PATCH 233/543] Core - Move DevTools Client from CefSharp.dll to CefSharp.Core.dll - Moves the Dependency of System.Text.Json from CefSharp.dll BrowserSubProcess as a result no longer has a reference where wasn't required for it's operation. Resolves #4428 #4427 --- CefSharp.Core/CefSharp.Core.csproj | 1 + CefSharp.Core/CefSharp.Core.netcore.csproj | 15 +++-- .../DevTools/DevToolsClient.Generated.cs | 0 .../DevToolsClient.Generated.netcore.cs | 0 .../DevTools/DevToolsClient.Partial.cs | 0 .../DevTools/DevToolsClient.cs | 0 .../DevTools/DevToolsClientException.cs | 0 .../DevTools/DevToolsDomainBase.cs | 0 .../DevTools/DevToolsDomainEntityBase.cs | 0 .../DevTools/DevToolsDomainErrorResponse.cs | 0 .../DevTools/DevToolsDomainEventArgsBase.cs | 0 .../DevTools/DevToolsDomainResponseBase.cs | 0 .../DevTools/DevToolsErrorEventArgs.cs | 0 .../DevTools/DevToolsEventArgs.cs | 0 .../DevTools/DevToolsMethodResponse.cs | 0 .../DevTools/DevToolsMethodResponseContext.cs | 0 .../DevTools/EventProxy.cs | 0 .../DevTools/Headers.cs | 0 .../DevTools/IDevToolsClient.cs | 0 .../DevTools/IEventProxy.cs | 0 .../DevTools/MemoryDumpConfig.cs | 0 .../DevTools/TargetFilter.cs | 0 .../DevToolsExtensions.cs | 0 CefSharp/CefSharp.csproj | 1 - CefSharp/CefSharp.netcore.csproj | 1 - CefSharp/IWebBrowser.cs | 2 +- .../Partial/ChromiumWebBrowser.Partial.cs | 5 +- CefSharp/Structs/DomRect.cs | 63 +++++++++++++++++++ 28 files changed, 75 insertions(+), 13 deletions(-) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsClient.Generated.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsClient.Generated.netcore.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsClient.Partial.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsClient.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsClientException.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsDomainBase.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsDomainEntityBase.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsDomainErrorResponse.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsDomainEventArgsBase.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsDomainResponseBase.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsErrorEventArgs.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsEventArgs.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsMethodResponse.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/DevToolsMethodResponseContext.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/EventProxy.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/Headers.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/IDevToolsClient.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/IEventProxy.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/MemoryDumpConfig.cs (100%) rename {CefSharp => CefSharp.Core}/DevTools/TargetFilter.cs (100%) rename {CefSharp => CefSharp.Core}/DevToolsExtensions.cs (100%) create mode 100644 CefSharp/Structs/DomRect.cs diff --git a/CefSharp.Core/CefSharp.Core.csproj b/CefSharp.Core/CefSharp.Core.csproj index 53cc1fbb4..03f22f3fc 100644 --- a/CefSharp.Core/CefSharp.Core.csproj +++ b/CefSharp.Core/CefSharp.Core.csproj @@ -41,6 +41,7 @@ + diff --git a/CefSharp.Core/CefSharp.Core.netcore.csproj b/CefSharp.Core/CefSharp.Core.netcore.csproj index ba4187725..e3e11764f 100644 --- a/CefSharp.Core/CefSharp.Core.netcore.csproj +++ b/CefSharp.Core/CefSharp.Core.netcore.csproj @@ -44,6 +44,7 @@ + @@ -51,10 +52,12 @@ - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + @@ -66,9 +69,5 @@ - - - - \ No newline at end of file diff --git a/CefSharp/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs similarity index 100% rename from CefSharp/DevTools/DevToolsClient.Generated.cs rename to CefSharp.Core/DevTools/DevToolsClient.Generated.cs diff --git a/CefSharp/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs similarity index 100% rename from CefSharp/DevTools/DevToolsClient.Generated.netcore.cs rename to CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs diff --git a/CefSharp/DevTools/DevToolsClient.Partial.cs b/CefSharp.Core/DevTools/DevToolsClient.Partial.cs similarity index 100% rename from CefSharp/DevTools/DevToolsClient.Partial.cs rename to CefSharp.Core/DevTools/DevToolsClient.Partial.cs diff --git a/CefSharp/DevTools/DevToolsClient.cs b/CefSharp.Core/DevTools/DevToolsClient.cs similarity index 100% rename from CefSharp/DevTools/DevToolsClient.cs rename to CefSharp.Core/DevTools/DevToolsClient.cs diff --git a/CefSharp/DevTools/DevToolsClientException.cs b/CefSharp.Core/DevTools/DevToolsClientException.cs similarity index 100% rename from CefSharp/DevTools/DevToolsClientException.cs rename to CefSharp.Core/DevTools/DevToolsClientException.cs diff --git a/CefSharp/DevTools/DevToolsDomainBase.cs b/CefSharp.Core/DevTools/DevToolsDomainBase.cs similarity index 100% rename from CefSharp/DevTools/DevToolsDomainBase.cs rename to CefSharp.Core/DevTools/DevToolsDomainBase.cs diff --git a/CefSharp/DevTools/DevToolsDomainEntityBase.cs b/CefSharp.Core/DevTools/DevToolsDomainEntityBase.cs similarity index 100% rename from CefSharp/DevTools/DevToolsDomainEntityBase.cs rename to CefSharp.Core/DevTools/DevToolsDomainEntityBase.cs diff --git a/CefSharp/DevTools/DevToolsDomainErrorResponse.cs b/CefSharp.Core/DevTools/DevToolsDomainErrorResponse.cs similarity index 100% rename from CefSharp/DevTools/DevToolsDomainErrorResponse.cs rename to CefSharp.Core/DevTools/DevToolsDomainErrorResponse.cs diff --git a/CefSharp/DevTools/DevToolsDomainEventArgsBase.cs b/CefSharp.Core/DevTools/DevToolsDomainEventArgsBase.cs similarity index 100% rename from CefSharp/DevTools/DevToolsDomainEventArgsBase.cs rename to CefSharp.Core/DevTools/DevToolsDomainEventArgsBase.cs diff --git a/CefSharp/DevTools/DevToolsDomainResponseBase.cs b/CefSharp.Core/DevTools/DevToolsDomainResponseBase.cs similarity index 100% rename from CefSharp/DevTools/DevToolsDomainResponseBase.cs rename to CefSharp.Core/DevTools/DevToolsDomainResponseBase.cs diff --git a/CefSharp/DevTools/DevToolsErrorEventArgs.cs b/CefSharp.Core/DevTools/DevToolsErrorEventArgs.cs similarity index 100% rename from CefSharp/DevTools/DevToolsErrorEventArgs.cs rename to CefSharp.Core/DevTools/DevToolsErrorEventArgs.cs diff --git a/CefSharp/DevTools/DevToolsEventArgs.cs b/CefSharp.Core/DevTools/DevToolsEventArgs.cs similarity index 100% rename from CefSharp/DevTools/DevToolsEventArgs.cs rename to CefSharp.Core/DevTools/DevToolsEventArgs.cs diff --git a/CefSharp/DevTools/DevToolsMethodResponse.cs b/CefSharp.Core/DevTools/DevToolsMethodResponse.cs similarity index 100% rename from CefSharp/DevTools/DevToolsMethodResponse.cs rename to CefSharp.Core/DevTools/DevToolsMethodResponse.cs diff --git a/CefSharp/DevTools/DevToolsMethodResponseContext.cs b/CefSharp.Core/DevTools/DevToolsMethodResponseContext.cs similarity index 100% rename from CefSharp/DevTools/DevToolsMethodResponseContext.cs rename to CefSharp.Core/DevTools/DevToolsMethodResponseContext.cs diff --git a/CefSharp/DevTools/EventProxy.cs b/CefSharp.Core/DevTools/EventProxy.cs similarity index 100% rename from CefSharp/DevTools/EventProxy.cs rename to CefSharp.Core/DevTools/EventProxy.cs diff --git a/CefSharp/DevTools/Headers.cs b/CefSharp.Core/DevTools/Headers.cs similarity index 100% rename from CefSharp/DevTools/Headers.cs rename to CefSharp.Core/DevTools/Headers.cs diff --git a/CefSharp/DevTools/IDevToolsClient.cs b/CefSharp.Core/DevTools/IDevToolsClient.cs similarity index 100% rename from CefSharp/DevTools/IDevToolsClient.cs rename to CefSharp.Core/DevTools/IDevToolsClient.cs diff --git a/CefSharp/DevTools/IEventProxy.cs b/CefSharp.Core/DevTools/IEventProxy.cs similarity index 100% rename from CefSharp/DevTools/IEventProxy.cs rename to CefSharp.Core/DevTools/IEventProxy.cs diff --git a/CefSharp/DevTools/MemoryDumpConfig.cs b/CefSharp.Core/DevTools/MemoryDumpConfig.cs similarity index 100% rename from CefSharp/DevTools/MemoryDumpConfig.cs rename to CefSharp.Core/DevTools/MemoryDumpConfig.cs diff --git a/CefSharp/DevTools/TargetFilter.cs b/CefSharp.Core/DevTools/TargetFilter.cs similarity index 100% rename from CefSharp/DevTools/TargetFilter.cs rename to CefSharp.Core/DevTools/TargetFilter.cs diff --git a/CefSharp/DevToolsExtensions.cs b/CefSharp.Core/DevToolsExtensions.cs similarity index 100% rename from CefSharp/DevToolsExtensions.cs rename to CefSharp.Core/DevToolsExtensions.cs diff --git a/CefSharp/CefSharp.csproj b/CefSharp/CefSharp.csproj index 4db7f4767..900b025ca 100644 --- a/CefSharp/CefSharp.csproj +++ b/CefSharp/CefSharp.csproj @@ -28,7 +28,6 @@ - diff --git a/CefSharp/CefSharp.netcore.csproj b/CefSharp/CefSharp.netcore.csproj index 7bf3764cd..e898cdf74 100644 --- a/CefSharp/CefSharp.netcore.csproj +++ b/CefSharp/CefSharp.netcore.csproj @@ -31,7 +31,6 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - diff --git a/CefSharp/IWebBrowser.cs b/CefSharp/IWebBrowser.cs index 6b9df0782..bf938d420 100644 --- a/CefSharp/IWebBrowser.cs +++ b/CefSharp/IWebBrowser.cs @@ -179,6 +179,6 @@ public interface IWebBrowser : IChromiumWebBrowserBase /// Size of scrollable area in CSS pixels /// /// A task that can be awaited to get the size of the scrollable area in CSS pixels. - Task GetContentSizeAsync(); + Task GetContentSizeAsync(); } } diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index 555bb1d24..50f4c2d6d 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -410,7 +410,7 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser) } /// - public async Task GetContentSizeAsync() + public async Task GetContentSizeAsync() { ThrowExceptionIfDisposed(); ThrowExceptionIfBrowserNotInitialized(); @@ -419,8 +419,9 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser) { //Get the content size var layoutMetricsResponse = await devToolsClient.Page.GetLayoutMetricsAsync().ConfigureAwait(continueOnCapturedContext: false); + var rect = layoutMetricsResponse.CssContentSize; - return layoutMetricsResponse.CssContentSize; + return new Structs.DomRect(rect.X, rect.Y, rect.Width, rect.Height); } } diff --git a/CefSharp/Structs/DomRect.cs b/CefSharp/Structs/DomRect.cs new file mode 100644 index 000000000..5a9846e40 --- /dev/null +++ b/CefSharp/Structs/DomRect.cs @@ -0,0 +1,63 @@ +// Copyright © 2023 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +namespace CefSharp.Structs +{ + /// + /// Dom Rect + /// + public struct DomRect + { + /// + /// X coordinate + /// + public double X + { + get; + private set; + } + + /// + /// Y coordinate + /// + public double Y + { + get; + private set; + } + + /// + /// Rectangle width + /// + public double Width + { + get; + private set; + } + + /// + /// Rectangle height + /// + public double Height + { + get; + private set; + } + + /// + /// Constructor + /// + /// x + /// y + /// width + /// height + public DomRect(double x, double y, double width, double height) + { + X = x; + Y = y; + Width = width; + Height = height; + } + } +} From 874f18bc33154adaa6c602849d386ff262a07c57 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 15 Mar 2023 10:29:46 +1000 Subject: [PATCH 234/543] DevTools Client - Update to 111.0.5563.65 --- .../DevTools/DevToolsClient.Generated.cs | 249 +++++++++++++----- .../DevToolsClient.Generated.netcore.cs | 235 +++++++++++++---- 2 files changed, 373 insertions(+), 111 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index c431a7dc4..488abc29d 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 110.0.5481.77 +// CHROMIUM VERSION 111.0.5563.65 namespace CefSharp.DevTools.Accessibility { /// @@ -2769,7 +2769,27 @@ public enum GenericIssueErrorType /// FormLabelForNameError /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormLabelForNameError"))] - FormLabelForNameError + FormLabelForNameError, + /// + /// FormDuplicateIdForInputError + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormDuplicateIdForInputError"))] + FormDuplicateIdForInputError, + /// + /// FormInputWithNoLabelError + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormInputWithNoLabelError"))] + FormInputWithNoLabelError, + /// + /// FormAutocompleteAttributeEmptyError + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormAutocompleteAttributeEmptyError"))] + FormAutocompleteAttributeEmptyError, + /// + /// FormEmptyIdAndNameAttributesForInputError + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormEmptyIdAndNameAttributesForInputError"))] + FormEmptyIdAndNameAttributesForInputError } /// @@ -2961,6 +2981,11 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotificationPermissionRequestedIframe"))] NotificationPermissionRequestedIframe, /// + /// ObsoleteCreateImageBitmapImageOrientationNone + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ObsoleteCreateImageBitmapImageOrientationNone"))] + ObsoleteCreateImageBitmapImageOrientationNone, + /// /// ObsoleteWebRtcCipherSuite /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ObsoleteWebRtcCipherSuite"))] @@ -3041,6 +3066,11 @@ public enum DeprecationIssueType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoSupportsFullscreen"))] PrefixedVideoSupportsFullscreen, /// + /// PrivacySandboxExtensionsAPI + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrivacySandboxExtensionsAPI"))] + PrivacySandboxExtensionsAPI, + /// /// RangeExpand /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RangeExpand"))] @@ -3245,6 +3275,11 @@ public enum FederatedAuthRequestIssueReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownInvalidResponse"))] WellKnownInvalidResponse, /// + /// WellKnownListEmpty + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownListEmpty"))] + WellKnownListEmpty, + /// /// ConfigNotInWellKnown /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigNotInWellKnown"))] @@ -3315,6 +3350,11 @@ public enum FederatedAuthRequestIssueReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsInvalidResponse"))] AccountsInvalidResponse, /// + /// AccountsListEmpty + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsListEmpty"))] + AccountsListEmpty, + /// /// IdTokenHttpNotFound /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenHttpNotFound"))] @@ -4171,6 +4211,11 @@ public enum PermissionType [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storageAccess"))] StorageAccess, /// + /// topLevelStorageAccess + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("topLevelStorageAccess"))] + TopLevelStorageAccess, + /// /// videoCapture /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("videoCapture"))] @@ -9472,7 +9517,7 @@ public string Version public partial class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Brands + /// Brands appearing in Sec-CH-UA. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("brands"), IsRequired = (false))] public System.Collections.Generic.IList Brands @@ -9482,7 +9527,7 @@ public System.Collections.Generic.IList - /// FullVersionList + /// Brands appearing in Sec-CH-UA-Full-Version-List. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("fullVersionList"), IsRequired = (false))] public System.Collections.Generic.IList FullVersionList @@ -12592,7 +12637,7 @@ public enum ServiceWorkerResponseSource } /// - /// Only set for "token-redemption" type and determine whether + /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// public enum TrustTokenParamsRefreshPolicy @@ -12618,33 +12663,33 @@ public enum TrustTokenParamsRefreshPolicy public partial class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Type + /// Operation /// - public CefSharp.DevTools.Network.TrustTokenOperationType Type + public CefSharp.DevTools.Network.TrustTokenOperationType Operation { get { - return (CefSharp.DevTools.Network.TrustTokenOperationType)(StringToEnum(typeof(CefSharp.DevTools.Network.TrustTokenOperationType), type)); + return (CefSharp.DevTools.Network.TrustTokenOperationType)(StringToEnum(typeof(CefSharp.DevTools.Network.TrustTokenOperationType), operation)); } set { - this.type = (EnumToString(value)); + this.operation = (EnumToString(value)); } } /// - /// Type + /// Operation /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] - internal string type + [System.Runtime.Serialization.DataMemberAttribute(Name = ("operation"), IsRequired = (true))] + internal string operation { get; set; } /// - /// Only set for "token-redemption" type and determine whether + /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// public CefSharp.DevTools.Network.TrustTokenParamsRefreshPolicy RefreshPolicy @@ -12661,7 +12706,7 @@ public CefSharp.DevTools.Network.TrustTokenParamsRefreshPolicy RefreshPolicy } /// - /// Only set for "token-redemption" type and determine whether + /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("refreshPolicy"), IsRequired = (true))] @@ -16563,6 +16608,27 @@ public string HeadersText get; private set; } + + /// + /// The cookie partition key that will be used to store partitioned cookies set in this response. + /// Only sent when partitioned cookies are enabled. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookiePartitionKey"), IsRequired = (false))] + public string CookiePartitionKey + { + get; + private set; + } + + /// + /// True if partitioned cookies are enabled, but the partition key is not serializeable to string. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookiePartitionKeyOpaque"), IsRequired = (false))] + public bool? CookiePartitionKeyOpaque + { + get; + private set; + } } /// @@ -18550,6 +18616,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("picture-in-picture"))] PictureInPicture, /// + /// private-aggregation + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("private-aggregation"))] + PrivateAggregation, + /// /// publickey-credentials-get /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("publickey-credentials-get"))] @@ -18580,6 +18651,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage"))] SharedStorage, /// + /// shared-storage-select-url + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage-select-url"))] + SharedStorageSelectUrl, + /// /// smart-card /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("smart-card"))] @@ -18620,6 +18696,11 @@ public enum PermissionsPolicyFeature [System.Runtime.Serialization.EnumMemberAttribute(Value = ("web-share"))] WebShare, /// + /// window-management + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("window-management"))] + WindowManagement, + /// /// window-placement /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("window-placement"))] @@ -20752,6 +20833,11 @@ public enum BackForwardCacheNotRestoredReason [System.Runtime.Serialization.EnumMemberAttribute(Value = ("KeepaliveRequest"))] KeepaliveRequest, /// + /// IndexedDBEvent + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IndexedDBEvent"))] + IndexedDBEvent, + /// /// Dummy /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Dummy"))] @@ -21252,7 +21338,37 @@ public enum PrerenderFinalStatus /// EmbedderHostDisallowed /// [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderHostDisallowed"))] - EmbedderHostDisallowed + EmbedderHostDisallowed, + /// + /// ActivationNavigationDestroyedBeforeSuccess + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationNavigationDestroyedBeforeSuccess"))] + ActivationNavigationDestroyedBeforeSuccess, + /// + /// TabClosedByUserGesture + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TabClosedByUserGesture"))] + TabClosedByUserGesture, + /// + /// TabClosedWithoutUserGesture + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TabClosedWithoutUserGesture"))] + TabClosedWithoutUserGesture, + /// + /// PrimaryMainFrameRendererProcessCrashed + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrimaryMainFrameRendererProcessCrashed"))] + PrimaryMainFrameRendererProcessCrashed, + /// + /// PrimaryMainFrameRendererProcessKilled + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrimaryMainFrameRendererProcessKilled"))] + PrimaryMainFrameRendererProcessKilled, + /// + /// ActivationFramePolicyNotCompatible + /// + [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationFramePolicyNotCompatible"))] + ActivationFramePolicyNotCompatible } /// @@ -27397,6 +27513,18 @@ public bool? HasMinPinLength set; } + /// + /// If set to true, the authenticator will support the prf extension. + /// https://w3c.github.io/webauthn/#prf-extension + /// Defaults to false. + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasPrf"), IsRequired = (false))] + public bool? HasPrf + { + get; + set; + } + /// /// If set to true, tests of user presence will succeed immediately. /// Otherwise, they will not be resolved. Defaults to true. @@ -31547,6 +31675,16 @@ public int ExecutionContextId get; private set; } + + /// + /// Unique Id of the destroyed context + /// + [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextUniqueId"), IsRequired = (true))] + public string ExecutionContextUniqueId + { + get; + private set; + } } /// @@ -33119,7 +33257,7 @@ public System.Threading.Tasks.Task GetBrowserComm /// Get Chrome histograms. /// /// Requested substring in name. Only histograms which have query as asubstring in their name are extracted. An empty or absent query returnsall histograms. - /// If true, retrieve delta since last call. + /// If true, retrieve delta since last delta call. /// returns System.Threading.Tasks.Task<GetHistogramsResponse> public System.Threading.Tasks.Task GetHistogramsAsync(string query = null, bool? delta = null) { @@ -33143,7 +33281,7 @@ public System.Threading.Tasks.Task GetHistogramsAsync(str /// Get a Chrome histogram by name. /// /// Requested histogram name. - /// If true, retrieve delta since last call. + /// If true, retrieve delta since last delta call. /// returns System.Threading.Tasks.Task<GetHistogramResponse> public System.Threading.Tasks.Task GetHistogramAsync(string name, bool? delta = null) { @@ -40731,34 +40869,6 @@ public System.Threading.Tasks.Task GetSamplingProfil } } -namespace CefSharp.DevTools.Network -{ - /// - /// GetAllCookiesResponse - /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetAllCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase - { - [System.Runtime.Serialization.DataMemberAttribute] - internal System.Collections.Generic.IList cookies - { - get; - set; - } - - /// - /// cookies - /// - public System.Collections.Generic.IList Cookies - { - get - { - return cookies; - } - } - } -} - namespace CefSharp.DevTools.Network { /// @@ -41712,17 +41822,6 @@ public System.Threading.Tasks.Task EnableAsync(int? maxT return _client.ExecuteDevToolsMethodAsync("Network.enable", dict); } - /// - /// Returns all browser cookies. Depending on the backend support, will return detailed cookie - /// information in the `cookies` field. - /// - /// returns System.Threading.Tasks.Task<GetAllCookiesResponse> - public System.Threading.Tasks.Task GetAllCookiesAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Network.getAllCookies", dict); - } - partial void ValidateGetCertificate(string origin); /// /// Returns the DER-encoded certificate. @@ -46176,6 +46275,20 @@ public System.Threading.Tasks.Task ClearSharedStorageEnt return _client.ExecuteDevToolsMethodAsync("Storage.clearSharedStorageEntries", dict); } + partial void ValidateResetSharedStorageBudget(string ownerOrigin); + /// + /// Resets the budget for `ownerOrigin` by clearing all budget withdrawals. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ResetSharedStorageBudgetAsync(string ownerOrigin) + { + ValidateResetSharedStorageBudget(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.resetSharedStorageBudget", dict); + } + partial void ValidateSetSharedStorageTracking(bool enable); /// /// Enables/disables issuing of sharedStorageAccessed events. @@ -46875,7 +46988,7 @@ public System.Threading.Tasks.Task GetBrowserContext return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); } - partial void ValidateCreateTarget(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null); + partial void ValidateCreateTarget(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null); /// /// Creates a new page. /// @@ -46886,10 +46999,11 @@ public System.Threading.Tasks.Task GetBrowserContext /// Whether BeginFrames for this target will be controlled via DevTools (headless chrome only,not supported on MacOS yet, false by default). /// Whether to create a new Window or Tab (chrome-only, false by default). /// Whether to create the target in background or foreground (chrome-only,false by default). + /// Whether to create the target of type "tab". /// returns System.Threading.Tasks.Task<CreateTargetResponse> - public System.Threading.Tasks.Task CreateTargetAsync(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null) + public System.Threading.Tasks.Task CreateTargetAsync(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null) { - ValidateCreateTarget(url, width, height, browserContextId, enableBeginFrameControl, newWindow, background); + ValidateCreateTarget(url, width, height, browserContextId, enableBeginFrameControl, newWindow, background, forTab); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); if (width.HasValue) @@ -46922,6 +47036,11 @@ public System.Threading.Tasks.Task CreateTargetAsync(strin dict.Add("background", background.Value); } + if (forTab.HasValue) + { + dict.Add("forTab", forTab.Value); + } + return _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict); } @@ -51404,7 +51523,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -51420,11 +51539,12 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Specifies execution context which global object will be used to call function on. EitherexecutionContextId or objectId should be specified. /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. + /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. /// Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, generateWebDriverValue); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -51477,6 +51597,11 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("throwOnSideEffect", throwOnSideEffect.Value); } + if (!(string.IsNullOrEmpty(uniqueContextId))) + { + dict.Add("uniqueContextId", uniqueContextId); + } + if (generateWebDriverValue.HasValue) { dict.Add("generateWebDriverValue", generateWebDriverValue.Value); diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 5d71b13c8..ab8424222 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 110.0.5481.77 +// CHROMIUM VERSION 111.0.5563.65 namespace CefSharp.DevTools.Accessibility { /// @@ -2490,7 +2490,27 @@ public enum GenericIssueErrorType /// FormLabelForNameError /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormLabelForNameError")] - FormLabelForNameError + FormLabelForNameError, + /// + /// FormDuplicateIdForInputError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormDuplicateIdForInputError")] + FormDuplicateIdForInputError, + /// + /// FormInputWithNoLabelError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormInputWithNoLabelError")] + FormInputWithNoLabelError, + /// + /// FormAutocompleteAttributeEmptyError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormAutocompleteAttributeEmptyError")] + FormAutocompleteAttributeEmptyError, + /// + /// FormEmptyIdAndNameAttributesForInputError + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormEmptyIdAndNameAttributesForInputError")] + FormEmptyIdAndNameAttributesForInputError } /// @@ -2665,6 +2685,11 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotificationPermissionRequestedIframe")] NotificationPermissionRequestedIframe, /// + /// ObsoleteCreateImageBitmapImageOrientationNone + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ObsoleteCreateImageBitmapImageOrientationNone")] + ObsoleteCreateImageBitmapImageOrientationNone, + /// /// ObsoleteWebRtcCipherSuite /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ObsoleteWebRtcCipherSuite")] @@ -2745,6 +2770,11 @@ public enum DeprecationIssueType [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoSupportsFullscreen")] PrefixedVideoSupportsFullscreen, /// + /// PrivacySandboxExtensionsAPI + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrivacySandboxExtensionsAPI")] + PrivacySandboxExtensionsAPI, + /// /// RangeExpand /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("RangeExpand")] @@ -2916,6 +2946,11 @@ public enum FederatedAuthRequestIssueReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownInvalidResponse")] WellKnownInvalidResponse, /// + /// WellKnownListEmpty + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownListEmpty")] + WellKnownListEmpty, + /// /// ConfigNotInWellKnown /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigNotInWellKnown")] @@ -2986,6 +3021,11 @@ public enum FederatedAuthRequestIssueReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsInvalidResponse")] AccountsInvalidResponse, /// + /// AccountsListEmpty + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsListEmpty")] + AccountsListEmpty, + /// /// IdTokenHttpNotFound /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenHttpNotFound")] @@ -3769,6 +3809,11 @@ public enum PermissionType [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageAccess")] StorageAccess, /// + /// topLevelStorageAccess + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("topLevelStorageAccess")] + TopLevelStorageAccess, + /// /// videoCapture /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoCapture")] @@ -8900,7 +8945,7 @@ public string Version public partial class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Brands + /// Brands appearing in Sec-CH-UA. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("brands")] public System.Collections.Generic.IList Brands @@ -8910,7 +8955,7 @@ public System.Collections.Generic.IList - /// FullVersionList + /// Brands appearing in Sec-CH-UA-Full-Version-List. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullVersionList")] public System.Collections.Generic.IList FullVersionList @@ -11839,7 +11884,7 @@ public enum ServiceWorkerResponseSource } /// - /// Only set for "token-redemption" type and determine whether + /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// public enum TrustTokenParamsRefreshPolicy @@ -11864,17 +11909,17 @@ public enum TrustTokenParamsRefreshPolicy public partial class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// Type + /// Operation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] - public CefSharp.DevTools.Network.TrustTokenOperationType Type + [System.Text.Json.Serialization.JsonPropertyNameAttribute("operation")] + public CefSharp.DevTools.Network.TrustTokenOperationType Operation { get; set; } /// - /// Only set for "token-redemption" type and determine whether + /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("refreshPolicy")] @@ -15378,6 +15423,29 @@ public string HeadersText get; private set; } + + /// + /// The cookie partition key that will be used to store partitioned cookies set in this response. + /// Only sent when partitioned cookies are enabled. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookiePartitionKey")] + public string CookiePartitionKey + { + get; + private set; + } + + /// + /// True if partitioned cookies are enabled, but the partition key is not serializeable to string. + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookiePartitionKeyOpaque")] + public bool? CookiePartitionKeyOpaque + { + get; + private set; + } } /// @@ -17270,6 +17338,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("picture-in-picture")] PictureInPicture, /// + /// private-aggregation + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("private-aggregation")] + PrivateAggregation, + /// /// publickey-credentials-get /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("publickey-credentials-get")] @@ -17300,6 +17373,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage")] SharedStorage, /// + /// shared-storage-select-url + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage-select-url")] + SharedStorageSelectUrl, + /// /// smart-card /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("smart-card")] @@ -17340,6 +17418,11 @@ public enum PermissionsPolicyFeature [System.Text.Json.Serialization.JsonPropertyNameAttribute("web-share")] WebShare, /// + /// window-management + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("window-management")] + WindowManagement, + /// /// window-placement /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("window-placement")] @@ -19319,6 +19402,11 @@ public enum BackForwardCacheNotRestoredReason [System.Text.Json.Serialization.JsonPropertyNameAttribute("KeepaliveRequest")] KeepaliveRequest, /// + /// IndexedDBEvent + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("IndexedDBEvent")] + IndexedDBEvent, + /// /// Dummy /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("Dummy")] @@ -19788,7 +19876,37 @@ public enum PrerenderFinalStatus /// EmbedderHostDisallowed /// [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderHostDisallowed")] - EmbedderHostDisallowed + EmbedderHostDisallowed, + /// + /// ActivationNavigationDestroyedBeforeSuccess + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationNavigationDestroyedBeforeSuccess")] + ActivationNavigationDestroyedBeforeSuccess, + /// + /// TabClosedByUserGesture + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TabClosedByUserGesture")] + TabClosedByUserGesture, + /// + /// TabClosedWithoutUserGesture + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("TabClosedWithoutUserGesture")] + TabClosedWithoutUserGesture, + /// + /// PrimaryMainFrameRendererProcessCrashed + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrimaryMainFrameRendererProcessCrashed")] + PrimaryMainFrameRendererProcessCrashed, + /// + /// PrimaryMainFrameRendererProcessKilled + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrimaryMainFrameRendererProcessKilled")] + PrimaryMainFrameRendererProcessKilled, + /// + /// ActivationFramePolicyNotCompatible + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationFramePolicyNotCompatible")] + ActivationFramePolicyNotCompatible } /// @@ -25523,6 +25641,18 @@ public bool? HasMinPinLength set; } + /// + /// If set to true, the authenticator will support the prf extension. + /// https://w3c.github.io/webauthn/#prf-extension + /// Defaults to false. + /// + [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasPrf")] + public bool? HasPrf + { + get; + set; + } + /// /// If set to true, tests of user presence will succeed immediately. /// Otherwise, they will not be resolved. Defaults to true. @@ -29538,6 +29668,18 @@ public int ExecutionContextId get; private set; } + + /// + /// Unique Id of the destroyed context + /// + [System.Text.Json.Serialization.JsonIncludeAttribute] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextUniqueId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ExecutionContextUniqueId + { + get; + private set; + } } /// @@ -30937,7 +31079,7 @@ public System.Threading.Tasks.Task GetBrowserComm /// Get Chrome histograms. /// /// Requested substring in name. Only histograms which have query as asubstring in their name are extracted. An empty or absent query returnsall histograms. - /// If true, retrieve delta since last call. + /// If true, retrieve delta since last delta call. /// returns System.Threading.Tasks.Task<GetHistogramsResponse> public System.Threading.Tasks.Task GetHistogramsAsync(string query = null, bool? delta = null) { @@ -30961,7 +31103,7 @@ public System.Threading.Tasks.Task GetHistogramsAsync(str /// Get a Chrome histogram by name. /// /// Requested histogram name. - /// If true, retrieve delta since last call. + /// If true, retrieve delta since last delta call. /// returns System.Threading.Tasks.Task<GetHistogramResponse> public System.Threading.Tasks.Task GetHistogramAsync(string name, bool? delta = null) { @@ -37752,26 +37894,6 @@ public System.Threading.Tasks.Task GetSamplingProfil } } -namespace CefSharp.DevTools.Network -{ - /// - /// GetAllCookiesResponse - /// - public class GetAllCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase - { - /// - /// cookies - /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] - public System.Collections.Generic.IList Cookies - { - get; - private set; - } - } -} - namespace CefSharp.DevTools.Network { /// @@ -38631,17 +38753,6 @@ public System.Threading.Tasks.Task EnableAsync(int? maxT return _client.ExecuteDevToolsMethodAsync("Network.enable", dict); } - /// - /// Returns all browser cookies. Depending on the backend support, will return detailed cookie - /// information in the `cookies` field. - /// - /// returns System.Threading.Tasks.Task<GetAllCookiesResponse> - public System.Threading.Tasks.Task GetAllCookiesAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Network.getAllCookies", dict); - } - partial void ValidateGetCertificate(string origin); /// /// Returns the DER-encoded certificate. @@ -42728,6 +42839,20 @@ public System.Threading.Tasks.Task ClearSharedStorageEnt return _client.ExecuteDevToolsMethodAsync("Storage.clearSharedStorageEntries", dict); } + partial void ValidateResetSharedStorageBudget(string ownerOrigin); + /// + /// Resets the budget for `ownerOrigin` by clearing all budget withdrawals. + /// + /// ownerOrigin + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ResetSharedStorageBudgetAsync(string ownerOrigin) + { + ValidateResetSharedStorageBudget(ownerOrigin); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("ownerOrigin", ownerOrigin); + return _client.ExecuteDevToolsMethodAsync("Storage.resetSharedStorageBudget", dict); + } + partial void ValidateSetSharedStorageTracking(bool enable); /// /// Enables/disables issuing of sharedStorageAccessed events. @@ -43318,7 +43443,7 @@ public System.Threading.Tasks.Task GetBrowserContext return _client.ExecuteDevToolsMethodAsync("Target.getBrowserContexts", dict); } - partial void ValidateCreateTarget(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null); + partial void ValidateCreateTarget(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null); /// /// Creates a new page. /// @@ -43329,10 +43454,11 @@ public System.Threading.Tasks.Task GetBrowserContext /// Whether BeginFrames for this target will be controlled via DevTools (headless chrome only,not supported on MacOS yet, false by default). /// Whether to create a new Window or Tab (chrome-only, false by default). /// Whether to create the target in background or foreground (chrome-only,false by default). + /// Whether to create the target of type "tab". /// returns System.Threading.Tasks.Task<CreateTargetResponse> - public System.Threading.Tasks.Task CreateTargetAsync(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null) + public System.Threading.Tasks.Task CreateTargetAsync(string url, int? width = null, int? height = null, string browserContextId = null, bool? enableBeginFrameControl = null, bool? newWindow = null, bool? background = null, bool? forTab = null) { - ValidateCreateTarget(url, width, height, browserContextId, enableBeginFrameControl, newWindow, background); + ValidateCreateTarget(url, width, height, browserContextId, enableBeginFrameControl, newWindow, background, forTab); var dict = new System.Collections.Generic.Dictionary(); dict.Add("url", url); if (width.HasValue) @@ -43365,6 +43491,11 @@ public System.Threading.Tasks.Task CreateTargetAsync(strin dict.Add("background", background.Value); } + if (forTab.HasValue) + { + dict.Add("forTab", forTab.Value); + } + return _client.ExecuteDevToolsMethodAsync("Target.createTarget", dict); } @@ -47337,7 +47468,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -47353,11 +47484,12 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Specifies execution context which global object will be used to call function on. EitherexecutionContextId or objectId should be specified. /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. + /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. /// Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, bool? generateWebDriverValue = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, generateWebDriverValue); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -47410,6 +47542,11 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("throwOnSideEffect", throwOnSideEffect.Value); } + if (!(string.IsNullOrEmpty(uniqueContextId))) + { + dict.Add("uniqueContextId", uniqueContextId); + } + if (generateWebDriverValue.HasValue) { dict.Add("generateWebDriverValue", generateWebDriverValue.Value); From f14ecb69b9d9ca5bfd5810746e0ca40361c59a9d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 15 Mar 2023 18:26:35 +1000 Subject: [PATCH 235/543] Core - Remove Cef.EnableHighDPISupport Resolves #4417 --- CefSharp.BrowserSubprocess.Core/SubProcess.h | 5 ----- CefSharp.Core.Runtime/Cef.h | 10 ---------- CefSharp.Core/Cef.cs | 11 ----------- 3 files changed, 26 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/SubProcess.h b/CefSharp.BrowserSubprocess.Core/SubProcess.h index 01416c184..8f988f561 100644 --- a/CefSharp.BrowserSubprocess.Core/SubProcess.h +++ b/CefSharp.BrowserSubprocess.Core/SubProcess.h @@ -67,11 +67,6 @@ namespace CefSharp } - static void EnableHighDPISupport() - { - CefEnableHighDPISupport(); - } - static int ExecuteProcess(IEnumerable^ args) { auto hInstance = Process::GetCurrentProcess()->Handle; diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index 9f4233278..1040f1ced 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -638,16 +638,6 @@ namespace CefSharp return CefClearSchemeHandlerFactories(); } - /// - /// Call during process startup to enable High-DPI support on Windows 7 or newer. - /// Older versions of Windows should be left DPI-unaware because they do not - /// support DirectWrite and GDI fonts are kerned very badly. - /// - static void EnableHighDPISupport() - { - CefEnableHighDPISupport(); - } - /// /// Returns true if called on the specified CEF thread. /// diff --git a/CefSharp.Core/Cef.cs b/CefSharp.Core/Cef.cs index 09db764bd..d1356fb85 100644 --- a/CefSharp.Core/Cef.cs +++ b/CefSharp.Core/Cef.cs @@ -422,17 +422,6 @@ public static bool ClearSchemeHandlerFactories() return Core.Cef.ClearSchemeHandlerFactories(); } - /// - /// Call during process startup to enable High-DPI support on Windows 7 or newer. - /// Older versions of Windows should be left DPI-unaware because they do not - /// support DirectWrite and GDI fonts are kerned very badly. - /// - [Obsolete("This method will be removed in M113. See https://github.com/cefsharp/CefSharp/issues/4417")] - public static void EnableHighDPISupport() - { - Core.Cef.EnableHighDPISupport(); - } - /// /// Returns true if called on the specified CEF thread. /// From 3ce76eb1910c8b653f5506a4dc8ac0cd43a07c5c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 24 Mar 2023 10:52:58 +1000 Subject: [PATCH 236/543] CEF Issue Tracker moved to GitHub - Update some of the internal links Issue #4430 --- CONTRIBUTING.md | 2 +- CefSharp.Core.Runtime/CefSettingsBase.h | 2 +- CefSharp.Core.Runtime/Internals/CefSharpApp.h | 2 +- CefSharp.Core.Runtime/Internals/ClientAdapter.cpp | 2 +- CefSharp.Core/CefSettingsBase.cs | 8 ++++---- CefSharp.Example/CefExample.cs | 4 ++-- CefSharp.OffScreen/ChromiumWebBrowser.cs | 2 +- CefSharp.WinForms/ChromiumWebBrowser.cs | 6 +++--- CefSharp.Wpf/ChromiumWebBrowser.cs | 8 ++++---- CefSharp/Internals/PathCheck.cs | 2 +- ISSUE_TEMPLATE.md | 2 +- README.md | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 42bc60317..10d7f9305 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -32,7 +32,7 @@ It maybe helpful to run the `cefclient` application and compare output with `Cef cefclient.exe --multi-threaded-message-loop --no-sandbox ``` - **MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED ABOVE** - - If you can reproduce the problem with `cefclient` then you'll need to report the bug on https://bitbucket.org/chromiumembedded/cef/overview there is no point opening an issue here. (Make sure you search before opening an issue) + - If you can reproduce the problem with `cefclient` then you'll need to report the bug on https://github.com/chromiumembedded/cef there is no point opening an issue here. (Make sure you search before opening an issue) ### What should I include when creating an `Issue`? diff --git a/CefSharp.Core.Runtime/CefSettingsBase.h b/CefSharp.Core.Runtime/CefSettingsBase.h index f6cfe4f3d..b083bdf00 100644 --- a/CefSharp.Core.Runtime/CefSettingsBase.h +++ b/CefSharp.Core.Runtime/CefSettingsBase.h @@ -88,7 +88,7 @@ namespace CefSharp /// **Experimental** /// Set to true to enable use of the Chrome runtime in CEF. This feature is /// considered experimental and is not recommended for most users at this time. - /// See issue https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks for details. + /// See issue https://github.com/chromiumembedded/cef/issues/2969 /// property bool ChromeRuntime { diff --git a/CefSharp.Core.Runtime/Internals/CefSharpApp.h b/CefSharp.Core.Runtime/Internals/CefSharpApp.h index e6292fee5..8a40b3a02 100644 --- a/CefSharp.Core.Runtime/Internals/CefSharpApp.h +++ b/CefSharp.Core.Runtime/Internals/CefSharpApp.h @@ -135,7 +135,7 @@ namespace CefSharp commandLine->AppendSwitch(StringUtils::ToNative(CefSharpArguments::ExitIfParentProcessClosed)); } - //ChannelId was removed in https://bitbucket.org/chromiumembedded/cef/issues/1912/notreached-in-logchannelidandcookiestores + //ChannelId was removed in https://github.com/chromiumembedded/cef/issues/1912 //We need to know the process Id to establish WCF communication and for monitoring of parent process exit commandLine->AppendArgument(StringUtils::ToNative(CefSharpArguments::HostProcessIdArgument + "=" + Process::GetCurrentProcess()->Id)); diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index 71af300dc..a0c6db892 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -416,7 +416,7 @@ namespace CefSharp bool returnFlag = true; //NOTE: Only called if tooltip changed otherwise called many times - // also only called when using OSR, https://bitbucket.org/chromiumembedded/cef/issues/783 + // also only called when using OSR, https://github.com/chromiumembedded/cef/issues/783 if (hasChanged) { diff --git a/CefSharp.Core/CefSettingsBase.cs b/CefSharp.Core/CefSettingsBase.cs index b11542069..8080a2286 100644 --- a/CefSharp.Core/CefSettingsBase.cs +++ b/CefSharp.Core/CefSettingsBase.cs @@ -73,7 +73,7 @@ public CommandLineArgDictionary CefCommandLineArgs /// **Experimental** /// Set to true to enable use of the Chrome runtime in CEF. This feature is /// considered experimental and is not recommended for most users at this time. - /// See issue https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks for details. + /// See issue https://github.com/chromiumembedded/cef/issues/2969 /// public bool ChromeRuntime { @@ -424,7 +424,7 @@ public void DisableGpuAcceleration() /// /// Set command line argument to enable Print Preview See - /// https://bitbucket.org/chromiumembedded/cef/issues/123/add-support-for-print-preview for details. + /// https://github.com/chromiumembedded/cef/issues/123/add-support-for-print-preview for details. /// public void EnablePrintPreview() { @@ -442,7 +442,7 @@ public void SetOffScreenRenderingBestPerformanceArgs() { // Use software rendering and compositing (disable GPU) for increased FPS // and decreased CPU usage. - // See https://bitbucket.org/chromiumembedded/cef/issues/1257 for details. + // See https://github.com/chromiumembedded/cef/issues/1257 for details. if (!settings.CefCommandLineArgs.ContainsKey("disable-gpu")) { settings.CefCommandLineArgs.Add("disable-gpu"); @@ -459,7 +459,7 @@ public void SetOffScreenRenderingBestPerformanceArgs() // creation time via IBrowserSettings.WindowlessFrameRate or changed // dynamically using IBrowserHost.SetWindowlessFrameRate. In cefclient // it can be set via the command-line using `--off-screen-frame-rate=XX`. - // See https://bitbucket.org/chromiumembedded/cef/issues/1368 for details. + // See https://github.com/chromiumembedded/cef/issues/1368 for details. if (!settings.CefCommandLineArgs.ContainsKey("enable-begin-frame-scheduling")) { settings.CefCommandLineArgs.Add("enable-begin-frame-scheduling"); diff --git a/CefSharp.Example/CefExample.cs b/CefSharp.Example/CefExample.cs index 2c4984524..04645f15f 100644 --- a/CefSharp.Example/CefExample.cs +++ b/CefSharp.Example/CefExample.cs @@ -14,7 +14,7 @@ namespace CefSharp.Example { public static class CefExample { - //TODO: Revert after https://bitbucket.org/chromiumembedded/cef/issues/2685/networkservice-custom-scheme-unable-to + //TODO: Revert after https://github.com/chromiumembedded/cef/issues/2685 //has been fixed. public const string ExampleDomain = "cefsharp.example"; public const string BaseUrl = "https://" + ExampleDomain; @@ -161,7 +161,7 @@ public static void Init(CefSettingsBase settings, IBrowserProcessHandler browser //settings.LogSeverity = LogSeverity.Verbose; - //Experimental setting see https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks + //Experimental setting see https://github.com/chromiumembedded/cef/issues/2969 //for details //settings.ChromeRuntime = true; diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index df9fe6f00..1144c64fb 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -580,7 +580,7 @@ public async Task CaptureScreenshotAsync(CaptureScreenshotFormat? format throw new ArgumentException($"{nameof(viewport)}.{nameof(viewport.Scale)} must be greater than 0."); } - //https://bitbucket.org/chromiumembedded/cef/issues/3103/offscreen-capture-screenshot-with-devtools + //https://github.com/chromiumembedded/cef/issues/3103 //CEF OSR mode doesn't set the size internally when CaptureScreenShot is called with a clip param specified, so //we must manually resize our view if size is greater var newWidth = viewport.Width + viewport.X; diff --git a/CefSharp.WinForms/ChromiumWebBrowser.cs b/CefSharp.WinForms/ChromiumWebBrowser.cs index de3f20fad..239a3994c 100644 --- a/CefSharp.WinForms/ChromiumWebBrowser.cs +++ b/CefSharp.WinForms/ChromiumWebBrowser.cs @@ -137,7 +137,7 @@ public IBrowserSettings BrowserSettings /// Activates browser upon creation, the default value is false. Prior to version 73 /// the default behaviour was to activate browser on creation (Equivalent of setting this property to true). /// To restore this behaviour set this value to true immediately after you create the instance. - /// https://bitbucket.org/chromiumembedded/cef/issues/1856/branch-2526-cef-activates-browser-window + /// https://github.com/chromiumembedded/cef/issues/1856 /// public bool ActivateBrowserOnCreation { get; set; } /// @@ -662,7 +662,7 @@ protected virtual IWindowInfo CreateBrowserWindowInfo(IntPtr handle) if (!ActivateBrowserOnCreation) { //Disable Window activation by default - //https://bitbucket.org/chromiumembedded/cef/issues/1856/branch-2526-cef-activates-browser-window + //https://github.com/chromiumembedded/cef/issues/1856/branch-2526-cef-activates-browser-window windowInfo.ExStyle |= WS_EX_NOACTIVATE; } @@ -722,7 +722,7 @@ protected virtual void OnSetBrowserInitialFocus() // It's possible to use Cef.PostAction to invoke directly on the CEF UI Thread, // this also seems to work as expected, using the WinForms UI Thread allows // us to check the Focused property to determine if we actully have focus - // https://bitbucket.org/chromiumembedded/cef/issues/3436/chromium-based-browser-loses-focus-when + // https://github.com/chromiumembedded/cef/issues/3436/chromium-based-browser-loses-focus-when if (InvokeRequired) { BeginInvoke((Action)(() => diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index b7a2f8cd0..16973f9e2 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -140,7 +140,7 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro /// private static bool DesignMode; - // https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and + // https://github.com/chromiumembedded/cef/issues/3427 private bool resizeHackIgnoreOnPaint; private Structs.Size? resizeHackSize; @@ -153,7 +153,7 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro /// /// When enabled the browser will resize by 1px when it becomes visible to workaround /// the upstream issue - /// Hack to work around upstream issue https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and + /// Hack to work around upstream issue https://github.com/chromiumembedded/cef/issues/3427 /// Disabled by default /// public bool ResizeHackEnabled { get; set; } = false; @@ -162,7 +162,7 @@ public partial class ChromiumWebBrowser : Control, IRenderWebBrowser, IWpfWebBro /// Number of milliseconds to wait after resizing the browser when it first /// becomes visible. After the delay the browser will revert to it's /// original size. - /// Hack to workaround upstream issue https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and + /// Hack to workaround upstream issue https://github.com/chromiumembedded/cef/issues/3427 /// public int ResizeHackDelayInMs { get; set; } = 50; @@ -2793,7 +2793,7 @@ await Cef.UIThreadTaskFactory.StartNew(delegate } /// - /// Resize hack for https://bitbucket.org/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and + /// Resize hack for https://github.com/chromiumembedded/cef/issues/3427/osr-rendering-bug-when-minimizing-and /// /// Task private async Task ResizeHackRun() diff --git a/CefSharp/Internals/PathCheck.cs b/CefSharp/Internals/PathCheck.cs index 4fec57eda..ac8c2f48b 100644 --- a/CefSharp/Internals/PathCheck.cs +++ b/CefSharp/Internals/PathCheck.cs @@ -50,7 +50,7 @@ internal static bool IsDirectorySeparator(char c) /// /// Throw exception if the path provided is non-asbolute /// CEF now explicitly requires absolute paths - /// https://bitbucket.org/chromiumembedded/cef/issues/2916/not-persisting-in-local-stoage-when-using + /// https://github.com/chromiumembedded/cef/issues/2916 /// Empty paths are ignored /// /// path diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 1d54e6c1a..f3b93c31b 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -49,5 +49,5 @@ e.g. 57.0.0 or 63.0.0-pre01 - To compare with WPF run cefclient --multi-threaded-message-loop --off-screen-rendering-enabled --enable-gpu - To compare with WinForms run cefclient --multi-threaded-message-loop - - If you can reproduce the problem with `cefclient` then you'll need to report the bug on https://bitbucket.org/chromiumembedded/cef/overview there is no point opening an issue here. (Make sure you search before opening an issue) + - If you can reproduce the problem with `cefclient` then you'll need to report the bug on https://github.com/chromiumembedded/cef there is no point opening an issue here. (Make sure you search before opening an issue) - Please include the version you tested with e.g. `cef_binary_3.3029.1611.g44e39a8_windows64_client.tar.bz2`. It's important to you test with the same version that `CefSharp` is based on. Check the release notes to determine the version (https://github.com/cefsharp/CefSharp/releases) or load `chrome://version` in the browser. diff --git a/README.md b/README.md index d150fd835..fe00ceb32 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ As a stay at home dad I ([@amaitland](https://github.com/amaitland)) rely on you ## Links - [CefGlue](https://gitlab.com/xiliumhq/chromiumembedded/cefglue): An alternative .NET CEF wrapper built using P/Invoke. -- [CEF Bitbucket Project](https://bitbucket.org/chromiumembedded/cef/overview) : The official CEF issue tracker +- [CEF GitHub Project](https://github.com/chromiumembedded/cef) : The official CEF issue tracker - [CEF Forum](http://magpcss.org/ceforum/) : The official CEF Forum - [CEF API Docs](http://magpcss.org/ceforum/apidocs3/index-all.html) : Well worth a read if you are implementing a new feature - [CefSharp API Doc](http://cefsharp.github.io/api/) From 261894181f9168c28093757410a6cf5acf58d04a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 28 Mar 2023 06:00:28 +1000 Subject: [PATCH 237/543] Net Core - Update RefAssembly --- .../CefSharp.Core.Runtime.netcore.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index f1cd6b3ff..812e7ff1e 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -68,7 +68,6 @@ public static void AddDisposable(System.IDisposable item) { } public static uint ColorSetARGB(uint a, uint r, uint g, uint b) { throw null; } public static bool CurrentlyOnThread(CefSharp.CefThreadIds threadId) { throw null; } public static void DoMessageLoopWork() { } - public static void EnableHighDPISupport() { } public static void EnableWaitForBrowsersToClose() { } public static int ExecuteProcess() { throw null; } public static CefSharp.ICookieManager GetGlobalCookieManager() { throw null; } From 6e1105996117f5909b609ae7a4c50d1c8d116be1 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 1 Apr 2023 11:11:09 +1000 Subject: [PATCH 238/543] Upgrade to 111.2.7+gebf5d6a+chromium-111.0.5563.148 / Chromium 111.0.5563.148 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 4 ++-- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 4 ++-- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 4 ++-- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 4 ++-- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 48 insertions(+), 48 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 6daf8fd5e..9257f0b3b 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 34378b050..f0252e815 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 9196fe8cf..3843dacc4 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 111,2,20 - PRODUCTVERSION 111,2,20 + FILEVERSION 111,2,70 + PRODUCTVERSION 111,2,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "111.2.20" + VALUE "FileVersion", "111.2.70" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "111.2.20" + VALUE "ProductVersion", "111.2.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 7c71b1d79..877389107 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index b2b2f90b0..2679ae86a 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 0217e4287..ca0d61209 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 42f7cd339..2fc24e4fb 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index e7a00e28b..fe6607b8d 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 2bf272d64..13309b32f 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 111,2,20 - PRODUCTVERSION 111,2,20 + FILEVERSION 111,2,70 + PRODUCTVERSION 111,2,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "111.2.20" + VALUE "FileVersion", "111.2.70" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "111.2.20" + VALUE "ProductVersion", "111.2.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 7c71b1d79..877389107 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index b2b2f90b0..2679ae86a 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index bf0217154..0df83d301 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index a85a11c24..b25e6895b 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 09997f017..5e1403912 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 231b769d1..30d1c1fe4 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 8e244ffa7..c4d7e19c0 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index e98bad61d..550ce5df7 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 912302c41..31c1edd7f 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 0a510568e..81195e058 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index a16e99ec5..8699b4a00 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index e113cc7bb..5d178c55e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 17903334b..2cf83f429 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index a7fe20674..89bceeaf0 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 111.2.20 + 111.2.70 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 111.2.20 + Version 111.2.70 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 5e54b875a..96c4faf87 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "111.2.20"; - public const string AssemblyFileVersion = "111.2.20.0"; + public const string AssemblyVersion = "111.2.70"; + public const string AssemblyFileVersion = "111.2.70.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 01e8d4bcd..9e8a6ffd4 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 9a314a830..58ca91afc 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 4877fdec3..a8406e9ee 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 34c0777b3..a16189267 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "111.2.2", + [string] $CefVersion = "111.2.7", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 0cfb18167..71fa5f6c9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 111.2.20-CI{build} +version: 111.2.70-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 1a2d9827c..67aecd320 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "111.2.20", + [string] $Version = "111.2.70", [Parameter(Position = 2)] - [string] $AssemblyVersion = "111.2.20", + [string] $AssemblyVersion = "111.2.70", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 1460dee5a165e7388f165c40860d7916f0ebc443 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 1 Apr 2023 18:58:27 +1000 Subject: [PATCH 239/543] Core - ClientAdapter improve HasParent checks (#4443) * Core - Improve ClientAdapter::GetBrowserWrapper logic Simplify the logic - For non popup return immediately (most common scenario) - Check for IBrowser instance for matching popup - Check for HasParent and return the browser Instance - Return nullptr if no matching IBrowser wrapper found * Core - ClientAdapter::OnFrameCreated called before OnAfterCreated - The very first call to ClientAdapter::OnFrameCreated happens before OnAfterCreated leaving us with a IBrowser instance that's null Create an IBrowser instance that's scoped to the method call * Core - ClientAdapter improve HasParent checks - HasParent check has now been replaced with IsHostedBrowser which has additional check to make sure the internal IWebBrowser.Set* methods are only called for a IBrowser instance that's directly associated with a ChromiumWebBrowser instance This resolves issues with DevTools being opened for a popup hosted in a ChromiumWebBrowser instance. Related discussion https://github.com/cefsharp/CefSharp/discussions/4438 --- .../Internals/ClientAdapter.cpp | 121 ++++++++---- .../Internals/ClientAdapter.h | 1 + .../Handlers/WinFormsLifeSpanHandlerEx.cs | 176 ++++++++++++++++++ 3 files changed, 260 insertions(+), 38 deletions(-) create mode 100644 CefSharp.WinForms.Example/Handlers/WinFormsLifeSpanHandlerEx.cs diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index a0c6db892..0cc7c31cf 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -75,23 +75,62 @@ namespace CefSharp IBrowser^ ClientAdapter::GetBrowserWrapper(int browserId, bool isPopup) { + if (!isPopup) + { + return _browser; + } + + IBrowser^ popupBrowser; + if (_popupBrowsers->TryGetValue(browserId, popupBrowser)) + { + return popupBrowser; + } + + // For popups that were hosted using a ChromiumWebBrowser instance if (_browserControl->HasParent) { return _browser; } - if (isPopup) + return nullptr; + } + + // Is a main browser if isPopuo == false or the IBrowser instance is directly associated + // with the ChromiumWebBrowser instance. Should be true in cases + // where ChromiumWebBrowser is instanciated directly or + // when a popup is hosted in a ChromiumWebBrowser instance + // For popups hosted in ChromiumWebBrowser instances it's important + // that DevTools popups return false; + bool ClientAdapter::IsMainBrowser(bool isPopup, int browserId) + { + // Main browser is always true + if (!isPopup) { - IBrowser^ popupBrowser; - if (_popupBrowsers->TryGetValue(browserId, popupBrowser)) - { - return popupBrowser; - } + return true; + } - return nullptr; + // If popup and HasParent == false then always false + if (!_browserControl->HasParent) + { + return false; } - return _browser; + // This method is called from OnAfterCreated before _cefBrowser is set + // If the _cefBrowser reference is null then this should be a ChromiumWebBrowser + // hosted as a popup + if (!_cefBrowser.get()) + { + return true; + } + + // For popups hosted in ChromiumWebBrowser instance directly (non DevTools popup) + // then return true; + if (_cefBrowser->GetIdentifier() == browserId) + { + return true; + } + + return false; } void ClientAdapter::CloseAllPopups(bool forceClose) @@ -180,14 +219,7 @@ namespace CefSharp auto browserWrapper = gcnew CefBrowserWrapper(browser); - auto isPopup = browser->IsPopup() && !_browserControl->HasParent; - - if (isPopup) - { - // Add to the list of popup browsers. - _popupBrowsers->Add(browser->GetIdentifier(), browserWrapper); - } - else + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserHwnd = browser->GetHost()->GetWindowHandle(); _cefBrowser = browser; @@ -199,6 +231,11 @@ namespace CefSharp _browserAdapter->OnAfterBrowserCreated(browserWrapper); } } + else + { + // Add to the list of popup browsers. + _popupBrowsers->Add(browser->GetIdentifier(), browserWrapper); + } auto handler = _browserControl->LifeSpanHandler; @@ -227,7 +264,6 @@ namespace CefSharp void ClientAdapter::OnBeforeClose(CefRefPtr browser) { - auto isPopup = browser->IsPopup() && !_browserControl->HasParent; auto handler = _browserControl->LifeSpanHandler; if (handler != nullptr) @@ -240,7 +276,11 @@ namespace CefSharp handler->OnBeforeClose(_browserControl, %browserWrapper); } - if (isPopup) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) + { + _cefBrowser = nullptr; + } + else { // Remove from the browser popup list. auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), true); @@ -248,12 +288,6 @@ namespace CefSharp // Dispose the CefBrowserWrapper delete browserWrapper; } - //TODO: When creating a new ChromiumWebBrowser and passing in a newBrowser to OnBeforePopup - //the handles don't match up (at least in WPF), need to investigate further. - else if (_browserHwnd == browser->GetHost()->GetWindowHandle() || _browserControl->HasParent) - { - _cefBrowser = nullptr; - } BrowserRefCounter::Instance->Decrement(_browserControl->GetType()); } @@ -263,7 +297,7 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); auto args = gcnew LoadingStateChangedEventArgs(browserWrapper, canGoBack, canGoForward, isLoading); - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserControl->SetLoadingStateChange(args); } @@ -281,7 +315,7 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); auto args = gcnew AddressChangedEventArgs(browserWrapper, StringUtils::ToClr(address)); - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserControl->SetAddress(args); } @@ -354,15 +388,15 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); auto args = gcnew TitleChangedEventArgs(browserWrapper, StringUtils::ToClr(title)); - if (browser->IsPopup() && !_browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { - // Set the popup window title - auto hwnd = browser->GetHost()->GetWindowHandle(); - SetWindowText(hwnd, std::wstring(title).c_str()); + _browserControl->SetTitle(args); } else { - _browserControl->SetTitle(args); + // Set the popup window title + auto hwnd = browser->GetHost()->GetWindowHandle(); + SetWindowText(hwnd, std::wstring(title).c_str()); } auto handler = _browserControl->DisplayHandler; @@ -426,7 +460,7 @@ namespace CefSharp returnFlag = handler->OnTooltipChanged(_browserControl, tooltip); } - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _tooltip = tooltip; _browserControl->SetTooltipText(_tooltip); @@ -442,7 +476,7 @@ namespace CefSharp auto args = gcnew ConsoleMessageEventArgs(browserWrapper, (LogSeverity)level, StringUtils::ToClr(message), StringUtils::ToClr(source), line); - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserControl->OnConsoleMessage(args); } @@ -461,7 +495,7 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); auto args = gcnew StatusMessageEventArgs(browserWrapper, StringUtils::ToClr(value)); - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserControl->OnStatusMessage(args); } @@ -512,7 +546,7 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); CefFrameWrapper frameWrapper(frame); - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserControl->OnFrameLoadStart(gcnew FrameLoadStartEventArgs(browserWrapper, %frameWrapper, (CefSharp::TransitionType)transitionType)); } @@ -529,7 +563,7 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); CefFrameWrapper frameWrapper(frame); - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserControl->OnFrameLoadEnd(gcnew FrameLoadEndEventArgs(browserWrapper, %frameWrapper, httpStatusCode)); } @@ -547,7 +581,7 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); CefFrameWrapper frameWrapper(frame); - if (!browser->IsPopup() || _browserControl->HasParent) + if (IsMainBrowser(browser->IsPopup(), browser->GetIdentifier())) { _browserControl->OnLoadError(gcnew LoadErrorEventArgs(browserWrapper, %frameWrapper, (CefErrorCode)errorCode, StringUtils::ToClr(errorText), StringUtils::ToClr(failedUrl))); @@ -1117,7 +1151,18 @@ namespace CefSharp auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); auto frameWrapper = gcnew CefFrameWrapper(frame); - handler->OnFrameCreated(_browserControl, browserWrapper, frameWrapper); + if (browserWrapper == nullptr) + { + // Very first OnFrameCreated called may happen before OnAfterCreated + // so we have to create a new wrapper that's lifespan is scoped to this single call. + CefBrowserWrapper browserWrapper(browser); + + handler->OnFrameCreated(_browserControl, %browserWrapper, frameWrapper); + } + else + { + handler->OnFrameCreated(_browserControl, browserWrapper, frameWrapper); + } } } diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.h b/CefSharp.Core.Runtime/Internals/ClientAdapter.h index 279ab86b4..142c4a771 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.h +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.h @@ -87,6 +87,7 @@ namespace CefSharp void CloseAllPopups(bool forceClose); void MethodInvocationComplete(MethodInvocationResult^ result); IBrowser^ GetBrowserWrapper(int browserId); + bool IsMainBrowser(bool isPopup, int browserId); // CefClient virtual DECL CefRefPtr GetLifeSpanHandler() override { return this; } diff --git a/CefSharp.WinForms.Example/Handlers/WinFormsLifeSpanHandlerEx.cs b/CefSharp.WinForms.Example/Handlers/WinFormsLifeSpanHandlerEx.cs new file mode 100644 index 000000000..b55e10662 --- /dev/null +++ b/CefSharp.WinForms.Example/Handlers/WinFormsLifeSpanHandlerEx.cs @@ -0,0 +1,176 @@ +// Copyright © 2023 The CefSharp Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. + +using System; +using System.Windows.Forms; +using CefSharp.WinForms.Host; + +namespace CefSharp.WinForms.Example.Handlers +{ + /// + /// A WinForms Specific implementation that demos + /// the process of hosting a Popup using a instance. + /// This implementation returns true in + /// so no WM_CLOSE message is sent, this differs from the default CEF behaviour. + /// + internal class WinFormsLifeSpanHandlerEx : CefSharp.Handler.LifeSpanHandler + { + private Action onPopupBrowserCreated; + private Action onPopupDestroyed; + private Action onPopupCreated; + + /// + /// The delegate will be called when the underlying CEF has been + /// created. The instance is valid until + /// is called. provides low level access to the CEF Browser, you can access frames, view source, + /// perform navigation (via frame) etc. This is equivilent to the . + /// + /// Action to be invoked when the has been created. + /// instance allowing you to chain method calls together + public WinFormsLifeSpanHandlerEx OnPopupBrowserCreated(Action onPopupBrowserCreated) + { + this.onPopupBrowserCreated = onPopupBrowserCreated; + + return this; + } + + /// + /// The will be called when the is to be + /// removed from it's parent. + /// When the is called you must remove/dispose of the . + /// + /// Action to be invoked when the Popup is to be destroyed. + /// instance allowing you to chain method calls together + public WinFormsLifeSpanHandlerEx OnPopupDestroyed(Action onPopupDestroyed) + { + this.onPopupDestroyed = onPopupDestroyed; + + return this; + } + + /// + /// The will be called when the has been + /// created. When the is called you must add the control to it's intended parent. + /// + /// Action to be invoked when the Popup host has been created and is ready to be attached to it's parent. + /// instance allowing you to chain method calls together + public WinFormsLifeSpanHandlerEx OnPopupCreated(Action onPopupCreated) + { + this.onPopupCreated = onPopupCreated; + + return this; + } + + /// + protected override bool DoClose(IWebBrowser chromiumWebBrowser, IBrowser browser) + { + if (browser.IsPopup) + { + var control = ChromiumHostControlBase.FromBrowser(browser); + + //We don't have a parent control so we allow the default behaviour, required to close + //default popups e.g. DevTools + if (control == null) + { + return false; + } + + //If the main browser is disposed or the handle has been released then we don't + //need to remove the popup (likely removed from menu) + if (!control.IsDisposed && control.IsHandleCreated) + { + try + { + control.BeginInvoke(new Action(() => + { + onPopupDestroyed?.Invoke(control); + + control.Dispose(); + })); + } + catch (ObjectDisposedException) + { + // If the popup is being hosted on a Form that is being + // Closed/Disposed as we attempt to call Control.BeginInvoke + // we can end up with an ObjectDisposedException + // return false (Default behaviour). + return false; + } + } + } + + //No WM_CLOSE message will be sent, manually handle closing + return true; + } + + /// + protected override void OnAfterCreated(IWebBrowser chromiumWebBrowser, IBrowser browser) + { + if (browser.IsPopup) + { + var webBrowser = (ChromiumWebBrowser)chromiumWebBrowser; + + webBrowser.BeginInvoke((Action) (() => + { + var control = ChromiumHostControlBase.FromBrowser(browser); + + if (control != null) + { + onPopupBrowserCreated?.Invoke(control); + } + })); + + } + } + + /// + protected override void OnBeforeClose(IWebBrowser chromiumWebBrowser, IBrowser browser) + { + if (!browser.IsDisposed && browser.IsPopup) + { + + } + } + + /// + /// + /// NOTE: DevTools popups DO NOT trigger OnBeforePopup. + /// + protected override bool OnBeforePopup(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, string targetUrl, string targetFrameName, WindowOpenDisposition targetDisposition, bool userGesture, IPopupFeatures popupFeatures, IWindowInfo windowInfo, IBrowserSettings browserSettings, ref bool noJavascriptAccess, out IWebBrowser newBrowser) + { + newBrowser = null; + + var webBrowser = (ChromiumWebBrowser)chromiumWebBrowser; + + ChromiumWebBrowser control = null; + + //We need to execute sync here so IWindowInfo.SetAsChild is called before we return false; + webBrowser.Invoke(new Action(() => + { + control = new ChromiumWebBrowser + { + Dock = DockStyle.Fill + }; + + //NOTE: This is important and must be called before the handle is created + control.SetAsPopup(); + control.LifeSpanHandler = this; + + control.CreateControl(); + + var rect = control.ClientRectangle; + + var windowBounds = new CefSharp.Structs.Rect(rect.X, rect.Y, rect.Width, rect.Height); + + windowInfo.SetAsChild(control.Handle, windowBounds); + + onPopupCreated?.Invoke(control, targetUrl, targetFrameName, windowBounds); + })); + + newBrowser = control; + + return false; + } + } +} From 90c31b4490a7411e11f12e3b9d299a1231d3f5c4 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 2 Apr 2023 11:46:00 +1000 Subject: [PATCH 240/543] WPF Example - Implement Material Design (#4446) * WPF Example - Improve layout/design using MaterialDesignInXamlToolkit - Some very basic UI improvements using MaterialDesignInXamlToolkit --- CefSharp.Wpf.Example/App.xaml | 134 +++--- .../CefSharp.Wpf.Example.csproj | 1 + .../CefSharp.Wpf.Example.netcore.csproj | 3 +- CefSharp.Wpf.Example/MainWindow.xaml | 18 +- .../Views/BrowserTabView.xaml | 408 +++++++++--------- 5 files changed, 294 insertions(+), 270 deletions(-) diff --git a/CefSharp.Wpf.Example/App.xaml b/CefSharp.Wpf.Example/App.xaml index b1ea6e741..47e4e2175 100644 --- a/CefSharp.Wpf.Example/App.xaml +++ b/CefSharp.Wpf.Example/App.xaml @@ -1,55 +1,62 @@ - - + + + + + - --> + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 8699b4a00..9e1f16498 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -32,6 +32,7 @@ + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 5d178c55e..f3b1eeab1 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -1,4 +1,4 @@ - + @@ -42,6 +42,7 @@ + diff --git a/CefSharp.Wpf.Example/MainWindow.xaml b/CefSharp.Wpf.Example/MainWindow.xaml index 39a2129a7..978acd206 100644 --- a/CefSharp.Wpf.Example/MainWindow.xaml +++ b/CefSharp.Wpf.Example/MainWindow.xaml @@ -1,8 +1,16 @@ @@ -10,7 +18,7 @@ - + @@ -63,12 +71,10 @@ - - - - - - - - + + - [System.Runtime.Serialization.DataMemberAttribute(Name = ("role"), IsRequired = (false))] + [DataMember(Name = ("role"), IsRequired = (false))] public CefSharp.DevTools.Accessibility.AXValue Role { get; @@ -720,7 +722,7 @@ public CefSharp.DevTools.Accessibility.AXValue Role /// /// This `Node`'s Chrome raw role. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("chromeRole"), IsRequired = (false))] + [DataMember(Name = ("chromeRole"), IsRequired = (false))] public CefSharp.DevTools.Accessibility.AXValue ChromeRole { get; @@ -730,7 +732,7 @@ public CefSharp.DevTools.Accessibility.AXValue ChromeRole /// /// The accessible name for this `Node`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] + [DataMember(Name = ("name"), IsRequired = (false))] public CefSharp.DevTools.Accessibility.AXValue Name { get; @@ -740,7 +742,7 @@ public CefSharp.DevTools.Accessibility.AXValue Name /// /// The accessible description for this `Node`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("description"), IsRequired = (false))] + [DataMember(Name = ("description"), IsRequired = (false))] public CefSharp.DevTools.Accessibility.AXValue Description { get; @@ -750,7 +752,7 @@ public CefSharp.DevTools.Accessibility.AXValue Description /// /// The value for this `Node`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public CefSharp.DevTools.Accessibility.AXValue Value { get; @@ -760,7 +762,7 @@ public CefSharp.DevTools.Accessibility.AXValue Value /// /// All other properties /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("properties"), IsRequired = (false))] + [DataMember(Name = ("properties"), IsRequired = (false))] public System.Collections.Generic.IList Properties { get; @@ -770,7 +772,7 @@ public System.Collections.Generic.IList /// ID for this node's parent. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (false))] + [DataMember(Name = ("parentId"), IsRequired = (false))] public string ParentId { get; @@ -780,7 +782,7 @@ public string ParentId /// /// IDs for each of this node's child nodes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("childIds"), IsRequired = (false))] + [DataMember(Name = ("childIds"), IsRequired = (false))] public string[] ChildIds { get; @@ -790,7 +792,7 @@ public string[] ChildIds /// /// The backend ID for the associated DOM node, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendDOMNodeId"), IsRequired = (false))] + [DataMember(Name = ("backendDOMNodeId"), IsRequired = (false))] public int? BackendDOMNodeId { get; @@ -800,7 +802,7 @@ public int? BackendDOMNodeId /// /// The frame ID for the frame associated with this nodes document. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + [DataMember(Name = ("frameId"), IsRequired = (false))] public string FrameId { get; @@ -818,7 +820,7 @@ public class LoadCompleteEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// New document root node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("root"), IsRequired = (true))] + [DataMember(Name = ("root"), IsRequired = (true))] public CefSharp.DevTools.Accessibility.AXNode Root { get; @@ -835,7 +837,7 @@ public class NodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Updated node data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodes"), IsRequired = (true))] + [DataMember(Name = ("nodes"), IsRequired = (true))] public System.Collections.Generic.IList Nodes { get; @@ -854,17 +856,17 @@ public enum AnimationType /// /// CSSTransition /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CSSTransition"))] + [EnumMember(Value = ("CSSTransition"))] CSSTransition, /// /// CSSAnimation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CSSAnimation"))] + [EnumMember(Value = ("CSSAnimation"))] CSSAnimation, /// /// WebAnimation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebAnimation"))] + [EnumMember(Value = ("WebAnimation"))] WebAnimation } @@ -877,7 +879,7 @@ public partial class Animation : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `Animation`'s id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -887,7 +889,7 @@ public string Id /// /// `Animation`'s name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -897,7 +899,7 @@ public string Name /// /// `Animation`'s internal paused state. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pausedState"), IsRequired = (true))] + [DataMember(Name = ("pausedState"), IsRequired = (true))] public bool PausedState { get; @@ -907,7 +909,7 @@ public bool PausedState /// /// `Animation`'s play state. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("playState"), IsRequired = (true))] + [DataMember(Name = ("playState"), IsRequired = (true))] public string PlayState { get; @@ -917,7 +919,7 @@ public string PlayState /// /// `Animation`'s playback rate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("playbackRate"), IsRequired = (true))] + [DataMember(Name = ("playbackRate"), IsRequired = (true))] public double PlaybackRate { get; @@ -927,7 +929,7 @@ public double PlaybackRate /// /// `Animation`'s start time. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startTime"), IsRequired = (true))] + [DataMember(Name = ("startTime"), IsRequired = (true))] public double StartTime { get; @@ -937,7 +939,7 @@ public double StartTime /// /// `Animation`'s current time. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentTime"), IsRequired = (true))] + [DataMember(Name = ("currentTime"), IsRequired = (true))] public double CurrentTime { get; @@ -963,7 +965,7 @@ public CefSharp.DevTools.Animation.AnimationType Type /// /// Animation type of `Animation`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -973,7 +975,7 @@ internal string type /// /// `Animation`'s source animation node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (false))] + [DataMember(Name = ("source"), IsRequired = (false))] public CefSharp.DevTools.Animation.AnimationEffect Source { get; @@ -984,7 +986,7 @@ public CefSharp.DevTools.Animation.AnimationEffect Source /// A unique ID for `Animation` representing the sources that triggered this CSS /// animation/transition. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cssId"), IsRequired = (false))] + [DataMember(Name = ("cssId"), IsRequired = (false))] public string CssId { get; @@ -1001,7 +1003,7 @@ public partial class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBas /// /// `AnimationEffect`'s delay. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("delay"), IsRequired = (true))] + [DataMember(Name = ("delay"), IsRequired = (true))] public double Delay { get; @@ -1011,7 +1013,7 @@ public double Delay /// /// `AnimationEffect`'s end delay. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endDelay"), IsRequired = (true))] + [DataMember(Name = ("endDelay"), IsRequired = (true))] public double EndDelay { get; @@ -1021,7 +1023,7 @@ public double EndDelay /// /// `AnimationEffect`'s iteration start. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("iterationStart"), IsRequired = (true))] + [DataMember(Name = ("iterationStart"), IsRequired = (true))] public double IterationStart { get; @@ -1031,7 +1033,7 @@ public double IterationStart /// /// `AnimationEffect`'s iterations. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("iterations"), IsRequired = (true))] + [DataMember(Name = ("iterations"), IsRequired = (true))] public double Iterations { get; @@ -1041,7 +1043,7 @@ public double Iterations /// /// `AnimationEffect`'s iteration duration. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("duration"), IsRequired = (true))] + [DataMember(Name = ("duration"), IsRequired = (true))] public double Duration { get; @@ -1051,7 +1053,7 @@ public double Duration /// /// `AnimationEffect`'s playback direction. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("direction"), IsRequired = (true))] + [DataMember(Name = ("direction"), IsRequired = (true))] public string Direction { get; @@ -1061,7 +1063,7 @@ public string Direction /// /// `AnimationEffect`'s fill mode. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fill"), IsRequired = (true))] + [DataMember(Name = ("fill"), IsRequired = (true))] public string Fill { get; @@ -1071,7 +1073,7 @@ public string Fill /// /// `AnimationEffect`'s target node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] + [DataMember(Name = ("backendNodeId"), IsRequired = (false))] public int? BackendNodeId { get; @@ -1081,7 +1083,7 @@ public int? BackendNodeId /// /// `AnimationEffect`'s keyframes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyframesRule"), IsRequired = (false))] + [DataMember(Name = ("keyframesRule"), IsRequired = (false))] public CefSharp.DevTools.Animation.KeyframesRule KeyframesRule { get; @@ -1091,7 +1093,7 @@ public CefSharp.DevTools.Animation.KeyframesRule KeyframesRule /// /// `AnimationEffect`'s timing function. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("easing"), IsRequired = (true))] + [DataMember(Name = ("easing"), IsRequired = (true))] public string Easing { get; @@ -1108,7 +1110,7 @@ public partial class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase /// /// CSS keyframed animation's name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] + [DataMember(Name = ("name"), IsRequired = (false))] public string Name { get; @@ -1118,7 +1120,7 @@ public string Name /// /// List of animation keyframes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyframes"), IsRequired = (true))] + [DataMember(Name = ("keyframes"), IsRequired = (true))] public System.Collections.Generic.IList Keyframes { get; @@ -1135,7 +1137,7 @@ public partial class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Keyframe's time offset. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offset"), IsRequired = (true))] + [DataMember(Name = ("offset"), IsRequired = (true))] public string Offset { get; @@ -1145,7 +1147,7 @@ public string Offset /// /// `AnimationEffect`'s timing function. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("easing"), IsRequired = (true))] + [DataMember(Name = ("easing"), IsRequired = (true))] public string Easing { get; @@ -1162,7 +1164,7 @@ public class AnimationCanceledEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the animation that was cancelled. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -1179,7 +1181,7 @@ public class AnimationCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Id of the animation that was created. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -1196,7 +1198,7 @@ public class AnimationStartedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Animation that was started. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("animation"), IsRequired = (true))] + [DataMember(Name = ("animation"), IsRequired = (true))] public CefSharp.DevTools.Animation.Animation Animation { get; @@ -1216,7 +1218,7 @@ public partial class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The following three properties uniquely identify a cookie /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -1226,7 +1228,7 @@ public string Name /// /// Path /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("path"), IsRequired = (true))] + [DataMember(Name = ("path"), IsRequired = (true))] public string Path { get; @@ -1236,7 +1238,7 @@ public string Path /// /// Domain /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("domain"), IsRequired = (true))] + [DataMember(Name = ("domain"), IsRequired = (true))] public string Domain { get; @@ -1253,7 +1255,7 @@ public partial class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBas /// /// The unique request id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -1263,7 +1265,7 @@ public string RequestId /// /// Url /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (false))] + [DataMember(Name = ("url"), IsRequired = (false))] public string Url { get; @@ -1280,7 +1282,7 @@ public partial class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// FrameId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -1296,42 +1298,42 @@ public enum CookieExclusionReason /// /// ExcludeSameSiteUnspecifiedTreatedAsLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeSameSiteUnspecifiedTreatedAsLax"))] + [EnumMember(Value = ("ExcludeSameSiteUnspecifiedTreatedAsLax"))] ExcludeSameSiteUnspecifiedTreatedAsLax, /// /// ExcludeSameSiteNoneInsecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeSameSiteNoneInsecure"))] + [EnumMember(Value = ("ExcludeSameSiteNoneInsecure"))] ExcludeSameSiteNoneInsecure, /// /// ExcludeSameSiteLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeSameSiteLax"))] + [EnumMember(Value = ("ExcludeSameSiteLax"))] ExcludeSameSiteLax, /// /// ExcludeSameSiteStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeSameSiteStrict"))] + [EnumMember(Value = ("ExcludeSameSiteStrict"))] ExcludeSameSiteStrict, /// /// ExcludeInvalidSameParty /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeInvalidSameParty"))] + [EnumMember(Value = ("ExcludeInvalidSameParty"))] ExcludeInvalidSameParty, /// /// ExcludeSamePartyCrossPartyContext /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeSamePartyCrossPartyContext"))] + [EnumMember(Value = ("ExcludeSamePartyCrossPartyContext"))] ExcludeSamePartyCrossPartyContext, /// /// ExcludeDomainNonASCII /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeDomainNonASCII"))] + [EnumMember(Value = ("ExcludeDomainNonASCII"))] ExcludeDomainNonASCII, /// /// ExcludeThirdPartyCookieBlockedInFirstPartySet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExcludeThirdPartyCookieBlockedInFirstPartySet"))] + [EnumMember(Value = ("ExcludeThirdPartyCookieBlockedInFirstPartySet"))] ExcludeThirdPartyCookieBlockedInFirstPartySet } @@ -1343,52 +1345,52 @@ public enum CookieWarningReason /// /// WarnSameSiteUnspecifiedCrossSiteContext /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteUnspecifiedCrossSiteContext"))] + [EnumMember(Value = ("WarnSameSiteUnspecifiedCrossSiteContext"))] WarnSameSiteUnspecifiedCrossSiteContext, /// /// WarnSameSiteNoneInsecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteNoneInsecure"))] + [EnumMember(Value = ("WarnSameSiteNoneInsecure"))] WarnSameSiteNoneInsecure, /// /// WarnSameSiteUnspecifiedLaxAllowUnsafe /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteUnspecifiedLaxAllowUnsafe"))] + [EnumMember(Value = ("WarnSameSiteUnspecifiedLaxAllowUnsafe"))] WarnSameSiteUnspecifiedLaxAllowUnsafe, /// /// WarnSameSiteStrictLaxDowngradeStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteStrictLaxDowngradeStrict"))] + [EnumMember(Value = ("WarnSameSiteStrictLaxDowngradeStrict"))] WarnSameSiteStrictLaxDowngradeStrict, /// /// WarnSameSiteStrictCrossDowngradeStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteStrictCrossDowngradeStrict"))] + [EnumMember(Value = ("WarnSameSiteStrictCrossDowngradeStrict"))] WarnSameSiteStrictCrossDowngradeStrict, /// /// WarnSameSiteStrictCrossDowngradeLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteStrictCrossDowngradeLax"))] + [EnumMember(Value = ("WarnSameSiteStrictCrossDowngradeLax"))] WarnSameSiteStrictCrossDowngradeLax, /// /// WarnSameSiteLaxCrossDowngradeStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteLaxCrossDowngradeStrict"))] + [EnumMember(Value = ("WarnSameSiteLaxCrossDowngradeStrict"))] WarnSameSiteLaxCrossDowngradeStrict, /// /// WarnSameSiteLaxCrossDowngradeLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnSameSiteLaxCrossDowngradeLax"))] + [EnumMember(Value = ("WarnSameSiteLaxCrossDowngradeLax"))] WarnSameSiteLaxCrossDowngradeLax, /// /// WarnAttributeValueExceedsMaxSize /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnAttributeValueExceedsMaxSize"))] + [EnumMember(Value = ("WarnAttributeValueExceedsMaxSize"))] WarnAttributeValueExceedsMaxSize, /// /// WarnDomainNonASCII /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnDomainNonASCII"))] + [EnumMember(Value = ("WarnDomainNonASCII"))] WarnDomainNonASCII } @@ -1400,12 +1402,12 @@ public enum CookieOperation /// /// SetCookie /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SetCookie"))] + [EnumMember(Value = ("SetCookie"))] SetCookie, /// /// ReadCookie /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ReadCookie"))] + [EnumMember(Value = ("ReadCookie"))] ReadCookie } @@ -1423,7 +1425,7 @@ public partial class CookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntity /// cookie line is syntactically or semantically malformed in a way /// that no valid cookie could be created. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookie"), IsRequired = (false))] + [DataMember(Name = ("cookie"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedCookie Cookie { get; @@ -1433,7 +1435,7 @@ public CefSharp.DevTools.Audits.AffectedCookie Cookie /// /// RawCookieLine /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rawCookieLine"), IsRequired = (false))] + [DataMember(Name = ("rawCookieLine"), IsRequired = (false))] public string RawCookieLine { get; @@ -1459,7 +1461,7 @@ public CefSharp.DevTools.Audits.CookieWarningReason[] CookieWarningReasons /// /// CookieWarningReasons /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookieWarningReasons"), IsRequired = (true))] + [DataMember(Name = ("cookieWarningReasons"), IsRequired = (true))] internal string cookieWarningReasons { get; @@ -1485,7 +1487,7 @@ public CefSharp.DevTools.Audits.CookieExclusionReason[] CookieExclusionReasons /// /// CookieExclusionReasons /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookieExclusionReasons"), IsRequired = (true))] + [DataMember(Name = ("cookieExclusionReasons"), IsRequired = (true))] internal string cookieExclusionReasons { get; @@ -1513,7 +1515,7 @@ public CefSharp.DevTools.Audits.CookieOperation Operation /// Optionally identifies the site-for-cookies and the cookie url, which /// may be used by the front-end as additional context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("operation"), IsRequired = (true))] + [DataMember(Name = ("operation"), IsRequired = (true))] internal string operation { get; @@ -1523,7 +1525,7 @@ internal string operation /// /// SiteForCookies /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("siteForCookies"), IsRequired = (false))] + [DataMember(Name = ("siteForCookies"), IsRequired = (false))] public string SiteForCookies { get; @@ -1533,7 +1535,7 @@ public string SiteForCookies /// /// CookieUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookieUrl"), IsRequired = (false))] + [DataMember(Name = ("cookieUrl"), IsRequired = (false))] public string CookieUrl { get; @@ -1543,7 +1545,7 @@ public string CookieUrl /// /// Request /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (false))] + [DataMember(Name = ("request"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -1559,17 +1561,17 @@ public enum MixedContentResolutionStatus /// /// MixedContentBlocked /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MixedContentBlocked"))] + [EnumMember(Value = ("MixedContentBlocked"))] MixedContentBlocked, /// /// MixedContentAutomaticallyUpgraded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MixedContentAutomaticallyUpgraded"))] + [EnumMember(Value = ("MixedContentAutomaticallyUpgraded"))] MixedContentAutomaticallyUpgraded, /// /// MixedContentWarning /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MixedContentWarning"))] + [EnumMember(Value = ("MixedContentWarning"))] MixedContentWarning } @@ -1581,137 +1583,137 @@ public enum MixedContentResourceType /// /// AttributionSrc /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionSrc"))] + [EnumMember(Value = ("AttributionSrc"))] AttributionSrc, /// /// Audio /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Audio"))] + [EnumMember(Value = ("Audio"))] Audio, /// /// Beacon /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Beacon"))] + [EnumMember(Value = ("Beacon"))] Beacon, /// /// CSPReport /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CSPReport"))] + [EnumMember(Value = ("CSPReport"))] CSPReport, /// /// Download /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Download"))] + [EnumMember(Value = ("Download"))] Download, /// /// EventSource /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventSource"))] + [EnumMember(Value = ("EventSource"))] EventSource, /// /// Favicon /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Favicon"))] + [EnumMember(Value = ("Favicon"))] Favicon, /// /// Font /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Font"))] + [EnumMember(Value = ("Font"))] Font, /// /// Form /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Form"))] + [EnumMember(Value = ("Form"))] Form, /// /// Frame /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Frame"))] + [EnumMember(Value = ("Frame"))] Frame, /// /// Image /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Image"))] + [EnumMember(Value = ("Image"))] Image, /// /// Import /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Import"))] + [EnumMember(Value = ("Import"))] Import, /// /// Manifest /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Manifest"))] + [EnumMember(Value = ("Manifest"))] Manifest, /// /// Ping /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Ping"))] + [EnumMember(Value = ("Ping"))] Ping, /// /// PluginData /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PluginData"))] + [EnumMember(Value = ("PluginData"))] PluginData, /// /// PluginResource /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PluginResource"))] + [EnumMember(Value = ("PluginResource"))] PluginResource, /// /// Prefetch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Prefetch"))] + [EnumMember(Value = ("Prefetch"))] Prefetch, /// /// Resource /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Resource"))] + [EnumMember(Value = ("Resource"))] Resource, /// /// Script /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Script"))] + [EnumMember(Value = ("Script"))] Script, /// /// ServiceWorker /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ServiceWorker"))] + [EnumMember(Value = ("ServiceWorker"))] ServiceWorker, /// /// SharedWorker /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SharedWorker"))] + [EnumMember(Value = ("SharedWorker"))] SharedWorker, /// /// Stylesheet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Stylesheet"))] + [EnumMember(Value = ("Stylesheet"))] Stylesheet, /// /// Track /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Track"))] + [EnumMember(Value = ("Track"))] Track, /// /// Video /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Video"))] + [EnumMember(Value = ("Video"))] Video, /// /// Worker /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Worker"))] + [EnumMember(Value = ("Worker"))] Worker, /// /// XMLHttpRequest /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XMLHttpRequest"))] + [EnumMember(Value = ("XMLHttpRequest"))] XMLHttpRequest, /// /// XSLT /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XSLT"))] + [EnumMember(Value = ("XSLT"))] XSLT } @@ -1746,7 +1748,7 @@ public CefSharp.DevTools.Audits.MixedContentResourceType? ResourceType /// blink::mojom::RequestContextType, which will be replaced /// by network::mojom::RequestDestination /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (false))] + [DataMember(Name = ("resourceType"), IsRequired = (false))] internal string resourceType { get; @@ -1772,7 +1774,7 @@ public CefSharp.DevTools.Audits.MixedContentResolutionStatus ResolutionStatus /// /// The way the mixed content issue is being resolved. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resolutionStatus"), IsRequired = (true))] + [DataMember(Name = ("resolutionStatus"), IsRequired = (true))] internal string resolutionStatus { get; @@ -1782,7 +1784,7 @@ internal string resolutionStatus /// /// The unsafe http url causing the mixed content issue. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("insecureURL"), IsRequired = (true))] + [DataMember(Name = ("insecureURL"), IsRequired = (true))] public string InsecureURL { get; @@ -1792,7 +1794,7 @@ public string InsecureURL /// /// The url responsible for the call to an unsafe url. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mainResourceURL"), IsRequired = (true))] + [DataMember(Name = ("mainResourceURL"), IsRequired = (true))] public string MainResourceURL { get; @@ -1803,7 +1805,7 @@ public string MainResourceURL /// The mixed content request. /// Does not always exist (e.g. for unsafe form submission urls). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (false))] + [DataMember(Name = ("request"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -1813,7 +1815,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// Optional because not every mixed content issue is necessarily linked to a frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (false))] + [DataMember(Name = ("frame"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedFrame Frame { get; @@ -1830,27 +1832,27 @@ public enum BlockedByResponseReason /// /// CoepFrameResourceNeedsCoepHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CoepFrameResourceNeedsCoepHeader"))] + [EnumMember(Value = ("CoepFrameResourceNeedsCoepHeader"))] CoepFrameResourceNeedsCoepHeader, /// /// CoopSandboxedIFrameCannotNavigateToCoopPage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CoopSandboxedIFrameCannotNavigateToCoopPage"))] + [EnumMember(Value = ("CoopSandboxedIFrameCannotNavigateToCoopPage"))] CoopSandboxedIFrameCannotNavigateToCoopPage, /// /// CorpNotSameOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CorpNotSameOrigin"))] + [EnumMember(Value = ("CorpNotSameOrigin"))] CorpNotSameOrigin, /// /// CorpNotSameOriginAfterDefaultedToSameOriginByCoep /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CorpNotSameOriginAfterDefaultedToSameOriginByCoep"))] + [EnumMember(Value = ("CorpNotSameOriginAfterDefaultedToSameOriginByCoep"))] CorpNotSameOriginAfterDefaultedToSameOriginByCoep, /// /// CorpNotSameSite /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CorpNotSameSite"))] + [EnumMember(Value = ("CorpNotSameSite"))] CorpNotSameSite } @@ -1865,7 +1867,7 @@ public partial class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsD /// /// Request /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + [DataMember(Name = ("request"), IsRequired = (true))] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -1875,7 +1877,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// ParentFrame /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentFrame"), IsRequired = (false))] + [DataMember(Name = ("parentFrame"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedFrame ParentFrame { get; @@ -1885,7 +1887,7 @@ public CefSharp.DevTools.Audits.AffectedFrame ParentFrame /// /// BlockedFrame /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedFrame"), IsRequired = (false))] + [DataMember(Name = ("blockedFrame"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedFrame BlockedFrame { get; @@ -1911,7 +1913,7 @@ public CefSharp.DevTools.Audits.BlockedByResponseReason Reason /// /// Reason /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] internal string reason { get; @@ -1927,12 +1929,12 @@ public enum HeavyAdResolutionStatus /// /// HeavyAdBlocked /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HeavyAdBlocked"))] + [EnumMember(Value = ("HeavyAdBlocked"))] HeavyAdBlocked, /// /// HeavyAdWarning /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HeavyAdWarning"))] + [EnumMember(Value = ("HeavyAdWarning"))] HeavyAdWarning } @@ -1944,17 +1946,17 @@ public enum HeavyAdReason /// /// NetworkTotalLimit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NetworkTotalLimit"))] + [EnumMember(Value = ("NetworkTotalLimit"))] NetworkTotalLimit, /// /// CpuTotalLimit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CpuTotalLimit"))] + [EnumMember(Value = ("CpuTotalLimit"))] CpuTotalLimit, /// /// CpuPeakLimit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CpuPeakLimit"))] + [EnumMember(Value = ("CpuPeakLimit"))] CpuPeakLimit } @@ -1983,7 +1985,7 @@ public CefSharp.DevTools.Audits.HeavyAdResolutionStatus Resolution /// /// The resolution status, either blocking the content or warning. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resolution"), IsRequired = (true))] + [DataMember(Name = ("resolution"), IsRequired = (true))] internal string resolution { get; @@ -2009,7 +2011,7 @@ public CefSharp.DevTools.Audits.HeavyAdReason Reason /// /// The reason the ad was blocked, total network or cpu or peak cpu. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] internal string reason { get; @@ -2019,7 +2021,7 @@ internal string reason /// /// The frame that was blocked. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (true))] + [DataMember(Name = ("frame"), IsRequired = (true))] public CefSharp.DevTools.Audits.AffectedFrame Frame { get; @@ -2035,32 +2037,32 @@ public enum ContentSecurityPolicyViolationType /// /// kInlineViolation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kInlineViolation"))] + [EnumMember(Value = ("kInlineViolation"))] KInlineViolation, /// /// kEvalViolation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kEvalViolation"))] + [EnumMember(Value = ("kEvalViolation"))] KEvalViolation, /// /// kURLViolation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kURLViolation"))] + [EnumMember(Value = ("kURLViolation"))] KURLViolation, /// /// kTrustedTypesSinkViolation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kTrustedTypesSinkViolation"))] + [EnumMember(Value = ("kTrustedTypesSinkViolation"))] KTrustedTypesSinkViolation, /// /// kTrustedTypesPolicyViolation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kTrustedTypesPolicyViolation"))] + [EnumMember(Value = ("kTrustedTypesPolicyViolation"))] KTrustedTypesPolicyViolation, /// /// kWasmEvalViolation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kWasmEvalViolation"))] + [EnumMember(Value = ("kWasmEvalViolation"))] KWasmEvalViolation } @@ -2073,7 +2075,7 @@ public partial class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntity /// /// ScriptId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (false))] + [DataMember(Name = ("scriptId"), IsRequired = (false))] public string ScriptId { get; @@ -2083,7 +2085,7 @@ public string ScriptId /// /// Url /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -2093,7 +2095,7 @@ public string Url /// /// LineNumber /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -2103,7 +2105,7 @@ public int LineNumber /// /// ColumnNumber /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (true))] + [DataMember(Name = ("columnNumber"), IsRequired = (true))] public int ColumnNumber { get; @@ -2120,7 +2122,7 @@ public partial class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevTo /// /// The url not included in allowed sources. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedURL"), IsRequired = (false))] + [DataMember(Name = ("blockedURL"), IsRequired = (false))] public string BlockedURL { get; @@ -2130,7 +2132,7 @@ public string BlockedURL /// /// Specific directive that is violated, causing the CSP issue. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violatedDirective"), IsRequired = (true))] + [DataMember(Name = ("violatedDirective"), IsRequired = (true))] public string ViolatedDirective { get; @@ -2140,7 +2142,7 @@ public string ViolatedDirective /// /// IsReportOnly /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isReportOnly"), IsRequired = (true))] + [DataMember(Name = ("isReportOnly"), IsRequired = (true))] public bool IsReportOnly { get; @@ -2166,7 +2168,7 @@ public CefSharp.DevTools.Audits.ContentSecurityPolicyViolationType ContentSecuri /// /// ContentSecurityPolicyViolationType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentSecurityPolicyViolationType"), IsRequired = (true))] + [DataMember(Name = ("contentSecurityPolicyViolationType"), IsRequired = (true))] internal string contentSecurityPolicyViolationType { get; @@ -2176,7 +2178,7 @@ internal string contentSecurityPolicyViolationType /// /// FrameAncestor /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameAncestor"), IsRequired = (false))] + [DataMember(Name = ("frameAncestor"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedFrame FrameAncestor { get; @@ -2186,7 +2188,7 @@ public CefSharp.DevTools.Audits.AffectedFrame FrameAncestor /// /// SourceCodeLocation /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceCodeLocation"), IsRequired = (false))] + [DataMember(Name = ("sourceCodeLocation"), IsRequired = (false))] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; @@ -2196,7 +2198,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation /// /// ViolatingNodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violatingNodeId"), IsRequired = (false))] + [DataMember(Name = ("violatingNodeId"), IsRequired = (false))] public int? ViolatingNodeId { get; @@ -2212,12 +2214,12 @@ public enum SharedArrayBufferIssueType /// /// TransferIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TransferIssue"))] + [EnumMember(Value = ("TransferIssue"))] TransferIssue, /// /// CreationIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CreationIssue"))] + [EnumMember(Value = ("CreationIssue"))] CreationIssue } @@ -2231,7 +2233,7 @@ public partial class SharedArrayBufferIssueDetails : CefSharp.DevTools.DevToolsD /// /// SourceCodeLocation /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceCodeLocation"), IsRequired = (true))] + [DataMember(Name = ("sourceCodeLocation"), IsRequired = (true))] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; @@ -2241,7 +2243,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation /// /// IsWarning /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isWarning"), IsRequired = (true))] + [DataMember(Name = ("isWarning"), IsRequired = (true))] public bool IsWarning { get; @@ -2267,7 +2269,7 @@ public CefSharp.DevTools.Audits.SharedArrayBufferIssueType Type /// /// Type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -2283,17 +2285,17 @@ public enum TwaQualityEnforcementViolationType /// /// kHttpError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kHttpError"))] + [EnumMember(Value = ("kHttpError"))] KHttpError, /// /// kUnavailableOffline /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kUnavailableOffline"))] + [EnumMember(Value = ("kUnavailableOffline"))] KUnavailableOffline, /// /// kDigitalAssetLinks /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("kDigitalAssetLinks"))] + [EnumMember(Value = ("kDigitalAssetLinks"))] KDigitalAssetLinks } @@ -2306,7 +2308,7 @@ public partial class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevTools /// /// The url that triggers the violation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -2332,7 +2334,7 @@ public CefSharp.DevTools.Audits.TwaQualityEnforcementViolationType ViolationType /// /// ViolationType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violationType"), IsRequired = (true))] + [DataMember(Name = ("violationType"), IsRequired = (true))] internal string violationType { get; @@ -2342,7 +2344,7 @@ internal string violationType /// /// HttpStatusCode /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("httpStatusCode"), IsRequired = (false))] + [DataMember(Name = ("httpStatusCode"), IsRequired = (false))] public int? HttpStatusCode { get; @@ -2353,7 +2355,7 @@ public int? HttpStatusCode /// The package name of the Trusted Web Activity client app. This field is /// only used when violation type is kDigitalAssetLinks. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("packageName"), IsRequired = (false))] + [DataMember(Name = ("packageName"), IsRequired = (false))] public string PackageName { get; @@ -2364,7 +2366,7 @@ public string PackageName /// The signature of the Trusted Web Activity client app. This field is only /// used when violation type is kDigitalAssetLinks. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("signature"), IsRequired = (false))] + [DataMember(Name = ("signature"), IsRequired = (false))] public string Signature { get; @@ -2381,7 +2383,7 @@ public partial class LowTextContrastIssueDetails : CefSharp.DevTools.DevToolsDom /// /// ViolatingNodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violatingNodeId"), IsRequired = (true))] + [DataMember(Name = ("violatingNodeId"), IsRequired = (true))] public int ViolatingNodeId { get; @@ -2391,7 +2393,7 @@ public int ViolatingNodeId /// /// ViolatingNodeSelector /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violatingNodeSelector"), IsRequired = (true))] + [DataMember(Name = ("violatingNodeSelector"), IsRequired = (true))] public string ViolatingNodeSelector { get; @@ -2401,7 +2403,7 @@ public string ViolatingNodeSelector /// /// ContrastRatio /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contrastRatio"), IsRequired = (true))] + [DataMember(Name = ("contrastRatio"), IsRequired = (true))] public double ContrastRatio { get; @@ -2411,7 +2413,7 @@ public double ContrastRatio /// /// ThresholdAA /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("thresholdAA"), IsRequired = (true))] + [DataMember(Name = ("thresholdAA"), IsRequired = (true))] public double ThresholdAA { get; @@ -2421,7 +2423,7 @@ public double ThresholdAA /// /// ThresholdAAA /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("thresholdAAA"), IsRequired = (true))] + [DataMember(Name = ("thresholdAAA"), IsRequired = (true))] public double ThresholdAAA { get; @@ -2431,7 +2433,7 @@ public double ThresholdAAA /// /// FontSize /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontSize"), IsRequired = (true))] + [DataMember(Name = ("fontSize"), IsRequired = (true))] public string FontSize { get; @@ -2441,7 +2443,7 @@ public string FontSize /// /// FontWeight /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontWeight"), IsRequired = (true))] + [DataMember(Name = ("fontWeight"), IsRequired = (true))] public string FontWeight { get; @@ -2459,7 +2461,7 @@ public partial class CorsIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBa /// /// CorsErrorStatus /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("corsErrorStatus"), IsRequired = (true))] + [DataMember(Name = ("corsErrorStatus"), IsRequired = (true))] public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus { get; @@ -2469,7 +2471,7 @@ public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus /// /// IsWarning /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isWarning"), IsRequired = (true))] + [DataMember(Name = ("isWarning"), IsRequired = (true))] public bool IsWarning { get; @@ -2479,7 +2481,7 @@ public bool IsWarning /// /// Request /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + [DataMember(Name = ("request"), IsRequired = (true))] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -2489,7 +2491,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// Location /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (false))] + [DataMember(Name = ("location"), IsRequired = (false))] public CefSharp.DevTools.Audits.SourceCodeLocation Location { get; @@ -2499,7 +2501,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation Location /// /// InitiatorOrigin /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiatorOrigin"), IsRequired = (false))] + [DataMember(Name = ("initiatorOrigin"), IsRequired = (false))] public string InitiatorOrigin { get; @@ -2525,7 +2527,7 @@ public CefSharp.DevTools.Network.IPAddressSpace? ResourceIPAddressSpace /// /// ResourceIPAddressSpace /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceIPAddressSpace"), IsRequired = (false))] + [DataMember(Name = ("resourceIPAddressSpace"), IsRequired = (false))] internal string resourceIPAddressSpace { get; @@ -2535,7 +2537,7 @@ internal string resourceIPAddressSpace /// /// ClientSecurityState /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientSecurityState"), IsRequired = (false))] + [DataMember(Name = ("clientSecurityState"), IsRequired = (false))] public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState { get; @@ -2551,57 +2553,57 @@ public enum AttributionReportingIssueType /// /// PermissionPolicyDisabled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PermissionPolicyDisabled"))] + [EnumMember(Value = ("PermissionPolicyDisabled"))] PermissionPolicyDisabled, /// /// PermissionPolicyNotDelegated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PermissionPolicyNotDelegated"))] + [EnumMember(Value = ("PermissionPolicyNotDelegated"))] PermissionPolicyNotDelegated, /// /// UntrustworthyReportingOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UntrustworthyReportingOrigin"))] + [EnumMember(Value = ("UntrustworthyReportingOrigin"))] UntrustworthyReportingOrigin, /// /// InsecureContext /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecureContext"))] + [EnumMember(Value = ("InsecureContext"))] InsecureContext, /// /// InvalidHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidHeader"))] + [EnumMember(Value = ("InvalidHeader"))] InvalidHeader, /// /// InvalidRegisterTriggerHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidRegisterTriggerHeader"))] + [EnumMember(Value = ("InvalidRegisterTriggerHeader"))] InvalidRegisterTriggerHeader, /// /// InvalidEligibleHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidEligibleHeader"))] + [EnumMember(Value = ("InvalidEligibleHeader"))] InvalidEligibleHeader, /// /// TooManyConcurrentRequests /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TooManyConcurrentRequests"))] + [EnumMember(Value = ("TooManyConcurrentRequests"))] TooManyConcurrentRequests, /// /// SourceAndTriggerHeaders /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SourceAndTriggerHeaders"))] + [EnumMember(Value = ("SourceAndTriggerHeaders"))] SourceAndTriggerHeaders, /// /// SourceIgnored /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SourceIgnored"))] + [EnumMember(Value = ("SourceIgnored"))] SourceIgnored, /// /// TriggerIgnored /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TriggerIgnored"))] + [EnumMember(Value = ("TriggerIgnored"))] TriggerIgnored } @@ -2631,7 +2633,7 @@ public CefSharp.DevTools.Audits.AttributionReportingIssueType ViolationType /// /// ViolationType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violationType"), IsRequired = (true))] + [DataMember(Name = ("violationType"), IsRequired = (true))] internal string violationType { get; @@ -2641,7 +2643,7 @@ internal string violationType /// /// Request /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (false))] + [DataMember(Name = ("request"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -2651,7 +2653,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// ViolatingNodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violatingNodeId"), IsRequired = (false))] + [DataMember(Name = ("violatingNodeId"), IsRequired = (false))] public int? ViolatingNodeId { get; @@ -2661,7 +2663,7 @@ public int? ViolatingNodeId /// /// InvalidParameter /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("invalidParameter"), IsRequired = (false))] + [DataMember(Name = ("invalidParameter"), IsRequired = (false))] public string InvalidParameter { get; @@ -2680,7 +2682,7 @@ public partial class QuirksModeIssueDetails : CefSharp.DevTools.DevToolsDomainEn /// If false, it means the document's mode is "quirks" /// instead of "limited-quirks". ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isLimitedQuirksMode"), IsRequired = (true))] + [DataMember(Name = ("isLimitedQuirksMode"), IsRequired = (true))] public bool IsLimitedQuirksMode { get; @@ -2690,7 +2692,7 @@ public bool IsLimitedQuirksMode /// /// DocumentNodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentNodeId"), IsRequired = (true))] + [DataMember(Name = ("documentNodeId"), IsRequired = (true))] public int DocumentNodeId { get; @@ -2700,7 +2702,7 @@ public int DocumentNodeId /// /// Url /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -2710,7 +2712,7 @@ public string Url /// /// FrameId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -2720,7 +2722,7 @@ public string FrameId /// /// LoaderId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + [DataMember(Name = ("loaderId"), IsRequired = (true))] public string LoaderId { get; @@ -2737,7 +2739,7 @@ public partial class NavigatorUserAgentIssueDetails : CefSharp.DevTools.DevTools /// /// Url /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -2747,7 +2749,7 @@ public string Url /// /// Location /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (false))] + [DataMember(Name = ("location"), IsRequired = (false))] public CefSharp.DevTools.Audits.SourceCodeLocation Location { get; @@ -2763,33 +2765,58 @@ public enum GenericIssueErrorType /// /// CrossOriginPortalPostMessageError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginPortalPostMessageError"))] + [EnumMember(Value = ("CrossOriginPortalPostMessageError"))] CrossOriginPortalPostMessageError, /// /// FormLabelForNameError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormLabelForNameError"))] + [EnumMember(Value = ("FormLabelForNameError"))] FormLabelForNameError, /// /// FormDuplicateIdForInputError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormDuplicateIdForInputError"))] + [EnumMember(Value = ("FormDuplicateIdForInputError"))] FormDuplicateIdForInputError, /// /// FormInputWithNoLabelError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormInputWithNoLabelError"))] + [EnumMember(Value = ("FormInputWithNoLabelError"))] FormInputWithNoLabelError, /// /// FormAutocompleteAttributeEmptyError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormAutocompleteAttributeEmptyError"))] + [EnumMember(Value = ("FormAutocompleteAttributeEmptyError"))] FormAutocompleteAttributeEmptyError, /// /// FormEmptyIdAndNameAttributesForInputError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FormEmptyIdAndNameAttributesForInputError"))] - FormEmptyIdAndNameAttributesForInputError + [EnumMember(Value = ("FormEmptyIdAndNameAttributesForInputError"))] + FormEmptyIdAndNameAttributesForInputError, + /// + /// FormAriaLabelledByToNonExistingId + /// + [EnumMember(Value = ("FormAriaLabelledByToNonExistingId"))] + FormAriaLabelledByToNonExistingId, + /// + /// FormInputAssignedAutocompleteValueToIdOrNameAttributeError + /// + [EnumMember(Value = ("FormInputAssignedAutocompleteValueToIdOrNameAttributeError"))] + FormInputAssignedAutocompleteValueToIdOrNameAttributeError, + /// + /// FormLabelHasNeitherForNorNestedInput + /// + [EnumMember(Value = ("FormLabelHasNeitherForNorNestedInput"))] + FormLabelHasNeitherForNorNestedInput, + /// + /// FormLabelForMatchesNonExistingIdError + /// + [EnumMember(Value = ("FormLabelForMatchesNonExistingIdError"))] + FormLabelForMatchesNonExistingIdError, + /// + /// FormHasPasswordFieldWithoutUsernameFieldError + /// + [EnumMember(Value = ("FormHasPasswordFieldWithoutUsernameFieldError"))] + FormHasPasswordFieldWithoutUsernameFieldError } /// @@ -2817,7 +2844,7 @@ public CefSharp.DevTools.Audits.GenericIssueErrorType ErrorType /// /// Issues with the same errorType are aggregated in the frontend. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorType"), IsRequired = (true))] + [DataMember(Name = ("errorType"), IsRequired = (true))] internal string errorType { get; @@ -2827,7 +2854,7 @@ internal string errorType /// /// FrameId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + [DataMember(Name = ("frameId"), IsRequired = (false))] public string FrameId { get; @@ -2837,7 +2864,7 @@ public string FrameId /// /// ViolatingNodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("violatingNodeId"), IsRequired = (false))] + [DataMember(Name = ("violatingNodeId"), IsRequired = (false))] public int? ViolatingNodeId { get; @@ -2845,298 +2872,6 @@ public int? ViolatingNodeId } } - /// - /// DeprecationIssueType - /// - public enum DeprecationIssueType - { - /// - /// AuthorizationCoveredByWildcard - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AuthorizationCoveredByWildcard"))] - AuthorizationCoveredByWildcard, - /// - /// CanRequestURLHTTPContainingNewline - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CanRequestURLHTTPContainingNewline"))] - CanRequestURLHTTPContainingNewline, - /// - /// ChromeLoadTimesConnectionInfo - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ChromeLoadTimesConnectionInfo"))] - ChromeLoadTimesConnectionInfo, - /// - /// ChromeLoadTimesFirstPaintAfterLoadTime - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ChromeLoadTimesFirstPaintAfterLoadTime"))] - ChromeLoadTimesFirstPaintAfterLoadTime, - /// - /// ChromeLoadTimesWasAlternateProtocolAvailable - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ChromeLoadTimesWasAlternateProtocolAvailable"))] - ChromeLoadTimesWasAlternateProtocolAvailable, - /// - /// CookieWithTruncatingChar - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CookieWithTruncatingChar"))] - CookieWithTruncatingChar, - /// - /// CrossOriginAccessBasedOnDocumentDomain - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginAccessBasedOnDocumentDomain"))] - CrossOriginAccessBasedOnDocumentDomain, - /// - /// CrossOriginWindowAlert - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginWindowAlert"))] - CrossOriginWindowAlert, - /// - /// CrossOriginWindowConfirm - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossOriginWindowConfirm"))] - CrossOriginWindowConfirm, - /// - /// CSSSelectorInternalMediaControlsOverlayCastButton - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CSSSelectorInternalMediaControlsOverlayCastButton"))] - CSSSelectorInternalMediaControlsOverlayCastButton, - /// - /// DeprecationExample - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DeprecationExample"))] - DeprecationExample, - /// - /// DocumentDomainSettingWithoutOriginAgentClusterHeader - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DocumentDomainSettingWithoutOriginAgentClusterHeader"))] - DocumentDomainSettingWithoutOriginAgentClusterHeader, - /// - /// EventPath - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventPath"))] - EventPath, - /// - /// ExpectCTHeader - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExpectCTHeader"))] - ExpectCTHeader, - /// - /// GeolocationInsecureOrigin - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GeolocationInsecureOrigin"))] - GeolocationInsecureOrigin, - /// - /// GeolocationInsecureOriginDeprecatedNotRemoved - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GeolocationInsecureOriginDeprecatedNotRemoved"))] - GeolocationInsecureOriginDeprecatedNotRemoved, - /// - /// GetUserMediaInsecureOrigin - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GetUserMediaInsecureOrigin"))] - GetUserMediaInsecureOrigin, - /// - /// HostCandidateAttributeGetter - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HostCandidateAttributeGetter"))] - HostCandidateAttributeGetter, - /// - /// IdentityInCanMakePaymentEvent - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdentityInCanMakePaymentEvent"))] - IdentityInCanMakePaymentEvent, - /// - /// InsecurePrivateNetworkSubresourceRequest - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecurePrivateNetworkSubresourceRequest"))] - InsecurePrivateNetworkSubresourceRequest, - /// - /// LocalCSSFileExtensionRejected - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LocalCSSFileExtensionRejected"))] - LocalCSSFileExtensionRejected, - /// - /// MediaSourceAbortRemove - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaSourceAbortRemove"))] - MediaSourceAbortRemove, - /// - /// MediaSourceDurationTruncatingBuffered - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MediaSourceDurationTruncatingBuffered"))] - MediaSourceDurationTruncatingBuffered, - /// - /// NoSysexWebMIDIWithoutPermission - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoSysexWebMIDIWithoutPermission"))] - NoSysexWebMIDIWithoutPermission, - /// - /// NotificationInsecureOrigin - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotificationInsecureOrigin"))] - NotificationInsecureOrigin, - /// - /// NotificationPermissionRequestedIframe - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotificationPermissionRequestedIframe"))] - NotificationPermissionRequestedIframe, - /// - /// ObsoleteCreateImageBitmapImageOrientationNone - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ObsoleteCreateImageBitmapImageOrientationNone"))] - ObsoleteCreateImageBitmapImageOrientationNone, - /// - /// ObsoleteWebRtcCipherSuite - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ObsoleteWebRtcCipherSuite"))] - ObsoleteWebRtcCipherSuite, - /// - /// OpenWebDatabaseInsecureContext - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OpenWebDatabaseInsecureContext"))] - OpenWebDatabaseInsecureContext, - /// - /// OverflowVisibleOnReplacedElement - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OverflowVisibleOnReplacedElement"))] - OverflowVisibleOnReplacedElement, - /// - /// PaymentInstruments - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PaymentInstruments"))] - PaymentInstruments, - /// - /// PaymentRequestCSPViolation - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PaymentRequestCSPViolation"))] - PaymentRequestCSPViolation, - /// - /// PersistentQuotaType - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PersistentQuotaType"))] - PersistentQuotaType, - /// - /// PictureSourceSrc - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PictureSourceSrc"))] - PictureSourceSrc, - /// - /// PrefixedCancelAnimationFrame - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedCancelAnimationFrame"))] - PrefixedCancelAnimationFrame, - /// - /// PrefixedRequestAnimationFrame - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedRequestAnimationFrame"))] - PrefixedRequestAnimationFrame, - /// - /// PrefixedStorageInfo - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedStorageInfo"))] - PrefixedStorageInfo, - /// - /// PrefixedVideoDisplayingFullscreen - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoDisplayingFullscreen"))] - PrefixedVideoDisplayingFullscreen, - /// - /// PrefixedVideoEnterFullscreen - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoEnterFullscreen"))] - PrefixedVideoEnterFullscreen, - /// - /// PrefixedVideoEnterFullScreen - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoEnterFullScreen"))] - PrefixedVideoEnterFullScreen, - /// - /// PrefixedVideoExitFullscreen - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoExitFullscreen"))] - PrefixedVideoExitFullscreen, - /// - /// PrefixedVideoExitFullScreen - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoExitFullScreen"))] - PrefixedVideoExitFullScreen, - /// - /// PrefixedVideoSupportsFullscreen - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrefixedVideoSupportsFullscreen"))] - PrefixedVideoSupportsFullscreen, - /// - /// PrivacySandboxExtensionsAPI - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrivacySandboxExtensionsAPI"))] - PrivacySandboxExtensionsAPI, - /// - /// RangeExpand - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RangeExpand"))] - RangeExpand, - /// - /// RequestedSubresourceWithEmbeddedCredentials - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedSubresourceWithEmbeddedCredentials"))] - RequestedSubresourceWithEmbeddedCredentials, - /// - /// RTCConstraintEnableDtlsSrtpFalse - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCConstraintEnableDtlsSrtpFalse"))] - RTCConstraintEnableDtlsSrtpFalse, - /// - /// RTCConstraintEnableDtlsSrtpTrue - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCConstraintEnableDtlsSrtpTrue"))] - RTCConstraintEnableDtlsSrtpTrue, - /// - /// RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics"))] - RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics, - /// - /// RTCPeerConnectionSdpSemanticsPlanB - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RTCPeerConnectionSdpSemanticsPlanB"))] - RTCPeerConnectionSdpSemanticsPlanB, - /// - /// RtcpMuxPolicyNegotiate - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RtcpMuxPolicyNegotiate"))] - RtcpMuxPolicyNegotiate, - /// - /// SharedArrayBufferConstructedWithoutIsolation - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SharedArrayBufferConstructedWithoutIsolation"))] - SharedArrayBufferConstructedWithoutIsolation, - /// - /// TextToSpeech_DisallowedByAutoplay - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TextToSpeech_DisallowedByAutoplay"))] - TextToSpeechDisallowedByAutoplay, - /// - /// V8SharedArrayBufferConstructedInExtensionWithoutIsolation - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("V8SharedArrayBufferConstructedInExtensionWithoutIsolation"))] - V8SharedArrayBufferConstructedInExtensionWithoutIsolation, - /// - /// XHRJSONEncodingDetection - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XHRJSONEncodingDetection"))] - XHRJSONEncodingDetection, - /// - /// XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload"))] - XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload, - /// - /// XRSupportsSession - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XRSupportsSession"))] - XRSupportsSession - } - /// /// This issue tracks information needed to print a deprecation message. /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md @@ -3147,7 +2882,7 @@ public partial class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainE /// /// AffectedFrame /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("affectedFrame"), IsRequired = (false))] + [DataMember(Name = ("affectedFrame"), IsRequired = (false))] public CefSharp.DevTools.Audits.AffectedFrame AffectedFrame { get; @@ -3157,7 +2892,7 @@ public CefSharp.DevTools.Audits.AffectedFrame AffectedFrame /// /// SourceCodeLocation /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceCodeLocation"), IsRequired = (true))] + [DataMember(Name = ("sourceCodeLocation"), IsRequired = (true))] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; @@ -3165,26 +2900,10 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation } /// - /// Type + /// One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5 /// - public CefSharp.DevTools.Audits.DeprecationIssueType Type - { - get - { - return (CefSharp.DevTools.Audits.DeprecationIssueType)(StringToEnum(typeof(CefSharp.DevTools.Audits.DeprecationIssueType), type)); - } - - set - { - this.type = (EnumToString(value)); - } - } - - /// - /// Type - /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] - internal string type + [DataMember(Name = ("type"), IsRequired = (true))] + public string Type { get; set; @@ -3199,12 +2918,12 @@ public enum ClientHintIssueReason /// /// MetaTagAllowListInvalidOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MetaTagAllowListInvalidOrigin"))] + [EnumMember(Value = ("MetaTagAllowListInvalidOrigin"))] MetaTagAllowListInvalidOrigin, /// /// MetaTagModifiedHTML /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MetaTagModifiedHTML"))] + [EnumMember(Value = ("MetaTagModifiedHTML"))] MetaTagModifiedHTML } @@ -3233,7 +2952,7 @@ public CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason FederatedAuthReq /// /// FederatedAuthRequestIssueReason /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("federatedAuthRequestIssueReason"), IsRequired = (true))] + [DataMember(Name = ("federatedAuthRequestIssueReason"), IsRequired = (true))] internal string federatedAuthRequestIssueReason { get; @@ -3252,142 +2971,142 @@ public enum FederatedAuthRequestIssueReason /// /// ShouldEmbargo /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ShouldEmbargo"))] + [EnumMember(Value = ("ShouldEmbargo"))] ShouldEmbargo, /// /// TooManyRequests /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TooManyRequests"))] + [EnumMember(Value = ("TooManyRequests"))] TooManyRequests, /// /// WellKnownHttpNotFound /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownHttpNotFound"))] + [EnumMember(Value = ("WellKnownHttpNotFound"))] WellKnownHttpNotFound, /// /// WellKnownNoResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownNoResponse"))] + [EnumMember(Value = ("WellKnownNoResponse"))] WellKnownNoResponse, /// /// WellKnownInvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownInvalidResponse"))] + [EnumMember(Value = ("WellKnownInvalidResponse"))] WellKnownInvalidResponse, /// /// WellKnownListEmpty /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownListEmpty"))] + [EnumMember(Value = ("WellKnownListEmpty"))] WellKnownListEmpty, /// /// ConfigNotInWellKnown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigNotInWellKnown"))] + [EnumMember(Value = ("ConfigNotInWellKnown"))] ConfigNotInWellKnown, /// /// WellKnownTooBig /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WellKnownTooBig"))] + [EnumMember(Value = ("WellKnownTooBig"))] WellKnownTooBig, /// /// ConfigHttpNotFound /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigHttpNotFound"))] + [EnumMember(Value = ("ConfigHttpNotFound"))] ConfigHttpNotFound, /// /// ConfigNoResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigNoResponse"))] + [EnumMember(Value = ("ConfigNoResponse"))] ConfigNoResponse, /// /// ConfigInvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConfigInvalidResponse"))] + [EnumMember(Value = ("ConfigInvalidResponse"))] ConfigInvalidResponse, /// /// ClientMetadataHttpNotFound /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataHttpNotFound"))] + [EnumMember(Value = ("ClientMetadataHttpNotFound"))] ClientMetadataHttpNotFound, /// /// ClientMetadataNoResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataNoResponse"))] + [EnumMember(Value = ("ClientMetadataNoResponse"))] ClientMetadataNoResponse, /// /// ClientMetadataInvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientMetadataInvalidResponse"))] + [EnumMember(Value = ("ClientMetadataInvalidResponse"))] ClientMetadataInvalidResponse, /// /// DisabledInSettings /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DisabledInSettings"))] + [EnumMember(Value = ("DisabledInSettings"))] DisabledInSettings, /// /// ErrorFetchingSignin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ErrorFetchingSignin"))] + [EnumMember(Value = ("ErrorFetchingSignin"))] ErrorFetchingSignin, /// /// InvalidSigninResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSigninResponse"))] + [EnumMember(Value = ("InvalidSigninResponse"))] InvalidSigninResponse, /// /// AccountsHttpNotFound /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsHttpNotFound"))] + [EnumMember(Value = ("AccountsHttpNotFound"))] AccountsHttpNotFound, /// /// AccountsNoResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsNoResponse"))] + [EnumMember(Value = ("AccountsNoResponse"))] AccountsNoResponse, /// /// AccountsInvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsInvalidResponse"))] + [EnumMember(Value = ("AccountsInvalidResponse"))] AccountsInvalidResponse, /// /// AccountsListEmpty /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccountsListEmpty"))] + [EnumMember(Value = ("AccountsListEmpty"))] AccountsListEmpty, /// /// IdTokenHttpNotFound /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenHttpNotFound"))] + [EnumMember(Value = ("IdTokenHttpNotFound"))] IdTokenHttpNotFound, /// /// IdTokenNoResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenNoResponse"))] + [EnumMember(Value = ("IdTokenNoResponse"))] IdTokenNoResponse, /// /// IdTokenInvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenInvalidResponse"))] + [EnumMember(Value = ("IdTokenInvalidResponse"))] IdTokenInvalidResponse, /// /// IdTokenInvalidRequest /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdTokenInvalidRequest"))] + [EnumMember(Value = ("IdTokenInvalidRequest"))] IdTokenInvalidRequest, /// /// ErrorIdToken /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ErrorIdToken"))] + [EnumMember(Value = ("ErrorIdToken"))] ErrorIdToken, /// /// Canceled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Canceled"))] + [EnumMember(Value = ("Canceled"))] Canceled, /// /// RpPageNotVisible /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RpPageNotVisible"))] + [EnumMember(Value = ("RpPageNotVisible"))] RpPageNotVisible } @@ -3401,7 +3120,7 @@ public partial class ClientHintIssueDetails : CefSharp.DevTools.DevToolsDomainEn /// /// SourceCodeLocation /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceCodeLocation"), IsRequired = (true))] + [DataMember(Name = ("sourceCodeLocation"), IsRequired = (true))] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; @@ -3427,7 +3146,7 @@ public CefSharp.DevTools.Audits.ClientHintIssueReason ClientHintIssueReason /// /// ClientHintIssueReason /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientHintIssueReason"), IsRequired = (true))] + [DataMember(Name = ("clientHintIssueReason"), IsRequired = (true))] internal string clientHintIssueReason { get; @@ -3445,82 +3164,82 @@ public enum InspectorIssueCode /// /// CookieIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CookieIssue"))] + [EnumMember(Value = ("CookieIssue"))] CookieIssue, /// /// MixedContentIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MixedContentIssue"))] + [EnumMember(Value = ("MixedContentIssue"))] MixedContentIssue, /// /// BlockedByResponseIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BlockedByResponseIssue"))] + [EnumMember(Value = ("BlockedByResponseIssue"))] BlockedByResponseIssue, /// /// HeavyAdIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HeavyAdIssue"))] + [EnumMember(Value = ("HeavyAdIssue"))] HeavyAdIssue, /// /// ContentSecurityPolicyIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentSecurityPolicyIssue"))] + [EnumMember(Value = ("ContentSecurityPolicyIssue"))] ContentSecurityPolicyIssue, /// /// SharedArrayBufferIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SharedArrayBufferIssue"))] + [EnumMember(Value = ("SharedArrayBufferIssue"))] SharedArrayBufferIssue, /// /// TrustedWebActivityIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TrustedWebActivityIssue"))] + [EnumMember(Value = ("TrustedWebActivityIssue"))] TrustedWebActivityIssue, /// /// LowTextContrastIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LowTextContrastIssue"))] + [EnumMember(Value = ("LowTextContrastIssue"))] LowTextContrastIssue, /// /// CorsIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CorsIssue"))] + [EnumMember(Value = ("CorsIssue"))] CorsIssue, /// /// AttributionReportingIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AttributionReportingIssue"))] + [EnumMember(Value = ("AttributionReportingIssue"))] AttributionReportingIssue, /// /// QuirksModeIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("QuirksModeIssue"))] + [EnumMember(Value = ("QuirksModeIssue"))] QuirksModeIssue, /// /// NavigatorUserAgentIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigatorUserAgentIssue"))] + [EnumMember(Value = ("NavigatorUserAgentIssue"))] NavigatorUserAgentIssue, /// /// GenericIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("GenericIssue"))] + [EnumMember(Value = ("GenericIssue"))] GenericIssue, /// /// DeprecationIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DeprecationIssue"))] + [EnumMember(Value = ("DeprecationIssue"))] DeprecationIssue, /// /// ClientHintIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientHintIssue"))] + [EnumMember(Value = ("ClientHintIssue"))] ClientHintIssue, /// /// FederatedAuthRequestIssue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FederatedAuthRequestIssue"))] + [EnumMember(Value = ("FederatedAuthRequestIssue"))] FederatedAuthRequestIssue } @@ -3535,7 +3254,7 @@ public partial class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEnt /// /// CookieIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookieIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("cookieIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.CookieIssueDetails CookieIssueDetails { get; @@ -3545,7 +3264,7 @@ public CefSharp.DevTools.Audits.CookieIssueDetails CookieIssueDetails /// /// MixedContentIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mixedContentIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("mixedContentIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.MixedContentIssueDetails MixedContentIssueDetails { get; @@ -3555,7 +3274,7 @@ public CefSharp.DevTools.Audits.MixedContentIssueDetails MixedContentIssueDetail /// /// BlockedByResponseIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedByResponseIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("blockedByResponseIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.BlockedByResponseIssueDetails BlockedByResponseIssueDetails { get; @@ -3565,7 +3284,7 @@ public CefSharp.DevTools.Audits.BlockedByResponseIssueDetails BlockedByResponseI /// /// HeavyAdIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("heavyAdIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("heavyAdIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.HeavyAdIssueDetails HeavyAdIssueDetails { get; @@ -3575,7 +3294,7 @@ public CefSharp.DevTools.Audits.HeavyAdIssueDetails HeavyAdIssueDetails /// /// ContentSecurityPolicyIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentSecurityPolicyIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("contentSecurityPolicyIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.ContentSecurityPolicyIssueDetails ContentSecurityPolicyIssueDetails { get; @@ -3585,7 +3304,7 @@ public CefSharp.DevTools.Audits.ContentSecurityPolicyIssueDetails ContentSecurit /// /// SharedArrayBufferIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sharedArrayBufferIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("sharedArrayBufferIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.SharedArrayBufferIssueDetails SharedArrayBufferIssueDetails { get; @@ -3595,7 +3314,7 @@ public CefSharp.DevTools.Audits.SharedArrayBufferIssueDetails SharedArrayBufferI /// /// TwaQualityEnforcementDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("twaQualityEnforcementDetails"), IsRequired = (false))] + [DataMember(Name = ("twaQualityEnforcementDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.TrustedWebActivityIssueDetails TwaQualityEnforcementDetails { get; @@ -3605,7 +3324,7 @@ public CefSharp.DevTools.Audits.TrustedWebActivityIssueDetails TwaQualityEnforce /// /// LowTextContrastIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lowTextContrastIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("lowTextContrastIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.LowTextContrastIssueDetails LowTextContrastIssueDetails { get; @@ -3615,7 +3334,7 @@ public CefSharp.DevTools.Audits.LowTextContrastIssueDetails LowTextContrastIssue /// /// CorsIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("corsIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("corsIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.CorsIssueDetails CorsIssueDetails { get; @@ -3625,7 +3344,7 @@ public CefSharp.DevTools.Audits.CorsIssueDetails CorsIssueDetails /// /// AttributionReportingIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("attributionReportingIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("attributionReportingIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.AttributionReportingIssueDetails AttributionReportingIssueDetails { get; @@ -3635,7 +3354,7 @@ public CefSharp.DevTools.Audits.AttributionReportingIssueDetails AttributionRepo /// /// QuirksModeIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("quirksModeIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("quirksModeIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.QuirksModeIssueDetails QuirksModeIssueDetails { get; @@ -3645,7 +3364,7 @@ public CefSharp.DevTools.Audits.QuirksModeIssueDetails QuirksModeIssueDetails /// /// NavigatorUserAgentIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("navigatorUserAgentIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("navigatorUserAgentIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.NavigatorUserAgentIssueDetails NavigatorUserAgentIssueDetails { get; @@ -3655,7 +3374,7 @@ public CefSharp.DevTools.Audits.NavigatorUserAgentIssueDetails NavigatorUserAgen /// /// GenericIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("genericIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("genericIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.GenericIssueDetails GenericIssueDetails { get; @@ -3665,7 +3384,7 @@ public CefSharp.DevTools.Audits.GenericIssueDetails GenericIssueDetails /// /// DeprecationIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deprecationIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("deprecationIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.DeprecationIssueDetails DeprecationIssueDetails { get; @@ -3675,7 +3394,7 @@ public CefSharp.DevTools.Audits.DeprecationIssueDetails DeprecationIssueDetails /// /// ClientHintIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientHintIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("clientHintIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.ClientHintIssueDetails ClientHintIssueDetails { get; @@ -3685,7 +3404,7 @@ public CefSharp.DevTools.Audits.ClientHintIssueDetails ClientHintIssueDetails /// /// FederatedAuthRequestIssueDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("federatedAuthRequestIssueDetails"), IsRequired = (false))] + [DataMember(Name = ("federatedAuthRequestIssueDetails"), IsRequired = (false))] public CefSharp.DevTools.Audits.FederatedAuthRequestIssueDetails FederatedAuthRequestIssueDetails { get; @@ -3718,7 +3437,7 @@ public CefSharp.DevTools.Audits.InspectorIssueCode Code /// /// Code /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("code"), IsRequired = (true))] + [DataMember(Name = ("code"), IsRequired = (true))] internal string code { get; @@ -3728,7 +3447,7 @@ internal string code /// /// Details /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("details"), IsRequired = (true))] + [DataMember(Name = ("details"), IsRequired = (true))] public CefSharp.DevTools.Audits.InspectorIssueDetails Details { get; @@ -3739,7 +3458,7 @@ public CefSharp.DevTools.Audits.InspectorIssueDetails Details /// A unique id for this issue. May be omitted if no other entity (e.g. /// exception, CDP message, etc.) is referencing this issue. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issueId"), IsRequired = (false))] + [DataMember(Name = ("issueId"), IsRequired = (false))] public string IssueId { get; @@ -3756,7 +3475,7 @@ public class IssueAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Issue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issue"), IsRequired = (true))] + [DataMember(Name = ("issue"), IsRequired = (true))] public CefSharp.DevTools.Audits.InspectorIssue Issue { get; @@ -3777,32 +3496,32 @@ public enum ServiceName /// /// backgroundFetch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("backgroundFetch"))] + [EnumMember(Value = ("backgroundFetch"))] BackgroundFetch, /// /// backgroundSync /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("backgroundSync"))] + [EnumMember(Value = ("backgroundSync"))] BackgroundSync, /// /// pushMessaging /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("pushMessaging"))] + [EnumMember(Value = ("pushMessaging"))] PushMessaging, /// /// notifications /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("notifications"))] + [EnumMember(Value = ("notifications"))] Notifications, /// /// paymentHandler /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("paymentHandler"))] + [EnumMember(Value = ("paymentHandler"))] PaymentHandler, /// /// periodicBackgroundSync /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("periodicBackgroundSync"))] + [EnumMember(Value = ("periodicBackgroundSync"))] PeriodicBackgroundSync } @@ -3815,7 +3534,7 @@ public partial class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Key /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + [DataMember(Name = ("key"), IsRequired = (true))] public string Key { get; @@ -3825,7 +3544,7 @@ public string Key /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -3842,7 +3561,7 @@ public partial class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEn /// /// Timestamp of the event (in seconds). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -3852,7 +3571,7 @@ public double Timestamp /// /// The origin this event belongs to. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -3862,7 +3581,7 @@ public string Origin /// /// The Service Worker ID that initiated the event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("serviceWorkerRegistrationId"), IsRequired = (true))] + [DataMember(Name = ("serviceWorkerRegistrationId"), IsRequired = (true))] public string ServiceWorkerRegistrationId { get; @@ -3888,7 +3607,7 @@ public CefSharp.DevTools.BackgroundService.ServiceName Service /// /// The Background Service this event belongs to. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("service"), IsRequired = (true))] + [DataMember(Name = ("service"), IsRequired = (true))] internal string service { get; @@ -3898,7 +3617,7 @@ internal string service /// /// A description of the event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventName"), IsRequired = (true))] + [DataMember(Name = ("eventName"), IsRequired = (true))] public string EventName { get; @@ -3908,7 +3627,7 @@ public string EventName /// /// An identifier that groups related events together. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("instanceId"), IsRequired = (true))] + [DataMember(Name = ("instanceId"), IsRequired = (true))] public string InstanceId { get; @@ -3918,7 +3637,7 @@ public string InstanceId /// /// A list of event-specific information. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventMetadata"), IsRequired = (true))] + [DataMember(Name = ("eventMetadata"), IsRequired = (true))] public System.Collections.Generic.IList EventMetadata { get; @@ -3928,7 +3647,7 @@ public System.Collections.Generic.IList /// Storage key this event belongs to. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + [DataMember(Name = ("storageKey"), IsRequired = (true))] public string StorageKey { get; @@ -3945,7 +3664,7 @@ public class RecordingStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// IsRecording /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isRecording"), IsRequired = (true))] + [DataMember(Name = ("isRecording"), IsRequired = (true))] public bool IsRecording { get; @@ -3971,7 +3690,7 @@ public CefSharp.DevTools.BackgroundService.ServiceName Service /// /// Service /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("service"), IsRequired = (true))] + [DataMember(Name = ("service"), IsRequired = (true))] internal string service { get; @@ -3989,7 +3708,7 @@ public class BackgroundServiceEventReceivedEventArgs : CefSharp.DevTools.DevTool /// /// BackgroundServiceEvent /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backgroundServiceEvent"), IsRequired = (true))] + [DataMember(Name = ("backgroundServiceEvent"), IsRequired = (true))] public CefSharp.DevTools.BackgroundService.BackgroundServiceEvent BackgroundServiceEvent { get; @@ -4008,22 +3727,22 @@ public enum WindowState /// /// normal /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("normal"))] + [EnumMember(Value = ("normal"))] Normal, /// /// minimized /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("minimized"))] + [EnumMember(Value = ("minimized"))] Minimized, /// /// maximized /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("maximized"))] + [EnumMember(Value = ("maximized"))] Maximized, /// /// fullscreen /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("fullscreen"))] + [EnumMember(Value = ("fullscreen"))] Fullscreen } @@ -4036,7 +3755,7 @@ public partial class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The offset from the left edge of the screen to the window in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("left"), IsRequired = (false))] + [DataMember(Name = ("left"), IsRequired = (false))] public int? Left { get; @@ -4046,7 +3765,7 @@ public int? Left /// /// The offset from the top edge of the screen to the window in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("top"), IsRequired = (false))] + [DataMember(Name = ("top"), IsRequired = (false))] public int? Top { get; @@ -4056,7 +3775,7 @@ public int? Top /// /// The window width in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (false))] + [DataMember(Name = ("width"), IsRequired = (false))] public int? Width { get; @@ -4066,7 +3785,7 @@ public int? Width /// /// The window height in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (false))] + [DataMember(Name = ("height"), IsRequired = (false))] public int? Height { get; @@ -4092,7 +3811,7 @@ public CefSharp.DevTools.Browser.WindowState? WindowState /// /// The window state. Default to normal. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("windowState"), IsRequired = (false))] + [DataMember(Name = ("windowState"), IsRequired = (false))] internal string windowState { get; @@ -4108,137 +3827,137 @@ public enum PermissionType /// /// accessibilityEvents /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("accessibilityEvents"))] + [EnumMember(Value = ("accessibilityEvents"))] AccessibilityEvents, /// /// audioCapture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("audioCapture"))] + [EnumMember(Value = ("audioCapture"))] AudioCapture, /// /// backgroundSync /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("backgroundSync"))] + [EnumMember(Value = ("backgroundSync"))] BackgroundSync, /// /// backgroundFetch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("backgroundFetch"))] + [EnumMember(Value = ("backgroundFetch"))] BackgroundFetch, /// /// clipboardReadWrite /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clipboardReadWrite"))] + [EnumMember(Value = ("clipboardReadWrite"))] ClipboardReadWrite, /// /// clipboardSanitizedWrite /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clipboardSanitizedWrite"))] + [EnumMember(Value = ("clipboardSanitizedWrite"))] ClipboardSanitizedWrite, /// /// displayCapture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("displayCapture"))] + [EnumMember(Value = ("displayCapture"))] DisplayCapture, /// /// durableStorage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("durableStorage"))] + [EnumMember(Value = ("durableStorage"))] DurableStorage, /// /// flash /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("flash"))] + [EnumMember(Value = ("flash"))] Flash, /// /// geolocation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("geolocation"))] + [EnumMember(Value = ("geolocation"))] Geolocation, /// /// idleDetection /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("idleDetection"))] + [EnumMember(Value = ("idleDetection"))] IdleDetection, /// /// localFonts /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("localFonts"))] + [EnumMember(Value = ("localFonts"))] LocalFonts, /// /// midi /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("midi"))] + [EnumMember(Value = ("midi"))] Midi, /// /// midiSysex /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("midiSysex"))] + [EnumMember(Value = ("midiSysex"))] MidiSysex, /// /// nfc /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("nfc"))] + [EnumMember(Value = ("nfc"))] Nfc, /// /// notifications /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("notifications"))] + [EnumMember(Value = ("notifications"))] Notifications, /// /// paymentHandler /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("paymentHandler"))] + [EnumMember(Value = ("paymentHandler"))] PaymentHandler, /// /// periodicBackgroundSync /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("periodicBackgroundSync"))] + [EnumMember(Value = ("periodicBackgroundSync"))] PeriodicBackgroundSync, /// /// protectedMediaIdentifier /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("protectedMediaIdentifier"))] + [EnumMember(Value = ("protectedMediaIdentifier"))] ProtectedMediaIdentifier, /// /// sensors /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("sensors"))] + [EnumMember(Value = ("sensors"))] Sensors, /// /// storageAccess /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storageAccess"))] + [EnumMember(Value = ("storageAccess"))] StorageAccess, /// /// topLevelStorageAccess /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("topLevelStorageAccess"))] + [EnumMember(Value = ("topLevelStorageAccess"))] TopLevelStorageAccess, /// /// videoCapture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("videoCapture"))] + [EnumMember(Value = ("videoCapture"))] VideoCapture, /// /// videoCapturePanTiltZoom /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("videoCapturePanTiltZoom"))] + [EnumMember(Value = ("videoCapturePanTiltZoom"))] VideoCapturePanTiltZoom, /// /// wakeLockScreen /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wakeLockScreen"))] + [EnumMember(Value = ("wakeLockScreen"))] WakeLockScreen, /// /// wakeLockSystem /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wakeLockSystem"))] + [EnumMember(Value = ("wakeLockSystem"))] WakeLockSystem, /// /// windowManagement /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("windowManagement"))] + [EnumMember(Value = ("windowManagement"))] WindowManagement } @@ -4250,17 +3969,17 @@ public enum PermissionSetting /// /// granted /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("granted"))] + [EnumMember(Value = ("granted"))] Granted, /// /// denied /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("denied"))] + [EnumMember(Value = ("denied"))] Denied, /// /// prompt /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("prompt"))] + [EnumMember(Value = ("prompt"))] Prompt } @@ -4275,7 +3994,7 @@ public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEnti /// Name of permission. /// See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -4285,7 +4004,7 @@ public string Name /// /// For "midi" permission, may also specify sysex control. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sysex"), IsRequired = (false))] + [DataMember(Name = ("sysex"), IsRequired = (false))] public bool? Sysex { get; @@ -4296,7 +4015,7 @@ public bool? Sysex /// For "push" permission, may specify userVisibleOnly. /// Note that userVisibleOnly = true is the only currently supported type. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("userVisibleOnly"), IsRequired = (false))] + [DataMember(Name = ("userVisibleOnly"), IsRequired = (false))] public bool? UserVisibleOnly { get; @@ -4306,7 +4025,7 @@ public bool? UserVisibleOnly /// /// For "clipboard" permission, may specify allowWithoutSanitization. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("allowWithoutSanitization"), IsRequired = (false))] + [DataMember(Name = ("allowWithoutSanitization"), IsRequired = (false))] public bool? AllowWithoutSanitization { get; @@ -4316,7 +4035,7 @@ public bool? AllowWithoutSanitization /// /// For "camera" permission, may specify panTiltZoom. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("panTiltZoom"), IsRequired = (false))] + [DataMember(Name = ("panTiltZoom"), IsRequired = (false))] public bool? PanTiltZoom { get; @@ -4332,12 +4051,12 @@ public enum BrowserCommandId /// /// openTabSearch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("openTabSearch"))] + [EnumMember(Value = ("openTabSearch"))] OpenTabSearch, /// /// closeTabSearch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("closeTabSearch"))] + [EnumMember(Value = ("closeTabSearch"))] CloseTabSearch } @@ -4350,7 +4069,7 @@ public partial class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Minimum value (inclusive). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("low"), IsRequired = (true))] + [DataMember(Name = ("low"), IsRequired = (true))] public int Low { get; @@ -4360,7 +4079,7 @@ public int Low /// /// Maximum value (exclusive). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("high"), IsRequired = (true))] + [DataMember(Name = ("high"), IsRequired = (true))] public int High { get; @@ -4370,7 +4089,7 @@ public int High /// /// Number of samples. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("count"), IsRequired = (true))] + [DataMember(Name = ("count"), IsRequired = (true))] public int Count { get; @@ -4387,7 +4106,7 @@ public partial class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -4397,7 +4116,7 @@ public string Name /// /// Sum of sample values. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sum"), IsRequired = (true))] + [DataMember(Name = ("sum"), IsRequired = (true))] public int Sum { get; @@ -4407,7 +4126,7 @@ public int Sum /// /// Total number of samples. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("count"), IsRequired = (true))] + [DataMember(Name = ("count"), IsRequired = (true))] public int Count { get; @@ -4417,7 +4136,7 @@ public int Count /// /// Buckets. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("buckets"), IsRequired = (true))] + [DataMember(Name = ("buckets"), IsRequired = (true))] public System.Collections.Generic.IList Buckets { get; @@ -4434,7 +4153,7 @@ public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the frame that caused the download to begin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -4444,7 +4163,7 @@ public string FrameId /// /// Global unique identifier of the download. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + [DataMember(Name = ("guid"), IsRequired = (true))] public string Guid { get; @@ -4454,7 +4173,7 @@ public string Guid /// /// URL of the resource being downloaded. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -4464,7 +4183,7 @@ public string Url /// /// Suggested file name of the resource (the actual name of the file saved on disk may differ). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("suggestedFilename"), IsRequired = (true))] + [DataMember(Name = ("suggestedFilename"), IsRequired = (true))] public string SuggestedFilename { get; @@ -4480,17 +4199,17 @@ public enum DownloadProgressState /// /// inProgress /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("inProgress"))] + [EnumMember(Value = ("inProgress"))] InProgress, /// /// completed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("completed"))] + [EnumMember(Value = ("completed"))] Completed, /// /// canceled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("canceled"))] + [EnumMember(Value = ("canceled"))] Canceled } @@ -4503,7 +4222,7 @@ public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Global unique identifier of the download. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + [DataMember(Name = ("guid"), IsRequired = (true))] public string Guid { get; @@ -4513,7 +4232,7 @@ public string Guid /// /// Total expected bytes to download. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("totalBytes"), IsRequired = (true))] + [DataMember(Name = ("totalBytes"), IsRequired = (true))] public double TotalBytes { get; @@ -4523,7 +4242,7 @@ public double TotalBytes /// /// Total bytes received. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("receivedBytes"), IsRequired = (true))] + [DataMember(Name = ("receivedBytes"), IsRequired = (true))] public double ReceivedBytes { get; @@ -4549,7 +4268,7 @@ public CefSharp.DevTools.Browser.DownloadProgressState State /// /// Download status. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("state"), IsRequired = (true))] + [DataMember(Name = ("state"), IsRequired = (true))] internal string state { get; @@ -4570,22 +4289,22 @@ public enum StyleSheetOrigin /// /// injected /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("injected"))] + [EnumMember(Value = ("injected"))] Injected, /// /// user-agent /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("user-agent"))] + [EnumMember(Value = ("user-agent"))] UserAgent, /// /// inspector /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("inspector"))] + [EnumMember(Value = ("inspector"))] Inspector, /// /// regular /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("regular"))] + [EnumMember(Value = ("regular"))] Regular } @@ -4614,7 +4333,7 @@ public CefSharp.DevTools.DOM.PseudoType PseudoType /// /// Pseudo element type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoType"), IsRequired = (true))] + [DataMember(Name = ("pseudoType"), IsRequired = (true))] internal string pseudoType { get; @@ -4624,7 +4343,7 @@ internal string pseudoType /// /// Pseudo element custom ident. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoIdentifier"), IsRequired = (false))] + [DataMember(Name = ("pseudoIdentifier"), IsRequired = (false))] public string PseudoIdentifier { get; @@ -4634,7 +4353,7 @@ public string PseudoIdentifier /// /// Matches of CSS rules applicable to the pseudo style. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("matches"), IsRequired = (true))] + [DataMember(Name = ("matches"), IsRequired = (true))] public System.Collections.Generic.IList Matches { get; @@ -4651,7 +4370,7 @@ public partial class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntit /// /// The ancestor node's inline style, if any, in the style inheritance chain. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("inlineStyle"), IsRequired = (false))] + [DataMember(Name = ("inlineStyle"), IsRequired = (false))] public CefSharp.DevTools.CSS.CSSStyle InlineStyle { get; @@ -4661,7 +4380,7 @@ public CefSharp.DevTools.CSS.CSSStyle InlineStyle /// /// Matches of CSS rules matching the ancestor node in the style inheritance chain. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("matchedCSSRules"), IsRequired = (true))] + [DataMember(Name = ("matchedCSSRules"), IsRequired = (true))] public System.Collections.Generic.IList MatchedCSSRules { get; @@ -4678,7 +4397,7 @@ public partial class InheritedPseudoElementMatches : CefSharp.DevTools.DevToolsD /// /// Matches of pseudo styles from the pseudos of an ancestor node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElements"), IsRequired = (true))] + [DataMember(Name = ("pseudoElements"), IsRequired = (true))] public System.Collections.Generic.IList PseudoElements { get; @@ -4695,7 +4414,7 @@ public partial class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase /// /// CSS rule in the match. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rule"), IsRequired = (true))] + [DataMember(Name = ("rule"), IsRequired = (true))] public CefSharp.DevTools.CSS.CSSRule Rule { get; @@ -4705,7 +4424,7 @@ public CefSharp.DevTools.CSS.CSSRule Rule /// /// Matching selector indices in the rule's selectorList selectors (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("matchingSelectors"), IsRequired = (true))] + [DataMember(Name = ("matchingSelectors"), IsRequired = (true))] public int[] MatchingSelectors { get; @@ -4722,7 +4441,7 @@ public partial class Value : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Value text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -4732,7 +4451,7 @@ public string Text /// /// Value range in the underlying resource (if available). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -4749,7 +4468,7 @@ public partial class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Selectors in the list. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("selectors"), IsRequired = (true))] + [DataMember(Name = ("selectors"), IsRequired = (true))] public System.Collections.Generic.IList Selectors { get; @@ -4759,7 +4478,7 @@ public System.Collections.Generic.IList Selectors /// /// Rule selector text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -4776,7 +4495,7 @@ public partial class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntit /// /// The stylesheet identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] + [DataMember(Name = ("styleSheetId"), IsRequired = (true))] public string StyleSheetId { get; @@ -4786,7 +4505,7 @@ public string StyleSheetId /// /// Owner frame identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -4798,7 +4517,7 @@ public string FrameId /// new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported /// as a CSS module script). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceURL"), IsRequired = (true))] + [DataMember(Name = ("sourceURL"), IsRequired = (true))] public string SourceURL { get; @@ -4808,7 +4527,7 @@ public string SourceURL /// /// URL of source map associated with the stylesheet (if any). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceMapURL"), IsRequired = (false))] + [DataMember(Name = ("sourceMapURL"), IsRequired = (false))] public string SourceMapURL { get; @@ -4834,7 +4553,7 @@ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin /// /// Stylesheet origin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] internal string origin { get; @@ -4844,7 +4563,7 @@ internal string origin /// /// Stylesheet title. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] + [DataMember(Name = ("title"), IsRequired = (true))] public string Title { get; @@ -4854,7 +4573,7 @@ public string Title /// /// The backend id for the owner node of the stylesheet. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ownerNode"), IsRequired = (false))] + [DataMember(Name = ("ownerNode"), IsRequired = (false))] public int? OwnerNode { get; @@ -4864,7 +4583,7 @@ public int? OwnerNode /// /// Denotes whether the stylesheet is disabled. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("disabled"), IsRequired = (true))] + [DataMember(Name = ("disabled"), IsRequired = (true))] public bool Disabled { get; @@ -4874,7 +4593,7 @@ public bool Disabled /// /// Whether the sourceURL field value comes from the sourceURL comment. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasSourceURL"), IsRequired = (false))] + [DataMember(Name = ("hasSourceURL"), IsRequired = (false))] public bool? HasSourceURL { get; @@ -4885,7 +4604,7 @@ public bool? HasSourceURL /// Whether this stylesheet is created for STYLE tag by parser. This flag is not set for /// document.written STYLE tags. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isInline"), IsRequired = (true))] + [DataMember(Name = ("isInline"), IsRequired = (true))] public bool IsInline { get; @@ -4898,7 +4617,7 @@ public bool IsInline /// <link> element's stylesheets become mutable only if DevTools modifies them. /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isMutable"), IsRequired = (true))] + [DataMember(Name = ("isMutable"), IsRequired = (true))] public bool IsMutable { get; @@ -4909,7 +4628,7 @@ public bool IsMutable /// True if this stylesheet is created through new CSSStyleSheet() or imported as a /// CSS module script. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isConstructed"), IsRequired = (true))] + [DataMember(Name = ("isConstructed"), IsRequired = (true))] public bool IsConstructed { get; @@ -4919,7 +4638,7 @@ public bool IsConstructed /// /// Line offset of the stylesheet within the resource (zero based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] + [DataMember(Name = ("startLine"), IsRequired = (true))] public double StartLine { get; @@ -4929,7 +4648,7 @@ public double StartLine /// /// Column offset of the stylesheet within the resource (zero based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] + [DataMember(Name = ("startColumn"), IsRequired = (true))] public double StartColumn { get; @@ -4939,7 +4658,7 @@ public double StartColumn /// /// Size of the content (in characters). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (true))] + [DataMember(Name = ("length"), IsRequired = (true))] public double Length { get; @@ -4949,7 +4668,7 @@ public double Length /// /// Line offset of the end of the stylesheet within the resource (zero based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] + [DataMember(Name = ("endLine"), IsRequired = (true))] public double EndLine { get; @@ -4959,7 +4678,7 @@ public double EndLine /// /// Column offset of the end of the stylesheet within the resource (zero based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] + [DataMember(Name = ("endColumn"), IsRequired = (true))] public double EndColumn { get; @@ -4977,7 +4696,7 @@ public partial class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -4987,7 +4706,7 @@ public string StyleSheetId /// /// Rule selector data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("selectorList"), IsRequired = (true))] + [DataMember(Name = ("selectorList"), IsRequired = (true))] public CefSharp.DevTools.CSS.SelectorList SelectorList { get; @@ -5013,7 +4732,7 @@ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin /// /// Parent stylesheet's origin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] internal string origin { get; @@ -5023,7 +4742,7 @@ internal string origin /// /// Associated style declaration. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("style"), IsRequired = (true))] + [DataMember(Name = ("style"), IsRequired = (true))] public CefSharp.DevTools.CSS.CSSStyle Style { get; @@ -5034,7 +4753,7 @@ public CefSharp.DevTools.CSS.CSSStyle Style /// Media list array (for rules involving media queries). The array enumerates media queries /// starting with the innermost one, going outwards. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("media"), IsRequired = (false))] + [DataMember(Name = ("media"), IsRequired = (false))] public System.Collections.Generic.IList Media { get; @@ -5045,7 +4764,7 @@ public System.Collections.Generic.IList Media /// Container query list array (for rules involving container queries). /// The array enumerates container queries starting with the innermost one, going outwards. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("containerQueries"), IsRequired = (false))] + [DataMember(Name = ("containerQueries"), IsRequired = (false))] public System.Collections.Generic.IList ContainerQueries { get; @@ -5056,7 +4775,7 @@ public System.Collections.Generic.IList /// @supports CSS at-rule array. /// The array enumerates @supports at-rules starting with the innermost one, going outwards. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("supports"), IsRequired = (false))] + [DataMember(Name = ("supports"), IsRequired = (false))] public System.Collections.Generic.IList Supports { get; @@ -5067,7 +4786,7 @@ public System.Collections.Generic.IList Suppo /// Cascade layer array. Contains the layer hierarchy that this rule belongs to starting /// with the innermost layer and going outwards. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("layers"), IsRequired = (false))] + [DataMember(Name = ("layers"), IsRequired = (false))] public System.Collections.Generic.IList Layers { get; @@ -5078,7 +4797,7 @@ public System.Collections.Generic.IList Layers /// @scope CSS at-rule array. /// The array enumerates @scope at-rules starting with the innermost one, going outwards. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("scopes"), IsRequired = (false))] + [DataMember(Name = ("scopes"), IsRequired = (false))] public System.Collections.Generic.IList Scopes { get; @@ -5096,7 +4815,7 @@ public partial class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] + [DataMember(Name = ("styleSheetId"), IsRequired = (true))] public string StyleSheetId { get; @@ -5106,7 +4825,7 @@ public string StyleSheetId /// /// Offset of the start of the rule (including selector) from the beginning of the stylesheet. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startOffset"), IsRequired = (true))] + [DataMember(Name = ("startOffset"), IsRequired = (true))] public double StartOffset { get; @@ -5116,7 +4835,7 @@ public double StartOffset /// /// Offset of the end of the rule body from the beginning of the stylesheet. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endOffset"), IsRequired = (true))] + [DataMember(Name = ("endOffset"), IsRequired = (true))] public double EndOffset { get; @@ -5126,7 +4845,7 @@ public double EndOffset /// /// Indicates whether the rule was actually used by some element in the page. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("used"), IsRequired = (true))] + [DataMember(Name = ("used"), IsRequired = (true))] public bool Used { get; @@ -5143,7 +4862,7 @@ public partial class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Start line of range. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] + [DataMember(Name = ("startLine"), IsRequired = (true))] public int StartLine { get; @@ -5153,7 +4872,7 @@ public int StartLine /// /// Start column of range (inclusive). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] + [DataMember(Name = ("startColumn"), IsRequired = (true))] public int StartColumn { get; @@ -5163,7 +4882,7 @@ public int StartColumn /// /// End line of range /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] + [DataMember(Name = ("endLine"), IsRequired = (true))] public int EndLine { get; @@ -5173,7 +4892,7 @@ public int EndLine /// /// End column of range (exclusive). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] + [DataMember(Name = ("endColumn"), IsRequired = (true))] public int EndColumn { get; @@ -5190,7 +4909,7 @@ public partial class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Shorthand name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -5200,7 +4919,7 @@ public string Name /// /// Shorthand value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -5210,7 +4929,7 @@ public string Value /// /// Whether the property has "!important" annotation (implies `false` if absent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("important"), IsRequired = (false))] + [DataMember(Name = ("important"), IsRequired = (false))] public bool? Important { get; @@ -5227,7 +4946,7 @@ public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomain /// /// Computed style property name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -5237,7 +4956,7 @@ public string Name /// /// Computed style property value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -5255,7 +4974,7 @@ public partial class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -5265,7 +4984,7 @@ public string StyleSheetId /// /// CSS properties in the style. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cssProperties"), IsRequired = (true))] + [DataMember(Name = ("cssProperties"), IsRequired = (true))] public System.Collections.Generic.IList CssProperties { get; @@ -5275,7 +4994,7 @@ public System.Collections.Generic.IList CssPr /// /// Computed values for all shorthands found in the style. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shorthandEntries"), IsRequired = (true))] + [DataMember(Name = ("shorthandEntries"), IsRequired = (true))] public System.Collections.Generic.IList ShorthandEntries { get; @@ -5285,7 +5004,7 @@ public System.Collections.Generic.IList Sh /// /// Style declaration text (if available). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cssText"), IsRequired = (false))] + [DataMember(Name = ("cssText"), IsRequired = (false))] public string CssText { get; @@ -5295,7 +5014,7 @@ public string CssText /// /// Style declaration range in the enclosing stylesheet (if available). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5312,7 +5031,7 @@ public partial class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The property name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -5322,7 +5041,7 @@ public string Name /// /// The property value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -5332,7 +5051,7 @@ public string Value /// /// Whether the property has "!important" annotation (implies `false` if absent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("important"), IsRequired = (false))] + [DataMember(Name = ("important"), IsRequired = (false))] public bool? Important { get; @@ -5342,7 +5061,7 @@ public bool? Important /// /// Whether the property is implicit (implies `false` if absent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("implicit"), IsRequired = (false))] + [DataMember(Name = ("implicit"), IsRequired = (false))] public bool? Implicit { get; @@ -5352,7 +5071,7 @@ public bool? Implicit /// /// The full property text as specified in the style. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (false))] + [DataMember(Name = ("text"), IsRequired = (false))] public string Text { get; @@ -5362,7 +5081,7 @@ public string Text /// /// Whether the property is understood by the browser (implies `true` if absent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parsedOk"), IsRequired = (false))] + [DataMember(Name = ("parsedOk"), IsRequired = (false))] public bool? ParsedOk { get; @@ -5372,7 +5091,7 @@ public bool? ParsedOk /// /// Whether the property is disabled by the user (present for source-based properties only). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("disabled"), IsRequired = (false))] + [DataMember(Name = ("disabled"), IsRequired = (false))] public bool? Disabled { get; @@ -5382,7 +5101,7 @@ public bool? Disabled /// /// The entire property range in the enclosing style declaration (if available). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5393,7 +5112,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// Parsed longhand components of this property if it is a shorthand. /// This field will be empty if the given property is not a shorthand. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("longhandProperties"), IsRequired = (false))] + [DataMember(Name = ("longhandProperties"), IsRequired = (false))] public System.Collections.Generic.IList LonghandProperties { get; @@ -5412,22 +5131,22 @@ public enum CSSMediaSource /// /// mediaRule /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mediaRule"))] + [EnumMember(Value = ("mediaRule"))] MediaRule, /// /// importRule /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("importRule"))] + [EnumMember(Value = ("importRule"))] ImportRule, /// /// linkedSheet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("linkedSheet"))] + [EnumMember(Value = ("linkedSheet"))] LinkedSheet, /// /// inlineSheet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("inlineSheet"))] + [EnumMember(Value = ("inlineSheet"))] InlineSheet } @@ -5440,7 +5159,7 @@ public partial class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Media query text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -5472,7 +5191,7 @@ public CefSharp.DevTools.CSS.CSSMediaSource Source /// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline /// stylesheet's STYLE tag. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (true))] + [DataMember(Name = ("source"), IsRequired = (true))] internal string source { get; @@ -5482,7 +5201,7 @@ internal string source /// /// URL of the document containing the media query description. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceURL"), IsRequired = (false))] + [DataMember(Name = ("sourceURL"), IsRequired = (false))] public string SourceURL { get; @@ -5493,7 +5212,7 @@ public string SourceURL /// The associated rule (@media or @import) header range in the enclosing stylesheet (if /// available). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5503,7 +5222,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -5513,7 +5232,7 @@ public string StyleSheetId /// /// Array of media queries. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mediaList"), IsRequired = (false))] + [DataMember(Name = ("mediaList"), IsRequired = (false))] public System.Collections.Generic.IList MediaList { get; @@ -5530,7 +5249,7 @@ public partial class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Array of media query expressions. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("expressions"), IsRequired = (true))] + [DataMember(Name = ("expressions"), IsRequired = (true))] public System.Collections.Generic.IList Expressions { get; @@ -5540,7 +5259,7 @@ public System.Collections.Generic.IList /// Whether the media query condition is satisfied. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("active"), IsRequired = (true))] + [DataMember(Name = ("active"), IsRequired = (true))] public bool Active { get; @@ -5557,7 +5276,7 @@ public partial class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEnti /// /// Media query expression value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public double Value { get; @@ -5567,7 +5286,7 @@ public double Value /// /// Media query expression units. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("unit"), IsRequired = (true))] + [DataMember(Name = ("unit"), IsRequired = (true))] public string Unit { get; @@ -5577,7 +5296,7 @@ public string Unit /// /// Media query expression feature. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("feature"), IsRequired = (true))] + [DataMember(Name = ("feature"), IsRequired = (true))] public string Feature { get; @@ -5587,7 +5306,7 @@ public string Feature /// /// The associated range of the value text in the enclosing stylesheet (if available). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("valueRange"), IsRequired = (false))] + [DataMember(Name = ("valueRange"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange ValueRange { get; @@ -5597,7 +5316,7 @@ public CefSharp.DevTools.CSS.SourceRange ValueRange /// /// Computed length of media query expression (if applicable). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("computedLength"), IsRequired = (false))] + [DataMember(Name = ("computedLength"), IsRequired = (false))] public double? ComputedLength { get; @@ -5614,7 +5333,7 @@ public partial class CSSContainerQuery : CefSharp.DevTools.DevToolsDomainEntityB /// /// Container query text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -5625,7 +5344,7 @@ public string Text /// The associated rule header range in the enclosing stylesheet (if /// available). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5635,7 +5354,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -5645,7 +5364,7 @@ public string StyleSheetId /// /// Optional name for the container. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] + [DataMember(Name = ("name"), IsRequired = (false))] public string Name { get; @@ -5671,7 +5390,7 @@ public CefSharp.DevTools.DOM.PhysicalAxes? PhysicalAxes /// /// Optional physical axes queried for the container. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("physicalAxes"), IsRequired = (false))] + [DataMember(Name = ("physicalAxes"), IsRequired = (false))] internal string physicalAxes { get; @@ -5697,7 +5416,7 @@ public CefSharp.DevTools.DOM.LogicalAxes? LogicalAxes /// /// Optional logical axes queried for the container. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("logicalAxes"), IsRequired = (false))] + [DataMember(Name = ("logicalAxes"), IsRequired = (false))] internal string logicalAxes { get; @@ -5714,7 +5433,7 @@ public partial class CSSSupports : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Supports rule text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -5724,7 +5443,7 @@ public string Text /// /// Whether the supports condition is satisfied. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("active"), IsRequired = (true))] + [DataMember(Name = ("active"), IsRequired = (true))] public bool Active { get; @@ -5735,7 +5454,7 @@ public bool Active /// The associated rule header range in the enclosing stylesheet (if /// available). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5745,7 +5464,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -5762,7 +5481,7 @@ public partial class CSSScope : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Scope rule text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -5773,7 +5492,7 @@ public string Text /// The associated rule header range in the enclosing stylesheet (if /// available). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5783,7 +5502,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -5800,7 +5519,7 @@ public partial class CSSLayer : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Layer name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -5811,7 +5530,7 @@ public string Text /// The associated rule header range in the enclosing stylesheet (if /// available). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (false))] + [DataMember(Name = ("range"), IsRequired = (false))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5821,7 +5540,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -5838,7 +5557,7 @@ public partial class CSSLayerData : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Layer name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -5848,7 +5567,7 @@ public string Name /// /// Direct sub-layers /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subLayers"), IsRequired = (false))] + [DataMember(Name = ("subLayers"), IsRequired = (false))] public System.Collections.Generic.IList SubLayers { get; @@ -5859,7 +5578,7 @@ public System.Collections.Generic.IList SubL /// Layer order. The order determines the order of the layer in the cascade order. /// A higher number has higher priority in the cascade order. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("order"), IsRequired = (true))] + [DataMember(Name = ("order"), IsRequired = (true))] public double Order { get; @@ -5876,7 +5595,7 @@ public partial class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityB /// /// Font's family name reported by platform. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("familyName"), IsRequired = (true))] + [DataMember(Name = ("familyName"), IsRequired = (true))] public string FamilyName { get; @@ -5886,7 +5605,7 @@ public string FamilyName /// /// Indicates if the font was downloaded or resolved locally. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isCustomFont"), IsRequired = (true))] + [DataMember(Name = ("isCustomFont"), IsRequired = (true))] public bool IsCustomFont { get; @@ -5896,7 +5615,7 @@ public bool IsCustomFont /// /// Amount of glyphs that were rendered with this font. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("glyphCount"), IsRequired = (true))] + [DataMember(Name = ("glyphCount"), IsRequired = (true))] public double GlyphCount { get; @@ -5913,7 +5632,7 @@ public partial class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityB /// /// The font-variation-setting tag (a.k.a. "axis tag"). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("tag"), IsRequired = (true))] + [DataMember(Name = ("tag"), IsRequired = (true))] public string Tag { get; @@ -5923,7 +5642,7 @@ public string Tag /// /// Human-readable variation name in the default language (normally, "en"). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -5933,7 +5652,7 @@ public string Name /// /// The minimum value (inclusive) the font supports for this tag. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("minValue"), IsRequired = (true))] + [DataMember(Name = ("minValue"), IsRequired = (true))] public double MinValue { get; @@ -5943,7 +5662,7 @@ public double MinValue /// /// The maximum value (inclusive) the font supports for this tag. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxValue"), IsRequired = (true))] + [DataMember(Name = ("maxValue"), IsRequired = (true))] public double MaxValue { get; @@ -5953,7 +5672,7 @@ public double MaxValue /// /// The default value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("defaultValue"), IsRequired = (true))] + [DataMember(Name = ("defaultValue"), IsRequired = (true))] public double DefaultValue { get; @@ -5971,7 +5690,7 @@ public partial class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontFamily"), IsRequired = (true))] + [DataMember(Name = ("fontFamily"), IsRequired = (true))] public string FontFamily { get; @@ -5981,7 +5700,7 @@ public string FontFamily /// /// The font-style. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontStyle"), IsRequired = (true))] + [DataMember(Name = ("fontStyle"), IsRequired = (true))] public string FontStyle { get; @@ -5991,7 +5710,7 @@ public string FontStyle /// /// The font-variant. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontVariant"), IsRequired = (true))] + [DataMember(Name = ("fontVariant"), IsRequired = (true))] public string FontVariant { get; @@ -6001,7 +5720,7 @@ public string FontVariant /// /// The font-weight. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontWeight"), IsRequired = (true))] + [DataMember(Name = ("fontWeight"), IsRequired = (true))] public string FontWeight { get; @@ -6011,7 +5730,7 @@ public string FontWeight /// /// The font-stretch. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontStretch"), IsRequired = (true))] + [DataMember(Name = ("fontStretch"), IsRequired = (true))] public string FontStretch { get; @@ -6021,7 +5740,7 @@ public string FontStretch /// /// The font-display. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontDisplay"), IsRequired = (true))] + [DataMember(Name = ("fontDisplay"), IsRequired = (true))] public string FontDisplay { get; @@ -6031,7 +5750,7 @@ public string FontDisplay /// /// The unicode-range. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("unicodeRange"), IsRequired = (true))] + [DataMember(Name = ("unicodeRange"), IsRequired = (true))] public string UnicodeRange { get; @@ -6041,7 +5760,7 @@ public string UnicodeRange /// /// The src. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("src"), IsRequired = (true))] + [DataMember(Name = ("src"), IsRequired = (true))] public string Src { get; @@ -6051,7 +5770,7 @@ public string Src /// /// The resolved platform font family /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("platformFontFamily"), IsRequired = (true))] + [DataMember(Name = ("platformFontFamily"), IsRequired = (true))] public string PlatformFontFamily { get; @@ -6061,7 +5780,7 @@ public string PlatformFontFamily /// /// Available variation settings (a.k.a. "axes"). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontVariationAxes"), IsRequired = (false))] + [DataMember(Name = ("fontVariationAxes"), IsRequired = (false))] public System.Collections.Generic.IList FontVariationAxes { get; @@ -6078,7 +5797,7 @@ public partial class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Animation name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("animationName"), IsRequired = (true))] + [DataMember(Name = ("animationName"), IsRequired = (true))] public CefSharp.DevTools.CSS.Value AnimationName { get; @@ -6088,7 +5807,7 @@ public CefSharp.DevTools.CSS.Value AnimationName /// /// List of keyframes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyframes"), IsRequired = (true))] + [DataMember(Name = ("keyframes"), IsRequired = (true))] public System.Collections.Generic.IList Keyframes { get; @@ -6106,7 +5825,7 @@ public partial class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBas /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (false))] + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] public string StyleSheetId { get; @@ -6132,7 +5851,7 @@ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin /// /// Parent stylesheet's origin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] internal string origin { get; @@ -6142,7 +5861,7 @@ internal string origin /// /// Associated key text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyText"), IsRequired = (true))] + [DataMember(Name = ("keyText"), IsRequired = (true))] public CefSharp.DevTools.CSS.Value KeyText { get; @@ -6152,7 +5871,7 @@ public CefSharp.DevTools.CSS.Value KeyText /// /// Associated style declaration. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("style"), IsRequired = (true))] + [DataMember(Name = ("style"), IsRequired = (true))] public CefSharp.DevTools.CSS.CSSStyle Style { get; @@ -6169,7 +5888,7 @@ public partial class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEnti /// /// The css style sheet identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] + [DataMember(Name = ("styleSheetId"), IsRequired = (true))] public string StyleSheetId { get; @@ -6179,7 +5898,7 @@ public string StyleSheetId /// /// The range of the style text in the enclosing stylesheet. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("range"), IsRequired = (true))] + [DataMember(Name = ("range"), IsRequired = (true))] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -6189,7 +5908,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// New style text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -6199,7 +5918,7 @@ public string Text /// /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded - /// web font + /// web font. /// [System.Runtime.Serialization.DataContractAttribute] public class FontsUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase @@ -6207,7 +5926,7 @@ public class FontsUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// The web font that has loaded. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("font"), IsRequired = (false))] + [DataMember(Name = ("font"), IsRequired = (false))] public CefSharp.DevTools.CSS.FontFace Font { get; @@ -6224,7 +5943,7 @@ public class StyleSheetAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Added stylesheet metainfo. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("header"), IsRequired = (true))] + [DataMember(Name = ("header"), IsRequired = (true))] public CefSharp.DevTools.CSS.CSSStyleSheetHeader Header { get; @@ -6241,7 +5960,7 @@ public class StyleSheetChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// StyleSheetId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] + [DataMember(Name = ("styleSheetId"), IsRequired = (true))] public string StyleSheetId { get; @@ -6258,7 +5977,7 @@ public class StyleSheetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Identifier of the removed stylesheet. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleSheetId"), IsRequired = (true))] + [DataMember(Name = ("styleSheetId"), IsRequired = (true))] public string StyleSheetId { get; @@ -6277,32 +5996,32 @@ public enum CachedResponseType /// /// basic /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("basic"))] + [EnumMember(Value = ("basic"))] Basic, /// /// cors /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cors"))] + [EnumMember(Value = ("cors"))] Cors, /// /// default /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("default"))] + [EnumMember(Value = ("default"))] Default, /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error, /// /// opaqueResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("opaqueResponse"))] + [EnumMember(Value = ("opaqueResponse"))] OpaqueResponse, /// /// opaqueRedirect /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("opaqueRedirect"))] + [EnumMember(Value = ("opaqueRedirect"))] OpaqueRedirect } @@ -6315,7 +6034,7 @@ public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Request URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestURL"), IsRequired = (true))] + [DataMember(Name = ("requestURL"), IsRequired = (true))] public string RequestURL { get; @@ -6325,7 +6044,7 @@ public string RequestURL /// /// Request method. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestMethod"), IsRequired = (true))] + [DataMember(Name = ("requestMethod"), IsRequired = (true))] public string RequestMethod { get; @@ -6335,7 +6054,7 @@ public string RequestMethod /// /// Request headers /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestHeaders"), IsRequired = (true))] + [DataMember(Name = ("requestHeaders"), IsRequired = (true))] public System.Collections.Generic.IList RequestHeaders { get; @@ -6345,7 +6064,7 @@ public System.Collections.Generic.IList R /// /// Number of seconds since epoch. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseTime"), IsRequired = (true))] + [DataMember(Name = ("responseTime"), IsRequired = (true))] public double ResponseTime { get; @@ -6355,7 +6074,7 @@ public double ResponseTime /// /// HTTP response status code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseStatus"), IsRequired = (true))] + [DataMember(Name = ("responseStatus"), IsRequired = (true))] public int ResponseStatus { get; @@ -6365,7 +6084,7 @@ public int ResponseStatus /// /// HTTP response status text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseStatusText"), IsRequired = (true))] + [DataMember(Name = ("responseStatusText"), IsRequired = (true))] public string ResponseStatusText { get; @@ -6391,7 +6110,7 @@ public CefSharp.DevTools.CacheStorage.CachedResponseType ResponseType /// /// HTTP response type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseType"), IsRequired = (true))] + [DataMember(Name = ("responseType"), IsRequired = (true))] internal string responseType { get; @@ -6401,7 +6120,7 @@ internal string responseType /// /// Response headers /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseHeaders"), IsRequired = (true))] + [DataMember(Name = ("responseHeaders"), IsRequired = (true))] public System.Collections.Generic.IList ResponseHeaders { get; @@ -6418,7 +6137,7 @@ public partial class Cache : CefSharp.DevTools.DevToolsDomainEntityBase /// /// An opaque unique id of the cache. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cacheId"), IsRequired = (true))] + [DataMember(Name = ("cacheId"), IsRequired = (true))] public string CacheId { get; @@ -6428,7 +6147,7 @@ public string CacheId /// /// Security origin of the cache. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityOrigin"), IsRequired = (true))] + [DataMember(Name = ("securityOrigin"), IsRequired = (true))] public string SecurityOrigin { get; @@ -6438,7 +6157,7 @@ public string SecurityOrigin /// /// Storage key of the cache. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + [DataMember(Name = ("storageKey"), IsRequired = (true))] public string StorageKey { get; @@ -6448,7 +6167,7 @@ public string StorageKey /// /// The name of the cache. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cacheName"), IsRequired = (true))] + [DataMember(Name = ("cacheName"), IsRequired = (true))] public string CacheName { get; @@ -6465,7 +6184,7 @@ public partial class Header : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -6475,7 +6194,7 @@ public string Name /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -6492,7 +6211,7 @@ public partial class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Entry content, base64-encoded. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("body"), IsRequired = (true))] + [DataMember(Name = ("body"), IsRequired = (true))] public byte[] Body { get; @@ -6512,7 +6231,7 @@ public partial class Sink : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -6522,7 +6241,7 @@ public string Name /// /// Id /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -6533,7 +6252,7 @@ public string Id /// Text describing the current session. Present only if there is an active /// session on the sink. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("session"), IsRequired = (false))] + [DataMember(Name = ("session"), IsRequired = (false))] public string Session { get; @@ -6551,7 +6270,7 @@ public class SinksUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Sinks /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sinks"), IsRequired = (true))] + [DataMember(Name = ("sinks"), IsRequired = (true))] public System.Collections.Generic.IList Sinks { get; @@ -6569,7 +6288,7 @@ public class IssueUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// IssueMessage /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issueMessage"), IsRequired = (true))] + [DataMember(Name = ("issueMessage"), IsRequired = (true))] public string IssueMessage { get; @@ -6589,7 +6308,7 @@ public partial class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `Node`'s nodeType. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (true))] + [DataMember(Name = ("nodeType"), IsRequired = (true))] public int NodeType { get; @@ -6599,7 +6318,7 @@ public int NodeType /// /// `Node`'s nodeName. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (true))] + [DataMember(Name = ("nodeName"), IsRequired = (true))] public string NodeName { get; @@ -6609,7 +6328,7 @@ public string NodeName /// /// BackendNodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] + [DataMember(Name = ("backendNodeId"), IsRequired = (true))] public int BackendNodeId { get; @@ -6625,127 +6344,127 @@ public enum PseudoType /// /// first-line /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("first-line"))] + [EnumMember(Value = ("first-line"))] FirstLine, /// /// first-letter /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("first-letter"))] + [EnumMember(Value = ("first-letter"))] FirstLetter, /// /// before /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("before"))] + [EnumMember(Value = ("before"))] Before, /// /// after /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("after"))] + [EnumMember(Value = ("after"))] After, /// /// marker /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("marker"))] + [EnumMember(Value = ("marker"))] Marker, /// /// backdrop /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("backdrop"))] + [EnumMember(Value = ("backdrop"))] Backdrop, /// /// selection /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("selection"))] + [EnumMember(Value = ("selection"))] Selection, /// /// target-text /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("target-text"))] + [EnumMember(Value = ("target-text"))] TargetText, /// /// spelling-error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("spelling-error"))] + [EnumMember(Value = ("spelling-error"))] SpellingError, /// /// grammar-error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("grammar-error"))] + [EnumMember(Value = ("grammar-error"))] GrammarError, /// /// highlight /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("highlight"))] + [EnumMember(Value = ("highlight"))] Highlight, /// /// first-line-inherited /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("first-line-inherited"))] + [EnumMember(Value = ("first-line-inherited"))] FirstLineInherited, /// /// scrollbar /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("scrollbar"))] + [EnumMember(Value = ("scrollbar"))] Scrollbar, /// /// scrollbar-thumb /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("scrollbar-thumb"))] + [EnumMember(Value = ("scrollbar-thumb"))] ScrollbarThumb, /// /// scrollbar-button /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("scrollbar-button"))] + [EnumMember(Value = ("scrollbar-button"))] ScrollbarButton, /// /// scrollbar-track /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("scrollbar-track"))] + [EnumMember(Value = ("scrollbar-track"))] ScrollbarTrack, /// /// scrollbar-track-piece /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("scrollbar-track-piece"))] + [EnumMember(Value = ("scrollbar-track-piece"))] ScrollbarTrackPiece, /// /// scrollbar-corner /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("scrollbar-corner"))] + [EnumMember(Value = ("scrollbar-corner"))] ScrollbarCorner, /// /// resizer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("resizer"))] + [EnumMember(Value = ("resizer"))] Resizer, /// /// input-list-button /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("input-list-button"))] + [EnumMember(Value = ("input-list-button"))] InputListButton, /// /// view-transition /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition"))] + [EnumMember(Value = ("view-transition"))] ViewTransition, /// /// view-transition-group /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-group"))] + [EnumMember(Value = ("view-transition-group"))] ViewTransitionGroup, /// /// view-transition-image-pair /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-image-pair"))] + [EnumMember(Value = ("view-transition-image-pair"))] ViewTransitionImagePair, /// /// view-transition-old /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-old"))] + [EnumMember(Value = ("view-transition-old"))] ViewTransitionOld, /// /// view-transition-new /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("view-transition-new"))] + [EnumMember(Value = ("view-transition-new"))] ViewTransitionNew } @@ -6757,17 +6476,17 @@ public enum ShadowRootType /// /// user-agent /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("user-agent"))] + [EnumMember(Value = ("user-agent"))] UserAgent, /// /// open /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("open"))] + [EnumMember(Value = ("open"))] Open, /// /// closed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("closed"))] + [EnumMember(Value = ("closed"))] Closed } @@ -6779,17 +6498,17 @@ public enum CompatibilityMode /// /// QuirksMode /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("QuirksMode"))] + [EnumMember(Value = ("QuirksMode"))] QuirksMode, /// /// LimitedQuirksMode /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LimitedQuirksMode"))] + [EnumMember(Value = ("LimitedQuirksMode"))] LimitedQuirksMode, /// /// NoQuirksMode /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoQuirksMode"))] + [EnumMember(Value = ("NoQuirksMode"))] NoQuirksMode } @@ -6801,17 +6520,17 @@ public enum PhysicalAxes /// /// Horizontal /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Horizontal"))] + [EnumMember(Value = ("Horizontal"))] Horizontal, /// /// Vertical /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Vertical"))] + [EnumMember(Value = ("Vertical"))] Vertical, /// /// Both /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Both"))] + [EnumMember(Value = ("Both"))] Both } @@ -6823,17 +6542,17 @@ public enum LogicalAxes /// /// Inline /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Inline"))] + [EnumMember(Value = ("Inline"))] Inline, /// /// Block /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Block"))] + [EnumMember(Value = ("Block"))] Block, /// /// Both /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Both"))] + [EnumMember(Value = ("Both"))] Both } @@ -6849,7 +6568,7 @@ public partial class Node : CefSharp.DevTools.DevToolsDomainEntityBase /// will only push node with given `id` once. It is aware of all requested nodes and will only /// fire DOM events for nodes known to the client. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -6859,7 +6578,7 @@ public int NodeId /// /// The id of the parent node if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (false))] + [DataMember(Name = ("parentId"), IsRequired = (false))] public int? ParentId { get; @@ -6869,7 +6588,7 @@ public int? ParentId /// /// The BackendNodeId for this node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] + [DataMember(Name = ("backendNodeId"), IsRequired = (true))] public int BackendNodeId { get; @@ -6879,7 +6598,7 @@ public int BackendNodeId /// /// `Node`'s nodeType. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (true))] + [DataMember(Name = ("nodeType"), IsRequired = (true))] public int NodeType { get; @@ -6889,7 +6608,7 @@ public int NodeType /// /// `Node`'s nodeName. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (true))] + [DataMember(Name = ("nodeName"), IsRequired = (true))] public string NodeName { get; @@ -6899,7 +6618,7 @@ public string NodeName /// /// `Node`'s localName. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("localName"), IsRequired = (true))] + [DataMember(Name = ("localName"), IsRequired = (true))] public string LocalName { get; @@ -6909,7 +6628,7 @@ public string LocalName /// /// `Node`'s nodeValue. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeValue"), IsRequired = (true))] + [DataMember(Name = ("nodeValue"), IsRequired = (true))] public string NodeValue { get; @@ -6919,7 +6638,7 @@ public string NodeValue /// /// Child count for `Container` nodes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("childNodeCount"), IsRequired = (false))] + [DataMember(Name = ("childNodeCount"), IsRequired = (false))] public int? ChildNodeCount { get; @@ -6929,7 +6648,7 @@ public int? ChildNodeCount /// /// Child nodes of this node when requested with children. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("children"), IsRequired = (false))] + [DataMember(Name = ("children"), IsRequired = (false))] public System.Collections.Generic.IList Children { get; @@ -6939,7 +6658,7 @@ public System.Collections.Generic.IList Children /// /// Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("attributes"), IsRequired = (false))] + [DataMember(Name = ("attributes"), IsRequired = (false))] public string[] Attributes { get; @@ -6949,7 +6668,7 @@ public string[] Attributes /// /// Document URL that `Document` or `FrameOwner` node points to. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentURL"), IsRequired = (false))] + [DataMember(Name = ("documentURL"), IsRequired = (false))] public string DocumentURL { get; @@ -6959,7 +6678,7 @@ public string DocumentURL /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("baseURL"), IsRequired = (false))] + [DataMember(Name = ("baseURL"), IsRequired = (false))] public string BaseURL { get; @@ -6969,7 +6688,7 @@ public string BaseURL /// /// `DocumentType`'s publicId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("publicId"), IsRequired = (false))] + [DataMember(Name = ("publicId"), IsRequired = (false))] public string PublicId { get; @@ -6979,7 +6698,7 @@ public string PublicId /// /// `DocumentType`'s systemId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("systemId"), IsRequired = (false))] + [DataMember(Name = ("systemId"), IsRequired = (false))] public string SystemId { get; @@ -6989,7 +6708,7 @@ public string SystemId /// /// `DocumentType`'s internalSubset. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("internalSubset"), IsRequired = (false))] + [DataMember(Name = ("internalSubset"), IsRequired = (false))] public string InternalSubset { get; @@ -6999,7 +6718,7 @@ public string InternalSubset /// /// `Document`'s XML version in case of XML documents. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("xmlVersion"), IsRequired = (false))] + [DataMember(Name = ("xmlVersion"), IsRequired = (false))] public string XmlVersion { get; @@ -7009,7 +6728,7 @@ public string XmlVersion /// /// `Attr`'s name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] + [DataMember(Name = ("name"), IsRequired = (false))] public string Name { get; @@ -7019,7 +6738,7 @@ public string Name /// /// `Attr`'s value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public string Value { get; @@ -7045,7 +6764,7 @@ public CefSharp.DevTools.DOM.PseudoType? PseudoType /// /// Pseudo element type for this node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoType"), IsRequired = (false))] + [DataMember(Name = ("pseudoType"), IsRequired = (false))] internal string pseudoType { get; @@ -7056,7 +6775,7 @@ internal string pseudoType /// Pseudo element identifier for this node. Only present if there is a /// valid pseudoType. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoIdentifier"), IsRequired = (false))] + [DataMember(Name = ("pseudoIdentifier"), IsRequired = (false))] public string PseudoIdentifier { get; @@ -7082,7 +6801,7 @@ public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType /// /// Shadow root type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shadowRootType"), IsRequired = (false))] + [DataMember(Name = ("shadowRootType"), IsRequired = (false))] internal string shadowRootType { get; @@ -7092,7 +6811,7 @@ internal string shadowRootType /// /// Frame ID for frame owner elements. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + [DataMember(Name = ("frameId"), IsRequired = (false))] public string FrameId { get; @@ -7102,7 +6821,7 @@ public string FrameId /// /// Content document for frame owner elements. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentDocument"), IsRequired = (false))] + [DataMember(Name = ("contentDocument"), IsRequired = (false))] public CefSharp.DevTools.DOM.Node ContentDocument { get; @@ -7112,7 +6831,7 @@ public CefSharp.DevTools.DOM.Node ContentDocument /// /// Shadow root list for given element host. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shadowRoots"), IsRequired = (false))] + [DataMember(Name = ("shadowRoots"), IsRequired = (false))] public System.Collections.Generic.IList ShadowRoots { get; @@ -7122,7 +6841,7 @@ public System.Collections.Generic.IList ShadowRoots /// /// Content document fragment for template elements. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("templateContent"), IsRequired = (false))] + [DataMember(Name = ("templateContent"), IsRequired = (false))] public CefSharp.DevTools.DOM.Node TemplateContent { get; @@ -7132,7 +6851,7 @@ public CefSharp.DevTools.DOM.Node TemplateContent /// /// Pseudo elements associated with this node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElements"), IsRequired = (false))] + [DataMember(Name = ("pseudoElements"), IsRequired = (false))] public System.Collections.Generic.IList PseudoElements { get; @@ -7144,7 +6863,7 @@ public System.Collections.Generic.IList PseudoElemen /// This property used to return the imported document for the HTMLImport links. /// The property is always undefined now. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("importedDocument"), IsRequired = (false))] + [DataMember(Name = ("importedDocument"), IsRequired = (false))] public CefSharp.DevTools.DOM.Node ImportedDocument { get; @@ -7154,7 +6873,7 @@ public CefSharp.DevTools.DOM.Node ImportedDocument /// /// Distributed nodes for given insertion point. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("distributedNodes"), IsRequired = (false))] + [DataMember(Name = ("distributedNodes"), IsRequired = (false))] public System.Collections.Generic.IList DistributedNodes { get; @@ -7164,7 +6883,7 @@ public System.Collections.Generic.IList Distr /// /// Whether the node is SVG. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isSVG"), IsRequired = (false))] + [DataMember(Name = ("isSVG"), IsRequired = (false))] public bool? IsSVG { get; @@ -7190,7 +6909,7 @@ public CefSharp.DevTools.DOM.CompatibilityMode? CompatibilityMode /// /// CompatibilityMode /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("compatibilityMode"), IsRequired = (false))] + [DataMember(Name = ("compatibilityMode"), IsRequired = (false))] internal string compatibilityMode { get; @@ -7200,7 +6919,7 @@ internal string compatibilityMode /// /// AssignedSlot /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("assignedSlot"), IsRequired = (false))] + [DataMember(Name = ("assignedSlot"), IsRequired = (false))] public CefSharp.DevTools.DOM.BackendNode AssignedSlot { get; @@ -7217,7 +6936,7 @@ public partial class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The red component, in the [0-255] range. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("r"), IsRequired = (true))] + [DataMember(Name = ("r"), IsRequired = (true))] public int R { get; @@ -7227,7 +6946,7 @@ public int R /// /// The green component, in the [0-255] range. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("g"), IsRequired = (true))] + [DataMember(Name = ("g"), IsRequired = (true))] public int G { get; @@ -7237,7 +6956,7 @@ public int G /// /// The blue component, in the [0-255] range. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("b"), IsRequired = (true))] + [DataMember(Name = ("b"), IsRequired = (true))] public int B { get; @@ -7247,7 +6966,7 @@ public int B /// /// The alpha component, in the [0-1] range (default: 1). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("a"), IsRequired = (false))] + [DataMember(Name = ("a"), IsRequired = (false))] public double? A { get; @@ -7264,7 +6983,7 @@ public partial class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Content box /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("content"), IsRequired = (true))] + [DataMember(Name = ("content"), IsRequired = (true))] public double[] Content { get; @@ -7274,7 +6993,7 @@ public double[] Content /// /// Padding box /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("padding"), IsRequired = (true))] + [DataMember(Name = ("padding"), IsRequired = (true))] public double[] Padding { get; @@ -7284,7 +7003,7 @@ public double[] Padding /// /// Border box /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("border"), IsRequired = (true))] + [DataMember(Name = ("border"), IsRequired = (true))] public double[] Border { get; @@ -7294,7 +7013,7 @@ public double[] Border /// /// Margin box /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("margin"), IsRequired = (true))] + [DataMember(Name = ("margin"), IsRequired = (true))] public double[] Margin { get; @@ -7304,7 +7023,7 @@ public double[] Margin /// /// Node width /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] + [DataMember(Name = ("width"), IsRequired = (true))] public int Width { get; @@ -7314,7 +7033,7 @@ public int Width /// /// Node height /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] + [DataMember(Name = ("height"), IsRequired = (true))] public int Height { get; @@ -7324,7 +7043,7 @@ public int Height /// /// Shape outside coordinates /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shapeOutside"), IsRequired = (false))] + [DataMember(Name = ("shapeOutside"), IsRequired = (false))] public CefSharp.DevTools.DOM.ShapeOutsideInfo ShapeOutside { get; @@ -7341,7 +7060,7 @@ public partial class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Shape bounds /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))] + [DataMember(Name = ("bounds"), IsRequired = (true))] public double[] Bounds { get; @@ -7351,7 +7070,7 @@ public double[] Bounds /// /// Shape coordinate details /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shape"), IsRequired = (true))] + [DataMember(Name = ("shape"), IsRequired = (true))] public object[] Shape { get; @@ -7361,7 +7080,7 @@ public object[] Shape /// /// Margin shape bounds /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("marginShape"), IsRequired = (true))] + [DataMember(Name = ("marginShape"), IsRequired = (true))] public object[] MarginShape { get; @@ -7378,7 +7097,7 @@ public partial class Rect : CefSharp.DevTools.DevToolsDomainEntityBase /// /// X coordinate /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] + [DataMember(Name = ("x"), IsRequired = (true))] public double X { get; @@ -7388,7 +7107,7 @@ public double X /// /// Y coordinate /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] + [DataMember(Name = ("y"), IsRequired = (true))] public double Y { get; @@ -7398,7 +7117,7 @@ public double Y /// /// Rectangle width /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] + [DataMember(Name = ("width"), IsRequired = (true))] public double Width { get; @@ -7408,7 +7127,7 @@ public double Width /// /// Rectangle height /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] + [DataMember(Name = ("height"), IsRequired = (true))] public double Height { get; @@ -7425,7 +7144,7 @@ public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomain /// /// Computed style property name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -7435,7 +7154,7 @@ public string Name /// /// Computed style property value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -7452,7 +7171,7 @@ public class AttributeModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the node that has changed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -7462,7 +7181,7 @@ public int NodeId /// /// Attribute name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -7472,7 +7191,7 @@ public string Name /// /// Attribute value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -7489,7 +7208,7 @@ public class AttributeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Id of the node that has changed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -7499,7 +7218,7 @@ public int NodeId /// /// A ttribute name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -7516,7 +7235,7 @@ public class CharacterDataModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Id of the node that has changed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -7526,7 +7245,7 @@ public int NodeId /// /// New text value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("characterData"), IsRequired = (true))] + [DataMember(Name = ("characterData"), IsRequired = (true))] public string CharacterData { get; @@ -7543,7 +7262,7 @@ public class ChildNodeCountUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Id of the node that has changed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -7553,7 +7272,7 @@ public int NodeId /// /// New node count. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("childNodeCount"), IsRequired = (true))] + [DataMember(Name = ("childNodeCount"), IsRequired = (true))] public int ChildNodeCount { get; @@ -7570,7 +7289,7 @@ public class ChildNodeInsertedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the node that has changed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentNodeId"), IsRequired = (true))] + [DataMember(Name = ("parentNodeId"), IsRequired = (true))] public int ParentNodeId { get; @@ -7580,7 +7299,7 @@ public int ParentNodeId /// /// Id of the previous sibling. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("previousNodeId"), IsRequired = (true))] + [DataMember(Name = ("previousNodeId"), IsRequired = (true))] public int PreviousNodeId { get; @@ -7590,7 +7309,7 @@ public int PreviousNodeId /// /// Inserted node data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("node"), IsRequired = (true))] + [DataMember(Name = ("node"), IsRequired = (true))] public CefSharp.DevTools.DOM.Node Node { get; @@ -7607,7 +7326,7 @@ public class ChildNodeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Parent id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentNodeId"), IsRequired = (true))] + [DataMember(Name = ("parentNodeId"), IsRequired = (true))] public int ParentNodeId { get; @@ -7617,7 +7336,7 @@ public int ParentNodeId /// /// Id of the node that has been removed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -7634,7 +7353,7 @@ public class DistributedNodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Insertion point where distributed nodes were updated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("insertionPointId"), IsRequired = (true))] + [DataMember(Name = ("insertionPointId"), IsRequired = (true))] public int InsertionPointId { get; @@ -7644,7 +7363,7 @@ public int InsertionPointId /// /// Distributed nodes for given insertion point. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("distributedNodes"), IsRequired = (true))] + [DataMember(Name = ("distributedNodes"), IsRequired = (true))] public System.Collections.Generic.IList DistributedNodes { get; @@ -7661,7 +7380,7 @@ public class InlineStyleInvalidatedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Ids of the nodes for which the inline styles have been invalidated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeIds"), IsRequired = (true))] + [DataMember(Name = ("nodeIds"), IsRequired = (true))] public int[] NodeIds { get; @@ -7678,7 +7397,7 @@ public class PseudoElementAddedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Pseudo element's parent element id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (true))] + [DataMember(Name = ("parentId"), IsRequired = (true))] public int ParentId { get; @@ -7688,7 +7407,7 @@ public int ParentId /// /// The added pseudo element. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElement"), IsRequired = (true))] + [DataMember(Name = ("pseudoElement"), IsRequired = (true))] public CefSharp.DevTools.DOM.Node PseudoElement { get; @@ -7705,7 +7424,7 @@ public class PseudoElementRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Pseudo element's parent element id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (true))] + [DataMember(Name = ("parentId"), IsRequired = (true))] public int ParentId { get; @@ -7715,7 +7434,7 @@ public int ParentId /// /// The removed pseudo element id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElementId"), IsRequired = (true))] + [DataMember(Name = ("pseudoElementId"), IsRequired = (true))] public int PseudoElementId { get; @@ -7733,7 +7452,7 @@ public class SetChildNodesEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Parent node id to populate with children. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (true))] + [DataMember(Name = ("parentId"), IsRequired = (true))] public int ParentId { get; @@ -7743,7 +7462,7 @@ public int ParentId /// /// Child nodes array. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodes"), IsRequired = (true))] + [DataMember(Name = ("nodes"), IsRequired = (true))] public System.Collections.Generic.IList Nodes { get; @@ -7760,7 +7479,7 @@ public class ShadowRootPoppedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Host element id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hostId"), IsRequired = (true))] + [DataMember(Name = ("hostId"), IsRequired = (true))] public int HostId { get; @@ -7770,7 +7489,7 @@ public int HostId /// /// Shadow root id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rootId"), IsRequired = (true))] + [DataMember(Name = ("rootId"), IsRequired = (true))] public int RootId { get; @@ -7787,7 +7506,7 @@ public class ShadowRootPushedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Host element id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hostId"), IsRequired = (true))] + [DataMember(Name = ("hostId"), IsRequired = (true))] public int HostId { get; @@ -7797,7 +7516,7 @@ public int HostId /// /// Shadow root. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("root"), IsRequired = (true))] + [DataMember(Name = ("root"), IsRequired = (true))] public CefSharp.DevTools.DOM.Node Root { get; @@ -7816,17 +7535,17 @@ public enum DOMBreakpointType /// /// subtree-modified /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("subtree-modified"))] + [EnumMember(Value = ("subtree-modified"))] SubtreeModified, /// /// attribute-modified /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("attribute-modified"))] + [EnumMember(Value = ("attribute-modified"))] AttributeModified, /// /// node-removed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("node-removed"))] + [EnumMember(Value = ("node-removed"))] NodeRemoved } @@ -7838,12 +7557,12 @@ public enum CSPViolationType /// /// trustedtype-sink-violation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("trustedtype-sink-violation"))] + [EnumMember(Value = ("trustedtype-sink-violation"))] TrustedtypeSinkViolation, /// /// trustedtype-policy-violation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("trustedtype-policy-violation"))] + [EnumMember(Value = ("trustedtype-policy-violation"))] TrustedtypePolicyViolation } @@ -7856,7 +7575,7 @@ public partial class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `EventListener`'s type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] public string Type { get; @@ -7866,7 +7585,7 @@ public string Type /// /// `EventListener`'s useCapture. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("useCapture"), IsRequired = (true))] + [DataMember(Name = ("useCapture"), IsRequired = (true))] public bool UseCapture { get; @@ -7876,7 +7595,7 @@ public bool UseCapture /// /// `EventListener`'s passive flag. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("passive"), IsRequired = (true))] + [DataMember(Name = ("passive"), IsRequired = (true))] public bool Passive { get; @@ -7886,7 +7605,7 @@ public bool Passive /// /// `EventListener`'s once flag. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("once"), IsRequired = (true))] + [DataMember(Name = ("once"), IsRequired = (true))] public bool Once { get; @@ -7896,7 +7615,7 @@ public bool Once /// /// Script id of the handler code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -7906,7 +7625,7 @@ public string ScriptId /// /// Line number in the script (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -7916,7 +7635,7 @@ public int LineNumber /// /// Column number in the script (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (true))] + [DataMember(Name = ("columnNumber"), IsRequired = (true))] public int ColumnNumber { get; @@ -7926,7 +7645,7 @@ public int ColumnNumber /// /// Event handler function value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("handler"), IsRequired = (false))] + [DataMember(Name = ("handler"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Handler { get; @@ -7936,7 +7655,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Handler /// /// Event original handler function value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("originalHandler"), IsRequired = (false))] + [DataMember(Name = ("originalHandler"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject OriginalHandler { get; @@ -7946,7 +7665,7 @@ public CefSharp.DevTools.Runtime.RemoteObject OriginalHandler /// /// Node the listener is added to (if any). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] + [DataMember(Name = ("backendNodeId"), IsRequired = (false))] public int? BackendNodeId { get; @@ -7966,7 +7685,7 @@ public partial class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `Node`'s nodeType. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (true))] + [DataMember(Name = ("nodeType"), IsRequired = (true))] public int NodeType { get; @@ -7976,7 +7695,7 @@ public int NodeType /// /// `Node`'s nodeName. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (true))] + [DataMember(Name = ("nodeName"), IsRequired = (true))] public string NodeName { get; @@ -7986,7 +7705,7 @@ public string NodeName /// /// `Node`'s nodeValue. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeValue"), IsRequired = (true))] + [DataMember(Name = ("nodeValue"), IsRequired = (true))] public string NodeValue { get; @@ -7996,7 +7715,7 @@ public string NodeValue /// /// Only set for textarea elements, contains the text value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("textValue"), IsRequired = (false))] + [DataMember(Name = ("textValue"), IsRequired = (false))] public string TextValue { get; @@ -8006,7 +7725,7 @@ public string TextValue /// /// Only set for input elements, contains the input's associated text value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("inputValue"), IsRequired = (false))] + [DataMember(Name = ("inputValue"), IsRequired = (false))] public string InputValue { get; @@ -8016,7 +7735,7 @@ public string InputValue /// /// Only set for radio and checkbox input elements, indicates if the element has been checked /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("inputChecked"), IsRequired = (false))] + [DataMember(Name = ("inputChecked"), IsRequired = (false))] public bool? InputChecked { get; @@ -8026,7 +7745,7 @@ public bool? InputChecked /// /// Only set for option elements, indicates if the element has been selected /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("optionSelected"), IsRequired = (false))] + [DataMember(Name = ("optionSelected"), IsRequired = (false))] public bool? OptionSelected { get; @@ -8036,7 +7755,7 @@ public bool? OptionSelected /// /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] + [DataMember(Name = ("backendNodeId"), IsRequired = (true))] public int BackendNodeId { get; @@ -8047,7 +7766,7 @@ public int BackendNodeId /// The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if /// any. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("childNodeIndexes"), IsRequired = (false))] + [DataMember(Name = ("childNodeIndexes"), IsRequired = (false))] public int[] ChildNodeIndexes { get; @@ -8057,7 +7776,7 @@ public int[] ChildNodeIndexes /// /// Attributes of an `Element` node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("attributes"), IsRequired = (false))] + [DataMember(Name = ("attributes"), IsRequired = (false))] public System.Collections.Generic.IList Attributes { get; @@ -8068,7 +7787,7 @@ public System.Collections.Generic.IList /// Indexes of pseudo elements associated with this node in the `domNodes` array returned by /// `getSnapshot`, if any. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoElementIndexes"), IsRequired = (false))] + [DataMember(Name = ("pseudoElementIndexes"), IsRequired = (false))] public int[] PseudoElementIndexes { get; @@ -8079,7 +7798,7 @@ public int[] PseudoElementIndexes /// The index of the node's related layout tree node in the `layoutTreeNodes` array returned by /// `getSnapshot`, if any. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("layoutNodeIndex"), IsRequired = (false))] + [DataMember(Name = ("layoutNodeIndex"), IsRequired = (false))] public int? LayoutNodeIndex { get; @@ -8089,7 +7808,7 @@ public int? LayoutNodeIndex /// /// Document URL that `Document` or `FrameOwner` node points to. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentURL"), IsRequired = (false))] + [DataMember(Name = ("documentURL"), IsRequired = (false))] public string DocumentURL { get; @@ -8099,7 +7818,7 @@ public string DocumentURL /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("baseURL"), IsRequired = (false))] + [DataMember(Name = ("baseURL"), IsRequired = (false))] public string BaseURL { get; @@ -8109,7 +7828,7 @@ public string BaseURL /// /// Only set for documents, contains the document's content language. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentLanguage"), IsRequired = (false))] + [DataMember(Name = ("contentLanguage"), IsRequired = (false))] public string ContentLanguage { get; @@ -8119,7 +7838,7 @@ public string ContentLanguage /// /// Only set for documents, contains the document's character set encoding. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentEncoding"), IsRequired = (false))] + [DataMember(Name = ("documentEncoding"), IsRequired = (false))] public string DocumentEncoding { get; @@ -8129,7 +7848,7 @@ public string DocumentEncoding /// /// `DocumentType` node's publicId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("publicId"), IsRequired = (false))] + [DataMember(Name = ("publicId"), IsRequired = (false))] public string PublicId { get; @@ -8139,7 +7858,7 @@ public string PublicId /// /// `DocumentType` node's systemId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("systemId"), IsRequired = (false))] + [DataMember(Name = ("systemId"), IsRequired = (false))] public string SystemId { get; @@ -8149,7 +7868,7 @@ public string SystemId /// /// Frame ID for frame owner elements and also for the document node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + [DataMember(Name = ("frameId"), IsRequired = (false))] public string FrameId { get; @@ -8160,7 +7879,7 @@ public string FrameId /// The index of a frame owner element's content document in the `domNodes` array returned by /// `getSnapshot`, if any. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentDocumentIndex"), IsRequired = (false))] + [DataMember(Name = ("contentDocumentIndex"), IsRequired = (false))] public int? ContentDocumentIndex { get; @@ -8186,7 +7905,7 @@ public CefSharp.DevTools.DOM.PseudoType? PseudoType /// /// Type of a pseudo element node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoType"), IsRequired = (false))] + [DataMember(Name = ("pseudoType"), IsRequired = (false))] internal string pseudoType { get; @@ -8212,7 +7931,7 @@ public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType /// /// Shadow root type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shadowRootType"), IsRequired = (false))] + [DataMember(Name = ("shadowRootType"), IsRequired = (false))] internal string shadowRootType { get; @@ -8224,7 +7943,7 @@ internal string shadowRootType /// event listeners attached via JavaScript as well as anchor tags that naturally navigate when /// clicked. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isClickable"), IsRequired = (false))] + [DataMember(Name = ("isClickable"), IsRequired = (false))] public bool? IsClickable { get; @@ -8234,7 +7953,7 @@ public bool? IsClickable /// /// Details of the node's event listeners, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventListeners"), IsRequired = (false))] + [DataMember(Name = ("eventListeners"), IsRequired = (false))] public System.Collections.Generic.IList EventListeners { get; @@ -8244,7 +7963,7 @@ public System.Collections.Generic.IList /// The selected url for nodes with a srcset attribute. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentSourceURL"), IsRequired = (false))] + [DataMember(Name = ("currentSourceURL"), IsRequired = (false))] public string CurrentSourceURL { get; @@ -8254,7 +7973,7 @@ public string CurrentSourceURL /// /// The url of the script (if any) that generates this node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("originURL"), IsRequired = (false))] + [DataMember(Name = ("originURL"), IsRequired = (false))] public string OriginURL { get; @@ -8264,7 +7983,7 @@ public string OriginURL /// /// Scroll offsets, set when this node is a Document. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetX"), IsRequired = (false))] + [DataMember(Name = ("scrollOffsetX"), IsRequired = (false))] public double? ScrollOffsetX { get; @@ -8274,7 +7993,7 @@ public double? ScrollOffsetX /// /// ScrollOffsetY /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetY"), IsRequired = (false))] + [DataMember(Name = ("scrollOffsetY"), IsRequired = (false))] public double? ScrollOffsetY { get; @@ -8292,7 +8011,7 @@ public partial class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("boundingBox"), IsRequired = (true))] + [DataMember(Name = ("boundingBox"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect BoundingBox { get; @@ -8303,7 +8022,7 @@ public CefSharp.DevTools.DOM.Rect BoundingBox /// The starting index in characters, for this post layout textbox substring. Characters that /// would be represented as a surrogate pair in UTF-16 have length 2. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("startCharacterIndex"), IsRequired = (true))] + [DataMember(Name = ("startCharacterIndex"), IsRequired = (true))] public int StartCharacterIndex { get; @@ -8314,7 +8033,7 @@ public int StartCharacterIndex /// The number of characters in this post layout textbox substring. Characters that would be /// represented as a surrogate pair in UTF-16 have length 2. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("numCharacters"), IsRequired = (true))] + [DataMember(Name = ("numCharacters"), IsRequired = (true))] public int NumCharacters { get; @@ -8331,7 +8050,7 @@ public partial class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The index of the related DOM node in the `domNodes` array returned by `getSnapshot`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("domNodeIndex"), IsRequired = (true))] + [DataMember(Name = ("domNodeIndex"), IsRequired = (true))] public int DomNodeIndex { get; @@ -8341,7 +8060,7 @@ public int DomNodeIndex /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("boundingBox"), IsRequired = (true))] + [DataMember(Name = ("boundingBox"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect BoundingBox { get; @@ -8351,7 +8070,7 @@ public CefSharp.DevTools.DOM.Rect BoundingBox /// /// Contents of the LayoutText, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("layoutText"), IsRequired = (false))] + [DataMember(Name = ("layoutText"), IsRequired = (false))] public string LayoutText { get; @@ -8361,7 +8080,7 @@ public string LayoutText /// /// The post-layout inline text nodes, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("inlineTextNodes"), IsRequired = (false))] + [DataMember(Name = ("inlineTextNodes"), IsRequired = (false))] public System.Collections.Generic.IList InlineTextNodes { get; @@ -8371,7 +8090,7 @@ public System.Collections.Generic.IList /// Index into the `computedStyles` array returned by `getSnapshot`. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("styleIndex"), IsRequired = (false))] + [DataMember(Name = ("styleIndex"), IsRequired = (false))] public int? StyleIndex { get; @@ -8383,7 +8102,7 @@ public int? StyleIndex /// that are painted together will have the same index. Only provided if includePaintOrder in /// getSnapshot was true. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("paintOrder"), IsRequired = (false))] + [DataMember(Name = ("paintOrder"), IsRequired = (false))] public int? PaintOrder { get; @@ -8393,7 +8112,7 @@ public int? PaintOrder /// /// Set to true to indicate the element begins a new stacking context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isStackingContext"), IsRequired = (false))] + [DataMember(Name = ("isStackingContext"), IsRequired = (false))] public bool? IsStackingContext { get; @@ -8410,7 +8129,7 @@ public partial class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name/value pairs of computed style properties. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("properties"), IsRequired = (true))] + [DataMember(Name = ("properties"), IsRequired = (true))] public System.Collections.Generic.IList Properties { get; @@ -8427,7 +8146,7 @@ public partial class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Attribute/property name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -8437,7 +8156,7 @@ public string Name /// /// Attribute/property value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -8454,7 +8173,7 @@ public partial class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Index /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("index"), IsRequired = (true))] + [DataMember(Name = ("index"), IsRequired = (true))] public int[] Index { get; @@ -8464,7 +8183,7 @@ public int[] Index /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public int[] Value { get; @@ -8481,7 +8200,7 @@ public partial class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Index /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("index"), IsRequired = (true))] + [DataMember(Name = ("index"), IsRequired = (true))] public int[] Index { get; @@ -8498,7 +8217,7 @@ public partial class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Index /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("index"), IsRequired = (true))] + [DataMember(Name = ("index"), IsRequired = (true))] public int[] Index { get; @@ -8508,7 +8227,7 @@ public int[] Index /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public int[] Value { get; @@ -8525,7 +8244,7 @@ public partial class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Document URL that `Document` or `FrameOwner` node points to. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentURL"), IsRequired = (true))] + [DataMember(Name = ("documentURL"), IsRequired = (true))] public int DocumentURL { get; @@ -8535,7 +8254,7 @@ public int DocumentURL /// /// Document title. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] + [DataMember(Name = ("title"), IsRequired = (true))] public int Title { get; @@ -8545,7 +8264,7 @@ public int Title /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("baseURL"), IsRequired = (true))] + [DataMember(Name = ("baseURL"), IsRequired = (true))] public int BaseURL { get; @@ -8555,7 +8274,7 @@ public int BaseURL /// /// Contains the document's content language. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentLanguage"), IsRequired = (true))] + [DataMember(Name = ("contentLanguage"), IsRequired = (true))] public int ContentLanguage { get; @@ -8565,7 +8284,7 @@ public int ContentLanguage /// /// Contains the document's character set encoding. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodingName"), IsRequired = (true))] + [DataMember(Name = ("encodingName"), IsRequired = (true))] public int EncodingName { get; @@ -8575,7 +8294,7 @@ public int EncodingName /// /// `DocumentType` node's publicId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("publicId"), IsRequired = (true))] + [DataMember(Name = ("publicId"), IsRequired = (true))] public int PublicId { get; @@ -8585,7 +8304,7 @@ public int PublicId /// /// `DocumentType` node's systemId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("systemId"), IsRequired = (true))] + [DataMember(Name = ("systemId"), IsRequired = (true))] public int SystemId { get; @@ -8595,7 +8314,7 @@ public int SystemId /// /// Frame ID for frame owner elements and also for the document node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public int FrameId { get; @@ -8605,7 +8324,7 @@ public int FrameId /// /// A table with dom nodes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodes"), IsRequired = (true))] + [DataMember(Name = ("nodes"), IsRequired = (true))] public CefSharp.DevTools.DOMSnapshot.NodeTreeSnapshot Nodes { get; @@ -8615,7 +8334,7 @@ public CefSharp.DevTools.DOMSnapshot.NodeTreeSnapshot Nodes /// /// The nodes in the layout tree. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("layout"), IsRequired = (true))] + [DataMember(Name = ("layout"), IsRequired = (true))] public CefSharp.DevTools.DOMSnapshot.LayoutTreeSnapshot Layout { get; @@ -8625,7 +8344,7 @@ public CefSharp.DevTools.DOMSnapshot.LayoutTreeSnapshot Layout /// /// The post-layout inline text nodes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("textBoxes"), IsRequired = (true))] + [DataMember(Name = ("textBoxes"), IsRequired = (true))] public CefSharp.DevTools.DOMSnapshot.TextBoxSnapshot TextBoxes { get; @@ -8635,7 +8354,7 @@ public CefSharp.DevTools.DOMSnapshot.TextBoxSnapshot TextBoxes /// /// Horizontal scroll offset. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetX"), IsRequired = (false))] + [DataMember(Name = ("scrollOffsetX"), IsRequired = (false))] public double? ScrollOffsetX { get; @@ -8645,7 +8364,7 @@ public double? ScrollOffsetX /// /// Vertical scroll offset. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetY"), IsRequired = (false))] + [DataMember(Name = ("scrollOffsetY"), IsRequired = (false))] public double? ScrollOffsetY { get; @@ -8655,7 +8374,7 @@ public double? ScrollOffsetY /// /// Document content width. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentWidth"), IsRequired = (false))] + [DataMember(Name = ("contentWidth"), IsRequired = (false))] public double? ContentWidth { get; @@ -8665,7 +8384,7 @@ public double? ContentWidth /// /// Document content height. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentHeight"), IsRequired = (false))] + [DataMember(Name = ("contentHeight"), IsRequired = (false))] public double? ContentHeight { get; @@ -8682,7 +8401,7 @@ public partial class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Parent node index. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentIndex"), IsRequired = (false))] + [DataMember(Name = ("parentIndex"), IsRequired = (false))] public int[] ParentIndex { get; @@ -8692,7 +8411,7 @@ public int[] ParentIndex /// /// `Node`'s nodeType. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (false))] + [DataMember(Name = ("nodeType"), IsRequired = (false))] public int[] NodeType { get; @@ -8702,7 +8421,7 @@ public int[] NodeType /// /// Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shadowRootType"), IsRequired = (false))] + [DataMember(Name = ("shadowRootType"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData ShadowRootType { get; @@ -8712,7 +8431,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData ShadowRootType /// /// `Node`'s nodeName. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeName"), IsRequired = (false))] + [DataMember(Name = ("nodeName"), IsRequired = (false))] public int[] NodeName { get; @@ -8722,7 +8441,7 @@ public int[] NodeName /// /// `Node`'s nodeValue. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeValue"), IsRequired = (false))] + [DataMember(Name = ("nodeValue"), IsRequired = (false))] public int[] NodeValue { get; @@ -8732,7 +8451,7 @@ public int[] NodeValue /// /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] + [DataMember(Name = ("backendNodeId"), IsRequired = (false))] public int[] BackendNodeId { get; @@ -8742,7 +8461,7 @@ public int[] BackendNodeId /// /// Attributes of an `Element` node. Flatten name, value pairs. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("attributes"), IsRequired = (false))] + [DataMember(Name = ("attributes"), IsRequired = (false))] public int[] Attributes { get; @@ -8752,7 +8471,7 @@ public int[] Attributes /// /// Only set for textarea elements, contains the text value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("textValue"), IsRequired = (false))] + [DataMember(Name = ("textValue"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData TextValue { get; @@ -8762,7 +8481,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData TextValue /// /// Only set for input elements, contains the input's associated text value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("inputValue"), IsRequired = (false))] + [DataMember(Name = ("inputValue"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData InputValue { get; @@ -8772,7 +8491,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData InputValue /// /// Only set for radio and checkbox input elements, indicates if the element has been checked /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("inputChecked"), IsRequired = (false))] + [DataMember(Name = ("inputChecked"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareBooleanData InputChecked { get; @@ -8782,7 +8501,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData InputChecked /// /// Only set for option elements, indicates if the element has been selected /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("optionSelected"), IsRequired = (false))] + [DataMember(Name = ("optionSelected"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareBooleanData OptionSelected { get; @@ -8792,7 +8511,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData OptionSelected /// /// The index of the document in the list of the snapshot documents. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentDocumentIndex"), IsRequired = (false))] + [DataMember(Name = ("contentDocumentIndex"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareIntegerData ContentDocumentIndex { get; @@ -8802,7 +8521,7 @@ public CefSharp.DevTools.DOMSnapshot.RareIntegerData ContentDocumentIndex /// /// Type of a pseudo element node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoType"), IsRequired = (false))] + [DataMember(Name = ("pseudoType"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoType { get; @@ -8813,7 +8532,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoType /// Pseudo element identifier for this node. Only present if there is a /// valid pseudoType. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("pseudoIdentifier"), IsRequired = (false))] + [DataMember(Name = ("pseudoIdentifier"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoIdentifier { get; @@ -8825,7 +8544,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoIdentifier /// event listeners attached via JavaScript as well as anchor tags that naturally navigate when /// clicked. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isClickable"), IsRequired = (false))] + [DataMember(Name = ("isClickable"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareBooleanData IsClickable { get; @@ -8835,7 +8554,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData IsClickable /// /// The selected url for nodes with a srcset attribute. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentSourceURL"), IsRequired = (false))] + [DataMember(Name = ("currentSourceURL"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData CurrentSourceURL { get; @@ -8845,7 +8564,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData CurrentSourceURL /// /// The url of the script (if any) that generates this node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("originURL"), IsRequired = (false))] + [DataMember(Name = ("originURL"), IsRequired = (false))] public CefSharp.DevTools.DOMSnapshot.RareStringData OriginURL { get; @@ -8862,7 +8581,7 @@ public partial class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntity /// /// Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeIndex"), IsRequired = (true))] + [DataMember(Name = ("nodeIndex"), IsRequired = (true))] public int[] NodeIndex { get; @@ -8872,7 +8591,7 @@ public int[] NodeIndex /// /// Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("styles"), IsRequired = (true))] + [DataMember(Name = ("styles"), IsRequired = (true))] public int[] Styles { get; @@ -8882,7 +8601,7 @@ public int[] Styles /// /// The absolute position bounding box. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))] + [DataMember(Name = ("bounds"), IsRequired = (true))] public double[] Bounds { get; @@ -8892,7 +8611,7 @@ public double[] Bounds /// /// Contents of the LayoutText, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public int[] Text { get; @@ -8902,7 +8621,7 @@ public int[] Text /// /// Stacking context information. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackingContexts"), IsRequired = (true))] + [DataMember(Name = ("stackingContexts"), IsRequired = (true))] public CefSharp.DevTools.DOMSnapshot.RareBooleanData StackingContexts { get; @@ -8914,7 +8633,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData StackingContexts /// that are painted together will have the same index. Only provided if includePaintOrder in /// captureSnapshot was true. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("paintOrders"), IsRequired = (false))] + [DataMember(Name = ("paintOrders"), IsRequired = (false))] public int[] PaintOrders { get; @@ -8924,7 +8643,7 @@ public int[] PaintOrders /// /// The offset rect of nodes. Only available when includeDOMRects is set to true /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetRects"), IsRequired = (false))] + [DataMember(Name = ("offsetRects"), IsRequired = (false))] public double[] OffsetRects { get; @@ -8934,7 +8653,7 @@ public double[] OffsetRects /// /// The scroll rect of nodes. Only available when includeDOMRects is set to true /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollRects"), IsRequired = (false))] + [DataMember(Name = ("scrollRects"), IsRequired = (false))] public double[] ScrollRects { get; @@ -8944,7 +8663,7 @@ public double[] ScrollRects /// /// The client rect of nodes. Only available when includeDOMRects is set to true /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientRects"), IsRequired = (false))] + [DataMember(Name = ("clientRects"), IsRequired = (false))] public double[] ClientRects { get; @@ -8954,7 +8673,7 @@ public double[] ClientRects /// /// The list of background colors that are blended with colors of overlapping elements. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blendedBackgroundColors"), IsRequired = (false))] + [DataMember(Name = ("blendedBackgroundColors"), IsRequired = (false))] public int[] BlendedBackgroundColors { get; @@ -8964,7 +8683,7 @@ public int[] BlendedBackgroundColors /// /// The list of computed text opacities. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("textColorOpacities"), IsRequired = (false))] + [DataMember(Name = ("textColorOpacities"), IsRequired = (false))] public double[] TextColorOpacities { get; @@ -8982,7 +8701,7 @@ public partial class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Index of the layout tree node that owns this box collection. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("layoutIndex"), IsRequired = (true))] + [DataMember(Name = ("layoutIndex"), IsRequired = (true))] public int[] LayoutIndex { get; @@ -8992,7 +8711,7 @@ public int[] LayoutIndex /// /// The absolute position bounding box. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bounds"), IsRequired = (true))] + [DataMember(Name = ("bounds"), IsRequired = (true))] public double[] Bounds { get; @@ -9003,7 +8722,7 @@ public double[] Bounds /// The starting index in characters, for this post layout textbox substring. Characters that /// would be represented as a surrogate pair in UTF-16 have length 2. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("start"), IsRequired = (true))] + [DataMember(Name = ("start"), IsRequired = (true))] public int[] Start { get; @@ -9014,7 +8733,7 @@ public int[] Start /// The number of characters in this post layout textbox substring. Characters that would be /// represented as a surrogate pair in UTF-16 have length 2. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (true))] + [DataMember(Name = ("length"), IsRequired = (true))] public int[] Length { get; @@ -9034,7 +8753,7 @@ public partial class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Security origin for the storage. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityOrigin"), IsRequired = (false))] + [DataMember(Name = ("securityOrigin"), IsRequired = (false))] public string SecurityOrigin { get; @@ -9044,7 +8763,7 @@ public string SecurityOrigin /// /// Represents a key by which DOM Storage keys its CachedStorageAreas /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (false))] + [DataMember(Name = ("storageKey"), IsRequired = (false))] public string StorageKey { get; @@ -9054,7 +8773,7 @@ public string StorageKey /// /// Whether the storage is local storage (not session storage). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isLocalStorage"), IsRequired = (true))] + [DataMember(Name = ("isLocalStorage"), IsRequired = (true))] public bool IsLocalStorage { get; @@ -9071,7 +8790,7 @@ public class DomStorageItemAddedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// StorageId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + [DataMember(Name = ("storageId"), IsRequired = (true))] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; @@ -9081,7 +8800,7 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId /// /// Key /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + [DataMember(Name = ("key"), IsRequired = (true))] public string Key { get; @@ -9091,7 +8810,7 @@ public string Key /// /// NewValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("newValue"), IsRequired = (true))] + [DataMember(Name = ("newValue"), IsRequired = (true))] public string NewValue { get; @@ -9108,7 +8827,7 @@ public class DomStorageItemRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// StorageId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + [DataMember(Name = ("storageId"), IsRequired = (true))] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; @@ -9118,7 +8837,7 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId /// /// Key /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + [DataMember(Name = ("key"), IsRequired = (true))] public string Key { get; @@ -9135,7 +8854,7 @@ public class DomStorageItemUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// StorageId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + [DataMember(Name = ("storageId"), IsRequired = (true))] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; @@ -9145,7 +8864,7 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId /// /// Key /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + [DataMember(Name = ("key"), IsRequired = (true))] public string Key { get; @@ -9155,7 +8874,7 @@ public string Key /// /// OldValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("oldValue"), IsRequired = (true))] + [DataMember(Name = ("oldValue"), IsRequired = (true))] public string OldValue { get; @@ -9165,7 +8884,7 @@ public string OldValue /// /// NewValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("newValue"), IsRequired = (true))] + [DataMember(Name = ("newValue"), IsRequired = (true))] public string NewValue { get; @@ -9182,7 +8901,7 @@ public class DomStorageItemsClearedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// StorageId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageId"), IsRequired = (true))] + [DataMember(Name = ("storageId"), IsRequired = (true))] public CefSharp.DevTools.DOMStorage.StorageId StorageId { get; @@ -9202,7 +8921,7 @@ public partial class Database : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Database ID. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -9212,7 +8931,7 @@ public string Id /// /// Database domain. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("domain"), IsRequired = (true))] + [DataMember(Name = ("domain"), IsRequired = (true))] public string Domain { get; @@ -9222,7 +8941,7 @@ public string Domain /// /// Database name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -9232,7 +8951,7 @@ public string Name /// /// Database version. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("version"), IsRequired = (true))] + [DataMember(Name = ("version"), IsRequired = (true))] public string Version { get; @@ -9249,7 +8968,7 @@ public partial class Error : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Error message. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + [DataMember(Name = ("message"), IsRequired = (true))] public string Message { get; @@ -9259,7 +8978,7 @@ public string Message /// /// Error code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("code"), IsRequired = (true))] + [DataMember(Name = ("code"), IsRequired = (true))] public int Code { get; @@ -9276,7 +8995,7 @@ public class AddDatabaseEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBas /// /// Database /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("database"), IsRequired = (true))] + [DataMember(Name = ("database"), IsRequired = (true))] public CefSharp.DevTools.Database.Database Database { get; @@ -9295,22 +9014,22 @@ public enum ScreenOrientationType /// /// portraitPrimary /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("portraitPrimary"))] + [EnumMember(Value = ("portraitPrimary"))] PortraitPrimary, /// /// portraitSecondary /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("portraitSecondary"))] + [EnumMember(Value = ("portraitSecondary"))] PortraitSecondary, /// /// landscapePrimary /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("landscapePrimary"))] + [EnumMember(Value = ("landscapePrimary"))] LandscapePrimary, /// /// landscapeSecondary /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("landscapeSecondary"))] + [EnumMember(Value = ("landscapeSecondary"))] LandscapeSecondary } @@ -9339,7 +9058,7 @@ public CefSharp.DevTools.Emulation.ScreenOrientationType Type /// /// Orientation type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -9349,7 +9068,7 @@ internal string type /// /// Orientation angle. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("angle"), IsRequired = (true))] + [DataMember(Name = ("angle"), IsRequired = (true))] public int Angle { get; @@ -9365,12 +9084,12 @@ public enum DisplayFeatureOrientation /// /// vertical /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("vertical"))] + [EnumMember(Value = ("vertical"))] Vertical, /// /// horizontal /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("horizontal"))] + [EnumMember(Value = ("horizontal"))] Horizontal } @@ -9399,7 +9118,7 @@ public CefSharp.DevTools.Emulation.DisplayFeatureOrientation Orientation /// /// Orientation of a display feature in relation to screen /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("orientation"), IsRequired = (true))] + [DataMember(Name = ("orientation"), IsRequired = (true))] internal string orientation { get; @@ -9410,7 +9129,7 @@ internal string orientation /// The offset from the screen origin in either the x (for vertical /// orientation) or y (for horizontal orientation) direction. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("offset"), IsRequired = (true))] + [DataMember(Name = ("offset"), IsRequired = (true))] public int Offset { get; @@ -9422,7 +9141,7 @@ public int Offset /// displayed - this length along with the offset describes this area. /// A display feature that only splits content will have a 0 mask_length. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("maskLength"), IsRequired = (true))] + [DataMember(Name = ("maskLength"), IsRequired = (true))] public int MaskLength { get; @@ -9439,7 +9158,7 @@ public partial class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -9449,7 +9168,7 @@ public string Name /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -9468,17 +9187,17 @@ public enum VirtualTimePolicy /// /// advance /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("advance"))] + [EnumMember(Value = ("advance"))] Advance, /// /// pause /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("pause"))] + [EnumMember(Value = ("pause"))] Pause, /// /// pauseIfNetworkFetchesPending /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("pauseIfNetworkFetchesPending"))] + [EnumMember(Value = ("pauseIfNetworkFetchesPending"))] PauseIfNetworkFetchesPending } @@ -9491,7 +9210,7 @@ public partial class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEnt /// /// Brand /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("brand"), IsRequired = (true))] + [DataMember(Name = ("brand"), IsRequired = (true))] public string Brand { get; @@ -9501,7 +9220,7 @@ public string Brand /// /// Version /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("version"), IsRequired = (true))] + [DataMember(Name = ("version"), IsRequired = (true))] public string Version { get; @@ -9519,7 +9238,7 @@ public partial class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityB /// /// Brands appearing in Sec-CH-UA. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("brands"), IsRequired = (false))] + [DataMember(Name = ("brands"), IsRequired = (false))] public System.Collections.Generic.IList Brands { get; @@ -9529,7 +9248,7 @@ public System.Collections.Generic.IList /// Brands appearing in Sec-CH-UA-Full-Version-List. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("fullVersionList"), IsRequired = (false))] + [DataMember(Name = ("fullVersionList"), IsRequired = (false))] public System.Collections.Generic.IList FullVersionList { get; @@ -9539,7 +9258,7 @@ public System.Collections.Generic.IList /// FullVersion ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("fullVersion"), IsRequired = (false))] + [DataMember(Name = ("fullVersion"), IsRequired = (false))] public string FullVersion { get; @@ -9549,7 +9268,7 @@ public string FullVersion /// /// Platform /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("platform"), IsRequired = (true))] + [DataMember(Name = ("platform"), IsRequired = (true))] public string Platform { get; @@ -9559,7 +9278,7 @@ public string Platform /// /// PlatformVersion /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("platformVersion"), IsRequired = (true))] + [DataMember(Name = ("platformVersion"), IsRequired = (true))] public string PlatformVersion { get; @@ -9569,7 +9288,7 @@ public string PlatformVersion /// /// Architecture /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("architecture"), IsRequired = (true))] + [DataMember(Name = ("architecture"), IsRequired = (true))] public string Architecture { get; @@ -9579,7 +9298,7 @@ public string Architecture /// /// Model /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("model"), IsRequired = (true))] + [DataMember(Name = ("model"), IsRequired = (true))] public string Model { get; @@ -9589,7 +9308,7 @@ public string Model /// /// Mobile /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mobile"), IsRequired = (true))] + [DataMember(Name = ("mobile"), IsRequired = (true))] public bool Mobile { get; @@ -9599,7 +9318,7 @@ public bool Mobile /// /// Bitness /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bitness"), IsRequired = (false))] + [DataMember(Name = ("bitness"), IsRequired = (false))] public string Bitness { get; @@ -9609,7 +9328,7 @@ public string Bitness /// /// Wow64 /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("wow64"), IsRequired = (false))] + [DataMember(Name = ("wow64"), IsRequired = (false))] public bool? Wow64 { get; @@ -9625,12 +9344,12 @@ public enum DisabledImageType /// /// avif /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("avif"))] + [EnumMember(Value = ("avif"))] Avif, /// /// webp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webp"))] + [EnumMember(Value = ("webp"))] Webp } } @@ -9645,17 +9364,17 @@ public enum ScreenshotParamsFormat /// /// jpeg /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("jpeg"))] + [EnumMember(Value = ("jpeg"))] Jpeg, /// /// png /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("png"))] + [EnumMember(Value = ("png"))] Png, /// /// webp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webp"))] + [EnumMember(Value = ("webp"))] Webp } @@ -9684,7 +9403,7 @@ public CefSharp.DevTools.HeadlessExperimental.ScreenshotParamsFormat? Format /// /// Image compression format (defaults to png). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("format"), IsRequired = (false))] + [DataMember(Name = ("format"), IsRequired = (false))] internal string format { get; @@ -9694,7 +9413,7 @@ internal string format /// /// Compression quality from range [0..100] (jpeg only). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("quality"), IsRequired = (false))] + [DataMember(Name = ("quality"), IsRequired = (false))] public int? Quality { get; @@ -9704,7 +9423,7 @@ public int? Quality /// /// Optimize image encoding for speed, not for resulting size (defaults to false) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("optimizeForSpeed"), IsRequired = (false))] + [DataMember(Name = ("optimizeForSpeed"), IsRequired = (false))] public bool? OptimizeForSpeed { get; @@ -9724,7 +9443,7 @@ public partial class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomain /// /// Database name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -9735,7 +9454,7 @@ public string Name /// Database version (type is not 'integer', as the standard /// requires the version number to be 'unsigned long long') ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("version"), IsRequired = (true))] + [DataMember(Name = ("version"), IsRequired = (true))] public double Version { get; @@ -9745,7 +9464,7 @@ public double Version /// /// Object stores in this database. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("objectStores"), IsRequired = (true))] + [DataMember(Name = ("objectStores"), IsRequired = (true))] public System.Collections.Generic.IList ObjectStores { get; @@ -9762,7 +9481,7 @@ public partial class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Object store name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -9772,7 +9491,7 @@ public string Name /// /// Object store key path. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyPath"), IsRequired = (true))] + [DataMember(Name = ("keyPath"), IsRequired = (true))] public CefSharp.DevTools.IndexedDB.KeyPath KeyPath { get; @@ -9782,7 +9501,7 @@ public CefSharp.DevTools.IndexedDB.KeyPath KeyPath /// /// If true, object store has auto increment flag set. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("autoIncrement"), IsRequired = (true))] + [DataMember(Name = ("autoIncrement"), IsRequired = (true))] public bool AutoIncrement { get; @@ -9792,7 +9511,7 @@ public bool AutoIncrement /// /// Indexes in this object store. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("indexes"), IsRequired = (true))] + [DataMember(Name = ("indexes"), IsRequired = (true))] public System.Collections.Generic.IList Indexes { get; @@ -9809,7 +9528,7 @@ public partial class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Index name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -9819,7 +9538,7 @@ public string Name /// /// Index key path. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyPath"), IsRequired = (true))] + [DataMember(Name = ("keyPath"), IsRequired = (true))] public CefSharp.DevTools.IndexedDB.KeyPath KeyPath { get; @@ -9829,7 +9548,7 @@ public CefSharp.DevTools.IndexedDB.KeyPath KeyPath /// /// If true, index is unique. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("unique"), IsRequired = (true))] + [DataMember(Name = ("unique"), IsRequired = (true))] public bool Unique { get; @@ -9839,7 +9558,7 @@ public bool Unique /// /// If true, index allows multiple entries for a key. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("multiEntry"), IsRequired = (true))] + [DataMember(Name = ("multiEntry"), IsRequired = (true))] public bool MultiEntry { get; @@ -9855,22 +9574,22 @@ public enum KeyType /// /// number /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("number"))] + [EnumMember(Value = ("number"))] Number, /// /// string /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("string"))] + [EnumMember(Value = ("string"))] String, /// /// date /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("date"))] + [EnumMember(Value = ("date"))] Date, /// /// array /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("array"))] + [EnumMember(Value = ("array"))] Array } @@ -9899,7 +9618,7 @@ public CefSharp.DevTools.IndexedDB.KeyType Type /// /// Key type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -9909,7 +9628,7 @@ internal string type /// /// Number value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("number"), IsRequired = (false))] + [DataMember(Name = ("number"), IsRequired = (false))] public double? Number { get; @@ -9919,7 +9638,7 @@ public double? Number /// /// String value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("string"), IsRequired = (false))] + [DataMember(Name = ("string"), IsRequired = (false))] public string String { get; @@ -9929,7 +9648,7 @@ public string String /// /// Date value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("date"), IsRequired = (false))] + [DataMember(Name = ("date"), IsRequired = (false))] public double? Date { get; @@ -9939,7 +9658,7 @@ public double? Date /// /// Array value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("array"), IsRequired = (false))] + [DataMember(Name = ("array"), IsRequired = (false))] public System.Collections.Generic.IList Array { get; @@ -9956,7 +9675,7 @@ public partial class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Lower bound. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lower"), IsRequired = (false))] + [DataMember(Name = ("lower"), IsRequired = (false))] public CefSharp.DevTools.IndexedDB.Key Lower { get; @@ -9966,7 +9685,7 @@ public CefSharp.DevTools.IndexedDB.Key Lower /// /// Upper bound. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("upper"), IsRequired = (false))] + [DataMember(Name = ("upper"), IsRequired = (false))] public CefSharp.DevTools.IndexedDB.Key Upper { get; @@ -9976,7 +9695,7 @@ public CefSharp.DevTools.IndexedDB.Key Upper /// /// If true lower bound is open. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lowerOpen"), IsRequired = (true))] + [DataMember(Name = ("lowerOpen"), IsRequired = (true))] public bool LowerOpen { get; @@ -9986,7 +9705,7 @@ public bool LowerOpen /// /// If true upper bound is open. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("upperOpen"), IsRequired = (true))] + [DataMember(Name = ("upperOpen"), IsRequired = (true))] public bool UpperOpen { get; @@ -10003,7 +9722,7 @@ public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Key object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + [DataMember(Name = ("key"), IsRequired = (true))] public CefSharp.DevTools.Runtime.RemoteObject Key { get; @@ -10013,7 +9732,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Key /// /// Primary key object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("primaryKey"), IsRequired = (true))] + [DataMember(Name = ("primaryKey"), IsRequired = (true))] public CefSharp.DevTools.Runtime.RemoteObject PrimaryKey { get; @@ -10023,7 +9742,7 @@ public CefSharp.DevTools.Runtime.RemoteObject PrimaryKey /// /// Value object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public CefSharp.DevTools.Runtime.RemoteObject Value { get; @@ -10039,17 +9758,17 @@ public enum KeyPathType /// /// null /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("null"))] + [EnumMember(Value = ("null"))] Null, /// /// string /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("string"))] + [EnumMember(Value = ("string"))] String, /// /// array /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("array"))] + [EnumMember(Value = ("array"))] Array } @@ -10078,7 +9797,7 @@ public CefSharp.DevTools.IndexedDB.KeyPathType Type /// /// Key path type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -10088,7 +9807,7 @@ internal string type /// /// String value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("string"), IsRequired = (false))] + [DataMember(Name = ("string"), IsRequired = (false))] public string String { get; @@ -10098,7 +9817,7 @@ public string String /// /// Array value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("array"), IsRequired = (false))] + [DataMember(Name = ("array"), IsRequired = (false))] public string[] Array { get; @@ -10118,7 +9837,7 @@ public partial class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase /// /// X coordinate of the event relative to the main frame's viewport in CSS pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] + [DataMember(Name = ("x"), IsRequired = (true))] public double X { get; @@ -10129,7 +9848,7 @@ public double X /// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to /// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] + [DataMember(Name = ("y"), IsRequired = (true))] public double Y { get; @@ -10139,7 +9858,7 @@ public double Y /// /// X radius of the touch area (default: 1.0). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("radiusX"), IsRequired = (false))] + [DataMember(Name = ("radiusX"), IsRequired = (false))] public double? RadiusX { get; @@ -10149,7 +9868,7 @@ public double? RadiusX /// /// Y radius of the touch area (default: 1.0). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("radiusY"), IsRequired = (false))] + [DataMember(Name = ("radiusY"), IsRequired = (false))] public double? RadiusY { get; @@ -10159,7 +9878,7 @@ public double? RadiusY /// /// Rotation angle (default: 0.0). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rotationAngle"), IsRequired = (false))] + [DataMember(Name = ("rotationAngle"), IsRequired = (false))] public double? RotationAngle { get; @@ -10169,7 +9888,7 @@ public double? RotationAngle /// /// Force (default: 1.0). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("force"), IsRequired = (false))] + [DataMember(Name = ("force"), IsRequired = (false))] public double? Force { get; @@ -10179,7 +9898,7 @@ public double? Force /// /// The normalized tangential pressure, which has a range of [-1,1] (default: 0). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("tangentialPressure"), IsRequired = (false))] + [DataMember(Name = ("tangentialPressure"), IsRequired = (false))] public double? TangentialPressure { get; @@ -10189,7 +9908,7 @@ public double? TangentialPressure /// /// The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("tiltX"), IsRequired = (false))] + [DataMember(Name = ("tiltX"), IsRequired = (false))] public int? TiltX { get; @@ -10199,7 +9918,7 @@ public int? TiltX /// /// The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("tiltY"), IsRequired = (false))] + [DataMember(Name = ("tiltY"), IsRequired = (false))] public int? TiltY { get; @@ -10209,7 +9928,7 @@ public int? TiltY /// /// The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("twist"), IsRequired = (false))] + [DataMember(Name = ("twist"), IsRequired = (false))] public int? Twist { get; @@ -10219,7 +9938,7 @@ public int? Twist /// /// Identifier used to track touch sources between events, must be unique within an event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (false))] + [DataMember(Name = ("id"), IsRequired = (false))] public double? Id { get; @@ -10235,17 +9954,17 @@ public enum GestureSourceType /// /// default /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("default"))] + [EnumMember(Value = ("default"))] Default, /// /// touch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("touch"))] + [EnumMember(Value = ("touch"))] Touch, /// /// mouse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouse"))] + [EnumMember(Value = ("mouse"))] Mouse } @@ -10257,32 +9976,32 @@ public enum MouseButton /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None, /// /// left /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("left"))] + [EnumMember(Value = ("left"))] Left, /// /// middle /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("middle"))] + [EnumMember(Value = ("middle"))] Middle, /// /// right /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("right"))] + [EnumMember(Value = ("right"))] Right, /// /// back /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("back"))] + [EnumMember(Value = ("back"))] Back, /// /// forward /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("forward"))] + [EnumMember(Value = ("forward"))] Forward } @@ -10295,7 +10014,7 @@ public partial class DragDataItem : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Mime type of the dragged data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mimeType"), IsRequired = (true))] + [DataMember(Name = ("mimeType"), IsRequired = (true))] public string MimeType { get; @@ -10306,7 +10025,7 @@ public string MimeType /// Depending of the value of `mimeType`, it contains the dragged link, /// text, HTML markup or any other data. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + [DataMember(Name = ("data"), IsRequired = (true))] public string Data { get; @@ -10316,7 +10035,7 @@ public string Data /// /// Title associated with a link. Only valid when `mimeType` == "text/uri-list". /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (false))] + [DataMember(Name = ("title"), IsRequired = (false))] public string Title { get; @@ -10327,7 +10046,7 @@ public string Title /// Stores the base URL for the contained markup. Only valid when `mimeType` /// == "text/html". ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("baseURL"), IsRequired = (false))] + [DataMember(Name = ("baseURL"), IsRequired = (false))] public string BaseURL { get; @@ -10344,7 +10063,7 @@ public partial class DragData : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Items /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("items"), IsRequired = (true))] + [DataMember(Name = ("items"), IsRequired = (true))] public System.Collections.Generic.IList Items { get; @@ -10354,7 +10073,7 @@ public System.Collections.Generic.IList It /// /// List of filenames that should be included when dropping /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("files"), IsRequired = (false))] + [DataMember(Name = ("files"), IsRequired = (false))] public string[] Files { get; @@ -10364,7 +10083,7 @@ public string[] Files /// /// Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16 /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("dragOperationsMask"), IsRequired = (true))] + [DataMember(Name = ("dragOperationsMask"), IsRequired = (true))] public int DragOperationsMask { get; @@ -10382,7 +10101,7 @@ public class DragInterceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Data /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + [DataMember(Name = ("data"), IsRequired = (true))] public CefSharp.DevTools.Input.DragData Data { get; @@ -10402,7 +10121,7 @@ public class DetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// The reason why connection has been terminated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] public string Reason { get; @@ -10421,17 +10140,17 @@ public enum ScrollRectType /// /// RepaintsOnScroll /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RepaintsOnScroll"))] + [EnumMember(Value = ("RepaintsOnScroll"))] RepaintsOnScroll, /// /// TouchEventHandler /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TouchEventHandler"))] + [EnumMember(Value = ("TouchEventHandler"))] TouchEventHandler, /// /// WheelEventHandler /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WheelEventHandler"))] + [EnumMember(Value = ("WheelEventHandler"))] WheelEventHandler } @@ -10444,7 +10163,7 @@ public partial class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Rectangle itself. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rect"), IsRequired = (true))] + [DataMember(Name = ("rect"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect Rect { get; @@ -10470,7 +10189,7 @@ public CefSharp.DevTools.LayerTree.ScrollRectType Type /// /// Reason for rectangle to force scrolling on the main thread /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -10487,7 +10206,7 @@ public partial class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomain /// /// Layout rectangle of the sticky element before being shifted /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stickyBoxRect"), IsRequired = (true))] + [DataMember(Name = ("stickyBoxRect"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect StickyBoxRect { get; @@ -10497,7 +10216,7 @@ public CefSharp.DevTools.DOM.Rect StickyBoxRect /// /// Layout rectangle of the containing block of the sticky element /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("containingBlockRect"), IsRequired = (true))] + [DataMember(Name = ("containingBlockRect"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect ContainingBlockRect { get; @@ -10507,7 +10226,7 @@ public CefSharp.DevTools.DOM.Rect ContainingBlockRect /// /// The nearest sticky layer that shifts the sticky box /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nearestLayerShiftingStickyBox"), IsRequired = (false))] + [DataMember(Name = ("nearestLayerShiftingStickyBox"), IsRequired = (false))] public string NearestLayerShiftingStickyBox { get; @@ -10517,7 +10236,7 @@ public string NearestLayerShiftingStickyBox /// /// The nearest sticky layer that shifts the containing block /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nearestLayerShiftingContainingBlock"), IsRequired = (false))] + [DataMember(Name = ("nearestLayerShiftingContainingBlock"), IsRequired = (false))] public string NearestLayerShiftingContainingBlock { get; @@ -10534,7 +10253,7 @@ public partial class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Offset from owning layer left boundary /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] + [DataMember(Name = ("x"), IsRequired = (true))] public double X { get; @@ -10544,7 +10263,7 @@ public double X /// /// Offset from owning layer top boundary /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] + [DataMember(Name = ("y"), IsRequired = (true))] public double Y { get; @@ -10554,7 +10273,7 @@ public double Y /// /// Base64-encoded snapshot data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("picture"), IsRequired = (true))] + [DataMember(Name = ("picture"), IsRequired = (true))] public byte[] Picture { get; @@ -10571,7 +10290,7 @@ public partial class Layer : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The unique id for this layer. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("layerId"), IsRequired = (true))] + [DataMember(Name = ("layerId"), IsRequired = (true))] public string LayerId { get; @@ -10581,7 +10300,7 @@ public string LayerId /// /// The id of parent (not present for root). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentLayerId"), IsRequired = (false))] + [DataMember(Name = ("parentLayerId"), IsRequired = (false))] public string ParentLayerId { get; @@ -10591,7 +10310,7 @@ public string ParentLayerId /// /// The backend id for the node associated with this layer. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] + [DataMember(Name = ("backendNodeId"), IsRequired = (false))] public int? BackendNodeId { get; @@ -10601,7 +10320,7 @@ public int? BackendNodeId /// /// Offset from parent layer, X coordinate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetX"), IsRequired = (true))] + [DataMember(Name = ("offsetX"), IsRequired = (true))] public double OffsetX { get; @@ -10611,7 +10330,7 @@ public double OffsetX /// /// Offset from parent layer, Y coordinate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetY"), IsRequired = (true))] + [DataMember(Name = ("offsetY"), IsRequired = (true))] public double OffsetY { get; @@ -10621,7 +10340,7 @@ public double OffsetY /// /// Layer width. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] + [DataMember(Name = ("width"), IsRequired = (true))] public double Width { get; @@ -10631,7 +10350,7 @@ public double Width /// /// Layer height. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] + [DataMember(Name = ("height"), IsRequired = (true))] public double Height { get; @@ -10641,7 +10360,7 @@ public double Height /// /// Transformation matrix for layer, default is identity matrix /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("transform"), IsRequired = (false))] + [DataMember(Name = ("transform"), IsRequired = (false))] public double[] Transform { get; @@ -10651,7 +10370,7 @@ public double[] Transform /// /// Transform anchor point X, absent if no transform specified /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("anchorX"), IsRequired = (false))] + [DataMember(Name = ("anchorX"), IsRequired = (false))] public double? AnchorX { get; @@ -10661,7 +10380,7 @@ public double? AnchorX /// /// Transform anchor point Y, absent if no transform specified /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("anchorY"), IsRequired = (false))] + [DataMember(Name = ("anchorY"), IsRequired = (false))] public double? AnchorY { get; @@ -10671,7 +10390,7 @@ public double? AnchorY /// /// Transform anchor point Z, absent if no transform specified /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("anchorZ"), IsRequired = (false))] + [DataMember(Name = ("anchorZ"), IsRequired = (false))] public double? AnchorZ { get; @@ -10681,7 +10400,7 @@ public double? AnchorZ /// /// Indicates how many time this layer has painted. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("paintCount"), IsRequired = (true))] + [DataMember(Name = ("paintCount"), IsRequired = (true))] public int PaintCount { get; @@ -10692,7 +10411,7 @@ public int PaintCount /// Indicates whether this layer hosts any content, rather than being used for /// transform/scrolling purposes only. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("drawsContent"), IsRequired = (true))] + [DataMember(Name = ("drawsContent"), IsRequired = (true))] public bool DrawsContent { get; @@ -10702,7 +10421,7 @@ public bool DrawsContent /// /// Set if layer is not visible. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("invisible"), IsRequired = (false))] + [DataMember(Name = ("invisible"), IsRequired = (false))] public bool? Invisible { get; @@ -10712,7 +10431,7 @@ public bool? Invisible /// /// Rectangles scrolling on main thread only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollRects"), IsRequired = (false))] + [DataMember(Name = ("scrollRects"), IsRequired = (false))] public System.Collections.Generic.IList ScrollRects { get; @@ -10722,7 +10441,7 @@ public System.Collections.Generic.IList /// /// Sticky position constraint information /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stickyPositionConstraint"), IsRequired = (false))] + [DataMember(Name = ("stickyPositionConstraint"), IsRequired = (false))] public CefSharp.DevTools.LayerTree.StickyPositionConstraint StickyPositionConstraint { get; @@ -10739,7 +10458,7 @@ public class LayerPaintedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// The id of the painted layer. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("layerId"), IsRequired = (true))] + [DataMember(Name = ("layerId"), IsRequired = (true))] public string LayerId { get; @@ -10749,7 +10468,7 @@ public string LayerId /// /// Clip rectangle. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clip"), IsRequired = (true))] + [DataMember(Name = ("clip"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect Clip { get; @@ -10766,7 +10485,7 @@ public class LayerTreeDidChangeEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Layer tree, absent if not in the comspositing mode. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("layers"), IsRequired = (false))] + [DataMember(Name = ("layers"), IsRequired = (false))] public System.Collections.Generic.IList Layers { get; @@ -10785,67 +10504,67 @@ public enum LogEntrySource /// /// xml /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("xml"))] + [EnumMember(Value = ("xml"))] Xml, /// /// javascript /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("javascript"))] + [EnumMember(Value = ("javascript"))] Javascript, /// /// network /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("network"))] + [EnumMember(Value = ("network"))] Network, /// /// storage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storage"))] + [EnumMember(Value = ("storage"))] Storage, /// /// appcache /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("appcache"))] + [EnumMember(Value = ("appcache"))] Appcache, /// /// rendering /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("rendering"))] + [EnumMember(Value = ("rendering"))] Rendering, /// /// security /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("security"))] + [EnumMember(Value = ("security"))] Security, /// /// deprecation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("deprecation"))] + [EnumMember(Value = ("deprecation"))] Deprecation, /// /// worker /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("worker"))] + [EnumMember(Value = ("worker"))] Worker, /// /// violation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("violation"))] + [EnumMember(Value = ("violation"))] Violation, /// /// intervention /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("intervention"))] + [EnumMember(Value = ("intervention"))] Intervention, /// /// recommendation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("recommendation"))] + [EnumMember(Value = ("recommendation"))] Recommendation, /// /// other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] + [EnumMember(Value = ("other"))] Other } @@ -10857,22 +10576,22 @@ public enum LogEntryLevel /// /// verbose /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("verbose"))] + [EnumMember(Value = ("verbose"))] Verbose, /// /// info /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("info"))] + [EnumMember(Value = ("info"))] Info, /// /// warning /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("warning"))] + [EnumMember(Value = ("warning"))] Warning, /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error } @@ -10884,7 +10603,7 @@ public enum LogEntryCategory /// /// cors /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cors"))] + [EnumMember(Value = ("cors"))] Cors } @@ -10913,7 +10632,7 @@ public CefSharp.DevTools.Log.LogEntrySource Source /// /// Log entry source. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (true))] + [DataMember(Name = ("source"), IsRequired = (true))] internal string source { get; @@ -10939,7 +10658,7 @@ public CefSharp.DevTools.Log.LogEntryLevel Level /// /// Log entry severity. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("level"), IsRequired = (true))] + [DataMember(Name = ("level"), IsRequired = (true))] internal string level { get; @@ -10949,7 +10668,7 @@ internal string level /// /// Logged text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -10975,7 +10694,7 @@ public CefSharp.DevTools.Log.LogEntryCategory? Category /// /// Category /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("category"), IsRequired = (false))] + [DataMember(Name = ("category"), IsRequired = (false))] internal string category { get; @@ -10985,7 +10704,7 @@ internal string category /// /// Timestamp when this entry was added. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -10995,7 +10714,7 @@ public double Timestamp /// /// URL of the resource if known. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (false))] + [DataMember(Name = ("url"), IsRequired = (false))] public string Url { get; @@ -11005,7 +10724,7 @@ public string Url /// /// Line number in the resource. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (false))] + [DataMember(Name = ("lineNumber"), IsRequired = (false))] public int? LineNumber { get; @@ -11015,7 +10734,7 @@ public int? LineNumber /// /// JavaScript stack trace. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + [DataMember(Name = ("stackTrace"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -11025,7 +10744,7 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// Identifier of the network request associated with this entry. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("networkRequestId"), IsRequired = (false))] + [DataMember(Name = ("networkRequestId"), IsRequired = (false))] public string NetworkRequestId { get; @@ -11035,7 +10754,7 @@ public string NetworkRequestId /// /// Identifier of the worker associated with this entry. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerId"), IsRequired = (false))] + [DataMember(Name = ("workerId"), IsRequired = (false))] public string WorkerId { get; @@ -11045,7 +10764,7 @@ public string WorkerId /// /// Call arguments. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("args"), IsRequired = (false))] + [DataMember(Name = ("args"), IsRequired = (false))] public System.Collections.Generic.IList Args { get; @@ -11061,37 +10780,37 @@ public enum ViolationSettingName /// /// longTask /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("longTask"))] + [EnumMember(Value = ("longTask"))] LongTask, /// /// longLayout /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("longLayout"))] + [EnumMember(Value = ("longLayout"))] LongLayout, /// /// blockedEvent /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("blockedEvent"))] + [EnumMember(Value = ("blockedEvent"))] BlockedEvent, /// /// blockedParser /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("blockedParser"))] + [EnumMember(Value = ("blockedParser"))] BlockedParser, /// /// discouragedAPIUse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("discouragedAPIUse"))] + [EnumMember(Value = ("discouragedAPIUse"))] DiscouragedAPIUse, /// /// handler /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("handler"))] + [EnumMember(Value = ("handler"))] Handler, /// /// recurringHandler /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("recurringHandler"))] + [EnumMember(Value = ("recurringHandler"))] RecurringHandler } @@ -11120,7 +10839,7 @@ public CefSharp.DevTools.Log.ViolationSettingName Name /// /// Violation type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] internal string name { get; @@ -11130,7 +10849,7 @@ internal string name /// /// Time threshold to trigger upon. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("threshold"), IsRequired = (true))] + [DataMember(Name = ("threshold"), IsRequired = (true))] public double Threshold { get; @@ -11147,7 +10866,7 @@ public class EntryAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// The entry. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("entry"), IsRequired = (true))] + [DataMember(Name = ("entry"), IsRequired = (true))] public CefSharp.DevTools.Log.LogEntry Entry { get; @@ -11166,12 +10885,12 @@ public enum PressureLevel /// /// moderate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("moderate"))] + [EnumMember(Value = ("moderate"))] Moderate, /// /// critical /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("critical"))] + [EnumMember(Value = ("critical"))] Critical } @@ -11184,7 +10903,7 @@ public partial class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntit /// /// Size of the sampled allocation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] + [DataMember(Name = ("size"), IsRequired = (true))] public double Size { get; @@ -11194,7 +10913,7 @@ public double Size /// /// Total bytes attributed to this sample. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("total"), IsRequired = (true))] + [DataMember(Name = ("total"), IsRequired = (true))] public double Total { get; @@ -11204,7 +10923,7 @@ public double Total /// /// Execution stack at the point of allocation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stack"), IsRequired = (true))] + [DataMember(Name = ("stack"), IsRequired = (true))] public string[] Stack { get; @@ -11221,7 +10940,7 @@ public partial class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Samples /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("samples"), IsRequired = (true))] + [DataMember(Name = ("samples"), IsRequired = (true))] public System.Collections.Generic.IList Samples { get; @@ -11231,7 +10950,7 @@ public System.Collections.Generic.IList /// Modules ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("modules"), IsRequired = (true))] + [DataMember(Name = ("modules"), IsRequired = (true))] public System.Collections.Generic.IList Modules { get; @@ -11248,7 +10967,7 @@ public partial class Module : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name of the module. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -11258,7 +10977,7 @@ public string Name /// /// UUID of the module. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("uuid"), IsRequired = (true))] + [DataMember(Name = ("uuid"), IsRequired = (true))] public string Uuid { get; @@ -11269,7 +10988,7 @@ public string Uuid /// Base address where the module is loaded into memory. Encoded as a decimal /// or hexadecimal (0x prefixed) string. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("baseAddress"), IsRequired = (true))] + [DataMember(Name = ("baseAddress"), IsRequired = (true))] public string BaseAddress { get; @@ -11279,7 +10998,7 @@ public string BaseAddress /// /// Size of the module in bytes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] + [DataMember(Name = ("size"), IsRequired = (true))] public double Size { get; @@ -11298,92 +11017,92 @@ public enum ResourceType /// /// Document /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Document"))] + [EnumMember(Value = ("Document"))] Document, /// /// Stylesheet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Stylesheet"))] + [EnumMember(Value = ("Stylesheet"))] Stylesheet, /// /// Image /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Image"))] + [EnumMember(Value = ("Image"))] Image, /// /// Media /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Media"))] + [EnumMember(Value = ("Media"))] Media, /// /// Font /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Font"))] + [EnumMember(Value = ("Font"))] Font, /// /// Script /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Script"))] + [EnumMember(Value = ("Script"))] Script, /// /// TextTrack /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TextTrack"))] + [EnumMember(Value = ("TextTrack"))] TextTrack, /// /// XHR /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XHR"))] + [EnumMember(Value = ("XHR"))] XHR, /// /// Fetch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Fetch"))] + [EnumMember(Value = ("Fetch"))] Fetch, /// /// Prefetch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Prefetch"))] + [EnumMember(Value = ("Prefetch"))] Prefetch, /// /// EventSource /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventSource"))] + [EnumMember(Value = ("EventSource"))] EventSource, /// /// WebSocket /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebSocket"))] + [EnumMember(Value = ("WebSocket"))] WebSocket, /// /// Manifest /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Manifest"))] + [EnumMember(Value = ("Manifest"))] Manifest, /// /// SignedExchange /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SignedExchange"))] + [EnumMember(Value = ("SignedExchange"))] SignedExchange, /// /// Ping /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Ping"))] + [EnumMember(Value = ("Ping"))] Ping, /// /// CSPViolationReport /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CSPViolationReport"))] + [EnumMember(Value = ("CSPViolationReport"))] CSPViolationReport, /// /// Preflight /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Preflight"))] + [EnumMember(Value = ("Preflight"))] Preflight, /// /// Other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Other"))] + [EnumMember(Value = ("Other"))] Other } @@ -11395,72 +11114,72 @@ public enum ErrorReason /// /// Failed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Failed"))] + [EnumMember(Value = ("Failed"))] Failed, /// /// Aborted /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Aborted"))] + [EnumMember(Value = ("Aborted"))] Aborted, /// /// TimedOut /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TimedOut"))] + [EnumMember(Value = ("TimedOut"))] TimedOut, /// /// AccessDenied /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AccessDenied"))] + [EnumMember(Value = ("AccessDenied"))] AccessDenied, /// /// ConnectionClosed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConnectionClosed"))] + [EnumMember(Value = ("ConnectionClosed"))] ConnectionClosed, /// /// ConnectionReset /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConnectionReset"))] + [EnumMember(Value = ("ConnectionReset"))] ConnectionReset, /// /// ConnectionRefused /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConnectionRefused"))] + [EnumMember(Value = ("ConnectionRefused"))] ConnectionRefused, /// /// ConnectionAborted /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConnectionAborted"))] + [EnumMember(Value = ("ConnectionAborted"))] ConnectionAborted, /// /// ConnectionFailed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConnectionFailed"))] + [EnumMember(Value = ("ConnectionFailed"))] ConnectionFailed, /// /// NameNotResolved /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NameNotResolved"))] + [EnumMember(Value = ("NameNotResolved"))] NameNotResolved, /// /// InternetDisconnected /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InternetDisconnected"))] + [EnumMember(Value = ("InternetDisconnected"))] InternetDisconnected, /// /// AddressUnreachable /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AddressUnreachable"))] + [EnumMember(Value = ("AddressUnreachable"))] AddressUnreachable, /// /// BlockedByClient /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BlockedByClient"))] + [EnumMember(Value = ("BlockedByClient"))] BlockedByClient, /// /// BlockedByResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BlockedByResponse"))] + [EnumMember(Value = ("BlockedByResponse"))] BlockedByResponse } @@ -11472,47 +11191,47 @@ public enum ConnectionType /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None, /// /// cellular2g /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cellular2g"))] + [EnumMember(Value = ("cellular2g"))] Cellular2g, /// /// cellular3g /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cellular3g"))] + [EnumMember(Value = ("cellular3g"))] Cellular3g, /// /// cellular4g /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cellular4g"))] + [EnumMember(Value = ("cellular4g"))] Cellular4g, /// /// bluetooth /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bluetooth"))] + [EnumMember(Value = ("bluetooth"))] Bluetooth, /// /// ethernet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ethernet"))] + [EnumMember(Value = ("ethernet"))] Ethernet, /// /// wifi /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wifi"))] + [EnumMember(Value = ("wifi"))] Wifi, /// /// wimax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wimax"))] + [EnumMember(Value = ("wimax"))] Wimax, /// /// other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] + [EnumMember(Value = ("other"))] Other } @@ -11525,17 +11244,17 @@ public enum CookieSameSite /// /// Strict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Strict"))] + [EnumMember(Value = ("Strict"))] Strict, /// /// Lax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Lax"))] + [EnumMember(Value = ("Lax"))] Lax, /// /// None /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("None"))] + [EnumMember(Value = ("None"))] None } @@ -11548,17 +11267,17 @@ public enum CookiePriority /// /// Low /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Low"))] + [EnumMember(Value = ("Low"))] Low, /// /// Medium /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Medium"))] + [EnumMember(Value = ("Medium"))] Medium, /// /// High /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("High"))] + [EnumMember(Value = ("High"))] High } @@ -11572,17 +11291,17 @@ public enum CookieSourceScheme /// /// Unset /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unset"))] + [EnumMember(Value = ("Unset"))] Unset, /// /// NonSecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NonSecure"))] + [EnumMember(Value = ("NonSecure"))] NonSecure, /// /// Secure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Secure"))] + [EnumMember(Value = ("Secure"))] Secure } @@ -11596,7 +11315,7 @@ public partial class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in /// milliseconds relatively to this requestTime. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestTime"), IsRequired = (true))] + [DataMember(Name = ("requestTime"), IsRequired = (true))] public double RequestTime { get; @@ -11606,7 +11325,7 @@ public double RequestTime /// /// Started resolving proxy. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("proxyStart"), IsRequired = (true))] + [DataMember(Name = ("proxyStart"), IsRequired = (true))] public double ProxyStart { get; @@ -11616,7 +11335,7 @@ public double ProxyStart /// /// Finished resolving proxy. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("proxyEnd"), IsRequired = (true))] + [DataMember(Name = ("proxyEnd"), IsRequired = (true))] public double ProxyEnd { get; @@ -11626,7 +11345,7 @@ public double ProxyEnd /// /// Started DNS address resolve. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("dnsStart"), IsRequired = (true))] + [DataMember(Name = ("dnsStart"), IsRequired = (true))] public double DnsStart { get; @@ -11636,7 +11355,7 @@ public double DnsStart /// /// Finished DNS address resolve. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("dnsEnd"), IsRequired = (true))] + [DataMember(Name = ("dnsEnd"), IsRequired = (true))] public double DnsEnd { get; @@ -11646,7 +11365,7 @@ public double DnsEnd /// /// Started connecting to the remote host. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectStart"), IsRequired = (true))] + [DataMember(Name = ("connectStart"), IsRequired = (true))] public double ConnectStart { get; @@ -11656,7 +11375,7 @@ public double ConnectStart /// /// Connected to the remote host. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectEnd"), IsRequired = (true))] + [DataMember(Name = ("connectEnd"), IsRequired = (true))] public double ConnectEnd { get; @@ -11666,7 +11385,7 @@ public double ConnectEnd /// /// Started SSL handshake. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sslStart"), IsRequired = (true))] + [DataMember(Name = ("sslStart"), IsRequired = (true))] public double SslStart { get; @@ -11676,7 +11395,7 @@ public double SslStart /// /// Finished SSL handshake. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sslEnd"), IsRequired = (true))] + [DataMember(Name = ("sslEnd"), IsRequired = (true))] public double SslEnd { get; @@ -11686,7 +11405,7 @@ public double SslEnd /// /// Started running ServiceWorker. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerStart"), IsRequired = (true))] + [DataMember(Name = ("workerStart"), IsRequired = (true))] public double WorkerStart { get; @@ -11696,7 +11415,7 @@ public double WorkerStart /// /// Finished Starting ServiceWorker. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerReady"), IsRequired = (true))] + [DataMember(Name = ("workerReady"), IsRequired = (true))] public double WorkerReady { get; @@ -11706,7 +11425,7 @@ public double WorkerReady /// /// Started fetch event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerFetchStart"), IsRequired = (true))] + [DataMember(Name = ("workerFetchStart"), IsRequired = (true))] public double WorkerFetchStart { get; @@ -11716,7 +11435,7 @@ public double WorkerFetchStart /// /// Settled fetch event respondWith promise. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("workerRespondWithSettled"), IsRequired = (true))] + [DataMember(Name = ("workerRespondWithSettled"), IsRequired = (true))] public double WorkerRespondWithSettled { get; @@ -11726,7 +11445,7 @@ public double WorkerRespondWithSettled /// /// Started sending request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sendStart"), IsRequired = (true))] + [DataMember(Name = ("sendStart"), IsRequired = (true))] public double SendStart { get; @@ -11736,7 +11455,7 @@ public double SendStart /// /// Finished sending request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sendEnd"), IsRequired = (true))] + [DataMember(Name = ("sendEnd"), IsRequired = (true))] public double SendEnd { get; @@ -11746,7 +11465,7 @@ public double SendEnd /// /// Time the server started pushing request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pushStart"), IsRequired = (true))] + [DataMember(Name = ("pushStart"), IsRequired = (true))] public double PushStart { get; @@ -11756,7 +11475,7 @@ public double PushStart /// /// Time the server finished pushing request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pushEnd"), IsRequired = (true))] + [DataMember(Name = ("pushEnd"), IsRequired = (true))] public double PushEnd { get; @@ -11766,7 +11485,7 @@ public double PushEnd /// /// Finished receiving response headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("receiveHeadersEnd"), IsRequired = (true))] + [DataMember(Name = ("receiveHeadersEnd"), IsRequired = (true))] public double ReceiveHeadersEnd { get; @@ -11782,27 +11501,27 @@ public enum ResourcePriority /// /// VeryLow /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("VeryLow"))] + [EnumMember(Value = ("VeryLow"))] VeryLow, /// /// Low /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Low"))] + [EnumMember(Value = ("Low"))] Low, /// /// Medium /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Medium"))] + [EnumMember(Value = ("Medium"))] Medium, /// /// High /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("High"))] + [EnumMember(Value = ("High"))] High, /// /// VeryHigh /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("VeryHigh"))] + [EnumMember(Value = ("VeryHigh"))] VeryHigh } @@ -11815,7 +11534,7 @@ public partial class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Bytes /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bytes"), IsRequired = (false))] + [DataMember(Name = ("bytes"), IsRequired = (false))] public byte[] Bytes { get; @@ -11831,42 +11550,42 @@ public enum RequestReferrerPolicy /// /// unsafe-url /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unsafe-url"))] + [EnumMember(Value = ("unsafe-url"))] UnsafeUrl, /// /// no-referrer-when-downgrade /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("no-referrer-when-downgrade"))] + [EnumMember(Value = ("no-referrer-when-downgrade"))] NoReferrerWhenDowngrade, /// /// no-referrer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("no-referrer"))] + [EnumMember(Value = ("no-referrer"))] NoReferrer, /// /// origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("origin"))] + [EnumMember(Value = ("origin"))] Origin, /// /// origin-when-cross-origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("origin-when-cross-origin"))] + [EnumMember(Value = ("origin-when-cross-origin"))] OriginWhenCrossOrigin, /// /// same-origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("same-origin"))] + [EnumMember(Value = ("same-origin"))] SameOrigin, /// /// strict-origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("strict-origin"))] + [EnumMember(Value = ("strict-origin"))] StrictOrigin, /// /// strict-origin-when-cross-origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("strict-origin-when-cross-origin"))] + [EnumMember(Value = ("strict-origin-when-cross-origin"))] StrictOriginWhenCrossOrigin } @@ -11879,7 +11598,7 @@ public partial class Request : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Request URL (without fragment). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -11889,7 +11608,7 @@ public string Url /// /// Fragment of the requested URL starting with hash, if present. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlFragment"), IsRequired = (false))] + [DataMember(Name = ("urlFragment"), IsRequired = (false))] public string UrlFragment { get; @@ -11899,7 +11618,7 @@ public string UrlFragment /// /// HTTP request method. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("method"), IsRequired = (true))] + [DataMember(Name = ("method"), IsRequired = (true))] public string Method { get; @@ -11909,7 +11628,7 @@ public string Method /// /// HTTP request headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers { get; @@ -11919,7 +11638,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// HTTP POST request data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("postData"), IsRequired = (false))] + [DataMember(Name = ("postData"), IsRequired = (false))] public string PostData { get; @@ -11929,7 +11648,7 @@ public string PostData /// /// True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasPostData"), IsRequired = (false))] + [DataMember(Name = ("hasPostData"), IsRequired = (false))] public bool? HasPostData { get; @@ -11939,7 +11658,7 @@ public bool? HasPostData /// /// Request body elements. This will be converted from base64 to binary /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("postDataEntries"), IsRequired = (false))] + [DataMember(Name = ("postDataEntries"), IsRequired = (false))] public System.Collections.Generic.IList PostDataEntries { get; @@ -11965,7 +11684,7 @@ public CefSharp.DevTools.Security.MixedContentType? MixedContentType /// /// The mixed content type of the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mixedContentType"), IsRequired = (false))] + [DataMember(Name = ("mixedContentType"), IsRequired = (false))] internal string mixedContentType { get; @@ -11991,7 +11710,7 @@ public CefSharp.DevTools.Network.ResourcePriority InitialPriority /// /// Priority of the resource request at the time request is sent. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initialPriority"), IsRequired = (true))] + [DataMember(Name = ("initialPriority"), IsRequired = (true))] internal string initialPriority { get; @@ -12017,7 +11736,7 @@ public CefSharp.DevTools.Network.RequestReferrerPolicy ReferrerPolicy /// /// The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("referrerPolicy"), IsRequired = (true))] + [DataMember(Name = ("referrerPolicy"), IsRequired = (true))] internal string referrerPolicy { get; @@ -12027,7 +11746,7 @@ internal string referrerPolicy /// /// Whether is loaded via link preload. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isLinkPreload"), IsRequired = (false))] + [DataMember(Name = ("isLinkPreload"), IsRequired = (false))] public bool? IsLinkPreload { get; @@ -12038,7 +11757,7 @@ public bool? IsLinkPreload /// Set for requests when the TrustToken API is used. Contains the parameters /// passed by the developer (e.g. via "fetch") as understood by the backend. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("trustTokenParams"), IsRequired = (false))] + [DataMember(Name = ("trustTokenParams"), IsRequired = (false))] public CefSharp.DevTools.Network.TrustTokenParams TrustTokenParams { get; @@ -12049,7 +11768,7 @@ public CefSharp.DevTools.Network.TrustTokenParams TrustTokenParams /// True if this resource request is considered to be the 'same site' as the /// request correspondinfg to the main frame. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isSameSite"), IsRequired = (false))] + [DataMember(Name = ("isSameSite"), IsRequired = (false))] public bool? IsSameSite { get; @@ -12066,7 +11785,7 @@ public partial class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDoma /// /// Validation status. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] public string Status { get; @@ -12076,7 +11795,7 @@ public string Status /// /// Origin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -12086,7 +11805,7 @@ public string Origin /// /// Log name / description. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("logDescription"), IsRequired = (true))] + [DataMember(Name = ("logDescription"), IsRequired = (true))] public string LogDescription { get; @@ -12096,7 +11815,7 @@ public string LogDescription /// /// Log ID. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("logId"), IsRequired = (true))] + [DataMember(Name = ("logId"), IsRequired = (true))] public string LogId { get; @@ -12107,7 +11826,7 @@ public string LogId /// Issuance date. Unlike TimeSinceEpoch, this contains the number of /// milliseconds since January 1, 1970, UTC, not the number of seconds. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -12117,7 +11836,7 @@ public double Timestamp /// /// Hash algorithm. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hashAlgorithm"), IsRequired = (true))] + [DataMember(Name = ("hashAlgorithm"), IsRequired = (true))] public string HashAlgorithm { get; @@ -12127,7 +11846,7 @@ public string HashAlgorithm /// /// Signature algorithm. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("signatureAlgorithm"), IsRequired = (true))] + [DataMember(Name = ("signatureAlgorithm"), IsRequired = (true))] public string SignatureAlgorithm { get; @@ -12137,7 +11856,7 @@ public string SignatureAlgorithm /// /// Signature data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("signatureData"), IsRequired = (true))] + [DataMember(Name = ("signatureData"), IsRequired = (true))] public string SignatureData { get; @@ -12154,7 +11873,7 @@ public partial class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("protocol"), IsRequired = (true))] + [DataMember(Name = ("protocol"), IsRequired = (true))] public string Protocol { get; @@ -12164,7 +11883,7 @@ public string Protocol /// /// Key Exchange used by the connection, or the empty string if not applicable. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyExchange"), IsRequired = (true))] + [DataMember(Name = ("keyExchange"), IsRequired = (true))] public string KeyExchange { get; @@ -12174,7 +11893,7 @@ public string KeyExchange /// /// (EC)DH group used by the connection, if applicable. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyExchangeGroup"), IsRequired = (false))] + [DataMember(Name = ("keyExchangeGroup"), IsRequired = (false))] public string KeyExchangeGroup { get; @@ -12184,7 +11903,7 @@ public string KeyExchangeGroup /// /// Cipher name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cipher"), IsRequired = (true))] + [DataMember(Name = ("cipher"), IsRequired = (true))] public string Cipher { get; @@ -12194,7 +11913,7 @@ public string Cipher /// /// TLS MAC. Note that AEAD ciphers do not have separate MACs. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mac"), IsRequired = (false))] + [DataMember(Name = ("mac"), IsRequired = (false))] public string Mac { get; @@ -12204,7 +11923,7 @@ public string Mac /// /// Certificate ID value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificateId"), IsRequired = (true))] + [DataMember(Name = ("certificateId"), IsRequired = (true))] public int CertificateId { get; @@ -12214,7 +11933,7 @@ public int CertificateId /// /// Certificate subject name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subjectName"), IsRequired = (true))] + [DataMember(Name = ("subjectName"), IsRequired = (true))] public string SubjectName { get; @@ -12224,7 +11943,7 @@ public string SubjectName /// /// Subject Alternative Name (SAN) DNS names and IP addresses. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sanList"), IsRequired = (true))] + [DataMember(Name = ("sanList"), IsRequired = (true))] public string[] SanList { get; @@ -12234,7 +11953,7 @@ public string[] SanList /// /// Name of the issuing CA. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuer"), IsRequired = (true))] + [DataMember(Name = ("issuer"), IsRequired = (true))] public string Issuer { get; @@ -12244,7 +11963,7 @@ public string Issuer /// /// Certificate valid from date. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("validFrom"), IsRequired = (true))] + [DataMember(Name = ("validFrom"), IsRequired = (true))] public double ValidFrom { get; @@ -12254,7 +11973,7 @@ public double ValidFrom /// /// Certificate valid to (expiration) date /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("validTo"), IsRequired = (true))] + [DataMember(Name = ("validTo"), IsRequired = (true))] public double ValidTo { get; @@ -12264,7 +11983,7 @@ public double ValidTo /// /// List of signed certificate timestamps (SCTs). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("signedCertificateTimestampList"), IsRequired = (true))] + [DataMember(Name = ("signedCertificateTimestampList"), IsRequired = (true))] public System.Collections.Generic.IList SignedCertificateTimestampList { get; @@ -12290,7 +12009,7 @@ public CefSharp.DevTools.Network.CertificateTransparencyCompliance CertificateTr /// /// Whether the request complied with Certificate Transparency policy /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificateTransparencyCompliance"), IsRequired = (true))] + [DataMember(Name = ("certificateTransparencyCompliance"), IsRequired = (true))] internal string certificateTransparencyCompliance { get; @@ -12302,7 +12021,7 @@ internal string certificateTransparencyCompliance /// represented as a TLS SignatureScheme code point. Omitted if not /// applicable or not known. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("serverSignatureAlgorithm"), IsRequired = (false))] + [DataMember(Name = ("serverSignatureAlgorithm"), IsRequired = (false))] public int? ServerSignatureAlgorithm { get; @@ -12312,7 +12031,7 @@ public int? ServerSignatureAlgorithm /// /// Whether the connection used Encrypted ClientHello /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("encryptedClientHello"), IsRequired = (true))] + [DataMember(Name = ("encryptedClientHello"), IsRequired = (true))] public bool EncryptedClientHello { get; @@ -12328,17 +12047,17 @@ public enum CertificateTransparencyCompliance /// /// unknown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unknown"))] + [EnumMember(Value = ("unknown"))] Unknown, /// /// not-compliant /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("not-compliant"))] + [EnumMember(Value = ("not-compliant"))] NotCompliant, /// /// compliant /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("compliant"))] + [EnumMember(Value = ("compliant"))] Compliant } @@ -12350,62 +12069,62 @@ public enum BlockedReason /// /// other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] + [EnumMember(Value = ("other"))] Other, /// /// csp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("csp"))] + [EnumMember(Value = ("csp"))] Csp, /// /// mixed-content /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mixed-content"))] + [EnumMember(Value = ("mixed-content"))] MixedContent, /// /// origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("origin"))] + [EnumMember(Value = ("origin"))] Origin, /// /// inspector /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("inspector"))] + [EnumMember(Value = ("inspector"))] Inspector, /// /// subresource-filter /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("subresource-filter"))] + [EnumMember(Value = ("subresource-filter"))] SubresourceFilter, /// /// content-type /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("content-type"))] + [EnumMember(Value = ("content-type"))] ContentType, /// /// coep-frame-resource-needs-coep-header /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("coep-frame-resource-needs-coep-header"))] + [EnumMember(Value = ("coep-frame-resource-needs-coep-header"))] CoepFrameResourceNeedsCoepHeader, /// /// coop-sandboxed-iframe-cannot-navigate-to-coop-page /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("coop-sandboxed-iframe-cannot-navigate-to-coop-page"))] + [EnumMember(Value = ("coop-sandboxed-iframe-cannot-navigate-to-coop-page"))] CoopSandboxedIframeCannotNavigateToCoopPage, /// /// corp-not-same-origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("corp-not-same-origin"))] + [EnumMember(Value = ("corp-not-same-origin"))] CorpNotSameOrigin, /// /// corp-not-same-origin-after-defaulted-to-same-origin-by-coep /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("corp-not-same-origin-after-defaulted-to-same-origin-by-coep"))] + [EnumMember(Value = ("corp-not-same-origin-after-defaulted-to-same-origin-by-coep"))] CorpNotSameOriginAfterDefaultedToSameOriginByCoep, /// /// corp-not-same-site /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("corp-not-same-site"))] + [EnumMember(Value = ("corp-not-same-site"))] CorpNotSameSite } @@ -12417,152 +12136,152 @@ public enum CorsError /// /// DisallowedByMode /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DisallowedByMode"))] + [EnumMember(Value = ("DisallowedByMode"))] DisallowedByMode, /// /// InvalidResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidResponse"))] + [EnumMember(Value = ("InvalidResponse"))] InvalidResponse, /// /// WildcardOriginNotAllowed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WildcardOriginNotAllowed"))] + [EnumMember(Value = ("WildcardOriginNotAllowed"))] WildcardOriginNotAllowed, /// /// MissingAllowOriginHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MissingAllowOriginHeader"))] + [EnumMember(Value = ("MissingAllowOriginHeader"))] MissingAllowOriginHeader, /// /// MultipleAllowOriginValues /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MultipleAllowOriginValues"))] + [EnumMember(Value = ("MultipleAllowOriginValues"))] MultipleAllowOriginValues, /// /// InvalidAllowOriginValue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAllowOriginValue"))] + [EnumMember(Value = ("InvalidAllowOriginValue"))] InvalidAllowOriginValue, /// /// AllowOriginMismatch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AllowOriginMismatch"))] + [EnumMember(Value = ("AllowOriginMismatch"))] AllowOriginMismatch, /// /// InvalidAllowCredentials /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAllowCredentials"))] + [EnumMember(Value = ("InvalidAllowCredentials"))] InvalidAllowCredentials, /// /// CorsDisabledScheme /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CorsDisabledScheme"))] + [EnumMember(Value = ("CorsDisabledScheme"))] CorsDisabledScheme, /// /// PreflightInvalidStatus /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightInvalidStatus"))] + [EnumMember(Value = ("PreflightInvalidStatus"))] PreflightInvalidStatus, /// /// PreflightDisallowedRedirect /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightDisallowedRedirect"))] + [EnumMember(Value = ("PreflightDisallowedRedirect"))] PreflightDisallowedRedirect, /// /// PreflightWildcardOriginNotAllowed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightWildcardOriginNotAllowed"))] + [EnumMember(Value = ("PreflightWildcardOriginNotAllowed"))] PreflightWildcardOriginNotAllowed, /// /// PreflightMissingAllowOriginHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightMissingAllowOriginHeader"))] + [EnumMember(Value = ("PreflightMissingAllowOriginHeader"))] PreflightMissingAllowOriginHeader, /// /// PreflightMultipleAllowOriginValues /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightMultipleAllowOriginValues"))] + [EnumMember(Value = ("PreflightMultipleAllowOriginValues"))] PreflightMultipleAllowOriginValues, /// /// PreflightInvalidAllowOriginValue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightInvalidAllowOriginValue"))] + [EnumMember(Value = ("PreflightInvalidAllowOriginValue"))] PreflightInvalidAllowOriginValue, /// /// PreflightAllowOriginMismatch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightAllowOriginMismatch"))] + [EnumMember(Value = ("PreflightAllowOriginMismatch"))] PreflightAllowOriginMismatch, /// /// PreflightInvalidAllowCredentials /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightInvalidAllowCredentials"))] + [EnumMember(Value = ("PreflightInvalidAllowCredentials"))] PreflightInvalidAllowCredentials, /// /// PreflightMissingAllowExternal /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightMissingAllowExternal"))] + [EnumMember(Value = ("PreflightMissingAllowExternal"))] PreflightMissingAllowExternal, /// /// PreflightInvalidAllowExternal /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightInvalidAllowExternal"))] + [EnumMember(Value = ("PreflightInvalidAllowExternal"))] PreflightInvalidAllowExternal, /// /// PreflightMissingAllowPrivateNetwork /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightMissingAllowPrivateNetwork"))] + [EnumMember(Value = ("PreflightMissingAllowPrivateNetwork"))] PreflightMissingAllowPrivateNetwork, /// /// PreflightInvalidAllowPrivateNetwork /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightInvalidAllowPrivateNetwork"))] + [EnumMember(Value = ("PreflightInvalidAllowPrivateNetwork"))] PreflightInvalidAllowPrivateNetwork, /// /// InvalidAllowMethodsPreflightResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAllowMethodsPreflightResponse"))] + [EnumMember(Value = ("InvalidAllowMethodsPreflightResponse"))] InvalidAllowMethodsPreflightResponse, /// /// InvalidAllowHeadersPreflightResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidAllowHeadersPreflightResponse"))] + [EnumMember(Value = ("InvalidAllowHeadersPreflightResponse"))] InvalidAllowHeadersPreflightResponse, /// /// MethodDisallowedByPreflightResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MethodDisallowedByPreflightResponse"))] + [EnumMember(Value = ("MethodDisallowedByPreflightResponse"))] MethodDisallowedByPreflightResponse, /// /// HeaderDisallowedByPreflightResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HeaderDisallowedByPreflightResponse"))] + [EnumMember(Value = ("HeaderDisallowedByPreflightResponse"))] HeaderDisallowedByPreflightResponse, /// /// RedirectContainsCredentials /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RedirectContainsCredentials"))] + [EnumMember(Value = ("RedirectContainsCredentials"))] RedirectContainsCredentials, /// /// InsecurePrivateNetwork /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecurePrivateNetwork"))] + [EnumMember(Value = ("InsecurePrivateNetwork"))] InsecurePrivateNetwork, /// /// InvalidPrivateNetworkAccess /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidPrivateNetworkAccess"))] + [EnumMember(Value = ("InvalidPrivateNetworkAccess"))] InvalidPrivateNetworkAccess, /// /// UnexpectedPrivateNetworkAccess /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnexpectedPrivateNetworkAccess"))] + [EnumMember(Value = ("UnexpectedPrivateNetworkAccess"))] UnexpectedPrivateNetworkAccess, /// /// NoCorsRedirectModeNotFollow /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoCorsRedirectModeNotFollow"))] + [EnumMember(Value = ("NoCorsRedirectModeNotFollow"))] NoCorsRedirectModeNotFollow } @@ -12591,7 +12310,7 @@ public CefSharp.DevTools.Network.CorsError CorsError /// /// CorsError /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("corsError"), IsRequired = (true))] + [DataMember(Name = ("corsError"), IsRequired = (true))] internal string corsError { get; @@ -12601,7 +12320,7 @@ internal string corsError /// /// FailedParameter /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("failedParameter"), IsRequired = (true))] + [DataMember(Name = ("failedParameter"), IsRequired = (true))] public string FailedParameter { get; @@ -12617,22 +12336,22 @@ public enum ServiceWorkerResponseSource /// /// cache-storage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cache-storage"))] + [EnumMember(Value = ("cache-storage"))] CacheStorage, /// /// http-cache /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("http-cache"))] + [EnumMember(Value = ("http-cache"))] HttpCache, /// /// fallback-code /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("fallback-code"))] + [EnumMember(Value = ("fallback-code"))] FallbackCode, /// /// network /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("network"))] + [EnumMember(Value = ("network"))] Network } @@ -12645,12 +12364,12 @@ public enum TrustTokenParamsRefreshPolicy /// /// UseCached /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UseCached"))] + [EnumMember(Value = ("UseCached"))] UseCached, /// /// Refresh /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Refresh"))] + [EnumMember(Value = ("Refresh"))] Refresh } @@ -12681,7 +12400,7 @@ public CefSharp.DevTools.Network.TrustTokenOperationType Operation /// /// Operation /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("operation"), IsRequired = (true))] + [DataMember(Name = ("operation"), IsRequired = (true))] internal string operation { get; @@ -12709,7 +12428,7 @@ public CefSharp.DevTools.Network.TrustTokenParamsRefreshPolicy RefreshPolicy /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("refreshPolicy"), IsRequired = (true))] + [DataMember(Name = ("refreshPolicy"), IsRequired = (true))] internal string refreshPolicy { get; @@ -12720,7 +12439,7 @@ internal string refreshPolicy /// Origins of issuers from whom to request tokens or redemption /// records. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuers"), IsRequired = (false))] + [DataMember(Name = ("issuers"), IsRequired = (false))] public string[] Issuers { get; @@ -12736,17 +12455,17 @@ public enum TrustTokenOperationType /// /// Issuance /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Issuance"))] + [EnumMember(Value = ("Issuance"))] Issuance, /// /// Redemption /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Redemption"))] + [EnumMember(Value = ("Redemption"))] Redemption, /// /// Signing /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Signing"))] + [EnumMember(Value = ("Signing"))] Signing } @@ -12758,42 +12477,42 @@ public enum AlternateProtocolUsage /// /// alternativeJobWonWithoutRace /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("alternativeJobWonWithoutRace"))] + [EnumMember(Value = ("alternativeJobWonWithoutRace"))] AlternativeJobWonWithoutRace, /// /// alternativeJobWonRace /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("alternativeJobWonRace"))] + [EnumMember(Value = ("alternativeJobWonRace"))] AlternativeJobWonRace, /// /// mainJobWonRace /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mainJobWonRace"))] + [EnumMember(Value = ("mainJobWonRace"))] MainJobWonRace, /// /// mappingMissing /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mappingMissing"))] + [EnumMember(Value = ("mappingMissing"))] MappingMissing, /// /// broken /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("broken"))] + [EnumMember(Value = ("broken"))] Broken, /// /// dnsAlpnH3JobWonWithoutRace /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dnsAlpnH3JobWonWithoutRace"))] + [EnumMember(Value = ("dnsAlpnH3JobWonWithoutRace"))] DnsAlpnH3JobWonWithoutRace, /// /// dnsAlpnH3JobWonRace /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dnsAlpnH3JobWonRace"))] + [EnumMember(Value = ("dnsAlpnH3JobWonRace"))] DnsAlpnH3JobWonRace, /// /// unspecifiedReason /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unspecifiedReason"))] + [EnumMember(Value = ("unspecifiedReason"))] UnspecifiedReason } @@ -12806,7 +12525,7 @@ public partial class Response : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Response URL. This URL can be different from CachedResource.url in case of redirect. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -12816,7 +12535,7 @@ public string Url /// /// HTTP response status code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] public int Status { get; @@ -12826,7 +12545,7 @@ public int Status /// /// HTTP response status text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("statusText"), IsRequired = (true))] + [DataMember(Name = ("statusText"), IsRequired = (true))] public string StatusText { get; @@ -12836,7 +12555,7 @@ public string StatusText /// /// HTTP response headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers { get; @@ -12846,7 +12565,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("headersText"), IsRequired = (false))] + [DataMember(Name = ("headersText"), IsRequired = (false))] public string HeadersText { get; @@ -12856,7 +12575,7 @@ public string HeadersText /// /// Resource mimeType as determined by the browser. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mimeType"), IsRequired = (true))] + [DataMember(Name = ("mimeType"), IsRequired = (true))] public string MimeType { get; @@ -12866,7 +12585,7 @@ public string MimeType /// /// Refined HTTP request headers that were actually transmitted over the network. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestHeaders"), IsRequired = (false))] + [DataMember(Name = ("requestHeaders"), IsRequired = (false))] public CefSharp.DevTools.Network.Headers RequestHeaders { get; @@ -12876,7 +12595,7 @@ public CefSharp.DevTools.Network.Headers RequestHeaders /// /// HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestHeadersText"), IsRequired = (false))] + [DataMember(Name = ("requestHeadersText"), IsRequired = (false))] public string RequestHeadersText { get; @@ -12886,7 +12605,7 @@ public string RequestHeadersText /// /// Specifies whether physical connection was actually reused for this request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectionReused"), IsRequired = (true))] + [DataMember(Name = ("connectionReused"), IsRequired = (true))] public bool ConnectionReused { get; @@ -12896,7 +12615,7 @@ public bool ConnectionReused /// /// Physical connection id that was actually used for this request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectionId"), IsRequired = (true))] + [DataMember(Name = ("connectionId"), IsRequired = (true))] public double ConnectionId { get; @@ -12906,7 +12625,7 @@ public double ConnectionId /// /// Remote IP address. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("remoteIPAddress"), IsRequired = (false))] + [DataMember(Name = ("remoteIPAddress"), IsRequired = (false))] public string RemoteIPAddress { get; @@ -12916,7 +12635,7 @@ public string RemoteIPAddress /// /// Remote port. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("remotePort"), IsRequired = (false))] + [DataMember(Name = ("remotePort"), IsRequired = (false))] public int? RemotePort { get; @@ -12926,7 +12645,7 @@ public int? RemotePort /// /// Specifies that the request was served from the disk cache. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fromDiskCache"), IsRequired = (false))] + [DataMember(Name = ("fromDiskCache"), IsRequired = (false))] public bool? FromDiskCache { get; @@ -12936,7 +12655,7 @@ public bool? FromDiskCache /// /// Specifies that the request was served from the ServiceWorker. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fromServiceWorker"), IsRequired = (false))] + [DataMember(Name = ("fromServiceWorker"), IsRequired = (false))] public bool? FromServiceWorker { get; @@ -12946,7 +12665,7 @@ public bool? FromServiceWorker /// /// Specifies that the request was served from the prefetch cache. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fromPrefetchCache"), IsRequired = (false))] + [DataMember(Name = ("fromPrefetchCache"), IsRequired = (false))] public bool? FromPrefetchCache { get; @@ -12956,7 +12675,7 @@ public bool? FromPrefetchCache /// /// Total number of bytes received for this request so far. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodedDataLength"), IsRequired = (true))] + [DataMember(Name = ("encodedDataLength"), IsRequired = (true))] public double EncodedDataLength { get; @@ -12966,7 +12685,7 @@ public double EncodedDataLength /// /// Timing information for the given request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timing"), IsRequired = (false))] + [DataMember(Name = ("timing"), IsRequired = (false))] public CefSharp.DevTools.Network.ResourceTiming Timing { get; @@ -12992,7 +12711,7 @@ public CefSharp.DevTools.Network.ServiceWorkerResponseSource? ServiceWorkerRespo /// /// Response source of response from ServiceWorker. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("serviceWorkerResponseSource"), IsRequired = (false))] + [DataMember(Name = ("serviceWorkerResponseSource"), IsRequired = (false))] internal string serviceWorkerResponseSource { get; @@ -13002,7 +12721,7 @@ internal string serviceWorkerResponseSource /// /// The time at which the returned response was generated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseTime"), IsRequired = (false))] + [DataMember(Name = ("responseTime"), IsRequired = (false))] public double? ResponseTime { get; @@ -13012,7 +12731,7 @@ public double? ResponseTime /// /// Cache Storage Cache Name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cacheStorageCacheName"), IsRequired = (false))] + [DataMember(Name = ("cacheStorageCacheName"), IsRequired = (false))] public string CacheStorageCacheName { get; @@ -13022,7 +12741,7 @@ public string CacheStorageCacheName /// /// Protocol used to fetch this request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("protocol"), IsRequired = (false))] + [DataMember(Name = ("protocol"), IsRequired = (false))] public string Protocol { get; @@ -13048,7 +12767,7 @@ public CefSharp.DevTools.Network.AlternateProtocolUsage? AlternateProtocolUsage /// /// The reason why Chrome uses a specific transport protocol for HTTP semantics. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("alternateProtocolUsage"), IsRequired = (false))] + [DataMember(Name = ("alternateProtocolUsage"), IsRequired = (false))] internal string alternateProtocolUsage { get; @@ -13074,7 +12793,7 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// Security state of the request resource. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityState"), IsRequired = (true))] + [DataMember(Name = ("securityState"), IsRequired = (true))] internal string securityState { get; @@ -13084,7 +12803,7 @@ internal string securityState /// /// Security details for the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityDetails"), IsRequired = (false))] + [DataMember(Name = ("securityDetails"), IsRequired = (false))] public CefSharp.DevTools.Network.SecurityDetails SecurityDetails { get; @@ -13101,7 +12820,7 @@ public partial class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBa /// /// HTTP request headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers { get; @@ -13118,7 +12837,7 @@ public partial class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityB /// /// HTTP response status code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] public int Status { get; @@ -13128,7 +12847,7 @@ public int Status /// /// HTTP response status text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("statusText"), IsRequired = (true))] + [DataMember(Name = ("statusText"), IsRequired = (true))] public string StatusText { get; @@ -13138,7 +12857,7 @@ public string StatusText /// /// HTTP response headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers { get; @@ -13148,7 +12867,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// HTTP response headers text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("headersText"), IsRequired = (false))] + [DataMember(Name = ("headersText"), IsRequired = (false))] public string HeadersText { get; @@ -13158,7 +12877,7 @@ public string HeadersText /// /// HTTP request headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestHeaders"), IsRequired = (false))] + [DataMember(Name = ("requestHeaders"), IsRequired = (false))] public CefSharp.DevTools.Network.Headers RequestHeaders { get; @@ -13168,7 +12887,7 @@ public CefSharp.DevTools.Network.Headers RequestHeaders /// /// HTTP request headers text. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestHeadersText"), IsRequired = (false))] + [DataMember(Name = ("requestHeadersText"), IsRequired = (false))] public string RequestHeadersText { get; @@ -13185,7 +12904,7 @@ public partial class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// WebSocket message opcode. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("opcode"), IsRequired = (true))] + [DataMember(Name = ("opcode"), IsRequired = (true))] public double Opcode { get; @@ -13195,7 +12914,7 @@ public double Opcode /// /// WebSocket message mask. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mask"), IsRequired = (true))] + [DataMember(Name = ("mask"), IsRequired = (true))] public bool Mask { get; @@ -13207,7 +12926,7 @@ public bool Mask /// If the opcode is 1, this is a text message and payloadData is a UTF-8 string. /// If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("payloadData"), IsRequired = (true))] + [DataMember(Name = ("payloadData"), IsRequired = (true))] public string PayloadData { get; @@ -13224,7 +12943,7 @@ public partial class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Resource URL. This is the url of the original network request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -13250,7 +12969,7 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// Type of this resource. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -13260,7 +12979,7 @@ internal string type /// /// Cached response data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (false))] + [DataMember(Name = ("response"), IsRequired = (false))] public CefSharp.DevTools.Network.Response Response { get; @@ -13270,7 +12989,7 @@ public CefSharp.DevTools.Network.Response Response /// /// Cached response body size. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bodySize"), IsRequired = (true))] + [DataMember(Name = ("bodySize"), IsRequired = (true))] public double BodySize { get; @@ -13286,32 +13005,32 @@ public enum InitiatorType /// /// parser /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("parser"))] + [EnumMember(Value = ("parser"))] Parser, /// /// script /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("script"))] + [EnumMember(Value = ("script"))] Script, /// /// preload /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("preload"))] + [EnumMember(Value = ("preload"))] Preload, /// /// SignedExchange /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SignedExchange"))] + [EnumMember(Value = ("SignedExchange"))] SignedExchange, /// /// preflight /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("preflight"))] + [EnumMember(Value = ("preflight"))] Preflight, /// /// other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] + [EnumMember(Value = ("other"))] Other } @@ -13340,7 +13059,7 @@ public CefSharp.DevTools.Network.InitiatorType Type /// /// Type of this initiator. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -13350,7 +13069,7 @@ internal string type /// /// Initiator JavaScript stack trace, set for Script only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stack"), IsRequired = (false))] + [DataMember(Name = ("stack"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace Stack { get; @@ -13360,7 +13079,7 @@ public CefSharp.DevTools.Runtime.StackTrace Stack /// /// Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (false))] + [DataMember(Name = ("url"), IsRequired = (false))] public string Url { get; @@ -13371,7 +13090,7 @@ public string Url /// Initiator line number, set for Parser type or for Script type (when script is importing /// module) (0-based). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (false))] + [DataMember(Name = ("lineNumber"), IsRequired = (false))] public double? LineNumber { get; @@ -13382,7 +13101,7 @@ public double? LineNumber /// Initiator column number, set for Parser type or for Script type (when script is importing /// module) (0-based). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (false))] + [DataMember(Name = ("columnNumber"), IsRequired = (false))] public double? ColumnNumber { get; @@ -13392,7 +13111,7 @@ public double? ColumnNumber /// /// Set if another request triggered this request (e.g. preflight). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (false))] + [DataMember(Name = ("requestId"), IsRequired = (false))] public string RequestId { get; @@ -13409,7 +13128,7 @@ public partial class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Cookie name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -13419,7 +13138,7 @@ public string Name /// /// Cookie value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -13429,7 +13148,7 @@ public string Value /// /// Cookie domain. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("domain"), IsRequired = (true))] + [DataMember(Name = ("domain"), IsRequired = (true))] public string Domain { get; @@ -13439,7 +13158,7 @@ public string Domain /// /// Cookie path. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("path"), IsRequired = (true))] + [DataMember(Name = ("path"), IsRequired = (true))] public string Path { get; @@ -13449,7 +13168,7 @@ public string Path /// /// Cookie expiration date as the number of seconds since the UNIX epoch. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("expires"), IsRequired = (true))] + [DataMember(Name = ("expires"), IsRequired = (true))] public double Expires { get; @@ -13459,7 +13178,7 @@ public double Expires /// /// Cookie size. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] + [DataMember(Name = ("size"), IsRequired = (true))] public int Size { get; @@ -13469,7 +13188,7 @@ public int Size /// /// True if cookie is http-only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("httpOnly"), IsRequired = (true))] + [DataMember(Name = ("httpOnly"), IsRequired = (true))] public bool HttpOnly { get; @@ -13479,7 +13198,7 @@ public bool HttpOnly /// /// True if cookie is secure. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("secure"), IsRequired = (true))] + [DataMember(Name = ("secure"), IsRequired = (true))] public bool Secure { get; @@ -13489,7 +13208,7 @@ public bool Secure /// /// True in case of session cookie. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("session"), IsRequired = (true))] + [DataMember(Name = ("session"), IsRequired = (true))] public bool Session { get; @@ -13515,7 +13234,7 @@ public CefSharp.DevTools.Network.CookieSameSite? SameSite /// /// Cookie SameSite type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sameSite"), IsRequired = (false))] + [DataMember(Name = ("sameSite"), IsRequired = (false))] internal string sameSite { get; @@ -13541,7 +13260,7 @@ public CefSharp.DevTools.Network.CookiePriority Priority /// /// Cookie Priority /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("priority"), IsRequired = (true))] + [DataMember(Name = ("priority"), IsRequired = (true))] internal string priority { get; @@ -13551,7 +13270,7 @@ internal string priority /// /// True if cookie is SameParty. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sameParty"), IsRequired = (true))] + [DataMember(Name = ("sameParty"), IsRequired = (true))] public bool SameParty { get; @@ -13577,7 +13296,7 @@ public CefSharp.DevTools.Network.CookieSourceScheme SourceScheme /// /// Cookie source scheme type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceScheme"), IsRequired = (true))] + [DataMember(Name = ("sourceScheme"), IsRequired = (true))] internal string sourceScheme { get; @@ -13589,7 +13308,7 @@ internal string sourceScheme /// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. /// This is a temporary ability and it will be removed in the future. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourcePort"), IsRequired = (true))] + [DataMember(Name = ("sourcePort"), IsRequired = (true))] public int SourcePort { get; @@ -13600,7 +13319,7 @@ public int SourcePort /// Cookie partition key. The site of the top-level URL the browser was visiting at the start /// of the request to the endpoint that set the cookie. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("partitionKey"), IsRequired = (false))] + [DataMember(Name = ("partitionKey"), IsRequired = (false))] public string PartitionKey { get; @@ -13610,7 +13329,7 @@ public string PartitionKey /// /// True if cookie partition key is opaque. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("partitionKeyOpaque"), IsRequired = (false))] + [DataMember(Name = ("partitionKeyOpaque"), IsRequired = (false))] public bool? PartitionKeyOpaque { get; @@ -13626,97 +13345,97 @@ public enum SetCookieBlockedReason /// /// SecureOnly /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SecureOnly"))] + [EnumMember(Value = ("SecureOnly"))] SecureOnly, /// /// SameSiteStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteStrict"))] + [EnumMember(Value = ("SameSiteStrict"))] SameSiteStrict, /// /// SameSiteLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteLax"))] + [EnumMember(Value = ("SameSiteLax"))] SameSiteLax, /// /// SameSiteUnspecifiedTreatedAsLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteUnspecifiedTreatedAsLax"))] + [EnumMember(Value = ("SameSiteUnspecifiedTreatedAsLax"))] SameSiteUnspecifiedTreatedAsLax, /// /// SameSiteNoneInsecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteNoneInsecure"))] + [EnumMember(Value = ("SameSiteNoneInsecure"))] SameSiteNoneInsecure, /// /// UserPreferences /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UserPreferences"))] + [EnumMember(Value = ("UserPreferences"))] UserPreferences, /// /// ThirdPartyBlockedInFirstPartySet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ThirdPartyBlockedInFirstPartySet"))] + [EnumMember(Value = ("ThirdPartyBlockedInFirstPartySet"))] ThirdPartyBlockedInFirstPartySet, /// /// SyntaxError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SyntaxError"))] + [EnumMember(Value = ("SyntaxError"))] SyntaxError, /// /// SchemeNotSupported /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemeNotSupported"))] + [EnumMember(Value = ("SchemeNotSupported"))] SchemeNotSupported, /// /// OverwriteSecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OverwriteSecure"))] + [EnumMember(Value = ("OverwriteSecure"))] OverwriteSecure, /// /// InvalidDomain /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidDomain"))] + [EnumMember(Value = ("InvalidDomain"))] InvalidDomain, /// /// InvalidPrefix /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidPrefix"))] + [EnumMember(Value = ("InvalidPrefix"))] InvalidPrefix, /// /// UnknownError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnknownError"))] + [EnumMember(Value = ("UnknownError"))] UnknownError, /// /// SchemefulSameSiteStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemefulSameSiteStrict"))] + [EnumMember(Value = ("SchemefulSameSiteStrict"))] SchemefulSameSiteStrict, /// /// SchemefulSameSiteLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemefulSameSiteLax"))] + [EnumMember(Value = ("SchemefulSameSiteLax"))] SchemefulSameSiteLax, /// /// SchemefulSameSiteUnspecifiedTreatedAsLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemefulSameSiteUnspecifiedTreatedAsLax"))] + [EnumMember(Value = ("SchemefulSameSiteUnspecifiedTreatedAsLax"))] SchemefulSameSiteUnspecifiedTreatedAsLax, /// /// SamePartyFromCrossPartyContext /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SamePartyFromCrossPartyContext"))] + [EnumMember(Value = ("SamePartyFromCrossPartyContext"))] SamePartyFromCrossPartyContext, /// /// SamePartyConflictsWithOtherAttributes /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SamePartyConflictsWithOtherAttributes"))] + [EnumMember(Value = ("SamePartyConflictsWithOtherAttributes"))] SamePartyConflictsWithOtherAttributes, /// /// NameValuePairExceedsMaxSize /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NameValuePairExceedsMaxSize"))] + [EnumMember(Value = ("NameValuePairExceedsMaxSize"))] NameValuePairExceedsMaxSize } @@ -13728,77 +13447,77 @@ public enum CookieBlockedReason /// /// SecureOnly /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SecureOnly"))] + [EnumMember(Value = ("SecureOnly"))] SecureOnly, /// /// NotOnPath /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotOnPath"))] + [EnumMember(Value = ("NotOnPath"))] NotOnPath, /// /// DomainMismatch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DomainMismatch"))] + [EnumMember(Value = ("DomainMismatch"))] DomainMismatch, /// /// SameSiteStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteStrict"))] + [EnumMember(Value = ("SameSiteStrict"))] SameSiteStrict, /// /// SameSiteLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteLax"))] + [EnumMember(Value = ("SameSiteLax"))] SameSiteLax, /// /// SameSiteUnspecifiedTreatedAsLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteUnspecifiedTreatedAsLax"))] + [EnumMember(Value = ("SameSiteUnspecifiedTreatedAsLax"))] SameSiteUnspecifiedTreatedAsLax, /// /// SameSiteNoneInsecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteNoneInsecure"))] + [EnumMember(Value = ("SameSiteNoneInsecure"))] SameSiteNoneInsecure, /// /// UserPreferences /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UserPreferences"))] + [EnumMember(Value = ("UserPreferences"))] UserPreferences, /// /// ThirdPartyBlockedInFirstPartySet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ThirdPartyBlockedInFirstPartySet"))] + [EnumMember(Value = ("ThirdPartyBlockedInFirstPartySet"))] ThirdPartyBlockedInFirstPartySet, /// /// UnknownError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnknownError"))] + [EnumMember(Value = ("UnknownError"))] UnknownError, /// /// SchemefulSameSiteStrict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemefulSameSiteStrict"))] + [EnumMember(Value = ("SchemefulSameSiteStrict"))] SchemefulSameSiteStrict, /// /// SchemefulSameSiteLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemefulSameSiteLax"))] + [EnumMember(Value = ("SchemefulSameSiteLax"))] SchemefulSameSiteLax, /// /// SchemefulSameSiteUnspecifiedTreatedAsLax /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemefulSameSiteUnspecifiedTreatedAsLax"))] + [EnumMember(Value = ("SchemefulSameSiteUnspecifiedTreatedAsLax"))] SchemefulSameSiteUnspecifiedTreatedAsLax, /// /// SamePartyFromCrossPartyContext /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SamePartyFromCrossPartyContext"))] + [EnumMember(Value = ("SamePartyFromCrossPartyContext"))] SamePartyFromCrossPartyContext, /// /// NameValuePairExceedsMaxSize /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NameValuePairExceedsMaxSize"))] + [EnumMember(Value = ("NameValuePairExceedsMaxSize"))] NameValuePairExceedsMaxSize } @@ -13827,7 +13546,7 @@ public CefSharp.DevTools.Network.SetCookieBlockedReason[] BlockedReasons /// /// The reason(s) this cookie was blocked. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedReasons"), IsRequired = (true))] + [DataMember(Name = ("blockedReasons"), IsRequired = (true))] internal string blockedReasons { get; @@ -13838,7 +13557,7 @@ internal string blockedReasons /// The string representing this individual cookie as it would appear in the header. /// This is not the entire "cookie" or "set-cookie" header which could have multiple cookies. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookieLine"), IsRequired = (true))] + [DataMember(Name = ("cookieLine"), IsRequired = (true))] public string CookieLine { get; @@ -13850,7 +13569,7 @@ public string CookieLine /// sometimes complete cookie information is not available, such as in the case of parsing /// errors. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookie"), IsRequired = (false))] + [DataMember(Name = ("cookie"), IsRequired = (false))] public CefSharp.DevTools.Network.Cookie Cookie { get; @@ -13883,7 +13602,7 @@ public CefSharp.DevTools.Network.CookieBlockedReason[] BlockedReasons /// /// The reason(s) the cookie was blocked. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedReasons"), IsRequired = (true))] + [DataMember(Name = ("blockedReasons"), IsRequired = (true))] internal string blockedReasons { get; @@ -13893,7 +13612,7 @@ internal string blockedReasons /// /// The cookie object representing the cookie which was not sent. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookie"), IsRequired = (true))] + [DataMember(Name = ("cookie"), IsRequired = (true))] public CefSharp.DevTools.Network.Cookie Cookie { get; @@ -13910,7 +13629,7 @@ public partial class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Cookie name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -13920,7 +13639,7 @@ public string Name /// /// Cookie value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -13931,7 +13650,7 @@ public string Value /// The request-URI to associate with the setting of the cookie. This value can affect the /// default domain, path, source port, and source scheme values of the created cookie. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (false))] + [DataMember(Name = ("url"), IsRequired = (false))] public string Url { get; @@ -13941,7 +13660,7 @@ public string Url /// /// Cookie domain. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("domain"), IsRequired = (false))] + [DataMember(Name = ("domain"), IsRequired = (false))] public string Domain { get; @@ -13951,7 +13670,7 @@ public string Domain /// /// Cookie path. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("path"), IsRequired = (false))] + [DataMember(Name = ("path"), IsRequired = (false))] public string Path { get; @@ -13961,7 +13680,7 @@ public string Path /// /// True if cookie is secure. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("secure"), IsRequired = (false))] + [DataMember(Name = ("secure"), IsRequired = (false))] public bool? Secure { get; @@ -13971,7 +13690,7 @@ public bool? Secure /// /// True if cookie is http-only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("httpOnly"), IsRequired = (false))] + [DataMember(Name = ("httpOnly"), IsRequired = (false))] public bool? HttpOnly { get; @@ -13997,7 +13716,7 @@ public CefSharp.DevTools.Network.CookieSameSite? SameSite /// /// Cookie SameSite type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sameSite"), IsRequired = (false))] + [DataMember(Name = ("sameSite"), IsRequired = (false))] internal string sameSite { get; @@ -14007,7 +13726,7 @@ internal string sameSite /// /// Cookie expiration date, session cookie if not set /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("expires"), IsRequired = (false))] + [DataMember(Name = ("expires"), IsRequired = (false))] public double? Expires { get; @@ -14033,7 +13752,7 @@ public CefSharp.DevTools.Network.CookiePriority? Priority /// /// Cookie Priority. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("priority"), IsRequired = (false))] + [DataMember(Name = ("priority"), IsRequired = (false))] internal string priority { get; @@ -14043,7 +13762,7 @@ internal string priority /// /// True if cookie is SameParty. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sameParty"), IsRequired = (false))] + [DataMember(Name = ("sameParty"), IsRequired = (false))] public bool? SameParty { get; @@ -14069,7 +13788,7 @@ public CefSharp.DevTools.Network.CookieSourceScheme? SourceScheme /// /// Cookie source scheme type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceScheme"), IsRequired = (false))] + [DataMember(Name = ("sourceScheme"), IsRequired = (false))] internal string sourceScheme { get; @@ -14081,7 +13800,7 @@ internal string sourceScheme /// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. /// This is a temporary ability and it will be removed in the future. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourcePort"), IsRequired = (false))] + [DataMember(Name = ("sourcePort"), IsRequired = (false))] public int? SourcePort { get; @@ -14093,7 +13812,7 @@ public int? SourcePort /// of the request to the endpoint that set the cookie. /// If not set, the cookie will be set as not partitioned. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("partitionKey"), IsRequired = (false))] + [DataMember(Name = ("partitionKey"), IsRequired = (false))] public string PartitionKey { get; @@ -14109,12 +13828,12 @@ public enum AuthChallengeSource /// /// Server /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Server"))] + [EnumMember(Value = ("Server"))] Server, /// /// Proxy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Proxy"))] + [EnumMember(Value = ("Proxy"))] Proxy } @@ -14143,7 +13862,7 @@ public CefSharp.DevTools.Network.AuthChallengeSource? Source /// /// Source of the authentication challenge. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (false))] + [DataMember(Name = ("source"), IsRequired = (false))] internal string source { get; @@ -14153,7 +13872,7 @@ internal string source /// /// Origin of the challenger. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -14163,7 +13882,7 @@ public string Origin /// /// The authentication scheme used, such as basic or digest /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scheme"), IsRequired = (true))] + [DataMember(Name = ("scheme"), IsRequired = (true))] public string Scheme { get; @@ -14173,7 +13892,7 @@ public string Scheme /// /// The realm of the challenge. May be empty. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("realm"), IsRequired = (true))] + [DataMember(Name = ("realm"), IsRequired = (true))] public string Realm { get; @@ -14191,17 +13910,17 @@ public enum AuthChallengeResponseResponse /// /// Default /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Default"))] + [EnumMember(Value = ("Default"))] Default, /// /// CancelAuth /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CancelAuth"))] + [EnumMember(Value = ("CancelAuth"))] CancelAuth, /// /// ProvideCredentials /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ProvideCredentials"))] + [EnumMember(Value = ("ProvideCredentials"))] ProvideCredentials } @@ -14234,7 +13953,7 @@ public CefSharp.DevTools.Network.AuthChallengeResponseResponse Response /// deferring to the default behavior of the net stack, which will likely either the Cancel /// authentication or display a popup dialog box. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + [DataMember(Name = ("response"), IsRequired = (true))] internal string response { get; @@ -14245,7 +13964,7 @@ internal string response /// The username to provide, possibly empty. Should only be set if response is /// ProvideCredentials. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("username"), IsRequired = (false))] + [DataMember(Name = ("username"), IsRequired = (false))] public string Username { get; @@ -14256,7 +13975,7 @@ public string Username /// The password to provide, possibly empty. Should only be set if response is /// ProvideCredentials. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("password"), IsRequired = (false))] + [DataMember(Name = ("password"), IsRequired = (false))] public string Password { get; @@ -14273,12 +13992,12 @@ public enum InterceptionStage /// /// Request /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Request"))] + [EnumMember(Value = ("Request"))] Request, /// /// HeadersReceived /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HeadersReceived"))] + [EnumMember(Value = ("HeadersReceived"))] HeadersReceived } @@ -14292,7 +14011,7 @@ public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is /// backslash. Omitting is equivalent to `"*"`. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlPattern"), IsRequired = (false))] + [DataMember(Name = ("urlPattern"), IsRequired = (false))] public string UrlPattern { get; @@ -14318,7 +14037,7 @@ public CefSharp.DevTools.Network.ResourceType? ResourceType /// /// If set, only requests for matching resource types will be intercepted. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (false))] + [DataMember(Name = ("resourceType"), IsRequired = (false))] internal string resourceType { get; @@ -14344,7 +14063,7 @@ public CefSharp.DevTools.Network.InterceptionStage? InterceptionStage /// /// Stage at which to begin intercepting requests. Default is Request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("interceptionStage"), IsRequired = (false))] + [DataMember(Name = ("interceptionStage"), IsRequired = (false))] internal string interceptionStage { get; @@ -14362,7 +14081,7 @@ public partial class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainE /// /// Signed exchange signature label. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("label"), IsRequired = (true))] + [DataMember(Name = ("label"), IsRequired = (true))] public string Label { get; @@ -14372,7 +14091,7 @@ public string Label /// /// The hex string of signed exchange signature. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("signature"), IsRequired = (true))] + [DataMember(Name = ("signature"), IsRequired = (true))] public string Signature { get; @@ -14382,7 +14101,7 @@ public string Signature /// /// Signed exchange signature integrity. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("integrity"), IsRequired = (true))] + [DataMember(Name = ("integrity"), IsRequired = (true))] public string Integrity { get; @@ -14392,7 +14111,7 @@ public string Integrity /// /// Signed exchange signature cert Url. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certUrl"), IsRequired = (false))] + [DataMember(Name = ("certUrl"), IsRequired = (false))] public string CertUrl { get; @@ -14402,7 +14121,7 @@ public string CertUrl /// /// The hex string of signed exchange signature cert sha256. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certSha256"), IsRequired = (false))] + [DataMember(Name = ("certSha256"), IsRequired = (false))] public string CertSha256 { get; @@ -14412,7 +14131,7 @@ public string CertSha256 /// /// Signed exchange signature validity Url. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("validityUrl"), IsRequired = (true))] + [DataMember(Name = ("validityUrl"), IsRequired = (true))] public string ValidityUrl { get; @@ -14422,7 +14141,7 @@ public string ValidityUrl /// /// Signed exchange signature date. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("date"), IsRequired = (true))] + [DataMember(Name = ("date"), IsRequired = (true))] public int Date { get; @@ -14432,7 +14151,7 @@ public int Date /// /// Signed exchange signature expires. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("expires"), IsRequired = (true))] + [DataMember(Name = ("expires"), IsRequired = (true))] public int Expires { get; @@ -14442,7 +14161,7 @@ public int Expires /// /// The encoded certificates. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificates"), IsRequired = (false))] + [DataMember(Name = ("certificates"), IsRequired = (false))] public string[] Certificates { get; @@ -14460,7 +14179,7 @@ public partial class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEnti /// /// Signed exchange request URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestUrl"), IsRequired = (true))] + [DataMember(Name = ("requestUrl"), IsRequired = (true))] public string RequestUrl { get; @@ -14470,7 +14189,7 @@ public string RequestUrl /// /// Signed exchange response code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseCode"), IsRequired = (true))] + [DataMember(Name = ("responseCode"), IsRequired = (true))] public int ResponseCode { get; @@ -14480,7 +14199,7 @@ public int ResponseCode /// /// Signed exchange response headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseHeaders"), IsRequired = (true))] + [DataMember(Name = ("responseHeaders"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers ResponseHeaders { get; @@ -14490,7 +14209,7 @@ public CefSharp.DevTools.Network.Headers ResponseHeaders /// /// Signed exchange response signature. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("signatures"), IsRequired = (true))] + [DataMember(Name = ("signatures"), IsRequired = (true))] public System.Collections.Generic.IList Signatures { get; @@ -14500,7 +14219,7 @@ public System.Collections.Generic.IList /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("headerIntegrity"), IsRequired = (true))] + [DataMember(Name = ("headerIntegrity"), IsRequired = (true))] public string HeaderIntegrity { get; @@ -14516,32 +14235,32 @@ public enum SignedExchangeErrorField /// /// signatureSig /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("signatureSig"))] + [EnumMember(Value = ("signatureSig"))] SignatureSig, /// /// signatureIntegrity /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("signatureIntegrity"))] + [EnumMember(Value = ("signatureIntegrity"))] SignatureIntegrity, /// /// signatureCertUrl /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("signatureCertUrl"))] + [EnumMember(Value = ("signatureCertUrl"))] SignatureCertUrl, /// /// signatureCertSha256 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("signatureCertSha256"))] + [EnumMember(Value = ("signatureCertSha256"))] SignatureCertSha256, /// /// signatureValidityUrl /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("signatureValidityUrl"))] + [EnumMember(Value = ("signatureValidityUrl"))] SignatureValidityUrl, /// /// signatureTimestamps /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("signatureTimestamps"))] + [EnumMember(Value = ("signatureTimestamps"))] SignatureTimestamps } @@ -14554,7 +14273,7 @@ public partial class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntit /// /// Error message. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + [DataMember(Name = ("message"), IsRequired = (true))] public string Message { get; @@ -14564,7 +14283,7 @@ public string Message /// /// The index of the signature which caused the error. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("signatureIndex"), IsRequired = (false))] + [DataMember(Name = ("signatureIndex"), IsRequired = (false))] public int? SignatureIndex { get; @@ -14590,7 +14309,7 @@ public CefSharp.DevTools.Network.SignedExchangeErrorField? ErrorField /// /// The field which caused the error. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorField"), IsRequired = (false))] + [DataMember(Name = ("errorField"), IsRequired = (false))] internal string errorField { get; @@ -14607,7 +14326,7 @@ public partial class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntity /// /// The outer response of signed HTTP exchange which was received from network. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("outerResponse"), IsRequired = (true))] + [DataMember(Name = ("outerResponse"), IsRequired = (true))] public CefSharp.DevTools.Network.Response OuterResponse { get; @@ -14617,7 +14336,7 @@ public CefSharp.DevTools.Network.Response OuterResponse /// /// Information about the signed exchange header. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("header"), IsRequired = (false))] + [DataMember(Name = ("header"), IsRequired = (false))] public CefSharp.DevTools.Network.SignedExchangeHeader Header { get; @@ -14627,7 +14346,7 @@ public CefSharp.DevTools.Network.SignedExchangeHeader Header /// /// Security details for the signed exchange header. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityDetails"), IsRequired = (false))] + [DataMember(Name = ("securityDetails"), IsRequired = (false))] public CefSharp.DevTools.Network.SecurityDetails SecurityDetails { get; @@ -14637,7 +14356,7 @@ public CefSharp.DevTools.Network.SecurityDetails SecurityDetails /// /// Errors occurred while handling the signed exchagne. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errors"), IsRequired = (false))] + [DataMember(Name = ("errors"), IsRequired = (false))] public System.Collections.Generic.IList Errors { get; @@ -14653,17 +14372,17 @@ public enum ContentEncoding /// /// deflate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("deflate"))] + [EnumMember(Value = ("deflate"))] Deflate, /// /// gzip /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("gzip"))] + [EnumMember(Value = ("gzip"))] Gzip, /// /// br /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("br"))] + [EnumMember(Value = ("br"))] Br } @@ -14675,27 +14394,27 @@ public enum PrivateNetworkRequestPolicy /// /// Allow /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Allow"))] + [EnumMember(Value = ("Allow"))] Allow, /// /// BlockFromInsecureToMorePrivate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BlockFromInsecureToMorePrivate"))] + [EnumMember(Value = ("BlockFromInsecureToMorePrivate"))] BlockFromInsecureToMorePrivate, /// /// WarnFromInsecureToMorePrivate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WarnFromInsecureToMorePrivate"))] + [EnumMember(Value = ("WarnFromInsecureToMorePrivate"))] WarnFromInsecureToMorePrivate, /// /// PreflightBlock /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightBlock"))] + [EnumMember(Value = ("PreflightBlock"))] PreflightBlock, /// /// PreflightWarn /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PreflightWarn"))] + [EnumMember(Value = ("PreflightWarn"))] PreflightWarn } @@ -14707,22 +14426,22 @@ public enum IPAddressSpace /// /// Local /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Local"))] + [EnumMember(Value = ("Local"))] Local, /// /// Private /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Private"))] + [EnumMember(Value = ("Private"))] Private, /// /// Public /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Public"))] + [EnumMember(Value = ("Public"))] Public, /// /// Unknown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unknown"))] + [EnumMember(Value = ("Unknown"))] Unknown } @@ -14737,7 +14456,7 @@ public partial class ConnectTiming : CefSharp.DevTools.DevToolsDomainEntityBase /// milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for /// the same request (but not for redirected requests). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestTime"), IsRequired = (true))] + [DataMember(Name = ("requestTime"), IsRequired = (true))] public double RequestTime { get; @@ -14754,7 +14473,7 @@ public partial class ClientSecurityState : CefSharp.DevTools.DevToolsDomainEntit /// /// InitiatorIsSecureContext /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiatorIsSecureContext"), IsRequired = (true))] + [DataMember(Name = ("initiatorIsSecureContext"), IsRequired = (true))] public bool InitiatorIsSecureContext { get; @@ -14780,7 +14499,7 @@ public CefSharp.DevTools.Network.IPAddressSpace InitiatorIPAddressSpace /// /// InitiatorIPAddressSpace /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiatorIPAddressSpace"), IsRequired = (true))] + [DataMember(Name = ("initiatorIPAddressSpace"), IsRequired = (true))] internal string initiatorIPAddressSpace { get; @@ -14806,7 +14525,7 @@ public CefSharp.DevTools.Network.PrivateNetworkRequestPolicy PrivateNetworkReque /// /// PrivateNetworkRequestPolicy /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("privateNetworkRequestPolicy"), IsRequired = (true))] + [DataMember(Name = ("privateNetworkRequestPolicy"), IsRequired = (true))] internal string privateNetworkRequestPolicy { get; @@ -14822,32 +14541,32 @@ public enum CrossOriginOpenerPolicyValue /// /// SameOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameOrigin"))] + [EnumMember(Value = ("SameOrigin"))] SameOrigin, /// /// SameOriginAllowPopups /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameOriginAllowPopups"))] + [EnumMember(Value = ("SameOriginAllowPopups"))] SameOriginAllowPopups, /// /// RestrictProperties /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RestrictProperties"))] + [EnumMember(Value = ("RestrictProperties"))] RestrictProperties, /// /// UnsafeNone /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnsafeNone"))] + [EnumMember(Value = ("UnsafeNone"))] UnsafeNone, /// /// SameOriginPlusCoep /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameOriginPlusCoep"))] + [EnumMember(Value = ("SameOriginPlusCoep"))] SameOriginPlusCoep, /// /// RestrictPropertiesPlusCoep /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RestrictPropertiesPlusCoep"))] + [EnumMember(Value = ("RestrictPropertiesPlusCoep"))] RestrictPropertiesPlusCoep } @@ -14876,7 +14595,7 @@ public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue Value /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] internal string value { get; @@ -14902,7 +14621,7 @@ public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue ReportOnlyValue /// /// ReportOnlyValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyValue"), IsRequired = (true))] + [DataMember(Name = ("reportOnlyValue"), IsRequired = (true))] internal string reportOnlyValue { get; @@ -14912,7 +14631,7 @@ internal string reportOnlyValue /// /// ReportingEndpoint /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingEndpoint"), IsRequired = (false))] + [DataMember(Name = ("reportingEndpoint"), IsRequired = (false))] public string ReportingEndpoint { get; @@ -14922,7 +14641,7 @@ public string ReportingEndpoint /// /// ReportOnlyReportingEndpoint /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyReportingEndpoint"), IsRequired = (false))] + [DataMember(Name = ("reportOnlyReportingEndpoint"), IsRequired = (false))] public string ReportOnlyReportingEndpoint { get; @@ -14938,17 +14657,17 @@ public enum CrossOriginEmbedderPolicyValue /// /// None /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("None"))] + [EnumMember(Value = ("None"))] None, /// /// Credentialless /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Credentialless"))] + [EnumMember(Value = ("Credentialless"))] Credentialless, /// /// RequireCorp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequireCorp"))] + [EnumMember(Value = ("RequireCorp"))] RequireCorp } @@ -14977,7 +14696,7 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue Value /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] internal string value { get; @@ -15003,7 +14722,7 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue ReportOnlyValue /// /// ReportOnlyValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyValue"), IsRequired = (true))] + [DataMember(Name = ("reportOnlyValue"), IsRequired = (true))] internal string reportOnlyValue { get; @@ -15013,7 +14732,7 @@ internal string reportOnlyValue /// /// ReportingEndpoint /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingEndpoint"), IsRequired = (false))] + [DataMember(Name = ("reportingEndpoint"), IsRequired = (false))] public string ReportingEndpoint { get; @@ -15023,7 +14742,7 @@ public string ReportingEndpoint /// /// ReportOnlyReportingEndpoint /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportOnlyReportingEndpoint"), IsRequired = (false))] + [DataMember(Name = ("reportOnlyReportingEndpoint"), IsRequired = (false))] public string ReportOnlyReportingEndpoint { get; @@ -15040,7 +14759,7 @@ public partial class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainE /// /// Coop /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("coop"), IsRequired = (false))] + [DataMember(Name = ("coop"), IsRequired = (false))] public CefSharp.DevTools.Network.CrossOriginOpenerPolicyStatus Coop { get; @@ -15050,7 +14769,7 @@ public CefSharp.DevTools.Network.CrossOriginOpenerPolicyStatus Coop /// /// Coep /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("coep"), IsRequired = (false))] + [DataMember(Name = ("coep"), IsRequired = (false))] public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep { get; @@ -15066,22 +14785,22 @@ public enum ReportStatus /// /// Queued /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Queued"))] + [EnumMember(Value = ("Queued"))] Queued, /// /// Pending /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Pending"))] + [EnumMember(Value = ("Pending"))] Pending, /// /// MarkedForRemoval /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MarkedForRemoval"))] + [EnumMember(Value = ("MarkedForRemoval"))] MarkedForRemoval, /// /// Success /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Success"))] + [EnumMember(Value = ("Success"))] Success } @@ -15094,7 +14813,7 @@ public partial class ReportingApiReport : CefSharp.DevTools.DevToolsDomainEntity /// /// Id /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -15104,7 +14823,7 @@ public string Id /// /// The URL of the document that triggered the report. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiatorUrl"), IsRequired = (true))] + [DataMember(Name = ("initiatorUrl"), IsRequired = (true))] public string InitiatorUrl { get; @@ -15114,7 +14833,7 @@ public string InitiatorUrl /// /// The name of the endpoint group that should be used to deliver the report. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("destination"), IsRequired = (true))] + [DataMember(Name = ("destination"), IsRequired = (true))] public string Destination { get; @@ -15124,7 +14843,7 @@ public string Destination /// /// The type of the report (specifies the set of data that is contained in the report body). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] public string Type { get; @@ -15134,7 +14853,7 @@ public string Type /// /// When the report was generated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -15144,7 +14863,7 @@ public double Timestamp /// /// How many uploads deep the related request was. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("depth"), IsRequired = (true))] + [DataMember(Name = ("depth"), IsRequired = (true))] public int Depth { get; @@ -15154,7 +14873,7 @@ public int Depth /// /// The number of delivery attempts made so far, not including an active attempt. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("completedAttempts"), IsRequired = (true))] + [DataMember(Name = ("completedAttempts"), IsRequired = (true))] public int CompletedAttempts { get; @@ -15164,7 +14883,7 @@ public int CompletedAttempts /// /// Body /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("body"), IsRequired = (true))] + [DataMember(Name = ("body"), IsRequired = (true))] public object Body { get; @@ -15190,7 +14909,7 @@ public CefSharp.DevTools.Network.ReportStatus Status /// /// Status /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] internal string status { get; @@ -15207,7 +14926,7 @@ public partial class ReportingApiEndpoint : CefSharp.DevTools.DevToolsDomainEnti /// /// The URL of the endpoint to which reports may be delivered. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -15217,7 +14936,7 @@ public string Url /// /// Name of the endpoint group. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("groupName"), IsRequired = (true))] + [DataMember(Name = ("groupName"), IsRequired = (true))] public string GroupName { get; @@ -15234,7 +14953,7 @@ public partial class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsD /// /// Success /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("success"), IsRequired = (true))] + [DataMember(Name = ("success"), IsRequired = (true))] public bool Success { get; @@ -15244,7 +14963,7 @@ public bool Success /// /// Optional values used for error reporting. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("netError"), IsRequired = (false))] + [DataMember(Name = ("netError"), IsRequired = (false))] public double? NetError { get; @@ -15254,7 +14973,7 @@ public double? NetError /// /// NetErrorName /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("netErrorName"), IsRequired = (false))] + [DataMember(Name = ("netErrorName"), IsRequired = (false))] public string NetErrorName { get; @@ -15264,7 +14983,7 @@ public string NetErrorName /// /// HttpStatusCode /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("httpStatusCode"), IsRequired = (false))] + [DataMember(Name = ("httpStatusCode"), IsRequired = (false))] public double? HttpStatusCode { get; @@ -15274,7 +14993,7 @@ public double? HttpStatusCode /// /// If successful, one of the following two fields holds the result. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stream"), IsRequired = (false))] + [DataMember(Name = ("stream"), IsRequired = (false))] public string Stream { get; @@ -15284,7 +15003,7 @@ public string Stream /// /// Response headers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (false))] + [DataMember(Name = ("headers"), IsRequired = (false))] public CefSharp.DevTools.Network.Headers Headers { get; @@ -15302,7 +15021,7 @@ public partial class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDoma /// /// DisableCache /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("disableCache"), IsRequired = (true))] + [DataMember(Name = ("disableCache"), IsRequired = (true))] public bool DisableCache { get; @@ -15312,7 +15031,7 @@ public bool DisableCache /// /// IncludeCredentials /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("includeCredentials"), IsRequired = (true))] + [DataMember(Name = ("includeCredentials"), IsRequired = (true))] public bool IncludeCredentials { get; @@ -15329,7 +15048,7 @@ public class DataReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15339,7 +15058,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -15349,7 +15068,7 @@ public double Timestamp /// /// Data chunk length. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("dataLength"), IsRequired = (true))] + [DataMember(Name = ("dataLength"), IsRequired = (true))] public int DataLength { get; @@ -15359,7 +15078,7 @@ public int DataLength /// /// Actual bytes received (might be less than dataLength for compressed encodings). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodedDataLength"), IsRequired = (true))] + [DataMember(Name = ("encodedDataLength"), IsRequired = (true))] public int EncodedDataLength { get; @@ -15376,7 +15095,7 @@ public class EventSourceMessageReceivedEventArgs : CefSharp.DevTools.DevToolsDom /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15386,7 +15105,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -15396,7 +15115,7 @@ public double Timestamp /// /// Message type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventName"), IsRequired = (true))] + [DataMember(Name = ("eventName"), IsRequired = (true))] public string EventName { get; @@ -15406,7 +15125,7 @@ public string EventName /// /// Message identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventId"), IsRequired = (true))] + [DataMember(Name = ("eventId"), IsRequired = (true))] public string EventId { get; @@ -15416,7 +15135,7 @@ public string EventId /// /// Message content. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + [DataMember(Name = ("data"), IsRequired = (true))] public string Data { get; @@ -15433,7 +15152,7 @@ public class LoadingFailedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15443,7 +15162,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -15469,7 +15188,7 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// Resource type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -15479,7 +15198,7 @@ internal string type /// /// User friendly error message. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorText"), IsRequired = (true))] + [DataMember(Name = ("errorText"), IsRequired = (true))] public string ErrorText { get; @@ -15489,7 +15208,7 @@ public string ErrorText /// /// True if loading was canceled. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("canceled"), IsRequired = (false))] + [DataMember(Name = ("canceled"), IsRequired = (false))] public bool? Canceled { get; @@ -15515,7 +15234,7 @@ public CefSharp.DevTools.Network.BlockedReason? BlockedReason /// /// The reason why loading was blocked, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedReason"), IsRequired = (false))] + [DataMember(Name = ("blockedReason"), IsRequired = (false))] internal string blockedReason { get; @@ -15525,7 +15244,7 @@ internal string blockedReason /// /// The reason why loading was blocked by CORS, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("corsErrorStatus"), IsRequired = (false))] + [DataMember(Name = ("corsErrorStatus"), IsRequired = (false))] public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus { get; @@ -15542,7 +15261,7 @@ public class LoadingFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15552,7 +15271,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -15562,7 +15281,7 @@ public double Timestamp /// /// Total number of bytes received for this request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("encodedDataLength"), IsRequired = (true))] + [DataMember(Name = ("encodedDataLength"), IsRequired = (true))] public double EncodedDataLength { get; @@ -15573,7 +15292,7 @@ public double EncodedDataLength /// Set when 1) response was blocked by Cross-Origin Read Blocking and also /// 2) this needs to be reported to the DevTools console. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("shouldReportCorbBlocking"), IsRequired = (false))] + [DataMember(Name = ("shouldReportCorbBlocking"), IsRequired = (false))] public bool? ShouldReportCorbBlocking { get; @@ -15594,7 +15313,7 @@ public class RequestInterceptedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// while processing that fetch, they will be reported with the same id as the original fetch. /// Likewise if HTTP authentication is needed then the same fetch id will be used. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("interceptionId"), IsRequired = (true))] + [DataMember(Name = ("interceptionId"), IsRequired = (true))] public string InterceptionId { get; @@ -15604,7 +15323,7 @@ public string InterceptionId /// /// Request /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + [DataMember(Name = ("request"), IsRequired = (true))] public CefSharp.DevTools.Network.Request Request { get; @@ -15614,7 +15333,7 @@ public CefSharp.DevTools.Network.Request Request /// /// The id of the frame that initiated the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -15640,7 +15359,7 @@ public CefSharp.DevTools.Network.ResourceType ResourceType /// /// How the requested resource will be used. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (true))] + [DataMember(Name = ("resourceType"), IsRequired = (true))] internal string resourceType { get; @@ -15650,7 +15369,7 @@ internal string resourceType /// /// Whether this is a navigation request, which can abort the navigation completely. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isNavigationRequest"), IsRequired = (true))] + [DataMember(Name = ("isNavigationRequest"), IsRequired = (true))] public bool IsNavigationRequest { get; @@ -15661,7 +15380,7 @@ public bool IsNavigationRequest /// Set if the request is a navigation that will result in a download. /// Only present after response is received from the server (i.e. HeadersReceived stage). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("isDownload"), IsRequired = (false))] + [DataMember(Name = ("isDownload"), IsRequired = (false))] public bool? IsDownload { get; @@ -15671,7 +15390,7 @@ public bool? IsDownload /// /// Redirect location, only sent if a redirect was intercepted. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("redirectUrl"), IsRequired = (false))] + [DataMember(Name = ("redirectUrl"), IsRequired = (false))] public string RedirectUrl { get; @@ -15682,7 +15401,7 @@ public string RedirectUrl /// Details of the Authorization Challenge encountered. If this is set then /// continueInterceptedRequest must contain an authChallengeResponse. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("authChallenge"), IsRequired = (false))] + [DataMember(Name = ("authChallenge"), IsRequired = (false))] public CefSharp.DevTools.Network.AuthChallenge AuthChallenge { get; @@ -15710,7 +15429,7 @@ public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason /// Response error if intercepted at response stage or if redirect occurred while intercepting /// request. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseErrorReason"), IsRequired = (false))] + [DataMember(Name = ("responseErrorReason"), IsRequired = (false))] internal string responseErrorReason { get; @@ -15721,7 +15440,7 @@ internal string responseErrorReason /// Response code if intercepted at response stage or if redirect occurred while intercepting /// request or auth retry occurred. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseStatusCode"), IsRequired = (false))] + [DataMember(Name = ("responseStatusCode"), IsRequired = (false))] public int? ResponseStatusCode { get; @@ -15732,7 +15451,7 @@ public int? ResponseStatusCode /// Response headers if intercepted at the response stage or if redirect occurred while /// intercepting request or auth retry occurred. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseHeaders"), IsRequired = (false))] + [DataMember(Name = ("responseHeaders"), IsRequired = (false))] public CefSharp.DevTools.Network.Headers ResponseHeaders { get; @@ -15743,7 +15462,7 @@ public CefSharp.DevTools.Network.Headers ResponseHeaders /// If the intercepted request had a corresponding requestWillBeSent event fired for it, then /// this requestId will be the same as the requestId present in the requestWillBeSent event. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (false))] + [DataMember(Name = ("requestId"), IsRequired = (false))] public string RequestId { get; @@ -15760,7 +15479,7 @@ public class RequestServedFromCacheEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15777,7 +15496,7 @@ public class RequestWillBeSentEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15787,7 +15506,7 @@ public string RequestId /// /// Loader identifier. Empty string if the request is fetched from worker. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + [DataMember(Name = ("loaderId"), IsRequired = (true))] public string LoaderId { get; @@ -15797,7 +15516,7 @@ public string LoaderId /// /// URL of the document this request is loaded for. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("documentURL"), IsRequired = (true))] + [DataMember(Name = ("documentURL"), IsRequired = (true))] public string DocumentURL { get; @@ -15807,7 +15526,7 @@ public string DocumentURL /// /// Request data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + [DataMember(Name = ("request"), IsRequired = (true))] public CefSharp.DevTools.Network.Request Request { get; @@ -15817,7 +15536,7 @@ public CefSharp.DevTools.Network.Request Request /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -15827,7 +15546,7 @@ public double Timestamp /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("wallTime"), IsRequired = (true))] + [DataMember(Name = ("wallTime"), IsRequired = (true))] public double WallTime { get; @@ -15837,7 +15556,7 @@ public double WallTime /// /// Request initiator. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiator"), IsRequired = (true))] + [DataMember(Name = ("initiator"), IsRequired = (true))] public CefSharp.DevTools.Network.Initiator Initiator { get; @@ -15849,7 +15568,7 @@ public CefSharp.DevTools.Network.Initiator Initiator /// requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted /// for the request which was just redirected. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("redirectHasExtraInfo"), IsRequired = (true))] + [DataMember(Name = ("redirectHasExtraInfo"), IsRequired = (true))] public bool RedirectHasExtraInfo { get; @@ -15859,7 +15578,7 @@ public bool RedirectHasExtraInfo /// /// Redirect response data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("redirectResponse"), IsRequired = (false))] + [DataMember(Name = ("redirectResponse"), IsRequired = (false))] public CefSharp.DevTools.Network.Response RedirectResponse { get; @@ -15885,7 +15604,7 @@ public CefSharp.DevTools.Network.ResourceType? Type /// /// Type of this resource. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (false))] + [DataMember(Name = ("type"), IsRequired = (false))] internal string type { get; @@ -15895,7 +15614,7 @@ internal string type /// /// Frame identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + [DataMember(Name = ("frameId"), IsRequired = (false))] public string FrameId { get; @@ -15905,7 +15624,7 @@ public string FrameId /// /// Whether the request is initiated by a user gesture. Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasUserGesture"), IsRequired = (false))] + [DataMember(Name = ("hasUserGesture"), IsRequired = (false))] public bool? HasUserGesture { get; @@ -15922,7 +15641,7 @@ public class ResourceChangedPriorityEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15948,7 +15667,7 @@ public CefSharp.DevTools.Network.ResourcePriority NewPriority /// /// New priority /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("newPriority"), IsRequired = (true))] + [DataMember(Name = ("newPriority"), IsRequired = (true))] internal string newPriority { get; @@ -15958,7 +15677,7 @@ internal string newPriority /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -15975,7 +15694,7 @@ public class SignedExchangeReceivedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -15985,7 +15704,7 @@ public string RequestId /// /// Information about the signed exchange response. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("info"), IsRequired = (true))] + [DataMember(Name = ("info"), IsRequired = (true))] public CefSharp.DevTools.Network.SignedExchangeInfo Info { get; @@ -16002,7 +15721,7 @@ public class ResponseReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16012,7 +15731,7 @@ public string RequestId /// /// Loader identifier. Empty string if the request is fetched from worker. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + [DataMember(Name = ("loaderId"), IsRequired = (true))] public string LoaderId { get; @@ -16022,7 +15741,7 @@ public string LoaderId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16048,7 +15767,7 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// Resource type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -16058,7 +15777,7 @@ internal string type /// /// Response data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + [DataMember(Name = ("response"), IsRequired = (true))] public CefSharp.DevTools.Network.Response Response { get; @@ -16069,7 +15788,7 @@ public CefSharp.DevTools.Network.Response Response /// Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be /// or were emitted for this request. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasExtraInfo"), IsRequired = (true))] + [DataMember(Name = ("hasExtraInfo"), IsRequired = (true))] public bool HasExtraInfo { get; @@ -16079,7 +15798,7 @@ public bool HasExtraInfo /// /// Frame identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (false))] + [DataMember(Name = ("frameId"), IsRequired = (false))] public string FrameId { get; @@ -16096,7 +15815,7 @@ public class WebSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16106,7 +15825,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16123,7 +15842,7 @@ public class WebSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16133,7 +15852,7 @@ public string RequestId /// /// WebSocket request URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -16143,7 +15862,7 @@ public string Url /// /// Request initiator. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiator"), IsRequired = (false))] + [DataMember(Name = ("initiator"), IsRequired = (false))] public CefSharp.DevTools.Network.Initiator Initiator { get; @@ -16160,7 +15879,7 @@ public class WebSocketFrameErrorEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16170,7 +15889,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16180,7 +15899,7 @@ public double Timestamp /// /// WebSocket error message. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorMessage"), IsRequired = (true))] + [DataMember(Name = ("errorMessage"), IsRequired = (true))] public string ErrorMessage { get; @@ -16197,7 +15916,7 @@ public class WebSocketFrameReceivedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16207,7 +15926,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16217,7 +15936,7 @@ public double Timestamp /// /// WebSocket response data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + [DataMember(Name = ("response"), IsRequired = (true))] public CefSharp.DevTools.Network.WebSocketFrame Response { get; @@ -16234,7 +15953,7 @@ public class WebSocketFrameSentEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16244,7 +15963,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16254,7 +15973,7 @@ public double Timestamp /// /// WebSocket response data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + [DataMember(Name = ("response"), IsRequired = (true))] public CefSharp.DevTools.Network.WebSocketFrame Response { get; @@ -16271,7 +15990,7 @@ public class WebSocketHandshakeResponseReceivedEventArgs : CefSharp.DevTools.Dev /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16281,7 +16000,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16291,7 +16010,7 @@ public double Timestamp /// /// WebSocket response data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + [DataMember(Name = ("response"), IsRequired = (true))] public CefSharp.DevTools.Network.WebSocketResponse Response { get; @@ -16308,7 +16027,7 @@ public class WebSocketWillSendHandshakeRequestEventArgs : CefSharp.DevTools.DevT /// /// Request identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16318,7 +16037,7 @@ public string RequestId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16328,7 +16047,7 @@ public double Timestamp /// /// UTC Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("wallTime"), IsRequired = (true))] + [DataMember(Name = ("wallTime"), IsRequired = (true))] public double WallTime { get; @@ -16338,7 +16057,7 @@ public double WallTime /// /// WebSocket request data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + [DataMember(Name = ("request"), IsRequired = (true))] public CefSharp.DevTools.Network.WebSocketRequest Request { get; @@ -16355,7 +16074,7 @@ public class WebTransportCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// WebTransport identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("transportId"), IsRequired = (true))] + [DataMember(Name = ("transportId"), IsRequired = (true))] public string TransportId { get; @@ -16365,7 +16084,7 @@ public string TransportId /// /// WebTransport request URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -16375,7 +16094,7 @@ public string Url /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16385,7 +16104,7 @@ public double Timestamp /// /// Request initiator. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiator"), IsRequired = (false))] + [DataMember(Name = ("initiator"), IsRequired = (false))] public CefSharp.DevTools.Network.Initiator Initiator { get; @@ -16402,7 +16121,7 @@ public class WebTransportConnectionEstablishedEventArgs : CefSharp.DevTools.DevT /// /// WebTransport identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("transportId"), IsRequired = (true))] + [DataMember(Name = ("transportId"), IsRequired = (true))] public string TransportId { get; @@ -16412,7 +16131,7 @@ public string TransportId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16429,7 +16148,7 @@ public class WebTransportClosedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// WebTransport identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("transportId"), IsRequired = (true))] + [DataMember(Name = ("transportId"), IsRequired = (true))] public string TransportId { get; @@ -16439,7 +16158,7 @@ public string TransportId /// /// Timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -16459,7 +16178,7 @@ public class RequestWillBeSentExtraInfoEventArgs : CefSharp.DevTools.DevToolsDom /// /// Request identifier. Used to match this information to an existing requestWillBeSent event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16470,7 +16189,7 @@ public string RequestId /// A list of cookies potentially associated to the requested URL. This includes both cookies sent with /// the request and the ones not sent; the latter are distinguished by having blockedReason field set. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("associatedCookies"), IsRequired = (true))] + [DataMember(Name = ("associatedCookies"), IsRequired = (true))] public System.Collections.Generic.IList AssociatedCookies { get; @@ -16480,7 +16199,7 @@ public System.Collections.Generic.IList /// Raw request headers as they will be sent over the wire. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers { get; @@ -16490,7 +16209,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// Connection timing information for the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectTiming"), IsRequired = (true))] + [DataMember(Name = ("connectTiming"), IsRequired = (true))] public CefSharp.DevTools.Network.ConnectTiming ConnectTiming { get; @@ -16500,7 +16219,7 @@ public CefSharp.DevTools.Network.ConnectTiming ConnectTiming /// /// The client security state set for the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientSecurityState"), IsRequired = (false))] + [DataMember(Name = ("clientSecurityState"), IsRequired = (false))] public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState { get; @@ -16510,7 +16229,7 @@ public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState /// /// Whether the site has partitioned cookies stored in a partition different than the current one. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("siteHasCookieInOtherPartition"), IsRequired = (false))] + [DataMember(Name = ("siteHasCookieInOtherPartition"), IsRequired = (false))] public bool? SiteHasCookieInOtherPartition { get; @@ -16529,7 +16248,7 @@ public class ResponseReceivedExtraInfoEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Request identifier. Used to match this information to another responseReceived event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16541,7 +16260,7 @@ public string RequestId /// reasons for blocking. The cookies here may not be valid due to syntax errors, which /// are represented by the invalid cookie line string instead of a proper cookie. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockedCookies"), IsRequired = (true))] + [DataMember(Name = ("blockedCookies"), IsRequired = (true))] public System.Collections.Generic.IList BlockedCookies { get; @@ -16551,7 +16270,7 @@ public System.Collections.Generic.IList /// Raw response headers as they were received over the wire. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("headers"), IsRequired = (true))] + [DataMember(Name = ("headers"), IsRequired = (true))] public CefSharp.DevTools.Network.Headers Headers { get; @@ -16579,7 +16298,7 @@ public CefSharp.DevTools.Network.IPAddressSpace ResourceIPAddressSpace /// The IP address space of the resource. The address space can only be determined once the transport /// established the connection, so we can't send it in `requestWillBeSentExtraInfo`. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceIPAddressSpace"), IsRequired = (true))] + [DataMember(Name = ("resourceIPAddressSpace"), IsRequired = (true))] internal string resourceIPAddressSpace { get; @@ -16591,7 +16310,7 @@ internal string resourceIPAddressSpace /// event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code /// for cached requests, where the status in responseReceived is a 200 and this will be 304. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("statusCode"), IsRequired = (true))] + [DataMember(Name = ("statusCode"), IsRequired = (true))] public int StatusCode { get; @@ -16602,7 +16321,7 @@ public int StatusCode /// Raw response header text as it was received over the wire. The raw text may not always be /// available, such as in the case of HTTP/2 or QUIC. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("headersText"), IsRequired = (false))] + [DataMember(Name = ("headersText"), IsRequired = (false))] public string HeadersText { get; @@ -16613,7 +16332,7 @@ public string HeadersText /// The cookie partition key that will be used to store partitioned cookies set in this response. /// Only sent when partitioned cookies are enabled. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookiePartitionKey"), IsRequired = (false))] + [DataMember(Name = ("cookiePartitionKey"), IsRequired = (false))] public string CookiePartitionKey { get; @@ -16623,7 +16342,7 @@ public string CookiePartitionKey /// /// True if partitioned cookies are enabled, but the partition key is not serializeable to string. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cookiePartitionKeyOpaque"), IsRequired = (false))] + [DataMember(Name = ("cookiePartitionKeyOpaque"), IsRequired = (false))] public bool? CookiePartitionKeyOpaque { get; @@ -16642,57 +16361,57 @@ public enum TrustTokenOperationDoneStatus /// /// Ok /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Ok"))] + [EnumMember(Value = ("Ok"))] Ok, /// /// InvalidArgument /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidArgument"))] + [EnumMember(Value = ("InvalidArgument"))] InvalidArgument, /// /// FailedPrecondition /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FailedPrecondition"))] + [EnumMember(Value = ("FailedPrecondition"))] FailedPrecondition, /// /// ResourceExhausted /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ResourceExhausted"))] + [EnumMember(Value = ("ResourceExhausted"))] ResourceExhausted, /// /// AlreadyExists /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AlreadyExists"))] + [EnumMember(Value = ("AlreadyExists"))] AlreadyExists, /// /// Unavailable /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unavailable"))] + [EnumMember(Value = ("Unavailable"))] Unavailable, /// /// Unauthorized /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unauthorized"))] + [EnumMember(Value = ("Unauthorized"))] Unauthorized, /// /// BadResponse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BadResponse"))] + [EnumMember(Value = ("BadResponse"))] BadResponse, /// /// InternalError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InternalError"))] + [EnumMember(Value = ("InternalError"))] InternalError, /// /// UnknownError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnknownError"))] + [EnumMember(Value = ("UnknownError"))] UnknownError, /// /// FulfilledLocally /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FulfilledLocally"))] + [EnumMember(Value = ("FulfilledLocally"))] FulfilledLocally } @@ -16730,7 +16449,7 @@ public CefSharp.DevTools.Network.TrustTokenOperationDoneStatus Status /// of the operation already exists und thus, the operation was abort /// preemptively (e.g. a cache hit). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] internal string status { get; @@ -16756,7 +16475,7 @@ public CefSharp.DevTools.Network.TrustTokenOperationType Type /// /// Type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -16766,7 +16485,7 @@ internal string type /// /// RequestId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16776,7 +16495,7 @@ public string RequestId /// /// Top level origin. The context in which the operation was attempted. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("topLevelOrigin"), IsRequired = (false))] + [DataMember(Name = ("topLevelOrigin"), IsRequired = (false))] public string TopLevelOrigin { get; @@ -16786,7 +16505,7 @@ public string TopLevelOrigin /// /// Origin of the issuer in case of a "Issuance" or "Redemption" operation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuerOrigin"), IsRequired = (false))] + [DataMember(Name = ("issuerOrigin"), IsRequired = (false))] public string IssuerOrigin { get; @@ -16796,7 +16515,7 @@ public string IssuerOrigin /// /// The number of obtained Trust Tokens on a successful "Issuance" operation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuedTokenCount"), IsRequired = (false))] + [DataMember(Name = ("issuedTokenCount"), IsRequired = (false))] public int? IssuedTokenCount { get; @@ -16814,7 +16533,7 @@ public class SubresourceWebBundleMetadataReceivedEventArgs : CefSharp.DevTools.D /// /// Request identifier. Used to match this information to another event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16824,7 +16543,7 @@ public string RequestId /// /// A list of URLs of resources in the subresource Web Bundle. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("urls"), IsRequired = (true))] + [DataMember(Name = ("urls"), IsRequired = (true))] public string[] Urls { get; @@ -16841,7 +16560,7 @@ public class SubresourceWebBundleMetadataErrorEventArgs : CefSharp.DevTools.DevT /// /// Request identifier. Used to match this information to another event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -16851,7 +16570,7 @@ public string RequestId /// /// Error message /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorMessage"), IsRequired = (true))] + [DataMember(Name = ("errorMessage"), IsRequired = (true))] public string ErrorMessage { get; @@ -16869,7 +16588,7 @@ public class SubresourceWebBundleInnerResponseParsedEventArgs : CefSharp.DevTool /// /// Request identifier of the subresource request /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("innerRequestId"), IsRequired = (true))] + [DataMember(Name = ("innerRequestId"), IsRequired = (true))] public string InnerRequestId { get; @@ -16879,7 +16598,7 @@ public string InnerRequestId /// /// URL of the subresource resource. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("innerRequestURL"), IsRequired = (true))] + [DataMember(Name = ("innerRequestURL"), IsRequired = (true))] public string InnerRequestURL { get; @@ -16891,7 +16610,7 @@ public string InnerRequestURL /// This made be absent in case when the instrumentation was enabled only /// after webbundle was parsed. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("bundleRequestId"), IsRequired = (false))] + [DataMember(Name = ("bundleRequestId"), IsRequired = (false))] public string BundleRequestId { get; @@ -16908,7 +16627,7 @@ public class SubresourceWebBundleInnerResponseErrorEventArgs : CefSharp.DevTools /// /// Request identifier of the subresource request /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("innerRequestId"), IsRequired = (true))] + [DataMember(Name = ("innerRequestId"), IsRequired = (true))] public string InnerRequestId { get; @@ -16918,7 +16637,7 @@ public string InnerRequestId /// /// URL of the subresource resource. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("innerRequestURL"), IsRequired = (true))] + [DataMember(Name = ("innerRequestURL"), IsRequired = (true))] public string InnerRequestURL { get; @@ -16928,7 +16647,7 @@ public string InnerRequestURL /// /// Error message /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorMessage"), IsRequired = (true))] + [DataMember(Name = ("errorMessage"), IsRequired = (true))] public string ErrorMessage { get; @@ -16940,7 +16659,7 @@ public string ErrorMessage /// This made be absent in case when the instrumentation was enabled only /// after webbundle was parsed. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("bundleRequestId"), IsRequired = (false))] + [DataMember(Name = ("bundleRequestId"), IsRequired = (false))] public string BundleRequestId { get; @@ -16958,7 +16677,7 @@ public class ReportingApiReportAddedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Report /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("report"), IsRequired = (true))] + [DataMember(Name = ("report"), IsRequired = (true))] public CefSharp.DevTools.Network.ReportingApiReport Report { get; @@ -16975,7 +16694,7 @@ public class ReportingApiReportUpdatedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Report /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("report"), IsRequired = (true))] + [DataMember(Name = ("report"), IsRequired = (true))] public CefSharp.DevTools.Network.ReportingApiReport Report { get; @@ -16992,7 +16711,7 @@ public class ReportingApiEndpointsChangedForOriginEventArgs : CefSharp.DevTools. /// /// Origin of the document(s) which configured the endpoints. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -17002,7 +16721,7 @@ public string Origin /// /// Endpoints /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endpoints"), IsRequired = (true))] + [DataMember(Name = ("endpoints"), IsRequired = (true))] public System.Collections.Generic.IList Endpoints { get; @@ -17022,7 +16741,7 @@ public partial class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityB /// /// the color to outline the givent element in. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentOutlineColor"), IsRequired = (true))] + [DataMember(Name = ("parentOutlineColor"), IsRequired = (true))] public CefSharp.DevTools.DOM.RGBA ParentOutlineColor { get; @@ -17032,7 +16751,7 @@ public CefSharp.DevTools.DOM.RGBA ParentOutlineColor /// /// the color to outline the child elements in. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("childOutlineColor"), IsRequired = (true))] + [DataMember(Name = ("childOutlineColor"), IsRequired = (true))] public CefSharp.DevTools.DOM.RGBA ChildOutlineColor { get; @@ -17049,7 +16768,7 @@ public partial class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntit /// /// Whether the extension lines from grid cells to the rulers should be shown (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showGridExtensionLines"), IsRequired = (false))] + [DataMember(Name = ("showGridExtensionLines"), IsRequired = (false))] public bool? ShowGridExtensionLines { get; @@ -17059,7 +16778,7 @@ public bool? ShowGridExtensionLines /// /// Show Positive line number labels (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showPositiveLineNumbers"), IsRequired = (false))] + [DataMember(Name = ("showPositiveLineNumbers"), IsRequired = (false))] public bool? ShowPositiveLineNumbers { get; @@ -17069,7 +16788,7 @@ public bool? ShowPositiveLineNumbers /// /// Show Negative line number labels (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showNegativeLineNumbers"), IsRequired = (false))] + [DataMember(Name = ("showNegativeLineNumbers"), IsRequired = (false))] public bool? ShowNegativeLineNumbers { get; @@ -17079,7 +16798,7 @@ public bool? ShowNegativeLineNumbers /// /// Show area name labels (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showAreaNames"), IsRequired = (false))] + [DataMember(Name = ("showAreaNames"), IsRequired = (false))] public bool? ShowAreaNames { get; @@ -17089,7 +16808,7 @@ public bool? ShowAreaNames /// /// Show line name labels (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showLineNames"), IsRequired = (false))] + [DataMember(Name = ("showLineNames"), IsRequired = (false))] public bool? ShowLineNames { get; @@ -17099,7 +16818,7 @@ public bool? ShowLineNames /// /// Show track size labels (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showTrackSizes"), IsRequired = (false))] + [DataMember(Name = ("showTrackSizes"), IsRequired = (false))] public bool? ShowTrackSizes { get; @@ -17109,7 +16828,7 @@ public bool? ShowTrackSizes /// /// The grid container border highlight color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("gridBorderColor"), IsRequired = (false))] + [DataMember(Name = ("gridBorderColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA GridBorderColor { get; @@ -17119,7 +16838,7 @@ public CefSharp.DevTools.DOM.RGBA GridBorderColor /// /// The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cellBorderColor"), IsRequired = (false))] + [DataMember(Name = ("cellBorderColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA CellBorderColor { get; @@ -17129,7 +16848,7 @@ public CefSharp.DevTools.DOM.RGBA CellBorderColor /// /// The row line color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rowLineColor"), IsRequired = (false))] + [DataMember(Name = ("rowLineColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA RowLineColor { get; @@ -17139,7 +16858,7 @@ public CefSharp.DevTools.DOM.RGBA RowLineColor /// /// The column line color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnLineColor"), IsRequired = (false))] + [DataMember(Name = ("columnLineColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ColumnLineColor { get; @@ -17149,7 +16868,7 @@ public CefSharp.DevTools.DOM.RGBA ColumnLineColor /// /// Whether the grid border is dashed (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("gridBorderDash"), IsRequired = (false))] + [DataMember(Name = ("gridBorderDash"), IsRequired = (false))] public bool? GridBorderDash { get; @@ -17159,7 +16878,7 @@ public bool? GridBorderDash /// /// Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cellBorderDash"), IsRequired = (false))] + [DataMember(Name = ("cellBorderDash"), IsRequired = (false))] public bool? CellBorderDash { get; @@ -17169,7 +16888,7 @@ public bool? CellBorderDash /// /// Whether row lines are dashed (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rowLineDash"), IsRequired = (false))] + [DataMember(Name = ("rowLineDash"), IsRequired = (false))] public bool? RowLineDash { get; @@ -17179,7 +16898,7 @@ public bool? RowLineDash /// /// Whether column lines are dashed (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnLineDash"), IsRequired = (false))] + [DataMember(Name = ("columnLineDash"), IsRequired = (false))] public bool? ColumnLineDash { get; @@ -17189,7 +16908,7 @@ public bool? ColumnLineDash /// /// The row gap highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rowGapColor"), IsRequired = (false))] + [DataMember(Name = ("rowGapColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA RowGapColor { get; @@ -17199,7 +16918,7 @@ public CefSharp.DevTools.DOM.RGBA RowGapColor /// /// The row gap hatching fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rowHatchColor"), IsRequired = (false))] + [DataMember(Name = ("rowHatchColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA RowHatchColor { get; @@ -17209,7 +16928,7 @@ public CefSharp.DevTools.DOM.RGBA RowHatchColor /// /// The column gap highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnGapColor"), IsRequired = (false))] + [DataMember(Name = ("columnGapColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ColumnGapColor { get; @@ -17219,7 +16938,7 @@ public CefSharp.DevTools.DOM.RGBA ColumnGapColor /// /// The column gap hatching fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnHatchColor"), IsRequired = (false))] + [DataMember(Name = ("columnHatchColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ColumnHatchColor { get; @@ -17229,7 +16948,7 @@ public CefSharp.DevTools.DOM.RGBA ColumnHatchColor /// /// The named grid areas border color (Default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("areaBorderColor"), IsRequired = (false))] + [DataMember(Name = ("areaBorderColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA AreaBorderColor { get; @@ -17239,7 +16958,7 @@ public CefSharp.DevTools.DOM.RGBA AreaBorderColor /// /// The grid container background color (Default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("gridBackgroundColor"), IsRequired = (false))] + [DataMember(Name = ("gridBackgroundColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA GridBackgroundColor { get; @@ -17256,7 +16975,7 @@ public partial class FlexContainerHighlightConfig : CefSharp.DevTools.DevToolsDo /// /// The style of the container border /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("containerBorder"), IsRequired = (false))] + [DataMember(Name = ("containerBorder"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle ContainerBorder { get; @@ -17266,7 +16985,7 @@ public CefSharp.DevTools.Overlay.LineStyle ContainerBorder /// /// The style of the separator between lines /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineSeparator"), IsRequired = (false))] + [DataMember(Name = ("lineSeparator"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle LineSeparator { get; @@ -17276,7 +16995,7 @@ public CefSharp.DevTools.Overlay.LineStyle LineSeparator /// /// The style of the separator between items /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("itemSeparator"), IsRequired = (false))] + [DataMember(Name = ("itemSeparator"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle ItemSeparator { get; @@ -17286,7 +17005,7 @@ public CefSharp.DevTools.Overlay.LineStyle ItemSeparator /// /// Style of content-distribution space on the main axis (justify-content). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mainDistributedSpace"), IsRequired = (false))] + [DataMember(Name = ("mainDistributedSpace"), IsRequired = (false))] public CefSharp.DevTools.Overlay.BoxStyle MainDistributedSpace { get; @@ -17296,7 +17015,7 @@ public CefSharp.DevTools.Overlay.BoxStyle MainDistributedSpace /// /// Style of content-distribution space on the cross axis (align-content). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("crossDistributedSpace"), IsRequired = (false))] + [DataMember(Name = ("crossDistributedSpace"), IsRequired = (false))] public CefSharp.DevTools.Overlay.BoxStyle CrossDistributedSpace { get; @@ -17306,7 +17025,7 @@ public CefSharp.DevTools.Overlay.BoxStyle CrossDistributedSpace /// /// Style of empty space caused by row gaps (gap/row-gap). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rowGapSpace"), IsRequired = (false))] + [DataMember(Name = ("rowGapSpace"), IsRequired = (false))] public CefSharp.DevTools.Overlay.BoxStyle RowGapSpace { get; @@ -17316,7 +17035,7 @@ public CefSharp.DevTools.Overlay.BoxStyle RowGapSpace /// /// Style of empty space caused by columns gaps (gap/column-gap). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnGapSpace"), IsRequired = (false))] + [DataMember(Name = ("columnGapSpace"), IsRequired = (false))] public CefSharp.DevTools.Overlay.BoxStyle ColumnGapSpace { get; @@ -17326,7 +17045,7 @@ public CefSharp.DevTools.Overlay.BoxStyle ColumnGapSpace /// /// Style of the self-alignment line (align-items). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("crossAlignment"), IsRequired = (false))] + [DataMember(Name = ("crossAlignment"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle CrossAlignment { get; @@ -17343,7 +17062,7 @@ public partial class FlexItemHighlightConfig : CefSharp.DevTools.DevToolsDomainE /// /// Style of the box representing the item's base size /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("baseSizeBox"), IsRequired = (false))] + [DataMember(Name = ("baseSizeBox"), IsRequired = (false))] public CefSharp.DevTools.Overlay.BoxStyle BaseSizeBox { get; @@ -17353,7 +17072,7 @@ public CefSharp.DevTools.Overlay.BoxStyle BaseSizeBox /// /// Style of the border around the box representing the item's base size /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("baseSizeBorder"), IsRequired = (false))] + [DataMember(Name = ("baseSizeBorder"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle BaseSizeBorder { get; @@ -17363,7 +17082,7 @@ public CefSharp.DevTools.Overlay.LineStyle BaseSizeBorder /// /// Style of the arrow representing if the item grew or shrank /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("flexibilityArrow"), IsRequired = (false))] + [DataMember(Name = ("flexibilityArrow"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle FlexibilityArrow { get; @@ -17379,12 +17098,12 @@ public enum LineStylePattern /// /// dashed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dashed"))] + [EnumMember(Value = ("dashed"))] Dashed, /// /// dotted /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dotted"))] + [EnumMember(Value = ("dotted"))] Dotted } @@ -17397,7 +17116,7 @@ public partial class LineStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The color of the line (default: transparent) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("color"), IsRequired = (false))] + [DataMember(Name = ("color"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA Color { get; @@ -17423,7 +17142,7 @@ public CefSharp.DevTools.Overlay.LineStylePattern? Pattern /// /// The line pattern (default: solid) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pattern"), IsRequired = (false))] + [DataMember(Name = ("pattern"), IsRequired = (false))] internal string pattern { get; @@ -17440,7 +17159,7 @@ public partial class BoxStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The background color for the box (default: transparent) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fillColor"), IsRequired = (false))] + [DataMember(Name = ("fillColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA FillColor { get; @@ -17450,7 +17169,7 @@ public CefSharp.DevTools.DOM.RGBA FillColor /// /// The hatching color for the box (default: transparent) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hatchColor"), IsRequired = (false))] + [DataMember(Name = ("hatchColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA HatchColor { get; @@ -17466,17 +17185,17 @@ public enum ContrastAlgorithm /// /// aa /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("aa"))] + [EnumMember(Value = ("aa"))] Aa, /// /// aaa /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("aaa"))] + [EnumMember(Value = ("aaa"))] Aaa, /// /// apca /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("apca"))] + [EnumMember(Value = ("apca"))] Apca } @@ -17489,7 +17208,7 @@ public partial class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Whether the node info tooltip should be shown (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showInfo"), IsRequired = (false))] + [DataMember(Name = ("showInfo"), IsRequired = (false))] public bool? ShowInfo { get; @@ -17499,7 +17218,7 @@ public bool? ShowInfo /// /// Whether the node styles in the tooltip (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showStyles"), IsRequired = (false))] + [DataMember(Name = ("showStyles"), IsRequired = (false))] public bool? ShowStyles { get; @@ -17509,7 +17228,7 @@ public bool? ShowStyles /// /// Whether the rulers should be shown (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showRulers"), IsRequired = (false))] + [DataMember(Name = ("showRulers"), IsRequired = (false))] public bool? ShowRulers { get; @@ -17519,7 +17238,7 @@ public bool? ShowRulers /// /// Whether the a11y info should be shown (default: true). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showAccessibilityInfo"), IsRequired = (false))] + [DataMember(Name = ("showAccessibilityInfo"), IsRequired = (false))] public bool? ShowAccessibilityInfo { get; @@ -17529,7 +17248,7 @@ public bool? ShowAccessibilityInfo /// /// Whether the extension lines from node to the rulers should be shown (default: false). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("showExtensionLines"), IsRequired = (false))] + [DataMember(Name = ("showExtensionLines"), IsRequired = (false))] public bool? ShowExtensionLines { get; @@ -17539,7 +17258,7 @@ public bool? ShowExtensionLines /// /// The content box highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentColor"), IsRequired = (false))] + [DataMember(Name = ("contentColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ContentColor { get; @@ -17549,7 +17268,7 @@ public CefSharp.DevTools.DOM.RGBA ContentColor /// /// The padding highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("paddingColor"), IsRequired = (false))] + [DataMember(Name = ("paddingColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA PaddingColor { get; @@ -17559,7 +17278,7 @@ public CefSharp.DevTools.DOM.RGBA PaddingColor /// /// The border highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("borderColor"), IsRequired = (false))] + [DataMember(Name = ("borderColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA BorderColor { get; @@ -17569,7 +17288,7 @@ public CefSharp.DevTools.DOM.RGBA BorderColor /// /// The margin highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("marginColor"), IsRequired = (false))] + [DataMember(Name = ("marginColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA MarginColor { get; @@ -17579,7 +17298,7 @@ public CefSharp.DevTools.DOM.RGBA MarginColor /// /// The event target element highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventTargetColor"), IsRequired = (false))] + [DataMember(Name = ("eventTargetColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA EventTargetColor { get; @@ -17589,7 +17308,7 @@ public CefSharp.DevTools.DOM.RGBA EventTargetColor /// /// The shape outside fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shapeColor"), IsRequired = (false))] + [DataMember(Name = ("shapeColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ShapeColor { get; @@ -17599,7 +17318,7 @@ public CefSharp.DevTools.DOM.RGBA ShapeColor /// /// The shape margin fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("shapeMarginColor"), IsRequired = (false))] + [DataMember(Name = ("shapeMarginColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ShapeMarginColor { get; @@ -17609,7 +17328,7 @@ public CefSharp.DevTools.DOM.RGBA ShapeMarginColor /// /// The grid layout color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cssGridColor"), IsRequired = (false))] + [DataMember(Name = ("cssGridColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA CssGridColor { get; @@ -17635,7 +17354,7 @@ public CefSharp.DevTools.Overlay.ColorFormat? ColorFormat /// /// The color format used to format color styles (default: hex). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("colorFormat"), IsRequired = (false))] + [DataMember(Name = ("colorFormat"), IsRequired = (false))] internal string colorFormat { get; @@ -17645,7 +17364,7 @@ internal string colorFormat /// /// The grid layout highlight configuration (default: all transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("gridHighlightConfig"), IsRequired = (false))] + [DataMember(Name = ("gridHighlightConfig"), IsRequired = (false))] public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig { get; @@ -17655,7 +17374,7 @@ public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig /// /// The flex container highlight configuration (default: all transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("flexContainerHighlightConfig"), IsRequired = (false))] + [DataMember(Name = ("flexContainerHighlightConfig"), IsRequired = (false))] public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighlightConfig { get; @@ -17665,7 +17384,7 @@ public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighl /// /// The flex item highlight configuration (default: all transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("flexItemHighlightConfig"), IsRequired = (false))] + [DataMember(Name = ("flexItemHighlightConfig"), IsRequired = (false))] public CefSharp.DevTools.Overlay.FlexItemHighlightConfig FlexItemHighlightConfig { get; @@ -17691,7 +17410,7 @@ public CefSharp.DevTools.Overlay.ContrastAlgorithm? ContrastAlgorithm /// /// The contrast algorithm to use for the contrast ratio (default: aa). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contrastAlgorithm"), IsRequired = (false))] + [DataMember(Name = ("contrastAlgorithm"), IsRequired = (false))] internal string contrastAlgorithm { get; @@ -17701,7 +17420,7 @@ internal string contrastAlgorithm /// /// The container query container highlight configuration (default: all transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("containerQueryContainerHighlightConfig"), IsRequired = (false))] + [DataMember(Name = ("containerQueryContainerHighlightConfig"), IsRequired = (false))] public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig ContainerQueryContainerHighlightConfig { get; @@ -17717,22 +17436,22 @@ public enum ColorFormat /// /// rgb /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("rgb"))] + [EnumMember(Value = ("rgb"))] Rgb, /// /// hsl /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hsl"))] + [EnumMember(Value = ("hsl"))] Hsl, /// /// hwb /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hwb"))] + [EnumMember(Value = ("hwb"))] Hwb, /// /// hex /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hex"))] + [EnumMember(Value = ("hex"))] Hex } @@ -17745,7 +17464,7 @@ public partial class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainE /// /// A descriptor for the highlight appearance. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("gridHighlightConfig"), IsRequired = (true))] + [DataMember(Name = ("gridHighlightConfig"), IsRequired = (true))] public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig { get; @@ -17755,7 +17474,7 @@ public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig /// /// Identifier of the node to highlight. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -17772,7 +17491,7 @@ public partial class FlexNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainE /// /// A descriptor for the highlight appearance of flex containers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("flexContainerHighlightConfig"), IsRequired = (true))] + [DataMember(Name = ("flexContainerHighlightConfig"), IsRequired = (true))] public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighlightConfig { get; @@ -17782,7 +17501,7 @@ public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighl /// /// Identifier of the node to highlight. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -17799,7 +17518,7 @@ public partial class ScrollSnapContainerHighlightConfig : CefSharp.DevTools.DevT /// /// The style of the snapport border (default: transparent) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("snapportBorder"), IsRequired = (false))] + [DataMember(Name = ("snapportBorder"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle SnapportBorder { get; @@ -17809,7 +17528,7 @@ public CefSharp.DevTools.Overlay.LineStyle SnapportBorder /// /// The style of the snap area border (default: transparent) /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("snapAreaBorder"), IsRequired = (false))] + [DataMember(Name = ("snapAreaBorder"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle SnapAreaBorder { get; @@ -17819,7 +17538,7 @@ public CefSharp.DevTools.Overlay.LineStyle SnapAreaBorder /// /// The margin highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollMarginColor"), IsRequired = (false))] + [DataMember(Name = ("scrollMarginColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ScrollMarginColor { get; @@ -17829,7 +17548,7 @@ public CefSharp.DevTools.DOM.RGBA ScrollMarginColor /// /// The padding highlight fill color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollPaddingColor"), IsRequired = (false))] + [DataMember(Name = ("scrollPaddingColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ScrollPaddingColor { get; @@ -17846,7 +17565,7 @@ public partial class ScrollSnapHighlightConfig : CefSharp.DevTools.DevToolsDomai /// /// A descriptor for the highlight appearance of scroll snap containers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollSnapContainerHighlightConfig"), IsRequired = (true))] + [DataMember(Name = ("scrollSnapContainerHighlightConfig"), IsRequired = (true))] public CefSharp.DevTools.Overlay.ScrollSnapContainerHighlightConfig ScrollSnapContainerHighlightConfig { get; @@ -17856,7 +17575,7 @@ public CefSharp.DevTools.Overlay.ScrollSnapContainerHighlightConfig ScrollSnapCo /// /// Identifier of the node to highlight. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -17873,7 +17592,7 @@ public partial class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase /// /// A rectangle represent hinge /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rect"), IsRequired = (true))] + [DataMember(Name = ("rect"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect Rect { get; @@ -17883,7 +17602,7 @@ public CefSharp.DevTools.DOM.Rect Rect /// /// The content box highlight fill color (default: a dark color). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentColor"), IsRequired = (false))] + [DataMember(Name = ("contentColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ContentColor { get; @@ -17893,7 +17612,7 @@ public CefSharp.DevTools.DOM.RGBA ContentColor /// /// The content box highlight outline color (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("outlineColor"), IsRequired = (false))] + [DataMember(Name = ("outlineColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA OutlineColor { get; @@ -17910,7 +17629,7 @@ public partial class ContainerQueryHighlightConfig : CefSharp.DevTools.DevToolsD /// /// A descriptor for the highlight appearance of container query containers. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("containerQueryContainerHighlightConfig"), IsRequired = (true))] + [DataMember(Name = ("containerQueryContainerHighlightConfig"), IsRequired = (true))] public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig ContainerQueryContainerHighlightConfig { get; @@ -17920,7 +17639,7 @@ public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig Containe /// /// Identifier of the container node to highlight. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -17937,7 +17656,7 @@ public partial class ContainerQueryContainerHighlightConfig : CefSharp.DevTools. /// /// The style of the container border. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("containerBorder"), IsRequired = (false))] + [DataMember(Name = ("containerBorder"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle ContainerBorder { get; @@ -17947,7 +17666,7 @@ public CefSharp.DevTools.Overlay.LineStyle ContainerBorder /// /// The style of the descendants' borders. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("descendantBorder"), IsRequired = (false))] + [DataMember(Name = ("descendantBorder"), IsRequired = (false))] public CefSharp.DevTools.Overlay.LineStyle DescendantBorder { get; @@ -17964,7 +17683,7 @@ public partial class IsolatedElementHighlightConfig : CefSharp.DevTools.DevTools /// /// A descriptor for the highlight appearance of an element in isolation mode. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isolationModeHighlightConfig"), IsRequired = (true))] + [DataMember(Name = ("isolationModeHighlightConfig"), IsRequired = (true))] public CefSharp.DevTools.Overlay.IsolationModeHighlightConfig IsolationModeHighlightConfig { get; @@ -17974,7 +17693,7 @@ public CefSharp.DevTools.Overlay.IsolationModeHighlightConfig IsolationModeHighl /// /// Identifier of the isolated element to highlight. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -17991,7 +17710,7 @@ public partial class IsolationModeHighlightConfig : CefSharp.DevTools.DevToolsDo /// /// The fill color of the resizers (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resizerColor"), IsRequired = (false))] + [DataMember(Name = ("resizerColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ResizerColor { get; @@ -18001,7 +17720,7 @@ public CefSharp.DevTools.DOM.RGBA ResizerColor /// /// The fill color for resizer handles (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resizerHandleColor"), IsRequired = (false))] + [DataMember(Name = ("resizerHandleColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA ResizerHandleColor { get; @@ -18011,7 +17730,7 @@ public CefSharp.DevTools.DOM.RGBA ResizerHandleColor /// /// The fill color for the mask covering non-isolated elements (default: transparent). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maskColor"), IsRequired = (false))] + [DataMember(Name = ("maskColor"), IsRequired = (false))] public CefSharp.DevTools.DOM.RGBA MaskColor { get; @@ -18027,27 +17746,27 @@ public enum InspectMode /// /// searchForNode /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("searchForNode"))] + [EnumMember(Value = ("searchForNode"))] SearchForNode, /// /// searchForUAShadowDOM /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("searchForUAShadowDOM"))] + [EnumMember(Value = ("searchForUAShadowDOM"))] SearchForUAShadowDOM, /// /// captureAreaScreenshot /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("captureAreaScreenshot"))] + [EnumMember(Value = ("captureAreaScreenshot"))] CaptureAreaScreenshot, /// /// showDistances /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("showDistances"))] + [EnumMember(Value = ("showDistances"))] ShowDistances, /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None } @@ -18061,7 +17780,7 @@ public class InspectNodeRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Id of the node to inspect. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (true))] + [DataMember(Name = ("backendNodeId"), IsRequired = (true))] public int BackendNodeId { get; @@ -18078,7 +17797,7 @@ public class NodeHighlightRequestedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// NodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -18095,7 +17814,7 @@ public class ScreenshotRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Viewport to capture, in device independent pixels (dip). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("viewport"), IsRequired = (true))] + [DataMember(Name = ("viewport"), IsRequired = (true))] public CefSharp.DevTools.Page.Viewport Viewport { get; @@ -18114,17 +17833,17 @@ public enum AdFrameType /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None, /// /// child /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("child"))] + [EnumMember(Value = ("child"))] Child, /// /// root /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("root"))] + [EnumMember(Value = ("root"))] Root } @@ -18136,17 +17855,17 @@ public enum AdFrameExplanation /// /// ParentIsAd /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ParentIsAd"))] + [EnumMember(Value = ("ParentIsAd"))] ParentIsAd, /// /// CreatedByAdScript /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CreatedByAdScript"))] + [EnumMember(Value = ("CreatedByAdScript"))] CreatedByAdScript, /// /// MatchedBlockingRule /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MatchedBlockingRule"))] + [EnumMember(Value = ("MatchedBlockingRule"))] MatchedBlockingRule } @@ -18175,7 +17894,7 @@ public CefSharp.DevTools.Page.AdFrameType AdFrameType /// /// AdFrameType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("adFrameType"), IsRequired = (true))] + [DataMember(Name = ("adFrameType"), IsRequired = (true))] internal string adFrameType { get; @@ -18201,7 +17920,7 @@ public CefSharp.DevTools.Page.AdFrameExplanation[] Explanations /// /// Explanations /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("explanations"), IsRequired = (false))] + [DataMember(Name = ("explanations"), IsRequired = (false))] internal string explanations { get; @@ -18220,7 +17939,7 @@ public partial class AdScriptId : CefSharp.DevTools.DevToolsDomainEntityBase /// Script Id of the bottom-most script which caused the frame to be labelled /// as an ad. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -18230,7 +17949,7 @@ public string ScriptId /// /// Id of adScriptId's debugger. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("debuggerId"), IsRequired = (true))] + [DataMember(Name = ("debuggerId"), IsRequired = (true))] public string DebuggerId { get; @@ -18246,22 +17965,22 @@ public enum SecureContextType /// /// Secure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Secure"))] + [EnumMember(Value = ("Secure"))] Secure, /// /// SecureLocalhost /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SecureLocalhost"))] + [EnumMember(Value = ("SecureLocalhost"))] SecureLocalhost, /// /// InsecureScheme /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecureScheme"))] + [EnumMember(Value = ("InsecureScheme"))] InsecureScheme, /// /// InsecureAncestor /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InsecureAncestor"))] + [EnumMember(Value = ("InsecureAncestor"))] InsecureAncestor } @@ -18273,17 +17992,17 @@ public enum CrossOriginIsolatedContextType /// /// Isolated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Isolated"))] + [EnumMember(Value = ("Isolated"))] Isolated, /// /// NotIsolated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotIsolated"))] + [EnumMember(Value = ("NotIsolated"))] NotIsolated, /// /// NotIsolatedFeatureDisabled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotIsolatedFeatureDisabled"))] + [EnumMember(Value = ("NotIsolatedFeatureDisabled"))] NotIsolatedFeatureDisabled } @@ -18295,22 +18014,22 @@ public enum GatedAPIFeatures /// /// SharedArrayBuffers /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SharedArrayBuffers"))] + [EnumMember(Value = ("SharedArrayBuffers"))] SharedArrayBuffers, /// /// SharedArrayBuffersTransferAllowed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SharedArrayBuffersTransferAllowed"))] + [EnumMember(Value = ("SharedArrayBuffersTransferAllowed"))] SharedArrayBuffersTransferAllowed, /// /// PerformanceMeasureMemory /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PerformanceMeasureMemory"))] + [EnumMember(Value = ("PerformanceMeasureMemory"))] PerformanceMeasureMemory, /// /// PerformanceProfile /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PerformanceProfile"))] + [EnumMember(Value = ("PerformanceProfile"))] PerformanceProfile } @@ -18323,392 +18042,392 @@ public enum PermissionsPolicyFeature /// /// accelerometer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("accelerometer"))] + [EnumMember(Value = ("accelerometer"))] Accelerometer, /// /// ambient-light-sensor /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ambient-light-sensor"))] + [EnumMember(Value = ("ambient-light-sensor"))] AmbientLightSensor, /// /// attribution-reporting /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("attribution-reporting"))] + [EnumMember(Value = ("attribution-reporting"))] AttributionReporting, /// /// autoplay /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoplay"))] + [EnumMember(Value = ("autoplay"))] Autoplay, /// /// bluetooth /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bluetooth"))] + [EnumMember(Value = ("bluetooth"))] Bluetooth, /// /// browsing-topics /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("browsing-topics"))] + [EnumMember(Value = ("browsing-topics"))] BrowsingTopics, /// /// camera /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("camera"))] + [EnumMember(Value = ("camera"))] Camera, /// /// ch-dpr /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-dpr"))] + [EnumMember(Value = ("ch-dpr"))] ChDpr, /// /// ch-device-memory /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-device-memory"))] + [EnumMember(Value = ("ch-device-memory"))] ChDeviceMemory, /// /// ch-downlink /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-downlink"))] + [EnumMember(Value = ("ch-downlink"))] ChDownlink, /// /// ch-ect /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ect"))] + [EnumMember(Value = ("ch-ect"))] ChEct, /// /// ch-prefers-color-scheme /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-prefers-color-scheme"))] + [EnumMember(Value = ("ch-prefers-color-scheme"))] ChPrefersColorScheme, /// /// ch-prefers-reduced-motion /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-prefers-reduced-motion"))] + [EnumMember(Value = ("ch-prefers-reduced-motion"))] ChPrefersReducedMotion, /// /// ch-rtt /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-rtt"))] + [EnumMember(Value = ("ch-rtt"))] ChRtt, /// /// ch-save-data /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-save-data"))] + [EnumMember(Value = ("ch-save-data"))] ChSaveData, /// /// ch-ua /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua"))] + [EnumMember(Value = ("ch-ua"))] ChUa, /// /// ch-ua-arch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-arch"))] + [EnumMember(Value = ("ch-ua-arch"))] ChUaArch, /// /// ch-ua-bitness /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-bitness"))] + [EnumMember(Value = ("ch-ua-bitness"))] ChUaBitness, /// /// ch-ua-platform /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-platform"))] + [EnumMember(Value = ("ch-ua-platform"))] ChUaPlatform, /// /// ch-ua-model /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-model"))] + [EnumMember(Value = ("ch-ua-model"))] ChUaModel, /// /// ch-ua-mobile /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-mobile"))] + [EnumMember(Value = ("ch-ua-mobile"))] ChUaMobile, /// /// ch-ua-full /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-full"))] + [EnumMember(Value = ("ch-ua-full"))] ChUaFull, /// /// ch-ua-full-version /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-full-version"))] + [EnumMember(Value = ("ch-ua-full-version"))] ChUaFullVersion, /// /// ch-ua-full-version-list /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-full-version-list"))] + [EnumMember(Value = ("ch-ua-full-version-list"))] ChUaFullVersionList, /// /// ch-ua-platform-version /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-platform-version"))] + [EnumMember(Value = ("ch-ua-platform-version"))] ChUaPlatformVersion, /// /// ch-ua-reduced /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-reduced"))] + [EnumMember(Value = ("ch-ua-reduced"))] ChUaReduced, /// /// ch-ua-wow64 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-ua-wow64"))] + [EnumMember(Value = ("ch-ua-wow64"))] ChUaWow64, /// /// ch-viewport-height /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-viewport-height"))] + [EnumMember(Value = ("ch-viewport-height"))] ChViewportHeight, /// /// ch-viewport-width /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-viewport-width"))] + [EnumMember(Value = ("ch-viewport-width"))] ChViewportWidth, /// /// ch-width /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ch-width"))] + [EnumMember(Value = ("ch-width"))] ChWidth, /// /// clipboard-read /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clipboard-read"))] + [EnumMember(Value = ("clipboard-read"))] ClipboardRead, /// /// clipboard-write /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clipboard-write"))] + [EnumMember(Value = ("clipboard-write"))] ClipboardWrite, /// /// compute-pressure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("compute-pressure"))] + [EnumMember(Value = ("compute-pressure"))] ComputePressure, /// /// cross-origin-isolated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cross-origin-isolated"))] + [EnumMember(Value = ("cross-origin-isolated"))] CrossOriginIsolated, /// /// direct-sockets /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("direct-sockets"))] + [EnumMember(Value = ("direct-sockets"))] DirectSockets, /// /// display-capture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("display-capture"))] + [EnumMember(Value = ("display-capture"))] DisplayCapture, /// /// document-domain /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("document-domain"))] + [EnumMember(Value = ("document-domain"))] DocumentDomain, /// /// encrypted-media /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("encrypted-media"))] + [EnumMember(Value = ("encrypted-media"))] EncryptedMedia, /// /// execution-while-out-of-viewport /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("execution-while-out-of-viewport"))] + [EnumMember(Value = ("execution-while-out-of-viewport"))] ExecutionWhileOutOfViewport, /// /// execution-while-not-rendered /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("execution-while-not-rendered"))] + [EnumMember(Value = ("execution-while-not-rendered"))] ExecutionWhileNotRendered, /// /// focus-without-user-activation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("focus-without-user-activation"))] + [EnumMember(Value = ("focus-without-user-activation"))] FocusWithoutUserActivation, /// /// fullscreen /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("fullscreen"))] + [EnumMember(Value = ("fullscreen"))] Fullscreen, /// /// frobulate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("frobulate"))] + [EnumMember(Value = ("frobulate"))] Frobulate, /// /// gamepad /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("gamepad"))] + [EnumMember(Value = ("gamepad"))] Gamepad, /// /// geolocation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("geolocation"))] + [EnumMember(Value = ("geolocation"))] Geolocation, /// /// gyroscope /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("gyroscope"))] + [EnumMember(Value = ("gyroscope"))] Gyroscope, /// /// hid /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("hid"))] + [EnumMember(Value = ("hid"))] Hid, /// /// identity-credentials-get /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("identity-credentials-get"))] + [EnumMember(Value = ("identity-credentials-get"))] IdentityCredentialsGet, /// /// idle-detection /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("idle-detection"))] + [EnumMember(Value = ("idle-detection"))] IdleDetection, /// /// interest-cohort /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("interest-cohort"))] + [EnumMember(Value = ("interest-cohort"))] InterestCohort, /// /// join-ad-interest-group /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("join-ad-interest-group"))] + [EnumMember(Value = ("join-ad-interest-group"))] JoinAdInterestGroup, /// /// keyboard-map /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("keyboard-map"))] + [EnumMember(Value = ("keyboard-map"))] KeyboardMap, /// /// local-fonts /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("local-fonts"))] + [EnumMember(Value = ("local-fonts"))] LocalFonts, /// /// magnetometer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("magnetometer"))] + [EnumMember(Value = ("magnetometer"))] Magnetometer, /// /// microphone /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("microphone"))] + [EnumMember(Value = ("microphone"))] Microphone, /// /// midi /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("midi"))] + [EnumMember(Value = ("midi"))] Midi, /// /// otp-credentials /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("otp-credentials"))] + [EnumMember(Value = ("otp-credentials"))] OtpCredentials, /// /// payment /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("payment"))] + [EnumMember(Value = ("payment"))] Payment, /// /// picture-in-picture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("picture-in-picture"))] + [EnumMember(Value = ("picture-in-picture"))] PictureInPicture, /// /// private-aggregation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("private-aggregation"))] + [EnumMember(Value = ("private-aggregation"))] PrivateAggregation, /// /// publickey-credentials-get /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("publickey-credentials-get"))] + [EnumMember(Value = ("publickey-credentials-get"))] PublickeyCredentialsGet, /// /// run-ad-auction /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("run-ad-auction"))] + [EnumMember(Value = ("run-ad-auction"))] RunAdAuction, /// /// screen-wake-lock /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("screen-wake-lock"))] + [EnumMember(Value = ("screen-wake-lock"))] ScreenWakeLock, /// /// serial /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("serial"))] + [EnumMember(Value = ("serial"))] Serial, /// /// shared-autofill /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-autofill"))] + [EnumMember(Value = ("shared-autofill"))] SharedAutofill, /// /// shared-storage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage"))] + [EnumMember(Value = ("shared-storage"))] SharedStorage, /// /// shared-storage-select-url /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared-storage-select-url"))] + [EnumMember(Value = ("shared-storage-select-url"))] SharedStorageSelectUrl, /// /// smart-card /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("smart-card"))] + [EnumMember(Value = ("smart-card"))] SmartCard, /// /// storage-access /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("storage-access"))] + [EnumMember(Value = ("storage-access"))] StorageAccess, /// /// sync-xhr /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("sync-xhr"))] + [EnumMember(Value = ("sync-xhr"))] SyncXhr, /// /// trust-token-redemption /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("trust-token-redemption"))] + [EnumMember(Value = ("trust-token-redemption"))] TrustTokenRedemption, /// /// unload /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unload"))] + [EnumMember(Value = ("unload"))] Unload, /// /// usb /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("usb"))] + [EnumMember(Value = ("usb"))] Usb, /// /// vertical-scroll /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("vertical-scroll"))] + [EnumMember(Value = ("vertical-scroll"))] VerticalScroll, /// /// web-share /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("web-share"))] + [EnumMember(Value = ("web-share"))] WebShare, /// /// window-management /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("window-management"))] + [EnumMember(Value = ("window-management"))] WindowManagement, /// /// window-placement /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("window-placement"))] + [EnumMember(Value = ("window-placement"))] WindowPlacement, /// /// xr-spatial-tracking /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("xr-spatial-tracking"))] + [EnumMember(Value = ("xr-spatial-tracking"))] XrSpatialTracking } @@ -18720,22 +18439,22 @@ public enum PermissionsPolicyBlockReason /// /// Header /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Header"))] + [EnumMember(Value = ("Header"))] Header, /// /// IframeAttribute /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IframeAttribute"))] + [EnumMember(Value = ("IframeAttribute"))] IframeAttribute, /// /// InFencedFrameTree /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InFencedFrameTree"))] + [EnumMember(Value = ("InFencedFrameTree"))] InFencedFrameTree, /// /// InIsolatedApp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InIsolatedApp"))] + [EnumMember(Value = ("InIsolatedApp"))] InIsolatedApp } @@ -18748,7 +18467,7 @@ public partial class PermissionsPolicyBlockLocator : CefSharp.DevTools.DevToolsD /// /// FrameId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -18774,7 +18493,7 @@ public CefSharp.DevTools.Page.PermissionsPolicyBlockReason BlockReason /// /// BlockReason /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("blockReason"), IsRequired = (true))] + [DataMember(Name = ("blockReason"), IsRequired = (true))] internal string blockReason { get; @@ -18807,7 +18526,7 @@ public CefSharp.DevTools.Page.PermissionsPolicyFeature Feature /// /// Feature /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("feature"), IsRequired = (true))] + [DataMember(Name = ("feature"), IsRequired = (true))] internal string feature { get; @@ -18817,7 +18536,7 @@ internal string feature /// /// Allowed /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("allowed"), IsRequired = (true))] + [DataMember(Name = ("allowed"), IsRequired = (true))] public bool Allowed { get; @@ -18827,7 +18546,7 @@ public bool Allowed /// /// Locator /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("locator"), IsRequired = (false))] + [DataMember(Name = ("locator"), IsRequired = (false))] public CefSharp.DevTools.Page.PermissionsPolicyBlockLocator Locator { get; @@ -18844,62 +18563,62 @@ public enum OriginTrialTokenStatus /// /// Success /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Success"))] + [EnumMember(Value = ("Success"))] Success, /// /// NotSupported /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotSupported"))] + [EnumMember(Value = ("NotSupported"))] NotSupported, /// /// Insecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Insecure"))] + [EnumMember(Value = ("Insecure"))] Insecure, /// /// Expired /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Expired"))] + [EnumMember(Value = ("Expired"))] Expired, /// /// WrongOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WrongOrigin"))] + [EnumMember(Value = ("WrongOrigin"))] WrongOrigin, /// /// InvalidSignature /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSignature"))] + [EnumMember(Value = ("InvalidSignature"))] InvalidSignature, /// /// Malformed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Malformed"))] + [EnumMember(Value = ("Malformed"))] Malformed, /// /// WrongVersion /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WrongVersion"))] + [EnumMember(Value = ("WrongVersion"))] WrongVersion, /// /// FeatureDisabled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FeatureDisabled"))] + [EnumMember(Value = ("FeatureDisabled"))] FeatureDisabled, /// /// TokenDisabled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TokenDisabled"))] + [EnumMember(Value = ("TokenDisabled"))] TokenDisabled, /// /// FeatureDisabledForUser /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FeatureDisabledForUser"))] + [EnumMember(Value = ("FeatureDisabledForUser"))] FeatureDisabledForUser, /// /// UnknownTrial /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnknownTrial"))] + [EnumMember(Value = ("UnknownTrial"))] UnknownTrial } @@ -18911,22 +18630,22 @@ public enum OriginTrialStatus /// /// Enabled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Enabled"))] + [EnumMember(Value = ("Enabled"))] Enabled, /// /// ValidTokenNotProvided /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ValidTokenNotProvided"))] + [EnumMember(Value = ("ValidTokenNotProvided"))] ValidTokenNotProvided, /// /// OSNotSupported /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OSNotSupported"))] + [EnumMember(Value = ("OSNotSupported"))] OSNotSupported, /// /// TrialNotAllowed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TrialNotAllowed"))] + [EnumMember(Value = ("TrialNotAllowed"))] TrialNotAllowed } @@ -18938,12 +18657,12 @@ public enum OriginTrialUsageRestriction /// /// None /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("None"))] + [EnumMember(Value = ("None"))] None, /// /// Subset /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Subset"))] + [EnumMember(Value = ("Subset"))] Subset } @@ -18956,7 +18675,7 @@ public partial class OriginTrialToken : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Origin /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -18966,7 +18685,7 @@ public string Origin /// /// MatchSubDomains /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("matchSubDomains"), IsRequired = (true))] + [DataMember(Name = ("matchSubDomains"), IsRequired = (true))] public bool MatchSubDomains { get; @@ -18976,7 +18695,7 @@ public bool MatchSubDomains /// /// TrialName /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("trialName"), IsRequired = (true))] + [DataMember(Name = ("trialName"), IsRequired = (true))] public string TrialName { get; @@ -18986,7 +18705,7 @@ public string TrialName /// /// ExpiryTime /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("expiryTime"), IsRequired = (true))] + [DataMember(Name = ("expiryTime"), IsRequired = (true))] public double ExpiryTime { get; @@ -18996,7 +18715,7 @@ public double ExpiryTime /// /// IsThirdParty /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isThirdParty"), IsRequired = (true))] + [DataMember(Name = ("isThirdParty"), IsRequired = (true))] public bool IsThirdParty { get; @@ -19022,7 +18741,7 @@ public CefSharp.DevTools.Page.OriginTrialUsageRestriction UsageRestriction /// /// UsageRestriction /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("usageRestriction"), IsRequired = (true))] + [DataMember(Name = ("usageRestriction"), IsRequired = (true))] internal string usageRestriction { get; @@ -19039,7 +18758,7 @@ public partial class OriginTrialTokenWithStatus : CefSharp.DevTools.DevToolsDoma /// /// RawTokenText /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rawTokenText"), IsRequired = (true))] + [DataMember(Name = ("rawTokenText"), IsRequired = (true))] public string RawTokenText { get; @@ -19050,7 +18769,7 @@ public string RawTokenText /// `parsedToken` is present only when the token is extractable and /// parsable. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("parsedToken"), IsRequired = (false))] + [DataMember(Name = ("parsedToken"), IsRequired = (false))] public CefSharp.DevTools.Page.OriginTrialToken ParsedToken { get; @@ -19076,7 +18795,7 @@ public CefSharp.DevTools.Page.OriginTrialTokenStatus Status /// /// Status /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] internal string status { get; @@ -19093,7 +18812,7 @@ public partial class OriginTrial : CefSharp.DevTools.DevToolsDomainEntityBase /// /// TrialName /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("trialName"), IsRequired = (true))] + [DataMember(Name = ("trialName"), IsRequired = (true))] public string TrialName { get; @@ -19119,7 +18838,7 @@ public CefSharp.DevTools.Page.OriginTrialStatus Status /// /// Status /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] internal string status { get; @@ -19129,7 +18848,7 @@ internal string status /// /// TokensWithStatus /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("tokensWithStatus"), IsRequired = (true))] + [DataMember(Name = ("tokensWithStatus"), IsRequired = (true))] public System.Collections.Generic.IList TokensWithStatus { get; @@ -19146,7 +18865,7 @@ public partial class Frame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Frame unique identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -19156,7 +18875,7 @@ public string Id /// /// Parent frame identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (false))] + [DataMember(Name = ("parentId"), IsRequired = (false))] public string ParentId { get; @@ -19166,7 +18885,7 @@ public string ParentId /// /// Identifier of the loader associated with this frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + [DataMember(Name = ("loaderId"), IsRequired = (true))] public string LoaderId { get; @@ -19176,7 +18895,7 @@ public string LoaderId /// /// Frame's name as specified in the tag. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] + [DataMember(Name = ("name"), IsRequired = (false))] public string Name { get; @@ -19186,7 +18905,7 @@ public string Name /// /// Frame document's URL without fragment. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -19196,7 +18915,7 @@ public string Url /// /// Frame document's URL fragment including the '#'. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlFragment"), IsRequired = (false))] + [DataMember(Name = ("urlFragment"), IsRequired = (false))] public string UrlFragment { get; @@ -19209,7 +18928,7 @@ public string UrlFragment /// Example URLs: http://www.google.com/file.html -> "google.com" /// http://a.b.co.uk/file.html -> "b.co.uk" ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("domainAndRegistry"), IsRequired = (true))] + [DataMember(Name = ("domainAndRegistry"), IsRequired = (true))] public string DomainAndRegistry { get; @@ -19219,7 +18938,7 @@ public string DomainAndRegistry /// /// Frame document's security origin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityOrigin"), IsRequired = (true))] + [DataMember(Name = ("securityOrigin"), IsRequired = (true))] public string SecurityOrigin { get; @@ -19229,7 +18948,7 @@ public string SecurityOrigin /// /// Frame document's mimeType as determined by the browser. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mimeType"), IsRequired = (true))] + [DataMember(Name = ("mimeType"), IsRequired = (true))] public string MimeType { get; @@ -19239,7 +18958,7 @@ public string MimeType /// /// If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("unreachableUrl"), IsRequired = (false))] + [DataMember(Name = ("unreachableUrl"), IsRequired = (false))] public string UnreachableUrl { get; @@ -19249,7 +18968,7 @@ public string UnreachableUrl /// /// Indicates whether this frame was tagged as an ad and why. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("adFrameStatus"), IsRequired = (false))] + [DataMember(Name = ("adFrameStatus"), IsRequired = (false))] public CefSharp.DevTools.Page.AdFrameStatus AdFrameStatus { get; @@ -19275,7 +18994,7 @@ public CefSharp.DevTools.Page.SecureContextType SecureContextType /// /// Indicates whether the main document is a secure context and explains why that is the case. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("secureContextType"), IsRequired = (true))] + [DataMember(Name = ("secureContextType"), IsRequired = (true))] internal string secureContextType { get; @@ -19301,7 +19020,7 @@ public CefSharp.DevTools.Page.CrossOriginIsolatedContextType CrossOriginIsolated /// /// Indicates whether this is a cross origin isolated context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("crossOriginIsolatedContextType"), IsRequired = (true))] + [DataMember(Name = ("crossOriginIsolatedContextType"), IsRequired = (true))] internal string crossOriginIsolatedContextType { get; @@ -19327,7 +19046,7 @@ public CefSharp.DevTools.Page.GatedAPIFeatures[] GatedAPIFeatures /// /// Indicated which gated APIs / features are available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("gatedAPIFeatures"), IsRequired = (true))] + [DataMember(Name = ("gatedAPIFeatures"), IsRequired = (true))] internal string gatedAPIFeatures { get; @@ -19344,7 +19063,7 @@ public partial class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Resource URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -19370,7 +19089,7 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// Type of this resource. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -19380,7 +19099,7 @@ internal string type /// /// Resource mimeType as determined by the browser. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mimeType"), IsRequired = (true))] + [DataMember(Name = ("mimeType"), IsRequired = (true))] public string MimeType { get; @@ -19390,7 +19109,7 @@ public string MimeType /// /// last-modified timestamp as reported by server. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lastModified"), IsRequired = (false))] + [DataMember(Name = ("lastModified"), IsRequired = (false))] public double? LastModified { get; @@ -19400,7 +19119,7 @@ public double? LastModified /// /// Resource content size. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contentSize"), IsRequired = (false))] + [DataMember(Name = ("contentSize"), IsRequired = (false))] public double? ContentSize { get; @@ -19410,7 +19129,7 @@ public double? ContentSize /// /// True if the resource failed to load. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("failed"), IsRequired = (false))] + [DataMember(Name = ("failed"), IsRequired = (false))] public bool? Failed { get; @@ -19420,7 +19139,7 @@ public bool? Failed /// /// True if the resource was canceled during loading. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("canceled"), IsRequired = (false))] + [DataMember(Name = ("canceled"), IsRequired = (false))] public bool? Canceled { get; @@ -19437,7 +19156,7 @@ public partial class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityB /// /// Frame information for this tree item. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (true))] + [DataMember(Name = ("frame"), IsRequired = (true))] public CefSharp.DevTools.Page.Frame Frame { get; @@ -19447,7 +19166,7 @@ public CefSharp.DevTools.Page.Frame Frame /// /// Child frames. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("childFrames"), IsRequired = (false))] + [DataMember(Name = ("childFrames"), IsRequired = (false))] public System.Collections.Generic.IList ChildFrames { get; @@ -19457,7 +19176,7 @@ public System.Collections.Generic.IList /// Information about frame resources. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("resources"), IsRequired = (true))] + [DataMember(Name = ("resources"), IsRequired = (true))] public System.Collections.Generic.IList Resources { get; @@ -19474,7 +19193,7 @@ public partial class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Frame information for this tree item. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (true))] + [DataMember(Name = ("frame"), IsRequired = (true))] public CefSharp.DevTools.Page.Frame Frame { get; @@ -19484,7 +19203,7 @@ public CefSharp.DevTools.Page.Frame Frame /// /// Child frames. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("childFrames"), IsRequired = (false))] + [DataMember(Name = ("childFrames"), IsRequired = (false))] public System.Collections.Generic.IList ChildFrames { get; @@ -19500,67 +19219,67 @@ public enum TransitionType /// /// link /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("link"))] + [EnumMember(Value = ("link"))] Link, /// /// typed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("typed"))] + [EnumMember(Value = ("typed"))] Typed, /// /// address_bar /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("address_bar"))] + [EnumMember(Value = ("address_bar"))] AddressBar, /// /// auto_bookmark /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("auto_bookmark"))] + [EnumMember(Value = ("auto_bookmark"))] AutoBookmark, /// /// auto_subframe /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("auto_subframe"))] + [EnumMember(Value = ("auto_subframe"))] AutoSubframe, /// /// manual_subframe /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("manual_subframe"))] + [EnumMember(Value = ("manual_subframe"))] ManualSubframe, /// /// generated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("generated"))] + [EnumMember(Value = ("generated"))] Generated, /// /// auto_toplevel /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("auto_toplevel"))] + [EnumMember(Value = ("auto_toplevel"))] AutoToplevel, /// /// form_submit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("form_submit"))] + [EnumMember(Value = ("form_submit"))] FormSubmit, /// /// reload /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("reload"))] + [EnumMember(Value = ("reload"))] Reload, /// /// keyword /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("keyword"))] + [EnumMember(Value = ("keyword"))] Keyword, /// /// keyword_generated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("keyword_generated"))] + [EnumMember(Value = ("keyword_generated"))] KeywordGenerated, /// /// other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] + [EnumMember(Value = ("other"))] Other } @@ -19573,7 +19292,7 @@ public partial class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Unique id of the navigation history entry. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public int Id { get; @@ -19583,7 +19302,7 @@ public int Id /// /// URL of the navigation history entry. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -19593,7 +19312,7 @@ public string Url /// /// URL that the user typed in the url bar. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("userTypedURL"), IsRequired = (true))] + [DataMember(Name = ("userTypedURL"), IsRequired = (true))] public string UserTypedURL { get; @@ -19603,7 +19322,7 @@ public string UserTypedURL /// /// Title of the navigation history entry. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] + [DataMember(Name = ("title"), IsRequired = (true))] public string Title { get; @@ -19629,7 +19348,7 @@ public CefSharp.DevTools.Page.TransitionType TransitionType /// /// Transition type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("transitionType"), IsRequired = (true))] + [DataMember(Name = ("transitionType"), IsRequired = (true))] internal string transitionType { get; @@ -19646,7 +19365,7 @@ public partial class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainE /// /// Top offset in DIP. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetTop"), IsRequired = (true))] + [DataMember(Name = ("offsetTop"), IsRequired = (true))] public double OffsetTop { get; @@ -19656,7 +19375,7 @@ public double OffsetTop /// /// Page scale factor. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageScaleFactor"), IsRequired = (true))] + [DataMember(Name = ("pageScaleFactor"), IsRequired = (true))] public double PageScaleFactor { get; @@ -19666,7 +19385,7 @@ public double PageScaleFactor /// /// Device screen width in DIP. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deviceWidth"), IsRequired = (true))] + [DataMember(Name = ("deviceWidth"), IsRequired = (true))] public double DeviceWidth { get; @@ -19676,7 +19395,7 @@ public double DeviceWidth /// /// Device screen height in DIP. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deviceHeight"), IsRequired = (true))] + [DataMember(Name = ("deviceHeight"), IsRequired = (true))] public double DeviceHeight { get; @@ -19686,7 +19405,7 @@ public double DeviceHeight /// /// Position of horizontal scroll in CSS pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetX"), IsRequired = (true))] + [DataMember(Name = ("scrollOffsetX"), IsRequired = (true))] public double ScrollOffsetX { get; @@ -19696,7 +19415,7 @@ public double ScrollOffsetX /// /// Position of vertical scroll in CSS pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scrollOffsetY"), IsRequired = (true))] + [DataMember(Name = ("scrollOffsetY"), IsRequired = (true))] public double ScrollOffsetY { get; @@ -19706,7 +19425,7 @@ public double ScrollOffsetY /// /// Frame swap timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (false))] + [DataMember(Name = ("timestamp"), IsRequired = (false))] public double? Timestamp { get; @@ -19722,22 +19441,22 @@ public enum DialogType /// /// alert /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("alert"))] + [EnumMember(Value = ("alert"))] Alert, /// /// confirm /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("confirm"))] + [EnumMember(Value = ("confirm"))] Confirm, /// /// prompt /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("prompt"))] + [EnumMember(Value = ("prompt"))] Prompt, /// /// beforeunload /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("beforeunload"))] + [EnumMember(Value = ("beforeunload"))] Beforeunload } @@ -19750,7 +19469,7 @@ public partial class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Error message. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + [DataMember(Name = ("message"), IsRequired = (true))] public string Message { get; @@ -19760,7 +19479,7 @@ public string Message /// /// If criticial, this is a non-recoverable parse error. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("critical"), IsRequired = (true))] + [DataMember(Name = ("critical"), IsRequired = (true))] public int Critical { get; @@ -19770,7 +19489,7 @@ public int Critical /// /// Error line. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("line"), IsRequired = (true))] + [DataMember(Name = ("line"), IsRequired = (true))] public int Line { get; @@ -19780,7 +19499,7 @@ public int Line /// /// Error column. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("column"), IsRequired = (true))] + [DataMember(Name = ("column"), IsRequired = (true))] public int Column { get; @@ -19797,7 +19516,7 @@ public partial class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDom /// /// Computed scope value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scope"), IsRequired = (true))] + [DataMember(Name = ("scope"), IsRequired = (true))] public string Scope { get; @@ -19814,7 +19533,7 @@ public partial class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Horizontal offset relative to the document (CSS pixels). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageX"), IsRequired = (true))] + [DataMember(Name = ("pageX"), IsRequired = (true))] public int PageX { get; @@ -19824,7 +19543,7 @@ public int PageX /// /// Vertical offset relative to the document (CSS pixels). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageY"), IsRequired = (true))] + [DataMember(Name = ("pageY"), IsRequired = (true))] public int PageY { get; @@ -19834,7 +19553,7 @@ public int PageY /// /// Width (CSS pixels), excludes scrollbar if present. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientWidth"), IsRequired = (true))] + [DataMember(Name = ("clientWidth"), IsRequired = (true))] public int ClientWidth { get; @@ -19844,7 +19563,7 @@ public int ClientWidth /// /// Height (CSS pixels), excludes scrollbar if present. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientHeight"), IsRequired = (true))] + [DataMember(Name = ("clientHeight"), IsRequired = (true))] public int ClientHeight { get; @@ -19861,7 +19580,7 @@ public partial class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Horizontal offset relative to the layout viewport (CSS pixels). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetX"), IsRequired = (true))] + [DataMember(Name = ("offsetX"), IsRequired = (true))] public double OffsetX { get; @@ -19871,7 +19590,7 @@ public double OffsetX /// /// Vertical offset relative to the layout viewport (CSS pixels). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("offsetY"), IsRequired = (true))] + [DataMember(Name = ("offsetY"), IsRequired = (true))] public double OffsetY { get; @@ -19881,7 +19600,7 @@ public double OffsetY /// /// Horizontal offset relative to the document (CSS pixels). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageX"), IsRequired = (true))] + [DataMember(Name = ("pageX"), IsRequired = (true))] public double PageX { get; @@ -19891,7 +19610,7 @@ public double PageX /// /// Vertical offset relative to the document (CSS pixels). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("pageY"), IsRequired = (true))] + [DataMember(Name = ("pageY"), IsRequired = (true))] public double PageY { get; @@ -19901,7 +19620,7 @@ public double PageY /// /// Width (CSS pixels), excludes scrollbar if present. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientWidth"), IsRequired = (true))] + [DataMember(Name = ("clientWidth"), IsRequired = (true))] public double ClientWidth { get; @@ -19911,7 +19630,7 @@ public double ClientWidth /// /// Height (CSS pixels), excludes scrollbar if present. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("clientHeight"), IsRequired = (true))] + [DataMember(Name = ("clientHeight"), IsRequired = (true))] public double ClientHeight { get; @@ -19921,7 +19640,7 @@ public double ClientHeight /// /// Scale relative to the ideal viewport (size at width=device-width). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scale"), IsRequired = (true))] + [DataMember(Name = ("scale"), IsRequired = (true))] public double Scale { get; @@ -19931,7 +19650,7 @@ public double Scale /// /// Page zoom factor (CSS to device independent pixels ratio). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("zoom"), IsRequired = (false))] + [DataMember(Name = ("zoom"), IsRequired = (false))] public double? Zoom { get; @@ -19948,7 +19667,7 @@ public partial class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase /// /// X offset in device independent pixels (dip). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("x"), IsRequired = (true))] + [DataMember(Name = ("x"), IsRequired = (true))] public double X { get; @@ -19958,7 +19677,7 @@ public double X /// /// Y offset in device independent pixels (dip). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("y"), IsRequired = (true))] + [DataMember(Name = ("y"), IsRequired = (true))] public double Y { get; @@ -19968,7 +19687,7 @@ public double Y /// /// Rectangle width in device independent pixels (dip). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] + [DataMember(Name = ("width"), IsRequired = (true))] public double Width { get; @@ -19978,7 +19697,7 @@ public double Width /// /// Rectangle height in device independent pixels (dip). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] + [DataMember(Name = ("height"), IsRequired = (true))] public double Height { get; @@ -19988,7 +19707,7 @@ public double Height /// /// Page scale factor. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scale"), IsRequired = (true))] + [DataMember(Name = ("scale"), IsRequired = (true))] public double Scale { get; @@ -20005,7 +19724,7 @@ public partial class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The standard font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("standard"), IsRequired = (false))] + [DataMember(Name = ("standard"), IsRequired = (false))] public string Standard { get; @@ -20015,7 +19734,7 @@ public string Standard /// /// The fixed font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fixed"), IsRequired = (false))] + [DataMember(Name = ("fixed"), IsRequired = (false))] public string Fixed { get; @@ -20025,7 +19744,7 @@ public string Fixed /// /// The serif font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("serif"), IsRequired = (false))] + [DataMember(Name = ("serif"), IsRequired = (false))] public string Serif { get; @@ -20035,7 +19754,7 @@ public string Serif /// /// The sansSerif font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sansSerif"), IsRequired = (false))] + [DataMember(Name = ("sansSerif"), IsRequired = (false))] public string SansSerif { get; @@ -20045,7 +19764,7 @@ public string SansSerif /// /// The cursive font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cursive"), IsRequired = (false))] + [DataMember(Name = ("cursive"), IsRequired = (false))] public string Cursive { get; @@ -20055,7 +19774,7 @@ public string Cursive /// /// The fantasy font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fantasy"), IsRequired = (false))] + [DataMember(Name = ("fantasy"), IsRequired = (false))] public string Fantasy { get; @@ -20065,7 +19784,7 @@ public string Fantasy /// /// The math font-family. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("math"), IsRequired = (false))] + [DataMember(Name = ("math"), IsRequired = (false))] public string Math { get; @@ -20082,7 +19801,7 @@ public partial class ScriptFontFamilies : CefSharp.DevTools.DevToolsDomainEntity /// /// Name of the script which these font families are defined for. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("script"), IsRequired = (true))] + [DataMember(Name = ("script"), IsRequired = (true))] public string Script { get; @@ -20092,7 +19811,7 @@ public string Script /// /// Generic font families collection for the script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fontFamilies"), IsRequired = (true))] + [DataMember(Name = ("fontFamilies"), IsRequired = (true))] public CefSharp.DevTools.Page.FontFamilies FontFamilies { get; @@ -20109,7 +19828,7 @@ public partial class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Default standard font size. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("standard"), IsRequired = (false))] + [DataMember(Name = ("standard"), IsRequired = (false))] public int? Standard { get; @@ -20119,7 +19838,7 @@ public int? Standard /// /// Default fixed font size. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("fixed"), IsRequired = (false))] + [DataMember(Name = ("fixed"), IsRequired = (false))] public int? Fixed { get; @@ -20135,42 +19854,42 @@ public enum ClientNavigationReason /// /// formSubmissionGet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("formSubmissionGet"))] + [EnumMember(Value = ("formSubmissionGet"))] FormSubmissionGet, /// /// formSubmissionPost /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("formSubmissionPost"))] + [EnumMember(Value = ("formSubmissionPost"))] FormSubmissionPost, /// /// httpHeaderRefresh /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("httpHeaderRefresh"))] + [EnumMember(Value = ("httpHeaderRefresh"))] HttpHeaderRefresh, /// /// scriptInitiated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("scriptInitiated"))] + [EnumMember(Value = ("scriptInitiated"))] ScriptInitiated, /// /// metaTagRefresh /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("metaTagRefresh"))] + [EnumMember(Value = ("metaTagRefresh"))] MetaTagRefresh, /// /// pageBlockInterstitial /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("pageBlockInterstitial"))] + [EnumMember(Value = ("pageBlockInterstitial"))] PageBlockInterstitial, /// /// reload /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("reload"))] + [EnumMember(Value = ("reload"))] Reload, /// /// anchorClick /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("anchorClick"))] + [EnumMember(Value = ("anchorClick"))] AnchorClick } @@ -20182,22 +19901,22 @@ public enum ClientNavigationDisposition /// /// currentTab /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("currentTab"))] + [EnumMember(Value = ("currentTab"))] CurrentTab, /// /// newTab /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("newTab"))] + [EnumMember(Value = ("newTab"))] NewTab, /// /// newWindow /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("newWindow"))] + [EnumMember(Value = ("newWindow"))] NewWindow, /// /// download /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("download"))] + [EnumMember(Value = ("download"))] Download } @@ -20210,7 +19929,7 @@ public partial class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDom /// /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -20220,7 +19939,7 @@ public string Name /// /// Argument value (e.g. value:'64'). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -20237,7 +19956,7 @@ public partial class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntit /// /// The error id (e.g. 'manifest-missing-suitable-icon'). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorId"), IsRequired = (true))] + [DataMember(Name = ("errorId"), IsRequired = (true))] public string ErrorId { get; @@ -20247,7 +19966,7 @@ public string ErrorId /// /// The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorArguments"), IsRequired = (true))] + [DataMember(Name = ("errorArguments"), IsRequired = (true))] public System.Collections.Generic.IList ErrorArguments { get; @@ -20263,42 +19982,42 @@ public enum ReferrerPolicy /// /// noReferrer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("noReferrer"))] + [EnumMember(Value = ("noReferrer"))] NoReferrer, /// /// noReferrerWhenDowngrade /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("noReferrerWhenDowngrade"))] + [EnumMember(Value = ("noReferrerWhenDowngrade"))] NoReferrerWhenDowngrade, /// /// origin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("origin"))] + [EnumMember(Value = ("origin"))] Origin, /// /// originWhenCrossOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("originWhenCrossOrigin"))] + [EnumMember(Value = ("originWhenCrossOrigin"))] OriginWhenCrossOrigin, /// /// sameOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("sameOrigin"))] + [EnumMember(Value = ("sameOrigin"))] SameOrigin, /// /// strictOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("strictOrigin"))] + [EnumMember(Value = ("strictOrigin"))] StrictOrigin, /// /// strictOriginWhenCrossOrigin /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("strictOriginWhenCrossOrigin"))] + [EnumMember(Value = ("strictOriginWhenCrossOrigin"))] StrictOriginWhenCrossOrigin, /// /// unsafeUrl /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unsafeUrl"))] + [EnumMember(Value = ("unsafeUrl"))] UnsafeUrl } @@ -20311,7 +20030,7 @@ public partial class CompilationCacheParams : CefSharp.DevTools.DevToolsDomainEn /// /// The URL of the script to produce a compilation cache entry for. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -20322,7 +20041,7 @@ public string Url /// A hint to the backend whether eager compilation is recommended. /// (the actual compilation mode used is upon backend discretion). ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("eager"), IsRequired = (false))] + [DataMember(Name = ("eager"), IsRequired = (false))] public bool? Eager { get; @@ -20330,6 +20049,33 @@ public bool? Eager } } + /// + /// Enum of possible auto-reponse for permisison / prompt dialogs. + /// + public enum AutoResponseMode + { + /// + /// none + /// + [EnumMember(Value = ("none"))] + None, + /// + /// autoAccept + /// + [EnumMember(Value = ("autoAccept"))] + AutoAccept, + /// + /// autoReject + /// + [EnumMember(Value = ("autoReject"))] + AutoReject, + /// + /// autoOptOut + /// + [EnumMember(Value = ("autoOptOut"))] + AutoOptOut + } + /// /// The type of a frameNavigated event. /// @@ -20338,12 +20084,12 @@ public enum NavigationType /// /// Navigation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Navigation"))] + [EnumMember(Value = ("Navigation"))] Navigation, /// /// BackForwardCacheRestore /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BackForwardCacheRestore"))] + [EnumMember(Value = ("BackForwardCacheRestore"))] BackForwardCacheRestore } @@ -20355,622 +20101,622 @@ public enum BackForwardCacheNotRestoredReason /// /// NotPrimaryMainFrame /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotPrimaryMainFrame"))] + [EnumMember(Value = ("NotPrimaryMainFrame"))] NotPrimaryMainFrame, /// /// BackForwardCacheDisabled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BackForwardCacheDisabled"))] + [EnumMember(Value = ("BackForwardCacheDisabled"))] BackForwardCacheDisabled, /// /// RelatedActiveContentsExist /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RelatedActiveContentsExist"))] + [EnumMember(Value = ("RelatedActiveContentsExist"))] RelatedActiveContentsExist, /// /// HTTPStatusNotOK /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HTTPStatusNotOK"))] + [EnumMember(Value = ("HTTPStatusNotOK"))] HTTPStatusNotOK, /// /// SchemeNotHTTPOrHTTPS /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchemeNotHTTPOrHTTPS"))] + [EnumMember(Value = ("SchemeNotHTTPOrHTTPS"))] SchemeNotHTTPOrHTTPS, /// /// Loading /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Loading"))] + [EnumMember(Value = ("Loading"))] Loading, /// /// WasGrantedMediaAccess /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WasGrantedMediaAccess"))] + [EnumMember(Value = ("WasGrantedMediaAccess"))] WasGrantedMediaAccess, /// /// DisableForRenderFrameHostCalled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DisableForRenderFrameHostCalled"))] + [EnumMember(Value = ("DisableForRenderFrameHostCalled"))] DisableForRenderFrameHostCalled, /// /// DomainNotAllowed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DomainNotAllowed"))] + [EnumMember(Value = ("DomainNotAllowed"))] DomainNotAllowed, /// /// HTTPMethodNotGET /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HTTPMethodNotGET"))] + [EnumMember(Value = ("HTTPMethodNotGET"))] HTTPMethodNotGET, /// /// SubframeIsNavigating /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SubframeIsNavigating"))] + [EnumMember(Value = ("SubframeIsNavigating"))] SubframeIsNavigating, /// /// Timeout /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Timeout"))] + [EnumMember(Value = ("Timeout"))] Timeout, /// /// CacheLimit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CacheLimit"))] + [EnumMember(Value = ("CacheLimit"))] CacheLimit, /// /// JavaScriptExecution /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("JavaScriptExecution"))] + [EnumMember(Value = ("JavaScriptExecution"))] JavaScriptExecution, /// /// RendererProcessKilled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RendererProcessKilled"))] + [EnumMember(Value = ("RendererProcessKilled"))] RendererProcessKilled, /// /// RendererProcessCrashed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RendererProcessCrashed"))] + [EnumMember(Value = ("RendererProcessCrashed"))] RendererProcessCrashed, /// /// SchedulerTrackedFeatureUsed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SchedulerTrackedFeatureUsed"))] + [EnumMember(Value = ("SchedulerTrackedFeatureUsed"))] SchedulerTrackedFeatureUsed, /// /// ConflictingBrowsingInstance /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ConflictingBrowsingInstance"))] + [EnumMember(Value = ("ConflictingBrowsingInstance"))] ConflictingBrowsingInstance, /// /// CacheFlushed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CacheFlushed"))] + [EnumMember(Value = ("CacheFlushed"))] CacheFlushed, /// /// ServiceWorkerVersionActivation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ServiceWorkerVersionActivation"))] + [EnumMember(Value = ("ServiceWorkerVersionActivation"))] ServiceWorkerVersionActivation, /// /// SessionRestored /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SessionRestored"))] + [EnumMember(Value = ("SessionRestored"))] SessionRestored, /// /// ServiceWorkerPostMessage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ServiceWorkerPostMessage"))] + [EnumMember(Value = ("ServiceWorkerPostMessage"))] ServiceWorkerPostMessage, /// /// EnteredBackForwardCacheBeforeServiceWorkerHostAdded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EnteredBackForwardCacheBeforeServiceWorkerHostAdded"))] + [EnumMember(Value = ("EnteredBackForwardCacheBeforeServiceWorkerHostAdded"))] EnteredBackForwardCacheBeforeServiceWorkerHostAdded, /// /// RenderFrameHostReused_SameSite /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RenderFrameHostReused_SameSite"))] + [EnumMember(Value = ("RenderFrameHostReused_SameSite"))] RenderFrameHostReusedSameSite, /// /// RenderFrameHostReused_CrossSite /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RenderFrameHostReused_CrossSite"))] + [EnumMember(Value = ("RenderFrameHostReused_CrossSite"))] RenderFrameHostReusedCrossSite, /// /// ServiceWorkerClaim /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ServiceWorkerClaim"))] + [EnumMember(Value = ("ServiceWorkerClaim"))] ServiceWorkerClaim, /// /// IgnoreEventAndEvict /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IgnoreEventAndEvict"))] + [EnumMember(Value = ("IgnoreEventAndEvict"))] IgnoreEventAndEvict, /// /// HaveInnerContents /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HaveInnerContents"))] + [EnumMember(Value = ("HaveInnerContents"))] HaveInnerContents, /// /// TimeoutPuttingInCache /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TimeoutPuttingInCache"))] + [EnumMember(Value = ("TimeoutPuttingInCache"))] TimeoutPuttingInCache, /// /// BackForwardCacheDisabledByLowMemory /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BackForwardCacheDisabledByLowMemory"))] + [EnumMember(Value = ("BackForwardCacheDisabledByLowMemory"))] BackForwardCacheDisabledByLowMemory, /// /// BackForwardCacheDisabledByCommandLine /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BackForwardCacheDisabledByCommandLine"))] + [EnumMember(Value = ("BackForwardCacheDisabledByCommandLine"))] BackForwardCacheDisabledByCommandLine, /// /// NetworkRequestDatapipeDrainedAsBytesConsumer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NetworkRequestDatapipeDrainedAsBytesConsumer"))] + [EnumMember(Value = ("NetworkRequestDatapipeDrainedAsBytesConsumer"))] NetworkRequestDatapipeDrainedAsBytesConsumer, /// /// NetworkRequestRedirected /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NetworkRequestRedirected"))] + [EnumMember(Value = ("NetworkRequestRedirected"))] NetworkRequestRedirected, /// /// NetworkRequestTimeout /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NetworkRequestTimeout"))] + [EnumMember(Value = ("NetworkRequestTimeout"))] NetworkRequestTimeout, /// /// NetworkExceedsBufferLimit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NetworkExceedsBufferLimit"))] + [EnumMember(Value = ("NetworkExceedsBufferLimit"))] NetworkExceedsBufferLimit, /// /// NavigationCancelledWhileRestoring /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationCancelledWhileRestoring"))] + [EnumMember(Value = ("NavigationCancelledWhileRestoring"))] NavigationCancelledWhileRestoring, /// /// NotMostRecentNavigationEntry /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NotMostRecentNavigationEntry"))] + [EnumMember(Value = ("NotMostRecentNavigationEntry"))] NotMostRecentNavigationEntry, /// /// BackForwardCacheDisabledForPrerender /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BackForwardCacheDisabledForPrerender"))] + [EnumMember(Value = ("BackForwardCacheDisabledForPrerender"))] BackForwardCacheDisabledForPrerender, /// /// UserAgentOverrideDiffers /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UserAgentOverrideDiffers"))] + [EnumMember(Value = ("UserAgentOverrideDiffers"))] UserAgentOverrideDiffers, /// /// ForegroundCacheLimit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ForegroundCacheLimit"))] + [EnumMember(Value = ("ForegroundCacheLimit"))] ForegroundCacheLimit, /// /// BrowsingInstanceNotSwapped /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BrowsingInstanceNotSwapped"))] + [EnumMember(Value = ("BrowsingInstanceNotSwapped"))] BrowsingInstanceNotSwapped, /// /// BackForwardCacheDisabledForDelegate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BackForwardCacheDisabledForDelegate"))] + [EnumMember(Value = ("BackForwardCacheDisabledForDelegate"))] BackForwardCacheDisabledForDelegate, /// /// UnloadHandlerExistsInMainFrame /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnloadHandlerExistsInMainFrame"))] + [EnumMember(Value = ("UnloadHandlerExistsInMainFrame"))] UnloadHandlerExistsInMainFrame, /// /// UnloadHandlerExistsInSubFrame /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UnloadHandlerExistsInSubFrame"))] + [EnumMember(Value = ("UnloadHandlerExistsInSubFrame"))] UnloadHandlerExistsInSubFrame, /// /// ServiceWorkerUnregistration /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ServiceWorkerUnregistration"))] + [EnumMember(Value = ("ServiceWorkerUnregistration"))] ServiceWorkerUnregistration, /// /// CacheControlNoStore /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CacheControlNoStore"))] + [EnumMember(Value = ("CacheControlNoStore"))] CacheControlNoStore, /// /// CacheControlNoStoreCookieModified /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CacheControlNoStoreCookieModified"))] + [EnumMember(Value = ("CacheControlNoStoreCookieModified"))] CacheControlNoStoreCookieModified, /// /// CacheControlNoStoreHTTPOnlyCookieModified /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CacheControlNoStoreHTTPOnlyCookieModified"))] + [EnumMember(Value = ("CacheControlNoStoreHTTPOnlyCookieModified"))] CacheControlNoStoreHTTPOnlyCookieModified, /// /// NoResponseHead /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NoResponseHead"))] + [EnumMember(Value = ("NoResponseHead"))] NoResponseHead, /// /// Unknown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Unknown"))] + [EnumMember(Value = ("Unknown"))] Unknown, /// /// ActivationNavigationsDisallowedForBug1234857 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationNavigationsDisallowedForBug1234857"))] + [EnumMember(Value = ("ActivationNavigationsDisallowedForBug1234857"))] ActivationNavigationsDisallowedForBug1234857, /// /// ErrorDocument /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ErrorDocument"))] + [EnumMember(Value = ("ErrorDocument"))] ErrorDocument, /// /// FencedFramesEmbedder /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FencedFramesEmbedder"))] + [EnumMember(Value = ("FencedFramesEmbedder"))] FencedFramesEmbedder, /// /// WebSocket /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebSocket"))] + [EnumMember(Value = ("WebSocket"))] WebSocket, /// /// WebTransport /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebTransport"))] + [EnumMember(Value = ("WebTransport"))] WebTransport, /// /// WebRTC /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebRTC"))] + [EnumMember(Value = ("WebRTC"))] WebRTC, /// /// MainResourceHasCacheControlNoStore /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MainResourceHasCacheControlNoStore"))] + [EnumMember(Value = ("MainResourceHasCacheControlNoStore"))] MainResourceHasCacheControlNoStore, /// /// MainResourceHasCacheControlNoCache /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MainResourceHasCacheControlNoCache"))] + [EnumMember(Value = ("MainResourceHasCacheControlNoCache"))] MainResourceHasCacheControlNoCache, /// /// SubresourceHasCacheControlNoStore /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SubresourceHasCacheControlNoStore"))] + [EnumMember(Value = ("SubresourceHasCacheControlNoStore"))] SubresourceHasCacheControlNoStore, /// /// SubresourceHasCacheControlNoCache /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SubresourceHasCacheControlNoCache"))] + [EnumMember(Value = ("SubresourceHasCacheControlNoCache"))] SubresourceHasCacheControlNoCache, /// /// ContainsPlugins /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContainsPlugins"))] + [EnumMember(Value = ("ContainsPlugins"))] ContainsPlugins, /// /// DocumentLoaded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DocumentLoaded"))] + [EnumMember(Value = ("DocumentLoaded"))] DocumentLoaded, /// /// DedicatedWorkerOrWorklet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DedicatedWorkerOrWorklet"))] + [EnumMember(Value = ("DedicatedWorkerOrWorklet"))] DedicatedWorkerOrWorklet, /// /// OutstandingNetworkRequestOthers /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OutstandingNetworkRequestOthers"))] + [EnumMember(Value = ("OutstandingNetworkRequestOthers"))] OutstandingNetworkRequestOthers, /// /// OutstandingIndexedDBTransaction /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OutstandingIndexedDBTransaction"))] + [EnumMember(Value = ("OutstandingIndexedDBTransaction"))] OutstandingIndexedDBTransaction, /// /// RequestedMIDIPermission /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedMIDIPermission"))] + [EnumMember(Value = ("RequestedMIDIPermission"))] RequestedMIDIPermission, /// /// RequestedAudioCapturePermission /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedAudioCapturePermission"))] + [EnumMember(Value = ("RequestedAudioCapturePermission"))] RequestedAudioCapturePermission, /// /// RequestedVideoCapturePermission /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedVideoCapturePermission"))] + [EnumMember(Value = ("RequestedVideoCapturePermission"))] RequestedVideoCapturePermission, /// /// RequestedBackForwardCacheBlockedSensors /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedBackForwardCacheBlockedSensors"))] + [EnumMember(Value = ("RequestedBackForwardCacheBlockedSensors"))] RequestedBackForwardCacheBlockedSensors, /// /// RequestedBackgroundWorkPermission /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedBackgroundWorkPermission"))] + [EnumMember(Value = ("RequestedBackgroundWorkPermission"))] RequestedBackgroundWorkPermission, /// /// BroadcastChannel /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BroadcastChannel"))] + [EnumMember(Value = ("BroadcastChannel"))] BroadcastChannel, /// /// IndexedDBConnection /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IndexedDBConnection"))] + [EnumMember(Value = ("IndexedDBConnection"))] IndexedDBConnection, /// /// WebXR /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebXR"))] + [EnumMember(Value = ("WebXR"))] WebXR, /// /// SharedWorker /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SharedWorker"))] + [EnumMember(Value = ("SharedWorker"))] SharedWorker, /// /// WebLocks /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebLocks"))] + [EnumMember(Value = ("WebLocks"))] WebLocks, /// /// WebHID /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebHID"))] + [EnumMember(Value = ("WebHID"))] WebHID, /// /// WebShare /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebShare"))] + [EnumMember(Value = ("WebShare"))] WebShare, /// /// RequestedStorageAccessGrant /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RequestedStorageAccessGrant"))] + [EnumMember(Value = ("RequestedStorageAccessGrant"))] RequestedStorageAccessGrant, /// /// WebNfc /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebNfc"))] + [EnumMember(Value = ("WebNfc"))] WebNfc, /// /// OutstandingNetworkRequestFetch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OutstandingNetworkRequestFetch"))] + [EnumMember(Value = ("OutstandingNetworkRequestFetch"))] OutstandingNetworkRequestFetch, /// /// OutstandingNetworkRequestXHR /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OutstandingNetworkRequestXHR"))] + [EnumMember(Value = ("OutstandingNetworkRequestXHR"))] OutstandingNetworkRequestXHR, /// /// AppBanner /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AppBanner"))] + [EnumMember(Value = ("AppBanner"))] AppBanner, /// /// Printing /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Printing"))] + [EnumMember(Value = ("Printing"))] Printing, /// /// WebDatabase /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebDatabase"))] + [EnumMember(Value = ("WebDatabase"))] WebDatabase, /// /// PictureInPicture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PictureInPicture"))] + [EnumMember(Value = ("PictureInPicture"))] PictureInPicture, /// /// Portal /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Portal"))] + [EnumMember(Value = ("Portal"))] Portal, /// /// SpeechRecognizer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SpeechRecognizer"))] + [EnumMember(Value = ("SpeechRecognizer"))] SpeechRecognizer, /// /// IdleManager /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IdleManager"))] + [EnumMember(Value = ("IdleManager"))] IdleManager, /// /// PaymentManager /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PaymentManager"))] + [EnumMember(Value = ("PaymentManager"))] PaymentManager, /// /// SpeechSynthesis /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SpeechSynthesis"))] + [EnumMember(Value = ("SpeechSynthesis"))] SpeechSynthesis, /// /// KeyboardLock /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("KeyboardLock"))] + [EnumMember(Value = ("KeyboardLock"))] KeyboardLock, /// /// WebOTPService /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebOTPService"))] + [EnumMember(Value = ("WebOTPService"))] WebOTPService, /// /// OutstandingNetworkRequestDirectSocket /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OutstandingNetworkRequestDirectSocket"))] + [EnumMember(Value = ("OutstandingNetworkRequestDirectSocket"))] OutstandingNetworkRequestDirectSocket, /// /// InjectedJavascript /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InjectedJavascript"))] + [EnumMember(Value = ("InjectedJavascript"))] InjectedJavascript, /// /// InjectedStyleSheet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InjectedStyleSheet"))] + [EnumMember(Value = ("InjectedStyleSheet"))] InjectedStyleSheet, /// /// KeepaliveRequest /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("KeepaliveRequest"))] + [EnumMember(Value = ("KeepaliveRequest"))] KeepaliveRequest, /// /// IndexedDBEvent /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("IndexedDBEvent"))] + [EnumMember(Value = ("IndexedDBEvent"))] IndexedDBEvent, /// /// Dummy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Dummy"))] + [EnumMember(Value = ("Dummy"))] Dummy, /// /// AuthorizationHeader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AuthorizationHeader"))] + [EnumMember(Value = ("AuthorizationHeader"))] AuthorizationHeader, /// /// ContentSecurityHandler /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentSecurityHandler"))] + [EnumMember(Value = ("ContentSecurityHandler"))] ContentSecurityHandler, /// /// ContentWebAuthenticationAPI /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentWebAuthenticationAPI"))] + [EnumMember(Value = ("ContentWebAuthenticationAPI"))] ContentWebAuthenticationAPI, /// /// ContentFileChooser /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentFileChooser"))] + [EnumMember(Value = ("ContentFileChooser"))] ContentFileChooser, /// /// ContentSerial /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentSerial"))] + [EnumMember(Value = ("ContentSerial"))] ContentSerial, /// /// ContentFileSystemAccess /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentFileSystemAccess"))] + [EnumMember(Value = ("ContentFileSystemAccess"))] ContentFileSystemAccess, /// /// ContentMediaDevicesDispatcherHost /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentMediaDevicesDispatcherHost"))] + [EnumMember(Value = ("ContentMediaDevicesDispatcherHost"))] ContentMediaDevicesDispatcherHost, /// /// ContentWebBluetooth /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentWebBluetooth"))] + [EnumMember(Value = ("ContentWebBluetooth"))] ContentWebBluetooth, /// /// ContentWebUSB /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentWebUSB"))] + [EnumMember(Value = ("ContentWebUSB"))] ContentWebUSB, /// /// ContentMediaSessionService /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentMediaSessionService"))] + [EnumMember(Value = ("ContentMediaSessionService"))] ContentMediaSessionService, /// /// ContentScreenReader /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ContentScreenReader"))] + [EnumMember(Value = ("ContentScreenReader"))] ContentScreenReader, /// /// EmbedderPopupBlockerTabHelper /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderPopupBlockerTabHelper"))] + [EnumMember(Value = ("EmbedderPopupBlockerTabHelper"))] EmbedderPopupBlockerTabHelper, /// /// EmbedderSafeBrowsingTriggeredPopupBlocker /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderSafeBrowsingTriggeredPopupBlocker"))] + [EnumMember(Value = ("EmbedderSafeBrowsingTriggeredPopupBlocker"))] EmbedderSafeBrowsingTriggeredPopupBlocker, /// /// EmbedderSafeBrowsingThreatDetails /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderSafeBrowsingThreatDetails"))] + [EnumMember(Value = ("EmbedderSafeBrowsingThreatDetails"))] EmbedderSafeBrowsingThreatDetails, /// /// EmbedderAppBannerManager /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderAppBannerManager"))] + [EnumMember(Value = ("EmbedderAppBannerManager"))] EmbedderAppBannerManager, /// /// EmbedderDomDistillerViewerSource /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderDomDistillerViewerSource"))] + [EnumMember(Value = ("EmbedderDomDistillerViewerSource"))] EmbedderDomDistillerViewerSource, /// /// EmbedderDomDistillerSelfDeletingRequestDelegate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderDomDistillerSelfDeletingRequestDelegate"))] + [EnumMember(Value = ("EmbedderDomDistillerSelfDeletingRequestDelegate"))] EmbedderDomDistillerSelfDeletingRequestDelegate, /// /// EmbedderOomInterventionTabHelper /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderOomInterventionTabHelper"))] + [EnumMember(Value = ("EmbedderOomInterventionTabHelper"))] EmbedderOomInterventionTabHelper, /// /// EmbedderOfflinePage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderOfflinePage"))] + [EnumMember(Value = ("EmbedderOfflinePage"))] EmbedderOfflinePage, /// /// EmbedderChromePasswordManagerClientBindCredentialManager /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderChromePasswordManagerClientBindCredentialManager"))] + [EnumMember(Value = ("EmbedderChromePasswordManagerClientBindCredentialManager"))] EmbedderChromePasswordManagerClientBindCredentialManager, /// /// EmbedderPermissionRequestManager /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderPermissionRequestManager"))] + [EnumMember(Value = ("EmbedderPermissionRequestManager"))] EmbedderPermissionRequestManager, /// /// EmbedderModalDialog /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderModalDialog"))] + [EnumMember(Value = ("EmbedderModalDialog"))] EmbedderModalDialog, /// /// EmbedderExtensions /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderExtensions"))] + [EnumMember(Value = ("EmbedderExtensions"))] EmbedderExtensions, /// /// EmbedderExtensionMessaging /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderExtensionMessaging"))] + [EnumMember(Value = ("EmbedderExtensionMessaging"))] EmbedderExtensionMessaging, /// /// EmbedderExtensionMessagingForOpenPort /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderExtensionMessagingForOpenPort"))] + [EnumMember(Value = ("EmbedderExtensionMessagingForOpenPort"))] EmbedderExtensionMessagingForOpenPort, /// /// EmbedderExtensionSentMessageToCachedFrame /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderExtensionSentMessageToCachedFrame"))] + [EnumMember(Value = ("EmbedderExtensionSentMessageToCachedFrame"))] EmbedderExtensionSentMessageToCachedFrame } @@ -20982,17 +20728,17 @@ public enum BackForwardCacheNotRestoredReasonType /// /// SupportPending /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SupportPending"))] + [EnumMember(Value = ("SupportPending"))] SupportPending, /// /// PageSupportNeeded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PageSupportNeeded"))] + [EnumMember(Value = ("PageSupportNeeded"))] PageSupportNeeded, /// /// Circumstantial /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Circumstantial"))] + [EnumMember(Value = ("Circumstantial"))] Circumstantial } @@ -21021,7 +20767,7 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReasonType Type /// /// Type of the reason /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -21047,7 +20793,7 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReason Reason /// /// Not restored reason /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] internal string reason { get; @@ -21059,7 +20805,7 @@ internal string reason /// dependent on the reason: /// - EmbedderExtensionSentMessageToCachedFrame: the extension ID. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (false))] + [DataMember(Name = ("context"), IsRequired = (false))] public string Context { get; @@ -21076,7 +20822,7 @@ public partial class BackForwardCacheNotRestoredExplanationTree : CefSharp.DevTo /// /// URL of each frame /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -21086,7 +20832,7 @@ public string Url /// /// Not restored reasons of each frame /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("explanations"), IsRequired = (true))] + [DataMember(Name = ("explanations"), IsRequired = (true))] public System.Collections.Generic.IList Explanations { get; @@ -21096,7 +20842,7 @@ public System.Collections.Generic.IList /// Array of children frame ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("children"), IsRequired = (true))] + [DataMember(Name = ("children"), IsRequired = (true))] public System.Collections.Generic.IList Children { get; @@ -21112,263 +20858,321 @@ public enum PrerenderFinalStatus /// /// Activated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Activated"))] + [EnumMember(Value = ("Activated"))] Activated, /// /// Destroyed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Destroyed"))] + [EnumMember(Value = ("Destroyed"))] Destroyed, /// /// LowEndDevice /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LowEndDevice"))] + [EnumMember(Value = ("LowEndDevice"))] LowEndDevice, /// /// InvalidSchemeRedirect /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSchemeRedirect"))] + [EnumMember(Value = ("InvalidSchemeRedirect"))] InvalidSchemeRedirect, /// /// InvalidSchemeNavigation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InvalidSchemeNavigation"))] + [EnumMember(Value = ("InvalidSchemeNavigation"))] InvalidSchemeNavigation, /// /// InProgressNavigation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InProgressNavigation"))] + [EnumMember(Value = ("InProgressNavigation"))] InProgressNavigation, /// /// NavigationRequestBlockedByCsp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationRequestBlockedByCsp"))] + [EnumMember(Value = ("NavigationRequestBlockedByCsp"))] NavigationRequestBlockedByCsp, /// /// MainFrameNavigation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MainFrameNavigation"))] + [EnumMember(Value = ("MainFrameNavigation"))] MainFrameNavigation, /// /// MojoBinderPolicy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MojoBinderPolicy"))] + [EnumMember(Value = ("MojoBinderPolicy"))] MojoBinderPolicy, /// /// RendererProcessCrashed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RendererProcessCrashed"))] + [EnumMember(Value = ("RendererProcessCrashed"))] RendererProcessCrashed, /// /// RendererProcessKilled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("RendererProcessKilled"))] + [EnumMember(Value = ("RendererProcessKilled"))] RendererProcessKilled, /// /// Download /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Download"))] + [EnumMember(Value = ("Download"))] Download, /// /// TriggerDestroyed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TriggerDestroyed"))] + [EnumMember(Value = ("TriggerDestroyed"))] TriggerDestroyed, /// /// NavigationNotCommitted /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationNotCommitted"))] + [EnumMember(Value = ("NavigationNotCommitted"))] NavigationNotCommitted, /// /// NavigationBadHttpStatus /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationBadHttpStatus"))] + [EnumMember(Value = ("NavigationBadHttpStatus"))] NavigationBadHttpStatus, /// /// ClientCertRequested /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ClientCertRequested"))] + [EnumMember(Value = ("ClientCertRequested"))] ClientCertRequested, /// /// NavigationRequestNetworkError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("NavigationRequestNetworkError"))] + [EnumMember(Value = ("NavigationRequestNetworkError"))] NavigationRequestNetworkError, /// /// MaxNumOfRunningPrerendersExceeded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MaxNumOfRunningPrerendersExceeded"))] + [EnumMember(Value = ("MaxNumOfRunningPrerendersExceeded"))] MaxNumOfRunningPrerendersExceeded, /// /// CancelAllHostsForTesting /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CancelAllHostsForTesting"))] + [EnumMember(Value = ("CancelAllHostsForTesting"))] CancelAllHostsForTesting, /// /// DidFailLoad /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DidFailLoad"))] + [EnumMember(Value = ("DidFailLoad"))] DidFailLoad, /// /// Stop /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Stop"))] + [EnumMember(Value = ("Stop"))] Stop, /// /// SslCertificateError /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SslCertificateError"))] + [EnumMember(Value = ("SslCertificateError"))] SslCertificateError, /// /// LoginAuthRequested /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("LoginAuthRequested"))] + [EnumMember(Value = ("LoginAuthRequested"))] LoginAuthRequested, /// /// UaChangeRequiresReload /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("UaChangeRequiresReload"))] + [EnumMember(Value = ("UaChangeRequiresReload"))] UaChangeRequiresReload, /// /// BlockedByClient /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("BlockedByClient"))] + [EnumMember(Value = ("BlockedByClient"))] BlockedByClient, /// /// AudioOutputDeviceRequested /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("AudioOutputDeviceRequested"))] + [EnumMember(Value = ("AudioOutputDeviceRequested"))] AudioOutputDeviceRequested, /// /// MixedContent /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MixedContent"))] + [EnumMember(Value = ("MixedContent"))] MixedContent, /// /// TriggerBackgrounded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TriggerBackgrounded"))] + [EnumMember(Value = ("TriggerBackgrounded"))] TriggerBackgrounded, /// /// EmbedderTriggeredAndCrossOriginRedirected /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] + [EnumMember(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] EmbedderTriggeredAndCrossOriginRedirected, /// /// MemoryLimitExceeded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("MemoryLimitExceeded"))] + [EnumMember(Value = ("MemoryLimitExceeded"))] MemoryLimitExceeded, /// /// FailToGetMemoryUsage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("FailToGetMemoryUsage"))] + [EnumMember(Value = ("FailToGetMemoryUsage"))] FailToGetMemoryUsage, /// /// DataSaverEnabled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DataSaverEnabled"))] + [EnumMember(Value = ("DataSaverEnabled"))] DataSaverEnabled, /// /// HasEffectiveUrl /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("HasEffectiveUrl"))] + [EnumMember(Value = ("HasEffectiveUrl"))] HasEffectiveUrl, /// /// ActivatedBeforeStarted /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivatedBeforeStarted"))] + [EnumMember(Value = ("ActivatedBeforeStarted"))] ActivatedBeforeStarted, /// /// InactivePageRestriction /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("InactivePageRestriction"))] + [EnumMember(Value = ("InactivePageRestriction"))] InactivePageRestriction, /// /// StartFailed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("StartFailed"))] + [EnumMember(Value = ("StartFailed"))] StartFailed, /// /// TimeoutBackgrounded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TimeoutBackgrounded"))] + [EnumMember(Value = ("TimeoutBackgrounded"))] TimeoutBackgrounded, /// /// CrossSiteRedirect /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossSiteRedirect"))] + [EnumMember(Value = ("CrossSiteRedirect"))] CrossSiteRedirect, /// /// CrossSiteNavigation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CrossSiteNavigation"))] + [EnumMember(Value = ("CrossSiteNavigation"))] CrossSiteNavigation, /// /// SameSiteCrossOriginRedirect /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginRedirect"))] + [EnumMember(Value = ("SameSiteCrossOriginRedirect"))] SameSiteCrossOriginRedirect, /// /// SameSiteCrossOriginNavigation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginNavigation"))] + [EnumMember(Value = ("SameSiteCrossOriginNavigation"))] SameSiteCrossOriginNavigation, /// /// SameSiteCrossOriginRedirectNotOptIn /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginRedirectNotOptIn"))] + [EnumMember(Value = ("SameSiteCrossOriginRedirectNotOptIn"))] SameSiteCrossOriginRedirectNotOptIn, /// /// SameSiteCrossOriginNavigationNotOptIn /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SameSiteCrossOriginNavigationNotOptIn"))] + [EnumMember(Value = ("SameSiteCrossOriginNavigationNotOptIn"))] SameSiteCrossOriginNavigationNotOptIn, /// /// ActivationNavigationParameterMismatch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationNavigationParameterMismatch"))] + [EnumMember(Value = ("ActivationNavigationParameterMismatch"))] ActivationNavigationParameterMismatch, /// /// ActivatedInBackground /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivatedInBackground"))] + [EnumMember(Value = ("ActivatedInBackground"))] ActivatedInBackground, /// /// EmbedderHostDisallowed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbedderHostDisallowed"))] + [EnumMember(Value = ("EmbedderHostDisallowed"))] EmbedderHostDisallowed, /// /// ActivationNavigationDestroyedBeforeSuccess /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationNavigationDestroyedBeforeSuccess"))] + [EnumMember(Value = ("ActivationNavigationDestroyedBeforeSuccess"))] ActivationNavigationDestroyedBeforeSuccess, /// /// TabClosedByUserGesture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TabClosedByUserGesture"))] + [EnumMember(Value = ("TabClosedByUserGesture"))] TabClosedByUserGesture, /// /// TabClosedWithoutUserGesture /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("TabClosedWithoutUserGesture"))] + [EnumMember(Value = ("TabClosedWithoutUserGesture"))] TabClosedWithoutUserGesture, /// /// PrimaryMainFrameRendererProcessCrashed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrimaryMainFrameRendererProcessCrashed"))] + [EnumMember(Value = ("PrimaryMainFrameRendererProcessCrashed"))] PrimaryMainFrameRendererProcessCrashed, /// /// PrimaryMainFrameRendererProcessKilled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("PrimaryMainFrameRendererProcessKilled"))] + [EnumMember(Value = ("PrimaryMainFrameRendererProcessKilled"))] PrimaryMainFrameRendererProcessKilled, /// /// ActivationFramePolicyNotCompatible /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ActivationFramePolicyNotCompatible"))] - ActivationFramePolicyNotCompatible + [EnumMember(Value = ("ActivationFramePolicyNotCompatible"))] + ActivationFramePolicyNotCompatible, + /// + /// PreloadingDisabled + /// + [EnumMember(Value = ("PreloadingDisabled"))] + PreloadingDisabled, + /// + /// BatterySaverEnabled + /// + [EnumMember(Value = ("BatterySaverEnabled"))] + BatterySaverEnabled, + /// + /// ActivatedDuringMainFrameNavigation + /// + [EnumMember(Value = ("ActivatedDuringMainFrameNavigation"))] + ActivatedDuringMainFrameNavigation, + /// + /// PreloadingUnsupportedByWebContents + /// + [EnumMember(Value = ("PreloadingUnsupportedByWebContents"))] + PreloadingUnsupportedByWebContents + } + + /// + /// Preloading status values, see also PreloadingTriggeringOutcome. This + /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. + /// + public enum PreloadingStatus + { + /// + /// Pending + /// + [EnumMember(Value = ("Pending"))] + Pending, + /// + /// Running + /// + [EnumMember(Value = ("Running"))] + Running, + /// + /// Ready + /// + [EnumMember(Value = ("Ready"))] + Ready, + /// + /// Success + /// + [EnumMember(Value = ("Success"))] + Success, + /// + /// Failure + /// + [EnumMember(Value = ("Failure"))] + Failure, + /// + /// NotSupported + /// + [EnumMember(Value = ("NotSupported"))] + NotSupported } /// @@ -21380,7 +21184,7 @@ public class DomContentEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Timestamp /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -21396,12 +21200,12 @@ public enum FileChooserOpenedMode /// /// selectSingle /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("selectSingle"))] + [EnumMember(Value = ("selectSingle"))] SelectSingle, /// /// selectMultiple /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("selectMultiple"))] + [EnumMember(Value = ("selectMultiple"))] SelectMultiple } @@ -21414,7 +21218,7 @@ public class FileChooserOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the frame containing input node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21440,7 +21244,7 @@ public CefSharp.DevTools.Page.FileChooserOpenedMode Mode /// /// Input mode. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mode"), IsRequired = (true))] + [DataMember(Name = ("mode"), IsRequired = (true))] internal string mode { get; @@ -21450,7 +21254,7 @@ internal string mode /// /// Input node id. Only present for file choosers opened via an <input type="file" > element. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("backendNodeId"), IsRequired = (false))] + [DataMember(Name = ("backendNodeId"), IsRequired = (false))] public int? BackendNodeId { get; @@ -21467,7 +21271,7 @@ public class FrameAttachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Id of the frame that has been attached. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21477,7 +21281,7 @@ public string FrameId /// /// Parent frame identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentFrameId"), IsRequired = (true))] + [DataMember(Name = ("parentFrameId"), IsRequired = (true))] public string ParentFrameId { get; @@ -21487,7 +21291,7 @@ public string ParentFrameId /// /// JavaScript stack trace of when frame was attached, only set if frame initiated from script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stack"), IsRequired = (false))] + [DataMember(Name = ("stack"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace Stack { get; @@ -21504,7 +21308,7 @@ public class FrameClearedScheduledNavigationEventArgs : CefSharp.DevTools.DevToo /// /// Id of the frame that has cleared its scheduled navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21520,12 +21324,12 @@ public enum FrameDetachedReason /// /// remove /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("remove"))] + [EnumMember(Value = ("remove"))] Remove, /// /// swap /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("swap"))] + [EnumMember(Value = ("swap"))] Swap } @@ -21538,7 +21342,7 @@ public class FrameDetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Id of the frame that has been detached. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21564,7 +21368,7 @@ public CefSharp.DevTools.Page.FrameDetachedReason Reason /// /// Reason /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] internal string reason { get; @@ -21581,7 +21385,7 @@ public class FrameNavigatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Frame object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (true))] + [DataMember(Name = ("frame"), IsRequired = (true))] public CefSharp.DevTools.Page.Frame Frame { get; @@ -21607,7 +21411,7 @@ public CefSharp.DevTools.Page.NavigationType Type /// /// Type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -21624,7 +21428,7 @@ public class DocumentOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Frame object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frame"), IsRequired = (true))] + [DataMember(Name = ("frame"), IsRequired = (true))] public CefSharp.DevTools.Page.Frame Frame { get; @@ -21642,7 +21446,7 @@ public class FrameRequestedNavigationEventArgs : CefSharp.DevTools.DevToolsDomai /// /// Id of the frame that is being navigated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21668,7 +21472,7 @@ public CefSharp.DevTools.Page.ClientNavigationReason Reason /// /// The reason for the navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] internal string reason { get; @@ -21678,7 +21482,7 @@ internal string reason /// /// The destination URL for the requested navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -21704,7 +21508,7 @@ public CefSharp.DevTools.Page.ClientNavigationDisposition Disposition /// /// The disposition for the navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("disposition"), IsRequired = (true))] + [DataMember(Name = ("disposition"), IsRequired = (true))] internal string disposition { get; @@ -21721,7 +21525,7 @@ public class FrameScheduledNavigationEventArgs : CefSharp.DevTools.DevToolsDomai /// /// Id of the frame that has scheduled a navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21732,7 +21536,7 @@ public string FrameId /// Delay (in seconds) until the navigation is scheduled to begin. The navigation is not /// guaranteed to start. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("delay"), IsRequired = (true))] + [DataMember(Name = ("delay"), IsRequired = (true))] public double Delay { get; @@ -21758,7 +21562,7 @@ public CefSharp.DevTools.Page.ClientNavigationReason Reason /// /// The reason for the navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] internal string reason { get; @@ -21768,7 +21572,7 @@ internal string reason /// /// The destination URL for the scheduled navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -21785,7 +21589,7 @@ public class FrameStartedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Id of the frame that has started loading. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21802,7 +21606,7 @@ public class FrameStoppedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Id of the frame that has stopped loading. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21820,7 +21624,7 @@ public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the frame that caused download to begin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -21830,7 +21634,7 @@ public string FrameId /// /// Global unique identifier of the download. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + [DataMember(Name = ("guid"), IsRequired = (true))] public string Guid { get; @@ -21840,7 +21644,7 @@ public string Guid /// /// URL of the resource being downloaded. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -21850,7 +21654,7 @@ public string Url /// /// Suggested file name of the resource (the actual name of the file saved on disk may differ). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("suggestedFilename"), IsRequired = (true))] + [DataMember(Name = ("suggestedFilename"), IsRequired = (true))] public string SuggestedFilename { get; @@ -21866,17 +21670,17 @@ public enum DownloadProgressState /// /// inProgress /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("inProgress"))] + [EnumMember(Value = ("inProgress"))] InProgress, /// /// completed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("completed"))] + [EnumMember(Value = ("completed"))] Completed, /// /// canceled /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("canceled"))] + [EnumMember(Value = ("canceled"))] Canceled } @@ -21890,7 +21694,7 @@ public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Global unique identifier of the download. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("guid"), IsRequired = (true))] + [DataMember(Name = ("guid"), IsRequired = (true))] public string Guid { get; @@ -21900,7 +21704,7 @@ public string Guid /// /// Total expected bytes to download. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("totalBytes"), IsRequired = (true))] + [DataMember(Name = ("totalBytes"), IsRequired = (true))] public double TotalBytes { get; @@ -21910,7 +21714,7 @@ public double TotalBytes /// /// Total bytes received. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("receivedBytes"), IsRequired = (true))] + [DataMember(Name = ("receivedBytes"), IsRequired = (true))] public double ReceivedBytes { get; @@ -21936,7 +21740,7 @@ public CefSharp.DevTools.Page.DownloadProgressState State /// /// Download status. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("state"), IsRequired = (true))] + [DataMember(Name = ("state"), IsRequired = (true))] internal string state { get; @@ -21954,7 +21758,7 @@ public class JavascriptDialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Whether dialog was confirmed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("result"), IsRequired = (true))] + [DataMember(Name = ("result"), IsRequired = (true))] public bool Result { get; @@ -21964,7 +21768,7 @@ public bool Result /// /// User input in case of prompt. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("userInput"), IsRequired = (true))] + [DataMember(Name = ("userInput"), IsRequired = (true))] public string UserInput { get; @@ -21982,7 +21786,7 @@ public class JavascriptDialogOpeningEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Frame url. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -21992,7 +21796,7 @@ public string Url /// /// Message that will be displayed by the dialog. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + [DataMember(Name = ("message"), IsRequired = (true))] public string Message { get; @@ -22018,7 +21822,7 @@ public CefSharp.DevTools.Page.DialogType Type /// /// Dialog type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -22030,7 +21834,7 @@ internal string type /// dialog handler for given target, calling alert while Page domain is engaged will stall /// the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasBrowserHandler"), IsRequired = (true))] + [DataMember(Name = ("hasBrowserHandler"), IsRequired = (true))] public bool HasBrowserHandler { get; @@ -22040,7 +21844,7 @@ public bool HasBrowserHandler /// /// Default dialog prompt. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("defaultPrompt"), IsRequired = (false))] + [DataMember(Name = ("defaultPrompt"), IsRequired = (false))] public string DefaultPrompt { get; @@ -22057,7 +21861,7 @@ public class LifecycleEventEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Id of the frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -22067,7 +21871,7 @@ public string FrameId /// /// Loader identifier. Empty string if the request is fetched from worker. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + [DataMember(Name = ("loaderId"), IsRequired = (true))] public string LoaderId { get; @@ -22077,7 +21881,7 @@ public string LoaderId /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -22087,7 +21891,7 @@ public string Name /// /// Timestamp /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -22107,7 +21911,7 @@ public class BackForwardCacheNotUsedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// The loader id for the associated navgation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("loaderId"), IsRequired = (true))] + [DataMember(Name = ("loaderId"), IsRequired = (true))] public string LoaderId { get; @@ -22117,7 +21921,7 @@ public string LoaderId /// /// The frame id of the associated frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -22127,7 +21931,7 @@ public string FrameId /// /// Array of reasons why the page could not be cached. This must not be empty. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("notRestoredExplanations"), IsRequired = (true))] + [DataMember(Name = ("notRestoredExplanations"), IsRequired = (true))] public System.Collections.Generic.IList NotRestoredExplanations { get; @@ -22137,7 +21941,7 @@ public System.Collections.Generic.IList /// Tree structure of reasons why the page could not be cached for each frame. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("notRestoredExplanationsTree"), IsRequired = (false))] + [DataMember(Name = ("notRestoredExplanationsTree"), IsRequired = (false))] public CefSharp.DevTools.Page.BackForwardCacheNotRestoredExplanationTree NotRestoredExplanationsTree { get; @@ -22154,7 +21958,7 @@ public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// The frame id of the frame initiating prerendering. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("initiatingFrameId"), IsRequired = (true))] + [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] public string InitiatingFrameId { get; @@ -22164,7 +21968,7 @@ public string InitiatingFrameId /// /// PrerenderingUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("prerenderingUrl"), IsRequired = (true))] + [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] public string PrerenderingUrl { get; @@ -22190,7 +21994,7 @@ public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus /// /// FinalStatus /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("finalStatus"), IsRequired = (true))] + [DataMember(Name = ("finalStatus"), IsRequired = (true))] internal string finalStatus { get; @@ -22201,7 +22005,7 @@ internal string finalStatus /// This is used to give users more information about the name of the API call /// that is incompatible with prerender and has caused the cancellation of the attempt ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("disallowedApiMethod"), IsRequired = (false))] + [DataMember(Name = ("disallowedApiMethod"), IsRequired = (false))] public string DisallowedApiMethod { get; @@ -22209,6 +22013,114 @@ public string DisallowedApiMethod } } + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prefetch attempt is updated. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PrefetchStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The frame id of the frame initiating prefetch. + /// + [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrefetchUrl + /// + [DataMember(Name = ("prefetchUrl"), IsRequired = (true))] + public string PrefetchUrl + { + get; + private set; + } + + /// + /// Status + /// + public CefSharp.DevTools.Page.PreloadingStatus Status + { + get + { + return (CefSharp.DevTools.Page.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Page.PreloadingStatus), status)); + } + + set + { + this.status = (EnumToString(value)); + } + } + + /// + /// Status + /// + [DataMember(Name = ("status"), IsRequired = (true))] + internal string status + { + get; + private set; + } + } + + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prerender attempt is updated. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PrerenderStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The frame id of the frame initiating prerender. + /// + [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrerenderingUrl + /// + [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] + public string PrerenderingUrl + { + get; + private set; + } + + /// + /// Status + /// + public CefSharp.DevTools.Page.PreloadingStatus Status + { + get + { + return (CefSharp.DevTools.Page.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Page.PreloadingStatus), status)); + } + + set + { + this.status = (EnumToString(value)); + } + } + + /// + /// Status + /// + [DataMember(Name = ("status"), IsRequired = (true))] + internal string status + { + get; + private set; + } + } + /// /// loadEventFired /// @@ -22218,7 +22130,7 @@ public class LoadEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Timestamp /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -22235,7 +22147,7 @@ public class NavigatedWithinDocumentEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Id of the frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -22245,7 +22157,7 @@ public string FrameId /// /// Frame's new url. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -22262,7 +22174,7 @@ public class ScreencastFrameEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Base64-encoded compressed image. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + [DataMember(Name = ("data"), IsRequired = (true))] public byte[] Data { get; @@ -22272,7 +22184,7 @@ public byte[] Data /// /// Screencast frame metadata. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("metadata"), IsRequired = (true))] + [DataMember(Name = ("metadata"), IsRequired = (true))] public CefSharp.DevTools.Page.ScreencastFrameMetadata Metadata { get; @@ -22282,7 +22194,7 @@ public CefSharp.DevTools.Page.ScreencastFrameMetadata Metadata /// /// Frame number. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + [DataMember(Name = ("sessionId"), IsRequired = (true))] public int SessionId { get; @@ -22299,7 +22211,7 @@ public class ScreencastVisibilityChangedEventArgs : CefSharp.DevTools.DevToolsDo /// /// True if the page is visible. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("visible"), IsRequired = (true))] + [DataMember(Name = ("visible"), IsRequired = (true))] public bool Visible { get; @@ -22317,7 +22229,7 @@ public class WindowOpenEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// The URL for the new window. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -22327,7 +22239,7 @@ public string Url /// /// Window name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("windowName"), IsRequired = (true))] + [DataMember(Name = ("windowName"), IsRequired = (true))] public string WindowName { get; @@ -22337,7 +22249,7 @@ public string WindowName /// /// An array of enabled window features. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("windowFeatures"), IsRequired = (true))] + [DataMember(Name = ("windowFeatures"), IsRequired = (true))] public string[] WindowFeatures { get; @@ -22347,7 +22259,7 @@ public string[] WindowFeatures /// /// Whether or not it was triggered by user gesture. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("userGesture"), IsRequired = (true))] + [DataMember(Name = ("userGesture"), IsRequired = (true))] public bool UserGesture { get; @@ -22365,7 +22277,7 @@ public class CompilationCacheProducedEventArgs : CefSharp.DevTools.DevToolsDomai /// /// Url /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -22375,7 +22287,7 @@ public string Url /// /// Base64-encoded data /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + [DataMember(Name = ("data"), IsRequired = (true))] public byte[] Data { get; @@ -22395,7 +22307,7 @@ public partial class Metric : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Metric name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -22405,7 +22317,7 @@ public string Name /// /// Metric value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public double Value { get; @@ -22422,7 +22334,7 @@ public class MetricsEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Current values of the metrics. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("metrics"), IsRequired = (true))] + [DataMember(Name = ("metrics"), IsRequired = (true))] public System.Collections.Generic.IList Metrics { get; @@ -22432,7 +22344,7 @@ public System.Collections.Generic.IList Me /// /// Timestamp title. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] + [DataMember(Name = ("title"), IsRequired = (true))] public string Title { get; @@ -22452,7 +22364,7 @@ public partial class LargestContentfulPaint : CefSharp.DevTools.DevToolsDomainEn /// /// RenderTime /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("renderTime"), IsRequired = (true))] + [DataMember(Name = ("renderTime"), IsRequired = (true))] public double RenderTime { get; @@ -22462,7 +22374,7 @@ public double RenderTime /// /// LoadTime /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("loadTime"), IsRequired = (true))] + [DataMember(Name = ("loadTime"), IsRequired = (true))] public double LoadTime { get; @@ -22472,7 +22384,7 @@ public double LoadTime /// /// The number of pixels being painted. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] + [DataMember(Name = ("size"), IsRequired = (true))] public double Size { get; @@ -22482,7 +22394,7 @@ public double Size /// /// The id attribute of the element, if available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("elementId"), IsRequired = (false))] + [DataMember(Name = ("elementId"), IsRequired = (false))] public string ElementId { get; @@ -22492,7 +22404,7 @@ public string ElementId /// /// The URL of the image (may be trimmed). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (false))] + [DataMember(Name = ("url"), IsRequired = (false))] public string Url { get; @@ -22502,7 +22414,7 @@ public string Url /// /// NodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (false))] + [DataMember(Name = ("nodeId"), IsRequired = (false))] public int? NodeId { get; @@ -22519,7 +22431,7 @@ public partial class LayoutShiftAttribution : CefSharp.DevTools.DevToolsDomainEn /// /// PreviousRect /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("previousRect"), IsRequired = (true))] + [DataMember(Name = ("previousRect"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect PreviousRect { get; @@ -22529,7 +22441,7 @@ public CefSharp.DevTools.DOM.Rect PreviousRect /// /// CurrentRect /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentRect"), IsRequired = (true))] + [DataMember(Name = ("currentRect"), IsRequired = (true))] public CefSharp.DevTools.DOM.Rect CurrentRect { get; @@ -22539,7 +22451,7 @@ public CefSharp.DevTools.DOM.Rect CurrentRect /// /// NodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (false))] + [DataMember(Name = ("nodeId"), IsRequired = (false))] public int? NodeId { get; @@ -22556,7 +22468,7 @@ public partial class LayoutShift : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Score increment produced by this event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public double Value { get; @@ -22566,7 +22478,7 @@ public double Value /// /// HadRecentInput /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hadRecentInput"), IsRequired = (true))] + [DataMember(Name = ("hadRecentInput"), IsRequired = (true))] public bool HadRecentInput { get; @@ -22576,7 +22488,7 @@ public bool HadRecentInput /// /// LastInputTime /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lastInputTime"), IsRequired = (true))] + [DataMember(Name = ("lastInputTime"), IsRequired = (true))] public double LastInputTime { get; @@ -22586,7 +22498,7 @@ public double LastInputTime /// /// Sources /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sources"), IsRequired = (true))] + [DataMember(Name = ("sources"), IsRequired = (true))] public System.Collections.Generic.IList Sources { get; @@ -22603,7 +22515,7 @@ public partial class TimelineEvent : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Identifies the frame that this event is related to. Empty for non-frame targets. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -22614,7 +22526,7 @@ public string FrameId /// The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype /// This determines which of the optional "details" fiedls is present. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] public string Type { get; @@ -22624,7 +22536,7 @@ public string Type /// /// Name may be empty depending on the type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -22634,7 +22546,7 @@ public string Name /// /// Time in seconds since Epoch, monotonically increasing within document lifetime. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("time"), IsRequired = (true))] + [DataMember(Name = ("time"), IsRequired = (true))] public double Time { get; @@ -22644,7 +22556,7 @@ public double Time /// /// Event duration, if applicable. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("duration"), IsRequired = (false))] + [DataMember(Name = ("duration"), IsRequired = (false))] public double? Duration { get; @@ -22654,7 +22566,7 @@ public double? Duration /// /// LcpDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lcpDetails"), IsRequired = (false))] + [DataMember(Name = ("lcpDetails"), IsRequired = (false))] public CefSharp.DevTools.PerformanceTimeline.LargestContentfulPaint LcpDetails { get; @@ -22664,7 +22576,7 @@ public CefSharp.DevTools.PerformanceTimeline.LargestContentfulPaint LcpDetails /// /// LayoutShiftDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("layoutShiftDetails"), IsRequired = (false))] + [DataMember(Name = ("layoutShiftDetails"), IsRequired = (false))] public CefSharp.DevTools.PerformanceTimeline.LayoutShift LayoutShiftDetails { get; @@ -22681,7 +22593,7 @@ public class TimelineEventAddedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Event /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("event"), IsRequired = (true))] + [DataMember(Name = ("event"), IsRequired = (true))] public CefSharp.DevTools.PerformanceTimeline.TimelineEvent Event { get; @@ -22701,17 +22613,17 @@ public enum MixedContentType /// /// blockable /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("blockable"))] + [EnumMember(Value = ("blockable"))] Blockable, /// /// optionally-blockable /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("optionally-blockable"))] + [EnumMember(Value = ("optionally-blockable"))] OptionallyBlockable, /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None } @@ -22723,32 +22635,32 @@ public enum SecurityState /// /// unknown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unknown"))] + [EnumMember(Value = ("unknown"))] Unknown, /// /// neutral /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("neutral"))] + [EnumMember(Value = ("neutral"))] Neutral, /// /// insecure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("insecure"))] + [EnumMember(Value = ("insecure"))] Insecure, /// /// secure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("secure"))] + [EnumMember(Value = ("secure"))] Secure, /// /// info /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("info"))] + [EnumMember(Value = ("info"))] Info, /// /// insecure-broken /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("insecure-broken"))] + [EnumMember(Value = ("insecure-broken"))] InsecureBroken } @@ -22761,7 +22673,7 @@ public partial class CertificateSecurityState : CefSharp.DevTools.DevToolsDomain /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("protocol"), IsRequired = (true))] + [DataMember(Name = ("protocol"), IsRequired = (true))] public string Protocol { get; @@ -22771,7 +22683,7 @@ public string Protocol /// /// Key Exchange used by the connection, or the empty string if not applicable. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyExchange"), IsRequired = (true))] + [DataMember(Name = ("keyExchange"), IsRequired = (true))] public string KeyExchange { get; @@ -22781,7 +22693,7 @@ public string KeyExchange /// /// (EC)DH group used by the connection, if applicable. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("keyExchangeGroup"), IsRequired = (false))] + [DataMember(Name = ("keyExchangeGroup"), IsRequired = (false))] public string KeyExchangeGroup { get; @@ -22791,7 +22703,7 @@ public string KeyExchangeGroup /// /// Cipher name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cipher"), IsRequired = (true))] + [DataMember(Name = ("cipher"), IsRequired = (true))] public string Cipher { get; @@ -22801,7 +22713,7 @@ public string Cipher /// /// TLS MAC. Note that AEAD ciphers do not have separate MACs. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mac"), IsRequired = (false))] + [DataMember(Name = ("mac"), IsRequired = (false))] public string Mac { get; @@ -22811,7 +22723,7 @@ public string Mac /// /// Page certificate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificate"), IsRequired = (true))] + [DataMember(Name = ("certificate"), IsRequired = (true))] public string[] Certificate { get; @@ -22821,7 +22733,7 @@ public string[] Certificate /// /// Certificate subject name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subjectName"), IsRequired = (true))] + [DataMember(Name = ("subjectName"), IsRequired = (true))] public string SubjectName { get; @@ -22831,7 +22743,7 @@ public string SubjectName /// /// Name of the issuing CA. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuer"), IsRequired = (true))] + [DataMember(Name = ("issuer"), IsRequired = (true))] public string Issuer { get; @@ -22841,7 +22753,7 @@ public string Issuer /// /// Certificate valid from date. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("validFrom"), IsRequired = (true))] + [DataMember(Name = ("validFrom"), IsRequired = (true))] public double ValidFrom { get; @@ -22851,7 +22763,7 @@ public double ValidFrom /// /// Certificate valid to (expiration) date /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("validTo"), IsRequired = (true))] + [DataMember(Name = ("validTo"), IsRequired = (true))] public double ValidTo { get; @@ -22861,7 +22773,7 @@ public double ValidTo /// /// The highest priority network error code, if the certificate has an error. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificateNetworkError"), IsRequired = (false))] + [DataMember(Name = ("certificateNetworkError"), IsRequired = (false))] public string CertificateNetworkError { get; @@ -22871,7 +22783,7 @@ public string CertificateNetworkError /// /// True if the certificate uses a weak signature aglorithm. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificateHasWeakSignature"), IsRequired = (true))] + [DataMember(Name = ("certificateHasWeakSignature"), IsRequired = (true))] public bool CertificateHasWeakSignature { get; @@ -22881,7 +22793,7 @@ public bool CertificateHasWeakSignature /// /// True if the certificate has a SHA1 signature in the chain. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificateHasSha1Signature"), IsRequired = (true))] + [DataMember(Name = ("certificateHasSha1Signature"), IsRequired = (true))] public bool CertificateHasSha1Signature { get; @@ -22891,7 +22803,7 @@ public bool CertificateHasSha1Signature /// /// True if modern SSL /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("modernSSL"), IsRequired = (true))] + [DataMember(Name = ("modernSSL"), IsRequired = (true))] public bool ModernSSL { get; @@ -22901,7 +22813,7 @@ public bool ModernSSL /// /// True if the connection is using an obsolete SSL protocol. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("obsoleteSslProtocol"), IsRequired = (true))] + [DataMember(Name = ("obsoleteSslProtocol"), IsRequired = (true))] public bool ObsoleteSslProtocol { get; @@ -22911,7 +22823,7 @@ public bool ObsoleteSslProtocol /// /// True if the connection is using an obsolete SSL key exchange. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("obsoleteSslKeyExchange"), IsRequired = (true))] + [DataMember(Name = ("obsoleteSslKeyExchange"), IsRequired = (true))] public bool ObsoleteSslKeyExchange { get; @@ -22921,7 +22833,7 @@ public bool ObsoleteSslKeyExchange /// /// True if the connection is using an obsolete SSL cipher. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("obsoleteSslCipher"), IsRequired = (true))] + [DataMember(Name = ("obsoleteSslCipher"), IsRequired = (true))] public bool ObsoleteSslCipher { get; @@ -22931,7 +22843,7 @@ public bool ObsoleteSslCipher /// /// True if the connection is using an obsolete SSL signature. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("obsoleteSslSignature"), IsRequired = (true))] + [DataMember(Name = ("obsoleteSslSignature"), IsRequired = (true))] public bool ObsoleteSslSignature { get; @@ -22947,12 +22859,12 @@ public enum SafetyTipStatus /// /// badReputation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("badReputation"))] + [EnumMember(Value = ("badReputation"))] BadReputation, /// /// lookalike /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("lookalike"))] + [EnumMember(Value = ("lookalike"))] Lookalike } @@ -22981,7 +22893,7 @@ public CefSharp.DevTools.Security.SafetyTipStatus SafetyTipStatus /// /// Describes whether the page triggers any safety tips or reputation warnings. Default is unknown. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("safetyTipStatus"), IsRequired = (true))] + [DataMember(Name = ("safetyTipStatus"), IsRequired = (true))] internal string safetyTipStatus { get; @@ -22991,7 +22903,7 @@ internal string safetyTipStatus /// /// The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("safeUrl"), IsRequired = (false))] + [DataMember(Name = ("safeUrl"), IsRequired = (false))] public string SafeUrl { get; @@ -23024,7 +22936,7 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// The security level of the page. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityState"), IsRequired = (true))] + [DataMember(Name = ("securityState"), IsRequired = (true))] internal string securityState { get; @@ -23034,7 +22946,7 @@ internal string securityState /// /// Security state details about the page certificate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificateSecurityState"), IsRequired = (false))] + [DataMember(Name = ("certificateSecurityState"), IsRequired = (false))] public CefSharp.DevTools.Security.CertificateSecurityState CertificateSecurityState { get; @@ -23044,7 +22956,7 @@ public CefSharp.DevTools.Security.CertificateSecurityState CertificateSecuritySt /// /// The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("safetyTipInfo"), IsRequired = (false))] + [DataMember(Name = ("safetyTipInfo"), IsRequired = (false))] public CefSharp.DevTools.Security.SafetyTipInfo SafetyTipInfo { get; @@ -23054,7 +22966,7 @@ public CefSharp.DevTools.Security.SafetyTipInfo SafetyTipInfo /// /// Array of security state issues ids. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityStateIssueIds"), IsRequired = (true))] + [DataMember(Name = ("securityStateIssueIds"), IsRequired = (true))] public string[] SecurityStateIssueIds { get; @@ -23087,7 +22999,7 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// Security state representing the severity of the factor being explained. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityState"), IsRequired = (true))] + [DataMember(Name = ("securityState"), IsRequired = (true))] internal string securityState { get; @@ -23097,7 +23009,7 @@ internal string securityState /// /// Title describing the type of factor. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] + [DataMember(Name = ("title"), IsRequired = (true))] public string Title { get; @@ -23107,7 +23019,7 @@ public string Title /// /// Short phrase describing the type of factor. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("summary"), IsRequired = (true))] + [DataMember(Name = ("summary"), IsRequired = (true))] public string Summary { get; @@ -23117,7 +23029,7 @@ public string Summary /// /// Full text explanation of the factor. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("description"), IsRequired = (true))] + [DataMember(Name = ("description"), IsRequired = (true))] public string Description { get; @@ -23143,7 +23055,7 @@ public CefSharp.DevTools.Security.MixedContentType MixedContentType /// /// The type of mixed content described by the explanation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mixedContentType"), IsRequired = (true))] + [DataMember(Name = ("mixedContentType"), IsRequired = (true))] internal string mixedContentType { get; @@ -23153,7 +23065,7 @@ internal string mixedContentType /// /// Page certificate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("certificate"), IsRequired = (true))] + [DataMember(Name = ("certificate"), IsRequired = (true))] public string[] Certificate { get; @@ -23163,7 +23075,7 @@ public string[] Certificate /// /// Recommendations to fix any issues. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("recommendations"), IsRequired = (false))] + [DataMember(Name = ("recommendations"), IsRequired = (false))] public string[] Recommendations { get; @@ -23180,7 +23092,7 @@ public partial class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEnt /// /// Always false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ranMixedContent"), IsRequired = (true))] + [DataMember(Name = ("ranMixedContent"), IsRequired = (true))] public bool RanMixedContent { get; @@ -23190,7 +23102,7 @@ public bool RanMixedContent /// /// Always false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("displayedMixedContent"), IsRequired = (true))] + [DataMember(Name = ("displayedMixedContent"), IsRequired = (true))] public bool DisplayedMixedContent { get; @@ -23200,7 +23112,7 @@ public bool DisplayedMixedContent /// /// Always false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("containedMixedForm"), IsRequired = (true))] + [DataMember(Name = ("containedMixedForm"), IsRequired = (true))] public bool ContainedMixedForm { get; @@ -23210,7 +23122,7 @@ public bool ContainedMixedForm /// /// Always false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ranContentWithCertErrors"), IsRequired = (true))] + [DataMember(Name = ("ranContentWithCertErrors"), IsRequired = (true))] public bool RanContentWithCertErrors { get; @@ -23220,7 +23132,7 @@ public bool RanContentWithCertErrors /// /// Always false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("displayedContentWithCertErrors"), IsRequired = (true))] + [DataMember(Name = ("displayedContentWithCertErrors"), IsRequired = (true))] public bool DisplayedContentWithCertErrors { get; @@ -23246,7 +23158,7 @@ public CefSharp.DevTools.Security.SecurityState RanInsecureContentStyle /// /// Always set to unknown. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ranInsecureContentStyle"), IsRequired = (true))] + [DataMember(Name = ("ranInsecureContentStyle"), IsRequired = (true))] internal string ranInsecureContentStyle { get; @@ -23272,7 +23184,7 @@ public CefSharp.DevTools.Security.SecurityState DisplayedInsecureContentStyle /// /// Always set to unknown. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("displayedInsecureContentStyle"), IsRequired = (true))] + [DataMember(Name = ("displayedInsecureContentStyle"), IsRequired = (true))] internal string displayedInsecureContentStyle { get; @@ -23289,12 +23201,12 @@ public enum CertificateErrorAction /// /// continue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("continue"))] + [EnumMember(Value = ("continue"))] Continue, /// /// cancel /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cancel"))] + [EnumMember(Value = ("cancel"))] Cancel } @@ -23310,7 +23222,7 @@ public class CertificateErrorEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// The ID of the event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventId"), IsRequired = (true))] + [DataMember(Name = ("eventId"), IsRequired = (true))] public int EventId { get; @@ -23320,7 +23232,7 @@ public int EventId /// /// The type of the error. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorType"), IsRequired = (true))] + [DataMember(Name = ("errorType"), IsRequired = (true))] public string ErrorType { get; @@ -23330,7 +23242,7 @@ public string ErrorType /// /// The url that was requested. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestURL"), IsRequired = (true))] + [DataMember(Name = ("requestURL"), IsRequired = (true))] public string RequestURL { get; @@ -23347,7 +23259,7 @@ public class VisibleSecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDo /// /// Security state information about the page. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("visibleSecurityState"), IsRequired = (true))] + [DataMember(Name = ("visibleSecurityState"), IsRequired = (true))] public CefSharp.DevTools.Security.VisibleSecurityState VisibleSecurityState { get; @@ -23380,7 +23292,7 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// Security state. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("securityState"), IsRequired = (true))] + [DataMember(Name = ("securityState"), IsRequired = (true))] internal string securityState { get; @@ -23390,7 +23302,7 @@ internal string securityState /// /// True if the page was loaded over cryptographic transport such as HTTPS. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("schemeIsCryptographic"), IsRequired = (true))] + [DataMember(Name = ("schemeIsCryptographic"), IsRequired = (true))] public bool SchemeIsCryptographic { get; @@ -23401,7 +23313,7 @@ public bool SchemeIsCryptographic /// Previously a list of explanations for the security state. Now always /// empty. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("explanations"), IsRequired = (true))] + [DataMember(Name = ("explanations"), IsRequired = (true))] public System.Collections.Generic.IList Explanations { get; @@ -23411,7 +23323,7 @@ public System.Collections.Generic.IList /// Information about insecure content on the page. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("insecureContentStatus"), IsRequired = (true))] + [DataMember(Name = ("insecureContentStatus"), IsRequired = (true))] public CefSharp.DevTools.Security.InsecureContentStatus InsecureContentStatus { get; @@ -23421,7 +23333,7 @@ public CefSharp.DevTools.Security.InsecureContentStatus InsecureContentStatus /// /// Overrides user-visible description of the state. Always omitted. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("summary"), IsRequired = (false))] + [DataMember(Name = ("summary"), IsRequired = (false))] public string Summary { get; @@ -23441,7 +23353,7 @@ public partial class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomai /// /// RegistrationId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("registrationId"), IsRequired = (true))] + [DataMember(Name = ("registrationId"), IsRequired = (true))] public string RegistrationId { get; @@ -23451,7 +23363,7 @@ public string RegistrationId /// /// ScopeURL /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scopeURL"), IsRequired = (true))] + [DataMember(Name = ("scopeURL"), IsRequired = (true))] public string ScopeURL { get; @@ -23461,7 +23373,7 @@ public string ScopeURL /// /// IsDeleted /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isDeleted"), IsRequired = (true))] + [DataMember(Name = ("isDeleted"), IsRequired = (true))] public bool IsDeleted { get; @@ -23477,22 +23389,22 @@ public enum ServiceWorkerVersionRunningStatus /// /// stopped /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("stopped"))] + [EnumMember(Value = ("stopped"))] Stopped, /// /// starting /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("starting"))] + [EnumMember(Value = ("starting"))] Starting, /// /// running /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("running"))] + [EnumMember(Value = ("running"))] Running, /// /// stopping /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("stopping"))] + [EnumMember(Value = ("stopping"))] Stopping } @@ -23504,32 +23416,32 @@ public enum ServiceWorkerVersionStatus /// /// new /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("new"))] + [EnumMember(Value = ("new"))] New, /// /// installing /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("installing"))] + [EnumMember(Value = ("installing"))] Installing, /// /// installed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("installed"))] + [EnumMember(Value = ("installed"))] Installed, /// /// activating /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("activating"))] + [EnumMember(Value = ("activating"))] Activating, /// /// activated /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("activated"))] + [EnumMember(Value = ("activated"))] Activated, /// /// redundant /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("redundant"))] + [EnumMember(Value = ("redundant"))] Redundant } @@ -23542,7 +23454,7 @@ public partial class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEnti /// /// VersionId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("versionId"), IsRequired = (true))] + [DataMember(Name = ("versionId"), IsRequired = (true))] public string VersionId { get; @@ -23552,7 +23464,7 @@ public string VersionId /// /// RegistrationId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("registrationId"), IsRequired = (true))] + [DataMember(Name = ("registrationId"), IsRequired = (true))] public string RegistrationId { get; @@ -23562,7 +23474,7 @@ public string RegistrationId /// /// ScriptURL /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptURL"), IsRequired = (true))] + [DataMember(Name = ("scriptURL"), IsRequired = (true))] public string ScriptURL { get; @@ -23588,7 +23500,7 @@ public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionRunningStatus Running /// /// RunningStatus /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("runningStatus"), IsRequired = (true))] + [DataMember(Name = ("runningStatus"), IsRequired = (true))] internal string runningStatus { get; @@ -23614,7 +23526,7 @@ public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionStatus Status /// /// Status /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] internal string status { get; @@ -23624,7 +23536,7 @@ internal string status /// /// The Last-Modified header value of the main script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptLastModified"), IsRequired = (false))] + [DataMember(Name = ("scriptLastModified"), IsRequired = (false))] public double? ScriptLastModified { get; @@ -23635,7 +23547,7 @@ public double? ScriptLastModified /// The time at which the response headers of the main script were received from the server. /// For cached script it is the last time the cache entry was validated. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptResponseTime"), IsRequired = (false))] + [DataMember(Name = ("scriptResponseTime"), IsRequired = (false))] public double? ScriptResponseTime { get; @@ -23645,7 +23557,7 @@ public double? ScriptResponseTime /// /// ControlledClients /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("controlledClients"), IsRequired = (false))] + [DataMember(Name = ("controlledClients"), IsRequired = (false))] public string[] ControlledClients { get; @@ -23655,7 +23567,7 @@ public string[] ControlledClients /// /// TargetId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (false))] + [DataMember(Name = ("targetId"), IsRequired = (false))] public string TargetId { get; @@ -23672,7 +23584,7 @@ public partial class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomai /// /// ErrorMessage /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorMessage"), IsRequired = (true))] + [DataMember(Name = ("errorMessage"), IsRequired = (true))] public string ErrorMessage { get; @@ -23682,7 +23594,7 @@ public string ErrorMessage /// /// RegistrationId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("registrationId"), IsRequired = (true))] + [DataMember(Name = ("registrationId"), IsRequired = (true))] public string RegistrationId { get; @@ -23692,7 +23604,7 @@ public string RegistrationId /// /// VersionId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("versionId"), IsRequired = (true))] + [DataMember(Name = ("versionId"), IsRequired = (true))] public string VersionId { get; @@ -23702,7 +23614,7 @@ public string VersionId /// /// SourceURL /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceURL"), IsRequired = (true))] + [DataMember(Name = ("sourceURL"), IsRequired = (true))] public string SourceURL { get; @@ -23712,7 +23624,7 @@ public string SourceURL /// /// LineNumber /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -23722,7 +23634,7 @@ public int LineNumber /// /// ColumnNumber /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (true))] + [DataMember(Name = ("columnNumber"), IsRequired = (true))] public int ColumnNumber { get; @@ -23739,7 +23651,7 @@ public class WorkerErrorReportedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// ErrorMessage /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorMessage"), IsRequired = (true))] + [DataMember(Name = ("errorMessage"), IsRequired = (true))] public CefSharp.DevTools.ServiceWorker.ServiceWorkerErrorMessage ErrorMessage { get; @@ -23756,7 +23668,7 @@ public class WorkerRegistrationUpdatedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Registrations /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("registrations"), IsRequired = (true))] + [DataMember(Name = ("registrations"), IsRequired = (true))] public System.Collections.Generic.IList Registrations { get; @@ -23773,7 +23685,7 @@ public class WorkerVersionUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Versions /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("versions"), IsRequired = (true))] + [DataMember(Name = ("versions"), IsRequired = (true))] public System.Collections.Generic.IList Versions { get; @@ -23792,67 +23704,67 @@ public enum StorageType /// /// appcache /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("appcache"))] + [EnumMember(Value = ("appcache"))] Appcache, /// /// cookies /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cookies"))] + [EnumMember(Value = ("cookies"))] Cookies, /// /// file_systems /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("file_systems"))] + [EnumMember(Value = ("file_systems"))] FileSystems, /// /// indexeddb /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("indexeddb"))] + [EnumMember(Value = ("indexeddb"))] Indexeddb, /// /// local_storage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("local_storage"))] + [EnumMember(Value = ("local_storage"))] LocalStorage, /// /// shader_cache /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shader_cache"))] + [EnumMember(Value = ("shader_cache"))] ShaderCache, /// /// websql /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("websql"))] + [EnumMember(Value = ("websql"))] Websql, /// /// service_workers /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("service_workers"))] + [EnumMember(Value = ("service_workers"))] ServiceWorkers, /// /// cache_storage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cache_storage"))] + [EnumMember(Value = ("cache_storage"))] CacheStorage, /// /// interest_groups /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("interest_groups"))] + [EnumMember(Value = ("interest_groups"))] InterestGroups, /// /// shared_storage /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("shared_storage"))] + [EnumMember(Value = ("shared_storage"))] SharedStorage, /// /// all /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("all"))] + [EnumMember(Value = ("all"))] All, /// /// other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] + [EnumMember(Value = ("other"))] Other } @@ -23881,7 +23793,7 @@ public CefSharp.DevTools.Storage.StorageType StorageType /// /// Name of storage type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageType"), IsRequired = (true))] + [DataMember(Name = ("storageType"), IsRequired = (true))] internal string storageType { get; @@ -23891,7 +23803,7 @@ internal string storageType /// /// Storage usage (bytes). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("usage"), IsRequired = (true))] + [DataMember(Name = ("usage"), IsRequired = (true))] public double Usage { get; @@ -23909,7 +23821,7 @@ public partial class TrustTokens : CefSharp.DevTools.DevToolsDomainEntityBase /// /// IssuerOrigin /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("issuerOrigin"), IsRequired = (true))] + [DataMember(Name = ("issuerOrigin"), IsRequired = (true))] public string IssuerOrigin { get; @@ -23919,7 +23831,7 @@ public string IssuerOrigin /// /// Count /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("count"), IsRequired = (true))] + [DataMember(Name = ("count"), IsRequired = (true))] public double Count { get; @@ -23935,32 +23847,32 @@ public enum InterestGroupAccessType /// /// join /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("join"))] + [EnumMember(Value = ("join"))] Join, /// /// leave /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("leave"))] + [EnumMember(Value = ("leave"))] Leave, /// /// update /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("update"))] + [EnumMember(Value = ("update"))] Update, /// /// loaded /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("loaded"))] + [EnumMember(Value = ("loaded"))] Loaded, /// /// bid /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bid"))] + [EnumMember(Value = ("bid"))] Bid, /// /// win /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("win"))] + [EnumMember(Value = ("win"))] Win } @@ -23973,7 +23885,7 @@ public partial class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBas /// /// RenderUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("renderUrl"), IsRequired = (true))] + [DataMember(Name = ("renderUrl"), IsRequired = (true))] public string RenderUrl { get; @@ -23983,7 +23895,7 @@ public string RenderUrl /// /// Metadata /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("metadata"), IsRequired = (false))] + [DataMember(Name = ("metadata"), IsRequired = (false))] public string Metadata { get; @@ -24000,7 +23912,7 @@ public partial class InterestGroupDetails : CefSharp.DevTools.DevToolsDomainEnti /// /// OwnerOrigin /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ownerOrigin"), IsRequired = (true))] + [DataMember(Name = ("ownerOrigin"), IsRequired = (true))] public string OwnerOrigin { get; @@ -24010,7 +23922,7 @@ public string OwnerOrigin /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -24020,7 +23932,7 @@ public string Name /// /// ExpirationTime /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("expirationTime"), IsRequired = (true))] + [DataMember(Name = ("expirationTime"), IsRequired = (true))] public double ExpirationTime { get; @@ -24030,7 +23942,7 @@ public double ExpirationTime /// /// JoiningOrigin /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("joiningOrigin"), IsRequired = (true))] + [DataMember(Name = ("joiningOrigin"), IsRequired = (true))] public string JoiningOrigin { get; @@ -24040,7 +23952,7 @@ public string JoiningOrigin /// /// BiddingUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("biddingUrl"), IsRequired = (false))] + [DataMember(Name = ("biddingUrl"), IsRequired = (false))] public string BiddingUrl { get; @@ -24050,7 +23962,7 @@ public string BiddingUrl /// /// BiddingWasmHelperUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("biddingWasmHelperUrl"), IsRequired = (false))] + [DataMember(Name = ("biddingWasmHelperUrl"), IsRequired = (false))] public string BiddingWasmHelperUrl { get; @@ -24060,7 +23972,7 @@ public string BiddingWasmHelperUrl /// /// UpdateUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("updateUrl"), IsRequired = (false))] + [DataMember(Name = ("updateUrl"), IsRequired = (false))] public string UpdateUrl { get; @@ -24070,7 +23982,7 @@ public string UpdateUrl /// /// TrustedBiddingSignalsUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("trustedBiddingSignalsUrl"), IsRequired = (false))] + [DataMember(Name = ("trustedBiddingSignalsUrl"), IsRequired = (false))] public string TrustedBiddingSignalsUrl { get; @@ -24080,7 +23992,7 @@ public string TrustedBiddingSignalsUrl /// /// TrustedBiddingSignalsKeys /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("trustedBiddingSignalsKeys"), IsRequired = (true))] + [DataMember(Name = ("trustedBiddingSignalsKeys"), IsRequired = (true))] public string[] TrustedBiddingSignalsKeys { get; @@ -24090,7 +24002,7 @@ public string[] TrustedBiddingSignalsKeys /// /// UserBiddingSignals /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("userBiddingSignals"), IsRequired = (false))] + [DataMember(Name = ("userBiddingSignals"), IsRequired = (false))] public string UserBiddingSignals { get; @@ -24100,7 +24012,7 @@ public string UserBiddingSignals /// /// Ads /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ads"), IsRequired = (true))] + [DataMember(Name = ("ads"), IsRequired = (true))] public System.Collections.Generic.IList Ads { get; @@ -24110,7 +24022,7 @@ public System.Collections.Generic.IList /// AdComponents ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("adComponents"), IsRequired = (true))] + [DataMember(Name = ("adComponents"), IsRequired = (true))] public System.Collections.Generic.IList AdComponents { get; @@ -24126,82 +24038,82 @@ public enum SharedStorageAccessType /// /// documentAddModule /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentAddModule"))] + [EnumMember(Value = ("documentAddModule"))] DocumentAddModule, /// /// documentSelectURL /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentSelectURL"))] + [EnumMember(Value = ("documentSelectURL"))] DocumentSelectURL, /// /// documentRun /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentRun"))] + [EnumMember(Value = ("documentRun"))] DocumentRun, /// /// documentSet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentSet"))] + [EnumMember(Value = ("documentSet"))] DocumentSet, /// /// documentAppend /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentAppend"))] + [EnumMember(Value = ("documentAppend"))] DocumentAppend, /// /// documentDelete /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentDelete"))] + [EnumMember(Value = ("documentDelete"))] DocumentDelete, /// /// documentClear /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("documentClear"))] + [EnumMember(Value = ("documentClear"))] DocumentClear, /// /// workletSet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletSet"))] + [EnumMember(Value = ("workletSet"))] WorkletSet, /// /// workletAppend /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletAppend"))] + [EnumMember(Value = ("workletAppend"))] WorkletAppend, /// /// workletDelete /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletDelete"))] + [EnumMember(Value = ("workletDelete"))] WorkletDelete, /// /// workletClear /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletClear"))] + [EnumMember(Value = ("workletClear"))] WorkletClear, /// /// workletGet /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletGet"))] + [EnumMember(Value = ("workletGet"))] WorkletGet, /// /// workletKeys /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletKeys"))] + [EnumMember(Value = ("workletKeys"))] WorkletKeys, /// /// workletEntries /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletEntries"))] + [EnumMember(Value = ("workletEntries"))] WorkletEntries, /// /// workletLength /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletLength"))] + [EnumMember(Value = ("workletLength"))] WorkletLength, /// /// workletRemainingBudget /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("workletRemainingBudget"))] + [EnumMember(Value = ("workletRemainingBudget"))] WorkletRemainingBudget } @@ -24214,7 +24126,7 @@ public partial class SharedStorageEntry : CefSharp.DevTools.DevToolsDomainEntity /// /// Key /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (true))] + [DataMember(Name = ("key"), IsRequired = (true))] public string Key { get; @@ -24224,7 +24136,7 @@ public string Key /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -24241,7 +24153,7 @@ public partial class SharedStorageMetadata : CefSharp.DevTools.DevToolsDomainEnt /// /// CreationTime /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("creationTime"), IsRequired = (true))] + [DataMember(Name = ("creationTime"), IsRequired = (true))] public double CreationTime { get; @@ -24251,7 +24163,7 @@ public double CreationTime /// /// Length /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (true))] + [DataMember(Name = ("length"), IsRequired = (true))] public int Length { get; @@ -24261,7 +24173,7 @@ public int Length /// /// RemainingBudget /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("remainingBudget"), IsRequired = (true))] + [DataMember(Name = ("remainingBudget"), IsRequired = (true))] public double RemainingBudget { get; @@ -24278,7 +24190,7 @@ public partial class SharedStorageReportingMetadata : CefSharp.DevTools.DevTools /// /// EventType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventType"), IsRequired = (true))] + [DataMember(Name = ("eventType"), IsRequired = (true))] public string EventType { get; @@ -24288,7 +24200,7 @@ public string EventType /// /// ReportingUrl /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingUrl"), IsRequired = (true))] + [DataMember(Name = ("reportingUrl"), IsRequired = (true))] public string ReportingUrl { get; @@ -24305,7 +24217,7 @@ public partial class SharedStorageUrlWithMetadata : CefSharp.DevTools.DevToolsDo /// /// Spec of candidate URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -24315,7 +24227,7 @@ public string Url /// /// Any associated reporting metadata. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reportingMetadata"), IsRequired = (true))] + [DataMember(Name = ("reportingMetadata"), IsRequired = (true))] public System.Collections.Generic.IList ReportingMetadata { get; @@ -24334,7 +24246,7 @@ public partial class SharedStorageAccessParams : CefSharp.DevTools.DevToolsDomai /// Spec of the module script URL. /// Present only for SharedStorageAccessType.documentAddModule. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptSourceUrl"), IsRequired = (false))] + [DataMember(Name = ("scriptSourceUrl"), IsRequired = (false))] public string ScriptSourceUrl { get; @@ -24346,7 +24258,7 @@ public string ScriptSourceUrl /// Present only for SharedStorageAccessType.documentRun and /// SharedStorageAccessType.documentSelectURL. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("operationName"), IsRequired = (false))] + [DataMember(Name = ("operationName"), IsRequired = (false))] public string OperationName { get; @@ -24358,7 +24270,7 @@ public string OperationName /// Present only for SharedStorageAccessType.documentRun and /// SharedStorageAccessType.documentSelectURL. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("serializedData"), IsRequired = (false))] + [DataMember(Name = ("serializedData"), IsRequired = (false))] public string SerializedData { get; @@ -24369,7 +24281,7 @@ public string SerializedData /// Array of candidate URLs' specs, along with any associated metadata. /// Present only for SharedStorageAccessType.documentSelectURL. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlsWithMetadata"), IsRequired = (false))] + [DataMember(Name = ("urlsWithMetadata"), IsRequired = (false))] public System.Collections.Generic.IList UrlsWithMetadata { get; @@ -24386,7 +24298,7 @@ public System.Collections.Generic.IList - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (false))] + [DataMember(Name = ("key"), IsRequired = (false))] public string Key { get; @@ -24400,7 +24312,7 @@ public string Key /// SharedStorageAccessType.workletSet, and /// SharedStorageAccessType.workletAppend. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public string Value { get; @@ -24412,7 +24324,7 @@ public string Value /// Present only for SharedStorageAccessType.documentSet and /// SharedStorageAccessType.workletSet. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("ignoreIfPresent"), IsRequired = (false))] + [DataMember(Name = ("ignoreIfPresent"), IsRequired = (false))] public bool? IgnoreIfPresent { get; @@ -24429,7 +24341,7 @@ public class CacheStorageContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDom /// /// Origin to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -24439,7 +24351,7 @@ public string Origin /// /// Storage key to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + [DataMember(Name = ("storageKey"), IsRequired = (true))] public string StorageKey { get; @@ -24449,7 +24361,7 @@ public string StorageKey /// /// Name of cache in origin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cacheName"), IsRequired = (true))] + [DataMember(Name = ("cacheName"), IsRequired = (true))] public string CacheName { get; @@ -24466,7 +24378,7 @@ public class CacheStorageListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Origin to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -24476,7 +24388,7 @@ public string Origin /// /// Storage key to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + [DataMember(Name = ("storageKey"), IsRequired = (true))] public string StorageKey { get; @@ -24493,7 +24405,7 @@ public class IndexedDBContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Origin to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -24503,7 +24415,7 @@ public string Origin /// /// Storage key to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + [DataMember(Name = ("storageKey"), IsRequired = (true))] public string StorageKey { get; @@ -24513,7 +24425,7 @@ public string StorageKey /// /// Database to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("databaseName"), IsRequired = (true))] + [DataMember(Name = ("databaseName"), IsRequired = (true))] public string DatabaseName { get; @@ -24523,7 +24435,7 @@ public string DatabaseName /// /// ObjectStore to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("objectStoreName"), IsRequired = (true))] + [DataMember(Name = ("objectStoreName"), IsRequired = (true))] public string ObjectStoreName { get; @@ -24540,7 +24452,7 @@ public class IndexedDBListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Origin to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -24550,7 +24462,7 @@ public string Origin /// /// Storage key to update. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("storageKey"), IsRequired = (true))] + [DataMember(Name = ("storageKey"), IsRequired = (true))] public string StorageKey { get; @@ -24567,7 +24479,7 @@ public class InterestGroupAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// AccessTime /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("accessTime"), IsRequired = (true))] + [DataMember(Name = ("accessTime"), IsRequired = (true))] public double AccessTime { get; @@ -24593,7 +24505,7 @@ public CefSharp.DevTools.Storage.InterestGroupAccessType Type /// /// Type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -24603,7 +24515,7 @@ internal string type /// /// OwnerOrigin /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ownerOrigin"), IsRequired = (true))] + [DataMember(Name = ("ownerOrigin"), IsRequired = (true))] public string OwnerOrigin { get; @@ -24613,7 +24525,7 @@ public string OwnerOrigin /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -24631,7 +24543,7 @@ public class SharedStorageAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Time of the access. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("accessTime"), IsRequired = (true))] + [DataMember(Name = ("accessTime"), IsRequired = (true))] public double AccessTime { get; @@ -24657,7 +24569,7 @@ public CefSharp.DevTools.Storage.SharedStorageAccessType Type /// /// Enum value indicating the Shared Storage API method invoked. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -24667,7 +24579,7 @@ internal string type /// /// DevTools Frame Token for the primary frame tree's root. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("mainFrameId"), IsRequired = (true))] + [DataMember(Name = ("mainFrameId"), IsRequired = (true))] public string MainFrameId { get; @@ -24677,7 +24589,7 @@ public string MainFrameId /// /// Serialized origin for the context that invoked the Shared Storage API. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ownerOrigin"), IsRequired = (true))] + [DataMember(Name = ("ownerOrigin"), IsRequired = (true))] public string OwnerOrigin { get; @@ -24688,7 +24600,7 @@ public string OwnerOrigin /// The sub-parameters warapped by `params` are all optional and their /// presence/absence depends on `type`. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("params"), IsRequired = (true))] + [DataMember(Name = ("params"), IsRequired = (true))] public CefSharp.DevTools.Storage.SharedStorageAccessParams Params { get; @@ -24708,7 +24620,7 @@ public partial class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase /// /// PCI ID of the GPU vendor, if available; 0 otherwise. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("vendorId"), IsRequired = (true))] + [DataMember(Name = ("vendorId"), IsRequired = (true))] public double VendorId { get; @@ -24718,7 +24630,7 @@ public double VendorId /// /// PCI ID of the GPU device, if available; 0 otherwise. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deviceId"), IsRequired = (true))] + [DataMember(Name = ("deviceId"), IsRequired = (true))] public double DeviceId { get; @@ -24728,7 +24640,7 @@ public double DeviceId /// /// Sub sys ID of the GPU, only available on Windows. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subSysId"), IsRequired = (false))] + [DataMember(Name = ("subSysId"), IsRequired = (false))] public double? SubSysId { get; @@ -24738,7 +24650,7 @@ public double? SubSysId /// /// Revision of the GPU, only available on Windows. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("revision"), IsRequired = (false))] + [DataMember(Name = ("revision"), IsRequired = (false))] public double? Revision { get; @@ -24748,7 +24660,7 @@ public double? Revision /// /// String description of the GPU vendor, if the PCI ID is not available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("vendorString"), IsRequired = (true))] + [DataMember(Name = ("vendorString"), IsRequired = (true))] public string VendorString { get; @@ -24758,7 +24670,7 @@ public string VendorString /// /// String description of the GPU device, if the PCI ID is not available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deviceString"), IsRequired = (true))] + [DataMember(Name = ("deviceString"), IsRequired = (true))] public string DeviceString { get; @@ -24768,7 +24680,7 @@ public string DeviceString /// /// String description of the GPU driver vendor. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("driverVendor"), IsRequired = (true))] + [DataMember(Name = ("driverVendor"), IsRequired = (true))] public string DriverVendor { get; @@ -24778,7 +24690,7 @@ public string DriverVendor /// /// String description of the GPU driver version. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("driverVersion"), IsRequired = (true))] + [DataMember(Name = ("driverVersion"), IsRequired = (true))] public string DriverVersion { get; @@ -24795,7 +24707,7 @@ public partial class Size : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Width in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("width"), IsRequired = (true))] + [DataMember(Name = ("width"), IsRequired = (true))] public int Width { get; @@ -24805,7 +24717,7 @@ public int Width /// /// Height in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("height"), IsRequired = (true))] + [DataMember(Name = ("height"), IsRequired = (true))] public int Height { get; @@ -24823,7 +24735,7 @@ public partial class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToo /// /// Video codec profile that is supported, e.g. VP9 Profile 2. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("profile"), IsRequired = (true))] + [DataMember(Name = ("profile"), IsRequired = (true))] public string Profile { get; @@ -24833,7 +24745,7 @@ public string Profile /// /// Maximum video dimensions in pixels supported for this |profile|. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxResolution"), IsRequired = (true))] + [DataMember(Name = ("maxResolution"), IsRequired = (true))] public CefSharp.DevTools.SystemInfo.Size MaxResolution { get; @@ -24843,7 +24755,7 @@ public CefSharp.DevTools.SystemInfo.Size MaxResolution /// /// Minimum video dimensions in pixels supported for this |profile|. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("minResolution"), IsRequired = (true))] + [DataMember(Name = ("minResolution"), IsRequired = (true))] public CefSharp.DevTools.SystemInfo.Size MinResolution { get; @@ -24861,7 +24773,7 @@ public partial class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToo /// /// Video codec profile that is supported, e.g H264 Main. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("profile"), IsRequired = (true))] + [DataMember(Name = ("profile"), IsRequired = (true))] public string Profile { get; @@ -24871,7 +24783,7 @@ public string Profile /// /// Maximum video dimensions in pixels supported for this |profile|. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxResolution"), IsRequired = (true))] + [DataMember(Name = ("maxResolution"), IsRequired = (true))] public CefSharp.DevTools.SystemInfo.Size MaxResolution { get; @@ -24883,7 +24795,7 @@ public CefSharp.DevTools.SystemInfo.Size MaxResolution /// |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, /// 24000/1001 fps, etc. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxFramerateNumerator"), IsRequired = (true))] + [DataMember(Name = ("maxFramerateNumerator"), IsRequired = (true))] public int MaxFramerateNumerator { get; @@ -24893,7 +24805,7 @@ public int MaxFramerateNumerator /// /// MaxFramerateDenominator /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxFramerateDenominator"), IsRequired = (true))] + [DataMember(Name = ("maxFramerateDenominator"), IsRequired = (true))] public int MaxFramerateDenominator { get; @@ -24909,17 +24821,17 @@ public enum SubsamplingFormat /// /// yuv420 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("yuv420"))] + [EnumMember(Value = ("yuv420"))] Yuv420, /// /// yuv422 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("yuv422"))] + [EnumMember(Value = ("yuv422"))] Yuv422, /// /// yuv444 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("yuv444"))] + [EnumMember(Value = ("yuv444"))] Yuv444 } @@ -24931,17 +24843,17 @@ public enum ImageType /// /// jpeg /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("jpeg"))] + [EnumMember(Value = ("jpeg"))] Jpeg, /// /// webp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webp"))] + [EnumMember(Value = ("webp"))] Webp, /// /// unknown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("unknown"))] + [EnumMember(Value = ("unknown"))] Unknown } @@ -24971,7 +24883,7 @@ public CefSharp.DevTools.SystemInfo.ImageType ImageType /// /// Image coded, e.g. Jpeg. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("imageType"), IsRequired = (true))] + [DataMember(Name = ("imageType"), IsRequired = (true))] internal string imageType { get; @@ -24981,7 +24893,7 @@ internal string imageType /// /// Maximum supported dimensions of the image in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxDimensions"), IsRequired = (true))] + [DataMember(Name = ("maxDimensions"), IsRequired = (true))] public CefSharp.DevTools.SystemInfo.Size MaxDimensions { get; @@ -24991,7 +24903,7 @@ public CefSharp.DevTools.SystemInfo.Size MaxDimensions /// /// Minimum supported dimensions of the image in pixels. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("minDimensions"), IsRequired = (true))] + [DataMember(Name = ("minDimensions"), IsRequired = (true))] public CefSharp.DevTools.SystemInfo.Size MinDimensions { get; @@ -25017,7 +24929,7 @@ public CefSharp.DevTools.SystemInfo.SubsamplingFormat[] Subsamplings /// /// Optional array of supported subsampling formats, e.g. 4:2:0, if known. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subsamplings"), IsRequired = (true))] + [DataMember(Name = ("subsamplings"), IsRequired = (true))] internal string subsamplings { get; @@ -25034,7 +24946,7 @@ public partial class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The graphics devices on the system. Element 0 is the primary GPU. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("devices"), IsRequired = (true))] + [DataMember(Name = ("devices"), IsRequired = (true))] public System.Collections.Generic.IList Devices { get; @@ -25044,7 +24956,7 @@ public System.Collections.Generic.IList /// /// An optional dictionary of additional GPU related attributes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("auxAttributes"), IsRequired = (false))] + [DataMember(Name = ("auxAttributes"), IsRequired = (false))] public object AuxAttributes { get; @@ -25054,7 +24966,7 @@ public object AuxAttributes /// /// An optional dictionary of graphics features and their status. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("featureStatus"), IsRequired = (false))] + [DataMember(Name = ("featureStatus"), IsRequired = (false))] public object FeatureStatus { get; @@ -25064,7 +24976,7 @@ public object FeatureStatus /// /// An optional array of GPU driver bug workarounds. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("driverBugWorkarounds"), IsRequired = (true))] + [DataMember(Name = ("driverBugWorkarounds"), IsRequired = (true))] public string[] DriverBugWorkarounds { get; @@ -25074,7 +24986,7 @@ public string[] DriverBugWorkarounds /// /// Supported accelerated video decoding capabilities. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("videoDecoding"), IsRequired = (true))] + [DataMember(Name = ("videoDecoding"), IsRequired = (true))] public System.Collections.Generic.IList VideoDecoding { get; @@ -25084,7 +24996,7 @@ public System.Collections.Generic.IList /// Supported accelerated video encoding capabilities. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("videoEncoding"), IsRequired = (true))] + [DataMember(Name = ("videoEncoding"), IsRequired = (true))] public System.Collections.Generic.IList VideoEncoding { get; @@ -25094,7 +25006,7 @@ public System.Collections.Generic.IList /// Supported accelerated image decoding capabilities. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("imageDecoding"), IsRequired = (true))] + [DataMember(Name = ("imageDecoding"), IsRequired = (true))] public System.Collections.Generic.IList ImageDecoding { get; @@ -25111,7 +25023,7 @@ public partial class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Specifies process type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] public string Type { get; @@ -25121,7 +25033,7 @@ public string Type /// /// Specifies process id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public int Id { get; @@ -25132,7 +25044,7 @@ public int Id /// Specifies cumulative CPU usage in seconds across all threads of the /// process since the process start. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("cpuTime"), IsRequired = (true))] + [DataMember(Name = ("cpuTime"), IsRequired = (true))] public double CpuTime { get; @@ -25152,7 +25064,7 @@ public partial class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase /// /// TargetId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (true))] + [DataMember(Name = ("targetId"), IsRequired = (true))] public string TargetId { get; @@ -25162,7 +25074,7 @@ public string TargetId /// /// Type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] public string Type { get; @@ -25172,7 +25084,7 @@ public string Type /// /// Title /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (true))] + [DataMember(Name = ("title"), IsRequired = (true))] public string Title { get; @@ -25182,7 +25094,7 @@ public string Title /// /// Url /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -25192,7 +25104,7 @@ public string Url /// /// Whether the target has an attached client. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("attached"), IsRequired = (true))] + [DataMember(Name = ("attached"), IsRequired = (true))] public bool Attached { get; @@ -25202,7 +25114,7 @@ public bool Attached /// /// Opener target Id /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("openerId"), IsRequired = (false))] + [DataMember(Name = ("openerId"), IsRequired = (false))] public string OpenerId { get; @@ -25212,7 +25124,7 @@ public string OpenerId /// /// Whether the target has access to the originating window. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("canAccessOpener"), IsRequired = (true))] + [DataMember(Name = ("canAccessOpener"), IsRequired = (true))] public bool CanAccessOpener { get; @@ -25222,7 +25134,7 @@ public bool CanAccessOpener /// /// Frame id of originating window (is only set if target has an opener). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("openerFrameId"), IsRequired = (false))] + [DataMember(Name = ("openerFrameId"), IsRequired = (false))] public string OpenerFrameId { get; @@ -25232,7 +25144,7 @@ public string OpenerFrameId /// /// BrowserContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("browserContextId"), IsRequired = (false))] + [DataMember(Name = ("browserContextId"), IsRequired = (false))] public string BrowserContextId { get; @@ -25243,7 +25155,7 @@ public string BrowserContextId /// Provides additional details for specific target types. For example, for /// the type of "page", this may be set to "portal" or "prerender". ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("subtype"), IsRequired = (false))] + [DataMember(Name = ("subtype"), IsRequired = (false))] public string Subtype { get; @@ -25260,7 +25172,7 @@ public partial class FilterEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// If set, causes exclusion of mathcing targets from the list. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("exclude"), IsRequired = (false))] + [DataMember(Name = ("exclude"), IsRequired = (false))] public bool? Exclude { get; @@ -25270,7 +25182,7 @@ public bool? Exclude /// /// If not present, matches any type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (false))] + [DataMember(Name = ("type"), IsRequired = (false))] public string Type { get; @@ -25287,7 +25199,7 @@ public partial class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Host /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("host"), IsRequired = (true))] + [DataMember(Name = ("host"), IsRequired = (true))] public string Host { get; @@ -25297,7 +25209,7 @@ public string Host /// /// Port /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("port"), IsRequired = (true))] + [DataMember(Name = ("port"), IsRequired = (true))] public int Port { get; @@ -25314,7 +25226,7 @@ public class AttachedToTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Identifier assigned to the session used to send/receive messages. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + [DataMember(Name = ("sessionId"), IsRequired = (true))] public string SessionId { get; @@ -25324,7 +25236,7 @@ public string SessionId /// /// TargetInfo /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetInfo"), IsRequired = (true))] + [DataMember(Name = ("targetInfo"), IsRequired = (true))] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; @@ -25334,7 +25246,7 @@ public CefSharp.DevTools.Target.TargetInfo TargetInfo /// /// WaitingForDebugger /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("waitingForDebugger"), IsRequired = (true))] + [DataMember(Name = ("waitingForDebugger"), IsRequired = (true))] public bool WaitingForDebugger { get; @@ -25352,7 +25264,7 @@ public class DetachedFromTargetEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Detached session identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + [DataMember(Name = ("sessionId"), IsRequired = (true))] public string SessionId { get; @@ -25362,7 +25274,7 @@ public string SessionId /// /// Deprecated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (false))] + [DataMember(Name = ("targetId"), IsRequired = (false))] public string TargetId { get; @@ -25380,7 +25292,7 @@ public class ReceivedMessageFromTargetEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Identifier of a session which sends a message. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sessionId"), IsRequired = (true))] + [DataMember(Name = ("sessionId"), IsRequired = (true))] public string SessionId { get; @@ -25390,7 +25302,7 @@ public string SessionId /// /// Message /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + [DataMember(Name = ("message"), IsRequired = (true))] public string Message { get; @@ -25400,7 +25312,7 @@ public string Message /// /// Deprecated. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (false))] + [DataMember(Name = ("targetId"), IsRequired = (false))] public string TargetId { get; @@ -25417,7 +25329,7 @@ public class TargetCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// TargetInfo /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetInfo"), IsRequired = (true))] + [DataMember(Name = ("targetInfo"), IsRequired = (true))] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; @@ -25434,7 +25346,7 @@ public class TargetDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// TargetId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (true))] + [DataMember(Name = ("targetId"), IsRequired = (true))] public string TargetId { get; @@ -25451,7 +25363,7 @@ public class TargetCrashedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// TargetId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetId"), IsRequired = (true))] + [DataMember(Name = ("targetId"), IsRequired = (true))] public string TargetId { get; @@ -25461,7 +25373,7 @@ public string TargetId /// /// Termination status type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("status"), IsRequired = (true))] + [DataMember(Name = ("status"), IsRequired = (true))] public string Status { get; @@ -25471,7 +25383,7 @@ public string Status /// /// Termination error code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorCode"), IsRequired = (true))] + [DataMember(Name = ("errorCode"), IsRequired = (true))] public int ErrorCode { get; @@ -25489,7 +25401,7 @@ public class TargetInfoChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// TargetInfo /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("targetInfo"), IsRequired = (true))] + [DataMember(Name = ("targetInfo"), IsRequired = (true))] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; @@ -25509,7 +25421,7 @@ public class AcceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Port number that was successfully bound. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("port"), IsRequired = (true))] + [DataMember(Name = ("port"), IsRequired = (true))] public int Port { get; @@ -25519,7 +25431,7 @@ public int Port /// /// Connection id to be used. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("connectionId"), IsRequired = (true))] + [DataMember(Name = ("connectionId"), IsRequired = (true))] public string ConnectionId { get; @@ -25538,22 +25450,22 @@ public enum TraceConfigRecordMode /// /// recordUntilFull /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("recordUntilFull"))] + [EnumMember(Value = ("recordUntilFull"))] RecordUntilFull, /// /// recordContinuously /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("recordContinuously"))] + [EnumMember(Value = ("recordContinuously"))] RecordContinuously, /// /// recordAsMuchAsPossible /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("recordAsMuchAsPossible"))] + [EnumMember(Value = ("recordAsMuchAsPossible"))] RecordAsMuchAsPossible, /// /// echoToConsole /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("echoToConsole"))] + [EnumMember(Value = ("echoToConsole"))] EchoToConsole } @@ -25582,7 +25494,7 @@ public CefSharp.DevTools.Tracing.TraceConfigRecordMode? RecordMode /// /// Controls how the trace buffer stores data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("recordMode"), IsRequired = (false))] + [DataMember(Name = ("recordMode"), IsRequired = (false))] internal string recordMode { get; @@ -25593,7 +25505,7 @@ internal string recordMode /// Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value /// of 200 MB would be used. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("traceBufferSizeInKb"), IsRequired = (false))] + [DataMember(Name = ("traceBufferSizeInKb"), IsRequired = (false))] public double? TraceBufferSizeInKb { get; @@ -25603,7 +25515,7 @@ public double? TraceBufferSizeInKb /// /// Turns on JavaScript stack sampling. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("enableSampling"), IsRequired = (false))] + [DataMember(Name = ("enableSampling"), IsRequired = (false))] public bool? EnableSampling { get; @@ -25613,7 +25525,7 @@ public bool? EnableSampling /// /// Turns on system tracing. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("enableSystrace"), IsRequired = (false))] + [DataMember(Name = ("enableSystrace"), IsRequired = (false))] public bool? EnableSystrace { get; @@ -25623,7 +25535,7 @@ public bool? EnableSystrace /// /// Turns on argument filter. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("enableArgumentFilter"), IsRequired = (false))] + [DataMember(Name = ("enableArgumentFilter"), IsRequired = (false))] public bool? EnableArgumentFilter { get; @@ -25633,7 +25545,7 @@ public bool? EnableArgumentFilter /// /// Included category filters. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("includedCategories"), IsRequired = (false))] + [DataMember(Name = ("includedCategories"), IsRequired = (false))] public string[] IncludedCategories { get; @@ -25643,7 +25555,7 @@ public string[] IncludedCategories /// /// Excluded category filters. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("excludedCategories"), IsRequired = (false))] + [DataMember(Name = ("excludedCategories"), IsRequired = (false))] public string[] ExcludedCategories { get; @@ -25653,7 +25565,7 @@ public string[] ExcludedCategories /// /// Configuration to synthesize the delays in tracing. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("syntheticDelays"), IsRequired = (false))] + [DataMember(Name = ("syntheticDelays"), IsRequired = (false))] public string[] SyntheticDelays { get; @@ -25663,7 +25575,7 @@ public string[] SyntheticDelays /// /// Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("memoryDumpConfig"), IsRequired = (false))] + [DataMember(Name = ("memoryDumpConfig"), IsRequired = (false))] public CefSharp.DevTools.Tracing.MemoryDumpConfig MemoryDumpConfig { get; @@ -25680,12 +25592,12 @@ public enum StreamFormat /// /// json /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("json"))] + [EnumMember(Value = ("json"))] Json, /// /// proto /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("proto"))] + [EnumMember(Value = ("proto"))] Proto } @@ -25697,12 +25609,12 @@ public enum StreamCompression /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None, /// /// gzip /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("gzip"))] + [EnumMember(Value = ("gzip"))] Gzip } @@ -25716,17 +25628,17 @@ public enum MemoryDumpLevelOfDetail /// /// background /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("background"))] + [EnumMember(Value = ("background"))] Background, /// /// light /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("light"))] + [EnumMember(Value = ("light"))] Light, /// /// detailed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("detailed"))] + [EnumMember(Value = ("detailed"))] Detailed } @@ -25742,17 +25654,17 @@ public enum TracingBackend /// /// auto /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("auto"))] + [EnumMember(Value = ("auto"))] Auto, /// /// chrome /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("chrome"))] + [EnumMember(Value = ("chrome"))] Chrome, /// /// system /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("system"))] + [EnumMember(Value = ("system"))] System } @@ -25766,7 +25678,7 @@ public class BufferUsageEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBas /// A number in range [0..1] that indicates the used size of event buffer as a fraction of its /// total size. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("percentFull"), IsRequired = (false))] + [DataMember(Name = ("percentFull"), IsRequired = (false))] public double? PercentFull { get; @@ -25776,7 +25688,7 @@ public double? PercentFull /// /// An approximate number of events in the trace log. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("eventCount"), IsRequired = (false))] + [DataMember(Name = ("eventCount"), IsRequired = (false))] public double? EventCount { get; @@ -25787,7 +25699,7 @@ public double? EventCount /// A number in range [0..1] that indicates the used size of event buffer as a fraction of its /// total size. ///
- [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public double? Value { get; @@ -25805,7 +25717,7 @@ public class DataCollectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public System.Collections.Generic.IList Value { get; @@ -25824,7 +25736,7 @@ public class TracingCompleteEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// Indicates whether some trace data is known to have been lost, e.g. because the trace ring /// buffer wrapped around. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("dataLossOccurred"), IsRequired = (true))] + [DataMember(Name = ("dataLossOccurred"), IsRequired = (true))] public bool DataLossOccurred { get; @@ -25834,7 +25746,7 @@ public bool DataLossOccurred /// /// A handle of the stream that holds resulting trace data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stream"), IsRequired = (false))] + [DataMember(Name = ("stream"), IsRequired = (false))] public string Stream { get; @@ -25860,7 +25772,7 @@ public CefSharp.DevTools.Tracing.StreamFormat? TraceFormat /// /// Trace data format of returned stream. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("traceFormat"), IsRequired = (false))] + [DataMember(Name = ("traceFormat"), IsRequired = (false))] internal string traceFormat { get; @@ -25886,7 +25798,7 @@ public CefSharp.DevTools.Tracing.StreamCompression? StreamCompression /// /// Compression format of returned stream. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("streamCompression"), IsRequired = (false))] + [DataMember(Name = ("streamCompression"), IsRequired = (false))] internal string streamCompression { get; @@ -25907,12 +25819,12 @@ public enum RequestStage /// /// Request /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Request"))] + [EnumMember(Value = ("Request"))] Request, /// /// Response /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Response"))] + [EnumMember(Value = ("Response"))] Response } @@ -25926,7 +25838,7 @@ public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is /// backslash. Omitting is equivalent to `"*"`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("urlPattern"), IsRequired = (false))] + [DataMember(Name = ("urlPattern"), IsRequired = (false))] public string UrlPattern { get; @@ -25952,7 +25864,7 @@ public CefSharp.DevTools.Network.ResourceType? ResourceType /// /// If set, only requests for matching resource types will be intercepted. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (false))] + [DataMember(Name = ("resourceType"), IsRequired = (false))] internal string resourceType { get; @@ -25978,7 +25890,7 @@ public CefSharp.DevTools.Fetch.RequestStage? RequestStage /// /// Stage at which to begin intercepting requests. Default is Request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestStage"), IsRequired = (false))] + [DataMember(Name = ("requestStage"), IsRequired = (false))] internal string requestStage { get; @@ -25995,7 +25907,7 @@ public partial class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -26005,7 +25917,7 @@ public string Name /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -26021,12 +25933,12 @@ public enum AuthChallengeSource /// /// Server /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Server"))] + [EnumMember(Value = ("Server"))] Server, /// /// Proxy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Proxy"))] + [EnumMember(Value = ("Proxy"))] Proxy } @@ -26055,7 +25967,7 @@ public CefSharp.DevTools.Fetch.AuthChallengeSource? Source /// /// Source of the authentication challenge. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (false))] + [DataMember(Name = ("source"), IsRequired = (false))] internal string source { get; @@ -26065,7 +25977,7 @@ internal string source /// /// Origin of the challenger. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -26075,7 +25987,7 @@ public string Origin /// /// The authentication scheme used, such as basic or digest /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scheme"), IsRequired = (true))] + [DataMember(Name = ("scheme"), IsRequired = (true))] public string Scheme { get; @@ -26085,7 +25997,7 @@ public string Scheme /// /// The realm of the challenge. May be empty. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("realm"), IsRequired = (true))] + [DataMember(Name = ("realm"), IsRequired = (true))] public string Realm { get; @@ -26103,17 +26015,17 @@ public enum AuthChallengeResponseResponse /// /// Default /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("Default"))] + [EnumMember(Value = ("Default"))] Default, /// /// CancelAuth /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CancelAuth"))] + [EnumMember(Value = ("CancelAuth"))] CancelAuth, /// /// ProvideCredentials /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ProvideCredentials"))] + [EnumMember(Value = ("ProvideCredentials"))] ProvideCredentials } @@ -26146,7 +26058,7 @@ public CefSharp.DevTools.Fetch.AuthChallengeResponseResponse Response /// deferring to the default behavior of the net stack, which will likely either the Cancel /// authentication or display a popup dialog box. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("response"), IsRequired = (true))] + [DataMember(Name = ("response"), IsRequired = (true))] internal string response { get; @@ -26157,7 +26069,7 @@ internal string response /// The username to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("username"), IsRequired = (false))] + [DataMember(Name = ("username"), IsRequired = (false))] public string Username { get; @@ -26168,7 +26080,7 @@ public string Username /// The password to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("password"), IsRequired = (false))] + [DataMember(Name = ("password"), IsRequired = (false))] public string Password { get; @@ -26190,7 +26102,7 @@ public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Each request the page makes will have a unique id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -26200,7 +26112,7 @@ public string RequestId /// /// The details of the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + [DataMember(Name = ("request"), IsRequired = (true))] public CefSharp.DevTools.Network.Request Request { get; @@ -26210,7 +26122,7 @@ public CefSharp.DevTools.Network.Request Request /// /// The id of the frame that initiated the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -26236,7 +26148,7 @@ public CefSharp.DevTools.Network.ResourceType ResourceType /// /// How the requested resource will be used. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (true))] + [DataMember(Name = ("resourceType"), IsRequired = (true))] internal string resourceType { get; @@ -26262,7 +26174,7 @@ public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason /// /// Response error if intercepted at response stage. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseErrorReason"), IsRequired = (false))] + [DataMember(Name = ("responseErrorReason"), IsRequired = (false))] internal string responseErrorReason { get; @@ -26272,7 +26184,7 @@ internal string responseErrorReason /// /// Response code if intercepted at response stage. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseStatusCode"), IsRequired = (false))] + [DataMember(Name = ("responseStatusCode"), IsRequired = (false))] public int? ResponseStatusCode { get; @@ -26282,7 +26194,7 @@ public int? ResponseStatusCode /// /// Response status text if intercepted at response stage. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseStatusText"), IsRequired = (false))] + [DataMember(Name = ("responseStatusText"), IsRequired = (false))] public string ResponseStatusText { get; @@ -26292,7 +26204,7 @@ public string ResponseStatusText /// /// Response headers if intercepted at the response stage. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("responseHeaders"), IsRequired = (false))] + [DataMember(Name = ("responseHeaders"), IsRequired = (false))] public System.Collections.Generic.IList ResponseHeaders { get; @@ -26303,7 +26215,7 @@ public System.Collections.Generic.IList Res /// If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, /// then this networkId will be the same as the requestId present in the requestWillBeSent event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("networkId"), IsRequired = (false))] + [DataMember(Name = ("networkId"), IsRequired = (false))] public string NetworkId { get; @@ -26314,7 +26226,7 @@ public string NetworkId /// If the request is due to a redirect response from the server, the id of the request that /// has caused the redirect. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("redirectedRequestId"), IsRequired = (false))] + [DataMember(Name = ("redirectedRequestId"), IsRequired = (false))] public string RedirectedRequestId { get; @@ -26332,7 +26244,7 @@ public class AuthRequiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Each request the page makes will have a unique id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("requestId"), IsRequired = (true))] + [DataMember(Name = ("requestId"), IsRequired = (true))] public string RequestId { get; @@ -26342,7 +26254,7 @@ public string RequestId /// /// The details of the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("request"), IsRequired = (true))] + [DataMember(Name = ("request"), IsRequired = (true))] public CefSharp.DevTools.Network.Request Request { get; @@ -26352,7 +26264,7 @@ public CefSharp.DevTools.Network.Request Request /// /// The id of the frame that initiated the request. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("frameId"), IsRequired = (true))] + [DataMember(Name = ("frameId"), IsRequired = (true))] public string FrameId { get; @@ -26378,7 +26290,7 @@ public CefSharp.DevTools.Network.ResourceType ResourceType /// /// How the requested resource will be used. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("resourceType"), IsRequired = (true))] + [DataMember(Name = ("resourceType"), IsRequired = (true))] internal string resourceType { get; @@ -26390,7 +26302,7 @@ internal string resourceType /// If this is set, client should respond with continueRequest that /// contains AuthChallengeResponse. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("authChallenge"), IsRequired = (true))] + [DataMember(Name = ("authChallenge"), IsRequired = (true))] public CefSharp.DevTools.Fetch.AuthChallenge AuthChallenge { get; @@ -26409,12 +26321,12 @@ public enum ContextType /// /// realtime /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("realtime"))] + [EnumMember(Value = ("realtime"))] Realtime, /// /// offline /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("offline"))] + [EnumMember(Value = ("offline"))] Offline } @@ -26426,17 +26338,17 @@ public enum ContextState /// /// suspended /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("suspended"))] + [EnumMember(Value = ("suspended"))] Suspended, /// /// running /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("running"))] + [EnumMember(Value = ("running"))] Running, /// /// closed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("closed"))] + [EnumMember(Value = ("closed"))] Closed } @@ -26448,17 +26360,17 @@ public enum ChannelCountMode /// /// clamped-max /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clamped-max"))] + [EnumMember(Value = ("clamped-max"))] ClampedMax, /// /// explicit /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("explicit"))] + [EnumMember(Value = ("explicit"))] Explicit, /// /// max /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("max"))] + [EnumMember(Value = ("max"))] Max } @@ -26470,12 +26382,12 @@ public enum ChannelInterpretation /// /// discrete /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("discrete"))] + [EnumMember(Value = ("discrete"))] Discrete, /// /// speakers /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("speakers"))] + [EnumMember(Value = ("speakers"))] Speakers } @@ -26487,12 +26399,12 @@ public enum AutomationRate /// /// a-rate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("a-rate"))] + [EnumMember(Value = ("a-rate"))] ARate, /// /// k-rate /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("k-rate"))] + [EnumMember(Value = ("k-rate"))] KRate } @@ -26505,7 +26417,7 @@ public partial class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntit /// /// The current context time in second in BaseAudioContext. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("currentTime"), IsRequired = (true))] + [DataMember(Name = ("currentTime"), IsRequired = (true))] public double CurrentTime { get; @@ -26517,7 +26429,7 @@ public double CurrentTime /// and multiplied by 100. 100 means the audio renderer reached the full /// capacity and glitch may occur. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("renderCapacity"), IsRequired = (true))] + [DataMember(Name = ("renderCapacity"), IsRequired = (true))] public double RenderCapacity { get; @@ -26527,7 +26439,7 @@ public double RenderCapacity /// /// A running mean of callback interval. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callbackIntervalMean"), IsRequired = (true))] + [DataMember(Name = ("callbackIntervalMean"), IsRequired = (true))] public double CallbackIntervalMean { get; @@ -26537,7 +26449,7 @@ public double CallbackIntervalMean /// /// A running variance of callback interval. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callbackIntervalVariance"), IsRequired = (true))] + [DataMember(Name = ("callbackIntervalVariance"), IsRequired = (true))] public double CallbackIntervalVariance { get; @@ -26554,7 +26466,7 @@ public partial class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBa /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -26580,7 +26492,7 @@ public CefSharp.DevTools.WebAudio.ContextType ContextType /// /// ContextType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextType"), IsRequired = (true))] + [DataMember(Name = ("contextType"), IsRequired = (true))] internal string contextType { get; @@ -26606,7 +26518,7 @@ public CefSharp.DevTools.WebAudio.ContextState ContextState /// /// ContextState /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextState"), IsRequired = (true))] + [DataMember(Name = ("contextState"), IsRequired = (true))] internal string contextState { get; @@ -26616,7 +26528,7 @@ internal string contextState /// /// RealtimeData /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("realtimeData"), IsRequired = (false))] + [DataMember(Name = ("realtimeData"), IsRequired = (false))] public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData { get; @@ -26626,7 +26538,7 @@ public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData /// /// Platform-dependent callback buffer size. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callbackBufferSize"), IsRequired = (true))] + [DataMember(Name = ("callbackBufferSize"), IsRequired = (true))] public double CallbackBufferSize { get; @@ -26636,7 +26548,7 @@ public double CallbackBufferSize /// /// Number of output channels supported by audio hardware in use. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxOutputChannelCount"), IsRequired = (true))] + [DataMember(Name = ("maxOutputChannelCount"), IsRequired = (true))] public double MaxOutputChannelCount { get; @@ -26646,7 +26558,7 @@ public double MaxOutputChannelCount /// /// Context sample rate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sampleRate"), IsRequired = (true))] + [DataMember(Name = ("sampleRate"), IsRequired = (true))] public double SampleRate { get; @@ -26663,7 +26575,7 @@ public partial class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ListenerId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("listenerId"), IsRequired = (true))] + [DataMember(Name = ("listenerId"), IsRequired = (true))] public string ListenerId { get; @@ -26673,7 +26585,7 @@ public string ListenerId /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -26690,7 +26602,7 @@ public partial class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// NodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public string NodeId { get; @@ -26700,7 +26612,7 @@ public string NodeId /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -26710,7 +26622,7 @@ public string ContextId /// /// NodeType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeType"), IsRequired = (true))] + [DataMember(Name = ("nodeType"), IsRequired = (true))] public string NodeType { get; @@ -26720,7 +26632,7 @@ public string NodeType /// /// NumberOfInputs /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("numberOfInputs"), IsRequired = (true))] + [DataMember(Name = ("numberOfInputs"), IsRequired = (true))] public double NumberOfInputs { get; @@ -26730,7 +26642,7 @@ public double NumberOfInputs /// /// NumberOfOutputs /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("numberOfOutputs"), IsRequired = (true))] + [DataMember(Name = ("numberOfOutputs"), IsRequired = (true))] public double NumberOfOutputs { get; @@ -26740,7 +26652,7 @@ public double NumberOfOutputs /// /// ChannelCount /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("channelCount"), IsRequired = (true))] + [DataMember(Name = ("channelCount"), IsRequired = (true))] public double ChannelCount { get; @@ -26766,7 +26678,7 @@ public CefSharp.DevTools.WebAudio.ChannelCountMode ChannelCountMode /// /// ChannelCountMode /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("channelCountMode"), IsRequired = (true))] + [DataMember(Name = ("channelCountMode"), IsRequired = (true))] internal string channelCountMode { get; @@ -26792,7 +26704,7 @@ public CefSharp.DevTools.WebAudio.ChannelInterpretation ChannelInterpretation /// /// ChannelInterpretation /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("channelInterpretation"), IsRequired = (true))] + [DataMember(Name = ("channelInterpretation"), IsRequired = (true))] internal string channelInterpretation { get; @@ -26809,7 +26721,7 @@ public partial class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ParamId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("paramId"), IsRequired = (true))] + [DataMember(Name = ("paramId"), IsRequired = (true))] public string ParamId { get; @@ -26819,7 +26731,7 @@ public string ParamId /// /// NodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public string NodeId { get; @@ -26829,7 +26741,7 @@ public string NodeId /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -26839,7 +26751,7 @@ public string ContextId /// /// ParamType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("paramType"), IsRequired = (true))] + [DataMember(Name = ("paramType"), IsRequired = (true))] public string ParamType { get; @@ -26865,7 +26777,7 @@ public CefSharp.DevTools.WebAudio.AutomationRate Rate /// /// Rate /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rate"), IsRequired = (true))] + [DataMember(Name = ("rate"), IsRequired = (true))] internal string rate { get; @@ -26875,7 +26787,7 @@ internal string rate /// /// DefaultValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("defaultValue"), IsRequired = (true))] + [DataMember(Name = ("defaultValue"), IsRequired = (true))] public double DefaultValue { get; @@ -26885,7 +26797,7 @@ public double DefaultValue /// /// MinValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("minValue"), IsRequired = (true))] + [DataMember(Name = ("minValue"), IsRequired = (true))] public double MinValue { get; @@ -26895,7 +26807,7 @@ public double MinValue /// /// MaxValue /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("maxValue"), IsRequired = (true))] + [DataMember(Name = ("maxValue"), IsRequired = (true))] public double MaxValue { get; @@ -26912,7 +26824,7 @@ public class ContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Context /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (true))] + [DataMember(Name = ("context"), IsRequired = (true))] public CefSharp.DevTools.WebAudio.BaseAudioContext Context { get; @@ -26929,7 +26841,7 @@ public class ContextWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -26946,7 +26858,7 @@ public class ContextChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Context /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (true))] + [DataMember(Name = ("context"), IsRequired = (true))] public CefSharp.DevTools.WebAudio.BaseAudioContext Context { get; @@ -26963,7 +26875,7 @@ public class AudioListenerCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Listener /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("listener"), IsRequired = (true))] + [DataMember(Name = ("listener"), IsRequired = (true))] public CefSharp.DevTools.WebAudio.AudioListener Listener { get; @@ -26980,7 +26892,7 @@ public class AudioListenerWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsD /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -26990,7 +26902,7 @@ public string ContextId /// /// ListenerId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("listenerId"), IsRequired = (true))] + [DataMember(Name = ("listenerId"), IsRequired = (true))] public string ListenerId { get; @@ -27007,7 +26919,7 @@ public class AudioNodeCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Node /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("node"), IsRequired = (true))] + [DataMember(Name = ("node"), IsRequired = (true))] public CefSharp.DevTools.WebAudio.AudioNode Node { get; @@ -27024,7 +26936,7 @@ public class AudioNodeWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomai /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -27034,7 +26946,7 @@ public string ContextId /// /// NodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public string NodeId { get; @@ -27051,7 +26963,7 @@ public class AudioParamCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Param /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("param"), IsRequired = (true))] + [DataMember(Name = ("param"), IsRequired = (true))] public CefSharp.DevTools.WebAudio.AudioParam Param { get; @@ -27068,7 +26980,7 @@ public class AudioParamWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -27078,7 +26990,7 @@ public string ContextId /// /// NodeId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public string NodeId { get; @@ -27088,7 +27000,7 @@ public string NodeId /// /// ParamId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("paramId"), IsRequired = (true))] + [DataMember(Name = ("paramId"), IsRequired = (true))] public string ParamId { get; @@ -27105,7 +27017,7 @@ public class NodesConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -27115,7 +27027,7 @@ public string ContextId /// /// SourceId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + [DataMember(Name = ("sourceId"), IsRequired = (true))] public string SourceId { get; @@ -27125,7 +27037,7 @@ public string SourceId /// /// DestinationId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + [DataMember(Name = ("destinationId"), IsRequired = (true))] public string DestinationId { get; @@ -27135,7 +27047,7 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + [DataMember(Name = ("sourceOutputIndex"), IsRequired = (false))] public double? SourceOutputIndex { get; @@ -27145,7 +27057,7 @@ public double? SourceOutputIndex /// /// DestinationInputIndex /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationInputIndex"), IsRequired = (false))] + [DataMember(Name = ("destinationInputIndex"), IsRequired = (false))] public double? DestinationInputIndex { get; @@ -27162,7 +27074,7 @@ public class NodesDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -27172,7 +27084,7 @@ public string ContextId /// /// SourceId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + [DataMember(Name = ("sourceId"), IsRequired = (true))] public string SourceId { get; @@ -27182,7 +27094,7 @@ public string SourceId /// /// DestinationId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + [DataMember(Name = ("destinationId"), IsRequired = (true))] public string DestinationId { get; @@ -27192,7 +27104,7 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + [DataMember(Name = ("sourceOutputIndex"), IsRequired = (false))] public double? SourceOutputIndex { get; @@ -27202,7 +27114,7 @@ public double? SourceOutputIndex /// /// DestinationInputIndex /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationInputIndex"), IsRequired = (false))] + [DataMember(Name = ("destinationInputIndex"), IsRequired = (false))] public double? DestinationInputIndex { get; @@ -27219,7 +27131,7 @@ public class NodeParamConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -27229,7 +27141,7 @@ public string ContextId /// /// SourceId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + [DataMember(Name = ("sourceId"), IsRequired = (true))] public string SourceId { get; @@ -27239,7 +27151,7 @@ public string SourceId /// /// DestinationId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + [DataMember(Name = ("destinationId"), IsRequired = (true))] public string DestinationId { get; @@ -27249,7 +27161,7 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + [DataMember(Name = ("sourceOutputIndex"), IsRequired = (false))] public double? SourceOutputIndex { get; @@ -27266,7 +27178,7 @@ public class NodeParamDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// ContextId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("contextId"), IsRequired = (true))] + [DataMember(Name = ("contextId"), IsRequired = (true))] public string ContextId { get; @@ -27276,7 +27188,7 @@ public string ContextId /// /// SourceId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceId"), IsRequired = (true))] + [DataMember(Name = ("sourceId"), IsRequired = (true))] public string SourceId { get; @@ -27286,7 +27198,7 @@ public string SourceId /// /// DestinationId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("destinationId"), IsRequired = (true))] + [DataMember(Name = ("destinationId"), IsRequired = (true))] public string DestinationId { get; @@ -27296,7 +27208,7 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceOutputIndex"), IsRequired = (false))] + [DataMember(Name = ("sourceOutputIndex"), IsRequired = (false))] public double? SourceOutputIndex { get; @@ -27315,12 +27227,12 @@ public enum AuthenticatorProtocol /// /// u2f /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("u2f"))] + [EnumMember(Value = ("u2f"))] U2f, /// /// ctap2 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ctap2"))] + [EnumMember(Value = ("ctap2"))] Ctap2 } @@ -27332,12 +27244,12 @@ public enum Ctap2Version /// /// ctap2_0 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ctap2_0"))] + [EnumMember(Value = ("ctap2_0"))] Ctap20, /// /// ctap2_1 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ctap2_1"))] + [EnumMember(Value = ("ctap2_1"))] Ctap21 } @@ -27349,27 +27261,27 @@ public enum AuthenticatorTransport /// /// usb /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("usb"))] + [EnumMember(Value = ("usb"))] Usb, /// /// nfc /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("nfc"))] + [EnumMember(Value = ("nfc"))] Nfc, /// /// ble /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ble"))] + [EnumMember(Value = ("ble"))] Ble, /// /// cable /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("cable"))] + [EnumMember(Value = ("cable"))] Cable, /// /// internal /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("internal"))] + [EnumMember(Value = ("internal"))] Internal } @@ -27398,7 +27310,7 @@ public CefSharp.DevTools.WebAuthn.AuthenticatorProtocol Protocol /// /// Protocol /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("protocol"), IsRequired = (true))] + [DataMember(Name = ("protocol"), IsRequired = (true))] internal string protocol { get; @@ -27424,7 +27336,7 @@ public CefSharp.DevTools.WebAuthn.Ctap2Version? Ctap2Version /// /// Defaults to ctap2_0. Ignored if |protocol| == u2f. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ctap2Version"), IsRequired = (false))] + [DataMember(Name = ("ctap2Version"), IsRequired = (false))] internal string ctap2Version { get; @@ -27450,7 +27362,7 @@ public CefSharp.DevTools.WebAuthn.AuthenticatorTransport Transport /// /// Transport /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("transport"), IsRequired = (true))] + [DataMember(Name = ("transport"), IsRequired = (true))] internal string transport { get; @@ -27460,7 +27372,7 @@ internal string transport /// /// Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasResidentKey"), IsRequired = (false))] + [DataMember(Name = ("hasResidentKey"), IsRequired = (false))] public bool? HasResidentKey { get; @@ -27470,7 +27382,7 @@ public bool? HasResidentKey /// /// Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasUserVerification"), IsRequired = (false))] + [DataMember(Name = ("hasUserVerification"), IsRequired = (false))] public bool? HasUserVerification { get; @@ -27482,7 +27394,7 @@ public bool? HasUserVerification /// https://w3c.github.io/webauthn#largeBlob /// Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasLargeBlob"), IsRequired = (false))] + [DataMember(Name = ("hasLargeBlob"), IsRequired = (false))] public bool? HasLargeBlob { get; @@ -27494,7 +27406,7 @@ public bool? HasLargeBlob /// https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension /// Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasCredBlob"), IsRequired = (false))] + [DataMember(Name = ("hasCredBlob"), IsRequired = (false))] public bool? HasCredBlob { get; @@ -27506,7 +27418,7 @@ public bool? HasCredBlob /// https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension /// Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasMinPinLength"), IsRequired = (false))] + [DataMember(Name = ("hasMinPinLength"), IsRequired = (false))] public bool? HasMinPinLength { get; @@ -27518,7 +27430,7 @@ public bool? HasMinPinLength /// https://w3c.github.io/webauthn/#prf-extension /// Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasPrf"), IsRequired = (false))] + [DataMember(Name = ("hasPrf"), IsRequired = (false))] public bool? HasPrf { get; @@ -27529,7 +27441,7 @@ public bool? HasPrf /// If set to true, tests of user presence will succeed immediately. /// Otherwise, they will not be resolved. Defaults to true. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("automaticPresenceSimulation"), IsRequired = (false))] + [DataMember(Name = ("automaticPresenceSimulation"), IsRequired = (false))] public bool? AutomaticPresenceSimulation { get; @@ -27540,7 +27452,7 @@ public bool? AutomaticPresenceSimulation /// Sets whether User Verification succeeds or fails for an authenticator. /// Defaults to false. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isUserVerified"), IsRequired = (false))] + [DataMember(Name = ("isUserVerified"), IsRequired = (false))] public bool? IsUserVerified { get; @@ -27557,7 +27469,7 @@ public partial class Credential : CefSharp.DevTools.DevToolsDomainEntityBase /// /// CredentialId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("credentialId"), IsRequired = (true))] + [DataMember(Name = ("credentialId"), IsRequired = (true))] public byte[] CredentialId { get; @@ -27567,7 +27479,7 @@ public byte[] CredentialId /// /// IsResidentCredential /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isResidentCredential"), IsRequired = (true))] + [DataMember(Name = ("isResidentCredential"), IsRequired = (true))] public bool IsResidentCredential { get; @@ -27578,7 +27490,7 @@ public bool IsResidentCredential /// Relying Party ID the credential is scoped to. Must be set when adding a /// credential. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("rpId"), IsRequired = (false))] + [DataMember(Name = ("rpId"), IsRequired = (false))] public string RpId { get; @@ -27588,7 +27500,7 @@ public string RpId /// /// The ECDSA P-256 private key in PKCS#8 format. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("privateKey"), IsRequired = (true))] + [DataMember(Name = ("privateKey"), IsRequired = (true))] public byte[] PrivateKey { get; @@ -27599,7 +27511,7 @@ public byte[] PrivateKey /// An opaque byte sequence with a maximum size of 64 bytes mapping the /// credential to a specific user. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("userHandle"), IsRequired = (false))] + [DataMember(Name = ("userHandle"), IsRequired = (false))] public byte[] UserHandle { get; @@ -27611,7 +27523,7 @@ public byte[] UserHandle /// assertion. /// See https://w3c.github.io/webauthn/#signature-counter /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("signCount"), IsRequired = (true))] + [DataMember(Name = ("signCount"), IsRequired = (true))] public int SignCount { get; @@ -27622,7 +27534,7 @@ public int SignCount /// The large blob associated with the credential. /// See https://w3c.github.io/webauthn/#sctn-large-blob-extension /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("largeBlob"), IsRequired = (false))] + [DataMember(Name = ("largeBlob"), IsRequired = (false))] public byte[] LargeBlob { get; @@ -27639,7 +27551,7 @@ public class CredentialAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// AuthenticatorId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("authenticatorId"), IsRequired = (true))] + [DataMember(Name = ("authenticatorId"), IsRequired = (true))] public string AuthenticatorId { get; @@ -27649,7 +27561,7 @@ public string AuthenticatorId /// /// Credential /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("credential"), IsRequired = (true))] + [DataMember(Name = ("credential"), IsRequired = (true))] public CefSharp.DevTools.WebAuthn.Credential Credential { get; @@ -27666,7 +27578,7 @@ public class CredentialAssertedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// AuthenticatorId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("authenticatorId"), IsRequired = (true))] + [DataMember(Name = ("authenticatorId"), IsRequired = (true))] public string AuthenticatorId { get; @@ -27676,7 +27588,7 @@ public string AuthenticatorId /// /// Credential /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("credential"), IsRequired = (true))] + [DataMember(Name = ("credential"), IsRequired = (true))] public CefSharp.DevTools.WebAuthn.Credential Credential { get; @@ -27703,22 +27615,22 @@ public enum PlayerMessageLevel /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error, /// /// warning /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("warning"))] + [EnumMember(Value = ("warning"))] Warning, /// /// info /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("info"))] + [EnumMember(Value = ("info"))] Info, /// /// debug /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("debug"))] + [EnumMember(Value = ("debug"))] Debug } @@ -27764,7 +27676,7 @@ public CefSharp.DevTools.Media.PlayerMessageLevel Level /// introducing a new error type which should hopefully let us integrate /// the error log level into the PlayerError type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("level"), IsRequired = (true))] + [DataMember(Name = ("level"), IsRequired = (true))] internal string level { get; @@ -27774,7 +27686,7 @@ internal string level /// /// Message /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("message"), IsRequired = (true))] + [DataMember(Name = ("message"), IsRequired = (true))] public string Message { get; @@ -27791,7 +27703,7 @@ public partial class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -27801,7 +27713,7 @@ public string Name /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -27818,7 +27730,7 @@ public partial class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Timestamp /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -27828,7 +27740,7 @@ public double Timestamp /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public string Value { get; @@ -27846,7 +27758,7 @@ public partial class PlayerErrorSourceLocation : CefSharp.DevTools.DevToolsDomai /// /// File /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("file"), IsRequired = (true))] + [DataMember(Name = ("file"), IsRequired = (true))] public string File { get; @@ -27856,7 +27768,7 @@ public string File /// /// Line /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("line"), IsRequired = (true))] + [DataMember(Name = ("line"), IsRequired = (true))] public int Line { get; @@ -27873,7 +27785,7 @@ public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ErrorType /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errorType"), IsRequired = (true))] + [DataMember(Name = ("errorType"), IsRequired = (true))] public string ErrorType { get; @@ -27884,7 +27796,7 @@ public string ErrorType /// Code is the numeric enum entry for a specific set of error codes, such /// as PipelineStatusCodes in media/base/pipeline_status.h /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("code"), IsRequired = (true))] + [DataMember(Name = ("code"), IsRequired = (true))] public int Code { get; @@ -27894,7 +27806,7 @@ public int Code /// /// A trace of where this error was caused / where it passed through. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stack"), IsRequired = (true))] + [DataMember(Name = ("stack"), IsRequired = (true))] public System.Collections.Generic.IList Stack { get; @@ -27905,7 +27817,7 @@ public System.Collections.Generic.IList - [System.Runtime.Serialization.DataMemberAttribute(Name = ("cause"), IsRequired = (true))] + [DataMember(Name = ("cause"), IsRequired = (true))] public System.Collections.Generic.IList Cause { get; @@ -27915,7 +27827,7 @@ public System.Collections.Generic.IList Cau /// /// Extra data attached to an error, such as an HRESULT, Video Codec, etc. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (true))] + [DataMember(Name = ("data"), IsRequired = (true))] public object Data { get; @@ -27933,7 +27845,7 @@ public class PlayerPropertiesChangedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// PlayerId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + [DataMember(Name = ("playerId"), IsRequired = (true))] public string PlayerId { get; @@ -27943,7 +27855,7 @@ public string PlayerId /// /// Properties /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("properties"), IsRequired = (true))] + [DataMember(Name = ("properties"), IsRequired = (true))] public System.Collections.Generic.IList Properties { get; @@ -27961,7 +27873,7 @@ public class PlayerEventsAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// PlayerId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + [DataMember(Name = ("playerId"), IsRequired = (true))] public string PlayerId { get; @@ -27971,7 +27883,7 @@ public string PlayerId /// /// Events /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("events"), IsRequired = (true))] + [DataMember(Name = ("events"), IsRequired = (true))] public System.Collections.Generic.IList Events { get; @@ -27988,7 +27900,7 @@ public class PlayerMessagesLoggedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// PlayerId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + [DataMember(Name = ("playerId"), IsRequired = (true))] public string PlayerId { get; @@ -27998,7 +27910,7 @@ public string PlayerId /// /// Messages /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("messages"), IsRequired = (true))] + [DataMember(Name = ("messages"), IsRequired = (true))] public System.Collections.Generic.IList Messages { get; @@ -28015,7 +27927,7 @@ public class PlayerErrorsRaisedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// PlayerId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("playerId"), IsRequired = (true))] + [DataMember(Name = ("playerId"), IsRequired = (true))] public string PlayerId { get; @@ -28025,7 +27937,7 @@ public string PlayerId /// /// Errors /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("errors"), IsRequired = (true))] + [DataMember(Name = ("errors"), IsRequired = (true))] public System.Collections.Generic.IList Errors { get; @@ -28044,7 +27956,7 @@ public class PlayersCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Players /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("players"), IsRequired = (true))] + [DataMember(Name = ("players"), IsRequired = (true))] public string[] Players { get; @@ -28053,6 +27965,144 @@ public string[] Players } } +namespace CefSharp.DevTools.DeviceAccess +{ + /// + /// Device information displayed in a user prompt to select a device. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class PromptDevice : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Id + /// + [DataMember(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + set; + } + + /// + /// Display name as it appears in a device request user prompt. + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + } + + /// + /// A device request opened a user prompt to select a device. Respond with the + /// selectPrompt or cancelPrompt command. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DeviceRequestPromptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [DataMember(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + private set; + } + + /// + /// Devices + /// + [DataMember(Name = ("devices"), IsRequired = (true))] + public System.Collections.Generic.IList Devices + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Preload +{ + /// + /// Corresponds to SpeculationRuleSet + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class RuleSet : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Id + /// + [DataMember(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + set; + } + + /// + /// Identifies a document which the rule set is associated with. + /// + [DataMember(Name = ("loaderId"), IsRequired = (true))] + public string LoaderId + { + get; + set; + } + + /// + /// Source text of JSON representing the rule set. If it comes from + /// <script> tag, it is the textContent of the node. Note that it is + /// a JSON for valid case. + /// + /// See also: + /// - https://wicg.github.io/nav-speculation/speculation-rules.html + /// - https://github.com/WICG/nav-speculation/blob/main/triggers.md + /// + [DataMember(Name = ("sourceText"), IsRequired = (true))] + public string SourceText + { + get; + set; + } + } + + /// + /// Upsert. Currently, it is only emitted when a rule set added. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RuleSetUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RuleSet + /// + [DataMember(Name = ("ruleSet"), IsRequired = (true))] + public CefSharp.DevTools.Preload.RuleSet RuleSet + { + get; + private set; + } + } + + /// + /// ruleSetRemoved + /// + [System.Runtime.Serialization.DataContractAttribute] + public class RuleSetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [DataMember(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -28064,7 +28114,7 @@ public partial class Location : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Script identifier as reported in the `Debugger.scriptParsed`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -28074,7 +28124,7 @@ public string ScriptId /// /// Line number in the script (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -28084,7 +28134,7 @@ public int LineNumber /// /// Column number in the script (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (false))] + [DataMember(Name = ("columnNumber"), IsRequired = (false))] public int? ColumnNumber { get; @@ -28101,7 +28151,7 @@ public partial class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase /// /// LineNumber /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -28111,7 +28161,7 @@ public int LineNumber /// /// ColumnNumber /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (true))] + [DataMember(Name = ("columnNumber"), IsRequired = (true))] public int ColumnNumber { get; @@ -28128,7 +28178,7 @@ public partial class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ScriptId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -28138,7 +28188,7 @@ public string ScriptId /// /// Start /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("start"), IsRequired = (true))] + [DataMember(Name = ("start"), IsRequired = (true))] public CefSharp.DevTools.Debugger.ScriptPosition Start { get; @@ -28148,7 +28198,7 @@ public CefSharp.DevTools.Debugger.ScriptPosition Start /// /// End /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("end"), IsRequired = (true))] + [DataMember(Name = ("end"), IsRequired = (true))] public CefSharp.DevTools.Debugger.ScriptPosition End { get; @@ -28165,7 +28215,7 @@ public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Call frame identifier. This identifier is only valid while the virtual machine is paused. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callFrameId"), IsRequired = (true))] + [DataMember(Name = ("callFrameId"), IsRequired = (true))] public string CallFrameId { get; @@ -28175,7 +28225,7 @@ public string CallFrameId /// /// Name of the JavaScript function called on this call frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("functionName"), IsRequired = (true))] + [DataMember(Name = ("functionName"), IsRequired = (true))] public string FunctionName { get; @@ -28185,7 +28235,7 @@ public string FunctionName /// /// Location in the source code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("functionLocation"), IsRequired = (false))] + [DataMember(Name = ("functionLocation"), IsRequired = (false))] public CefSharp.DevTools.Debugger.Location FunctionLocation { get; @@ -28195,7 +28245,7 @@ public CefSharp.DevTools.Debugger.Location FunctionLocation /// /// Location in the source code. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))] + [DataMember(Name = ("location"), IsRequired = (true))] public CefSharp.DevTools.Debugger.Location Location { get; @@ -28207,7 +28257,7 @@ public CefSharp.DevTools.Debugger.Location Location /// Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously /// sent `Debugger.scriptParsed` event. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -28217,7 +28267,7 @@ public string Url /// /// Scope chain for this call frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scopeChain"), IsRequired = (true))] + [DataMember(Name = ("scopeChain"), IsRequired = (true))] public System.Collections.Generic.IList ScopeChain { get; @@ -28227,7 +28277,7 @@ public System.Collections.Generic.IList ScopeC /// /// `this` object for this call frame. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("this"), IsRequired = (true))] + [DataMember(Name = ("this"), IsRequired = (true))] public CefSharp.DevTools.Runtime.RemoteObject This { get; @@ -28237,7 +28287,7 @@ public CefSharp.DevTools.Runtime.RemoteObject This /// /// The value being returned, if the function is at return point. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("returnValue"), IsRequired = (false))] + [DataMember(Name = ("returnValue"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject ReturnValue { get; @@ -28250,7 +28300,7 @@ public CefSharp.DevTools.Runtime.RemoteObject ReturnValue /// guarantee that Debugger#restartFrame with this CallFrameId will be /// successful, but it is very likely. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("canBeRestarted"), IsRequired = (false))] + [DataMember(Name = ("canBeRestarted"), IsRequired = (false))] public bool? CanBeRestarted { get; @@ -28266,52 +28316,52 @@ public enum ScopeType /// /// global /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("global"))] + [EnumMember(Value = ("global"))] Global, /// /// local /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("local"))] + [EnumMember(Value = ("local"))] Local, /// /// with /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("with"))] + [EnumMember(Value = ("with"))] With, /// /// closure /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("closure"))] + [EnumMember(Value = ("closure"))] Closure, /// /// catch /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("catch"))] + [EnumMember(Value = ("catch"))] Catch, /// /// block /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("block"))] + [EnumMember(Value = ("block"))] Block, /// /// script /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("script"))] + [EnumMember(Value = ("script"))] Script, /// /// eval /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("eval"))] + [EnumMember(Value = ("eval"))] Eval, /// /// module /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("module"))] + [EnumMember(Value = ("module"))] Module, /// /// wasm-expression-stack /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wasm-expression-stack"))] + [EnumMember(Value = ("wasm-expression-stack"))] WasmExpressionStack } @@ -28340,7 +28390,7 @@ public CefSharp.DevTools.Debugger.ScopeType Type /// /// Scope type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -28352,7 +28402,7 @@ internal string type /// object; for the rest of the scopes, it is artificial transient object enumerating scope /// variables as its properties. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("object"), IsRequired = (true))] + [DataMember(Name = ("object"), IsRequired = (true))] public CefSharp.DevTools.Runtime.RemoteObject Object { get; @@ -28362,7 +28412,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Object /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (false))] + [DataMember(Name = ("name"), IsRequired = (false))] public string Name { get; @@ -28372,7 +28422,7 @@ public string Name /// /// Location in the source code where scope starts /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLocation"), IsRequired = (false))] + [DataMember(Name = ("startLocation"), IsRequired = (false))] public CefSharp.DevTools.Debugger.Location StartLocation { get; @@ -28382,7 +28432,7 @@ public CefSharp.DevTools.Debugger.Location StartLocation /// /// Location in the source code where scope ends /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLocation"), IsRequired = (false))] + [DataMember(Name = ("endLocation"), IsRequired = (false))] public CefSharp.DevTools.Debugger.Location EndLocation { get; @@ -28399,7 +28449,7 @@ public partial class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Line number in resource content. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public double LineNumber { get; @@ -28409,7 +28459,7 @@ public double LineNumber /// /// Line with match content. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineContent"), IsRequired = (true))] + [DataMember(Name = ("lineContent"), IsRequired = (true))] public string LineContent { get; @@ -28425,17 +28475,17 @@ public enum BreakLocationType /// /// debuggerStatement /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("debuggerStatement"))] + [EnumMember(Value = ("debuggerStatement"))] DebuggerStatement, /// /// call /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("call"))] + [EnumMember(Value = ("call"))] Call, /// /// return /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("return"))] + [EnumMember(Value = ("return"))] Return } @@ -28448,7 +28498,7 @@ public partial class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Script identifier as reported in the `Debugger.scriptParsed`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -28458,7 +28508,7 @@ public string ScriptId /// /// Line number in the script (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -28468,7 +28518,7 @@ public int LineNumber /// /// Column number in the script (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (false))] + [DataMember(Name = ("columnNumber"), IsRequired = (false))] public int? ColumnNumber { get; @@ -28494,7 +28544,7 @@ public CefSharp.DevTools.Debugger.BreakLocationType? Type /// /// Type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (false))] + [DataMember(Name = ("type"), IsRequired = (false))] internal string type { get; @@ -28511,7 +28561,7 @@ public partial class WasmDisassemblyChunk : CefSharp.DevTools.DevToolsDomainEnti /// /// The next chunk of disassembled lines. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lines"), IsRequired = (true))] + [DataMember(Name = ("lines"), IsRequired = (true))] public string[] Lines { get; @@ -28521,7 +28571,7 @@ public string[] Lines /// /// The bytecode offsets describing the start of each line. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bytecodeOffsets"), IsRequired = (true))] + [DataMember(Name = ("bytecodeOffsets"), IsRequired = (true))] public int[] BytecodeOffsets { get; @@ -28537,12 +28587,12 @@ public enum ScriptLanguage /// /// JavaScript /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("JavaScript"))] + [EnumMember(Value = ("JavaScript"))] JavaScript, /// /// WebAssembly /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("WebAssembly"))] + [EnumMember(Value = ("WebAssembly"))] WebAssembly } @@ -28554,22 +28604,22 @@ public enum DebugSymbolsType /// /// None /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("None"))] + [EnumMember(Value = ("None"))] None, /// /// SourceMap /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("SourceMap"))] + [EnumMember(Value = ("SourceMap"))] SourceMap, /// /// EmbeddedDWARF /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EmbeddedDWARF"))] + [EnumMember(Value = ("EmbeddedDWARF"))] EmbeddedDWARF, /// /// ExternalDWARF /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ExternalDWARF"))] + [EnumMember(Value = ("ExternalDWARF"))] ExternalDWARF } @@ -28598,7 +28648,7 @@ public CefSharp.DevTools.Debugger.DebugSymbolsType Type /// /// Type of the debug symbols. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -28608,7 +28658,7 @@ internal string type /// /// URL of the external symbol source. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("externalURL"), IsRequired = (false))] + [DataMember(Name = ("externalURL"), IsRequired = (false))] public string ExternalURL { get; @@ -28625,7 +28675,7 @@ public class BreakpointResolvedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Breakpoint unique identifier. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("breakpointId"), IsRequired = (true))] + [DataMember(Name = ("breakpointId"), IsRequired = (true))] public string BreakpointId { get; @@ -28635,7 +28685,7 @@ public string BreakpointId /// /// Actual breakpoint location. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))] + [DataMember(Name = ("location"), IsRequired = (true))] public CefSharp.DevTools.Debugger.Location Location { get; @@ -28651,62 +28701,62 @@ public enum PausedReason /// /// ambiguous /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ambiguous"))] + [EnumMember(Value = ("ambiguous"))] Ambiguous, /// /// assert /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("assert"))] + [EnumMember(Value = ("assert"))] Assert, /// /// CSPViolation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("CSPViolation"))] + [EnumMember(Value = ("CSPViolation"))] CSPViolation, /// /// debugCommand /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("debugCommand"))] + [EnumMember(Value = ("debugCommand"))] DebugCommand, /// /// DOM /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("DOM"))] + [EnumMember(Value = ("DOM"))] DOM, /// /// EventListener /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("EventListener"))] + [EnumMember(Value = ("EventListener"))] EventListener, /// /// exception /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("exception"))] + [EnumMember(Value = ("exception"))] Exception, /// /// instrumentation /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("instrumentation"))] + [EnumMember(Value = ("instrumentation"))] Instrumentation, /// /// OOM /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("OOM"))] + [EnumMember(Value = ("OOM"))] OOM, /// /// other /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("other"))] + [EnumMember(Value = ("other"))] Other, /// /// promiseRejection /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("promiseRejection"))] + [EnumMember(Value = ("promiseRejection"))] PromiseRejection, /// /// XHR /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("XHR"))] + [EnumMember(Value = ("XHR"))] XHR } @@ -28719,7 +28769,7 @@ public class PausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Call stack the virtual machine stopped on. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callFrames"), IsRequired = (true))] + [DataMember(Name = ("callFrames"), IsRequired = (true))] public System.Collections.Generic.IList CallFrames { get; @@ -28745,7 +28795,7 @@ public CefSharp.DevTools.Debugger.PausedReason Reason /// /// Pause reason. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] internal string reason { get; @@ -28755,7 +28805,7 @@ internal string reason /// /// Object containing break-specific auxiliary properties. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("data"), IsRequired = (false))] + [DataMember(Name = ("data"), IsRequired = (false))] public object Data { get; @@ -28765,7 +28815,7 @@ public object Data /// /// Hit breakpoints IDs /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hitBreakpoints"), IsRequired = (false))] + [DataMember(Name = ("hitBreakpoints"), IsRequired = (false))] public string[] HitBreakpoints { get; @@ -28775,7 +28825,7 @@ public string[] HitBreakpoints /// /// Async stack trace, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("asyncStackTrace"), IsRequired = (false))] + [DataMember(Name = ("asyncStackTrace"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace { get; @@ -28785,7 +28835,7 @@ public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace /// /// Async stack trace, if any. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("asyncStackTraceId"), IsRequired = (false))] + [DataMember(Name = ("asyncStackTraceId"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId { get; @@ -28795,7 +28845,7 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId /// /// Never present, will be removed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("asyncCallStackTraceId"), IsRequired = (false))] + [DataMember(Name = ("asyncCallStackTraceId"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTraceId AsyncCallStackTraceId { get; @@ -28812,7 +28862,7 @@ public class ScriptFailedToParseEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Identifier of the script parsed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -28822,7 +28872,7 @@ public string ScriptId /// /// URL or name of the script parsed (if any). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -28832,7 +28882,7 @@ public string Url /// /// Line offset of the script within the resource with given URL (for script tags). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] + [DataMember(Name = ("startLine"), IsRequired = (true))] public int StartLine { get; @@ -28842,7 +28892,7 @@ public int StartLine /// /// Column offset of the script within the resource with given URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] + [DataMember(Name = ("startColumn"), IsRequired = (true))] public int StartColumn { get; @@ -28852,7 +28902,7 @@ public int StartColumn /// /// Last line of the script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] + [DataMember(Name = ("endLine"), IsRequired = (true))] public int EndLine { get; @@ -28862,7 +28912,7 @@ public int EndLine /// /// Length of the last line of the script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] + [DataMember(Name = ("endColumn"), IsRequired = (true))] public int EndColumn { get; @@ -28872,7 +28922,7 @@ public int EndColumn /// /// Specifies script creation context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + [DataMember(Name = ("executionContextId"), IsRequired = (true))] public int ExecutionContextId { get; @@ -28882,7 +28932,7 @@ public int ExecutionContextId /// /// Content hash of the script, SHA-256. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hash"), IsRequired = (true))] + [DataMember(Name = ("hash"), IsRequired = (true))] public string Hash { get; @@ -28892,7 +28942,7 @@ public string Hash /// /// Embedder-specific auxiliary data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextAuxData"), IsRequired = (false))] + [DataMember(Name = ("executionContextAuxData"), IsRequired = (false))] public object ExecutionContextAuxData { get; @@ -28902,7 +28952,7 @@ public object ExecutionContextAuxData /// /// URL of source map associated with script (if any). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceMapURL"), IsRequired = (false))] + [DataMember(Name = ("sourceMapURL"), IsRequired = (false))] public string SourceMapURL { get; @@ -28912,7 +28962,7 @@ public string SourceMapURL /// /// True, if this script has sourceURL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasSourceURL"), IsRequired = (false))] + [DataMember(Name = ("hasSourceURL"), IsRequired = (false))] public bool? HasSourceURL { get; @@ -28922,7 +28972,7 @@ public bool? HasSourceURL /// /// True, if this script is ES6 module. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isModule"), IsRequired = (false))] + [DataMember(Name = ("isModule"), IsRequired = (false))] public bool? IsModule { get; @@ -28932,7 +28982,7 @@ public bool? IsModule /// /// This script length. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (false))] + [DataMember(Name = ("length"), IsRequired = (false))] public int? Length { get; @@ -28942,7 +28992,7 @@ public int? Length /// /// JavaScript top stack frame of where the script parsed event was triggered if available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + [DataMember(Name = ("stackTrace"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -28952,7 +29002,7 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// If the scriptLanguage is WebAssembly, the code section offset in the module. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("codeOffset"), IsRequired = (false))] + [DataMember(Name = ("codeOffset"), IsRequired = (false))] public int? CodeOffset { get; @@ -28978,7 +29028,7 @@ public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage /// /// The language of the script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptLanguage"), IsRequired = (false))] + [DataMember(Name = ("scriptLanguage"), IsRequired = (false))] internal string scriptLanguage { get; @@ -28988,7 +29038,7 @@ internal string scriptLanguage /// /// The name the embedder supplied for this script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("embedderName"), IsRequired = (false))] + [DataMember(Name = ("embedderName"), IsRequired = (false))] public string EmbedderName { get; @@ -29006,7 +29056,7 @@ public class ScriptParsedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Identifier of the script parsed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -29016,7 +29066,7 @@ public string ScriptId /// /// URL or name of the script parsed (if any). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -29026,7 +29076,7 @@ public string Url /// /// Line offset of the script within the resource with given URL (for script tags). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startLine"), IsRequired = (true))] + [DataMember(Name = ("startLine"), IsRequired = (true))] public int StartLine { get; @@ -29036,7 +29086,7 @@ public int StartLine /// /// Column offset of the script within the resource with given URL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startColumn"), IsRequired = (true))] + [DataMember(Name = ("startColumn"), IsRequired = (true))] public int StartColumn { get; @@ -29046,7 +29096,7 @@ public int StartColumn /// /// Last line of the script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endLine"), IsRequired = (true))] + [DataMember(Name = ("endLine"), IsRequired = (true))] public int EndLine { get; @@ -29056,7 +29106,7 @@ public int EndLine /// /// Length of the last line of the script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endColumn"), IsRequired = (true))] + [DataMember(Name = ("endColumn"), IsRequired = (true))] public int EndColumn { get; @@ -29066,7 +29116,7 @@ public int EndColumn /// /// Specifies script creation context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + [DataMember(Name = ("executionContextId"), IsRequired = (true))] public int ExecutionContextId { get; @@ -29076,7 +29126,7 @@ public int ExecutionContextId /// /// Content hash of the script, SHA-256. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hash"), IsRequired = (true))] + [DataMember(Name = ("hash"), IsRequired = (true))] public string Hash { get; @@ -29086,7 +29136,7 @@ public string Hash /// /// Embedder-specific auxiliary data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextAuxData"), IsRequired = (false))] + [DataMember(Name = ("executionContextAuxData"), IsRequired = (false))] public object ExecutionContextAuxData { get; @@ -29096,7 +29146,7 @@ public object ExecutionContextAuxData /// /// True, if this script is generated as a result of the live edit operation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isLiveEdit"), IsRequired = (false))] + [DataMember(Name = ("isLiveEdit"), IsRequired = (false))] public bool? IsLiveEdit { get; @@ -29106,7 +29156,7 @@ public bool? IsLiveEdit /// /// URL of source map associated with script (if any). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("sourceMapURL"), IsRequired = (false))] + [DataMember(Name = ("sourceMapURL"), IsRequired = (false))] public string SourceMapURL { get; @@ -29116,7 +29166,7 @@ public string SourceMapURL /// /// True, if this script has sourceURL. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasSourceURL"), IsRequired = (false))] + [DataMember(Name = ("hasSourceURL"), IsRequired = (false))] public bool? HasSourceURL { get; @@ -29126,7 +29176,7 @@ public bool? HasSourceURL /// /// True, if this script is ES6 module. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isModule"), IsRequired = (false))] + [DataMember(Name = ("isModule"), IsRequired = (false))] public bool? IsModule { get; @@ -29136,7 +29186,7 @@ public bool? IsModule /// /// This script length. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("length"), IsRequired = (false))] + [DataMember(Name = ("length"), IsRequired = (false))] public int? Length { get; @@ -29146,7 +29196,7 @@ public int? Length /// /// JavaScript top stack frame of where the script parsed event was triggered if available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + [DataMember(Name = ("stackTrace"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -29156,7 +29206,7 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// If the scriptLanguage is WebAssembly, the code section offset in the module. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("codeOffset"), IsRequired = (false))] + [DataMember(Name = ("codeOffset"), IsRequired = (false))] public int? CodeOffset { get; @@ -29182,7 +29232,7 @@ public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage /// /// The language of the script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptLanguage"), IsRequired = (false))] + [DataMember(Name = ("scriptLanguage"), IsRequired = (false))] internal string scriptLanguage { get; @@ -29192,7 +29242,7 @@ internal string scriptLanguage /// /// If the scriptLanguage is WebASsembly, the source of debug symbols for the module. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("debugSymbols"), IsRequired = (false))] + [DataMember(Name = ("debugSymbols"), IsRequired = (false))] public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols { get; @@ -29202,7 +29252,7 @@ public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols /// /// The name the embedder supplied for this script. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("embedderName"), IsRequired = (false))] + [DataMember(Name = ("embedderName"), IsRequired = (false))] public string EmbedderName { get; @@ -29222,7 +29272,7 @@ public partial class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainE /// /// Function location. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callFrame"), IsRequired = (true))] + [DataMember(Name = ("callFrame"), IsRequired = (true))] public CefSharp.DevTools.Runtime.CallFrame CallFrame { get; @@ -29232,7 +29282,7 @@ public CefSharp.DevTools.Runtime.CallFrame CallFrame /// /// Allocations size in bytes for the node excluding children. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("selfSize"), IsRequired = (true))] + [DataMember(Name = ("selfSize"), IsRequired = (true))] public double SelfSize { get; @@ -29242,7 +29292,7 @@ public double SelfSize /// /// Node id. Ids are unique across all profiles collected between startSampling and stopSampling. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public int Id { get; @@ -29252,7 +29302,7 @@ public int Id /// /// Child nodes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("children"), IsRequired = (true))] + [DataMember(Name = ("children"), IsRequired = (true))] public System.Collections.Generic.IList Children { get; @@ -29269,7 +29319,7 @@ public partial class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomai /// /// Allocation size in bytes attributed to the sample. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("size"), IsRequired = (true))] + [DataMember(Name = ("size"), IsRequired = (true))] public double Size { get; @@ -29279,7 +29329,7 @@ public double Size /// /// Id of the corresponding profile tree node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodeId"), IsRequired = (true))] + [DataMember(Name = ("nodeId"), IsRequired = (true))] public int NodeId { get; @@ -29290,7 +29340,7 @@ public int NodeId /// Time-ordered sample ordinal number. It is unique across all profiles retrieved /// between startSampling and stopSampling. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ordinal"), IsRequired = (true))] + [DataMember(Name = ("ordinal"), IsRequired = (true))] public double Ordinal { get; @@ -29307,7 +29357,7 @@ public partial class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntit /// /// Head /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("head"), IsRequired = (true))] + [DataMember(Name = ("head"), IsRequired = (true))] public CefSharp.DevTools.HeapProfiler.SamplingHeapProfileNode Head { get; @@ -29317,7 +29367,7 @@ public CefSharp.DevTools.HeapProfiler.SamplingHeapProfileNode Head /// /// Samples /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("samples"), IsRequired = (true))] + [DataMember(Name = ("samples"), IsRequired = (true))] public System.Collections.Generic.IList Samples { get; @@ -29334,7 +29384,7 @@ public class AddHeapSnapshotChunkEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Chunk /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("chunk"), IsRequired = (true))] + [DataMember(Name = ("chunk"), IsRequired = (true))] public string Chunk { get; @@ -29353,7 +29403,7 @@ public class HeapStatsUpdateEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// index, the second integer is a total count of objects for the fragment, the third integer is /// a total size of the objects for the fragment. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("statsUpdate"), IsRequired = (true))] + [DataMember(Name = ("statsUpdate"), IsRequired = (true))] public int[] StatsUpdate { get; @@ -29372,7 +29422,7 @@ public class LastSeenObjectIdEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// LastSeenObjectId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lastSeenObjectId"), IsRequired = (true))] + [DataMember(Name = ("lastSeenObjectId"), IsRequired = (true))] public int LastSeenObjectId { get; @@ -29382,7 +29432,7 @@ public int LastSeenObjectId /// /// Timestamp /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -29399,7 +29449,7 @@ public class ReportHeapSnapshotProgressEventArgs : CefSharp.DevTools.DevToolsDom /// /// Done /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("done"), IsRequired = (true))] + [DataMember(Name = ("done"), IsRequired = (true))] public int Done { get; @@ -29409,7 +29459,7 @@ public int Done /// /// Total /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("total"), IsRequired = (true))] + [DataMember(Name = ("total"), IsRequired = (true))] public int Total { get; @@ -29419,7 +29469,7 @@ public int Total /// /// Finished /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("finished"), IsRequired = (false))] + [DataMember(Name = ("finished"), IsRequired = (false))] public bool? Finished { get; @@ -29439,7 +29489,7 @@ public partial class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Unique id of the node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public int Id { get; @@ -29449,7 +29499,7 @@ public int Id /// /// Function location. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callFrame"), IsRequired = (true))] + [DataMember(Name = ("callFrame"), IsRequired = (true))] public CefSharp.DevTools.Runtime.CallFrame CallFrame { get; @@ -29459,7 +29509,7 @@ public CefSharp.DevTools.Runtime.CallFrame CallFrame /// /// Number of samples where this node was on top of the call stack. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hitCount"), IsRequired = (false))] + [DataMember(Name = ("hitCount"), IsRequired = (false))] public int? HitCount { get; @@ -29469,7 +29519,7 @@ public int? HitCount /// /// Child node ids. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("children"), IsRequired = (false))] + [DataMember(Name = ("children"), IsRequired = (false))] public int[] Children { get; @@ -29480,7 +29530,7 @@ public int[] Children /// The reason of being not optimized. The function may be deoptimized or marked as don't /// optimize. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("deoptReason"), IsRequired = (false))] + [DataMember(Name = ("deoptReason"), IsRequired = (false))] public string DeoptReason { get; @@ -29490,7 +29540,7 @@ public string DeoptReason /// /// An array of source position ticks. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("positionTicks"), IsRequired = (false))] + [DataMember(Name = ("positionTicks"), IsRequired = (false))] public System.Collections.Generic.IList PositionTicks { get; @@ -29507,7 +29557,7 @@ public partial class Profile : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The list of profile nodes. First item is the root node. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("nodes"), IsRequired = (true))] + [DataMember(Name = ("nodes"), IsRequired = (true))] public System.Collections.Generic.IList Nodes { get; @@ -29517,7 +29567,7 @@ public System.Collections.Generic.IList /// /// Profiling start timestamp in microseconds. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startTime"), IsRequired = (true))] + [DataMember(Name = ("startTime"), IsRequired = (true))] public double StartTime { get; @@ -29527,7 +29577,7 @@ public double StartTime /// /// Profiling end timestamp in microseconds. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endTime"), IsRequired = (true))] + [DataMember(Name = ("endTime"), IsRequired = (true))] public double EndTime { get; @@ -29537,7 +29587,7 @@ public double EndTime /// /// Ids of samples top nodes. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("samples"), IsRequired = (false))] + [DataMember(Name = ("samples"), IsRequired = (false))] public int[] Samples { get; @@ -29548,7 +29598,7 @@ public int[] Samples /// Time intervals between adjacent samples in microseconds. The first delta is relative to the /// profile startTime. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timeDeltas"), IsRequired = (false))] + [DataMember(Name = ("timeDeltas"), IsRequired = (false))] public int[] TimeDeltas { get; @@ -29565,7 +29615,7 @@ public partial class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Source line number (1-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("line"), IsRequired = (true))] + [DataMember(Name = ("line"), IsRequired = (true))] public int Line { get; @@ -29575,7 +29625,7 @@ public int Line /// /// Number of samples attributed to the source line. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ticks"), IsRequired = (true))] + [DataMember(Name = ("ticks"), IsRequired = (true))] public int Ticks { get; @@ -29592,7 +29642,7 @@ public partial class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// JavaScript script source offset for the range start. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("startOffset"), IsRequired = (true))] + [DataMember(Name = ("startOffset"), IsRequired = (true))] public int StartOffset { get; @@ -29602,7 +29652,7 @@ public int StartOffset /// /// JavaScript script source offset for the range end. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("endOffset"), IsRequired = (true))] + [DataMember(Name = ("endOffset"), IsRequired = (true))] public int EndOffset { get; @@ -29612,7 +29662,7 @@ public int EndOffset /// /// Collected execution count of the source range. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("count"), IsRequired = (true))] + [DataMember(Name = ("count"), IsRequired = (true))] public int Count { get; @@ -29629,7 +29679,7 @@ public partial class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBa /// /// JavaScript function name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("functionName"), IsRequired = (true))] + [DataMember(Name = ("functionName"), IsRequired = (true))] public string FunctionName { get; @@ -29639,7 +29689,7 @@ public string FunctionName /// /// Source ranges inside the function with coverage data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("ranges"), IsRequired = (true))] + [DataMember(Name = ("ranges"), IsRequired = (true))] public System.Collections.Generic.IList Ranges { get; @@ -29649,7 +29699,7 @@ public System.Collections.Generic.IList /// Whether coverage data for this function has block granularity. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isBlockCoverage"), IsRequired = (true))] + [DataMember(Name = ("isBlockCoverage"), IsRequired = (true))] public bool IsBlockCoverage { get; @@ -29666,7 +29716,7 @@ public partial class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase /// /// JavaScript script id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -29676,7 +29726,7 @@ public string ScriptId /// /// JavaScript script name or url. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -29686,7 +29736,7 @@ public string Url /// /// Functions contained in the script that has coverage data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("functions"), IsRequired = (true))] + [DataMember(Name = ("functions"), IsRequired = (true))] public System.Collections.Generic.IList Functions { get; @@ -29703,7 +29753,7 @@ public class ConsoleProfileFinishedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Id /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -29713,7 +29763,7 @@ public string Id /// /// Location of console.profileEnd(). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))] + [DataMember(Name = ("location"), IsRequired = (true))] public CefSharp.DevTools.Debugger.Location Location { get; @@ -29723,7 +29773,7 @@ public CefSharp.DevTools.Debugger.Location Location /// /// Profile /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("profile"), IsRequired = (true))] + [DataMember(Name = ("profile"), IsRequired = (true))] public CefSharp.DevTools.Profiler.Profile Profile { get; @@ -29733,7 +29783,7 @@ public CefSharp.DevTools.Profiler.Profile Profile /// /// Profile title passed as an argument to console.profile(). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (false))] + [DataMember(Name = ("title"), IsRequired = (false))] public string Title { get; @@ -29750,7 +29800,7 @@ public class ConsoleProfileStartedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Id /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -29760,7 +29810,7 @@ public string Id /// /// Location of console.profile(). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("location"), IsRequired = (true))] + [DataMember(Name = ("location"), IsRequired = (true))] public CefSharp.DevTools.Debugger.Location Location { get; @@ -29770,7 +29820,7 @@ public CefSharp.DevTools.Debugger.Location Location /// /// Profile title passed as an argument to console.profile(). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("title"), IsRequired = (false))] + [DataMember(Name = ("title"), IsRequired = (false))] public string Title { get; @@ -29790,7 +29840,7 @@ public class PreciseCoverageDeltaUpdateEventArgs : CefSharp.DevTools.DevToolsDom /// /// Monotonically increasing time (in seconds) when the coverage update was taken in the backend. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -29800,7 +29850,7 @@ public double Timestamp /// /// Identifier for distinguishing coverage events. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("occasion"), IsRequired = (true))] + [DataMember(Name = ("occasion"), IsRequired = (true))] public string Occasion { get; @@ -29810,7 +29860,7 @@ public string Occasion /// /// Coverage data for the current isolate. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("result"), IsRequired = (true))] + [DataMember(Name = ("result"), IsRequired = (true))] public System.Collections.Generic.IList Result { get; @@ -29829,117 +29879,117 @@ public enum WebDriverValueType /// /// undefined /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("undefined"))] + [EnumMember(Value = ("undefined"))] Undefined, /// /// null /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("null"))] + [EnumMember(Value = ("null"))] Null, /// /// string /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("string"))] + [EnumMember(Value = ("string"))] String, /// /// number /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("number"))] + [EnumMember(Value = ("number"))] Number, /// /// boolean /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("boolean"))] + [EnumMember(Value = ("boolean"))] Boolean, /// /// bigint /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bigint"))] + [EnumMember(Value = ("bigint"))] Bigint, /// /// regexp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("regexp"))] + [EnumMember(Value = ("regexp"))] Regexp, /// /// date /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("date"))] + [EnumMember(Value = ("date"))] Date, /// /// symbol /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("symbol"))] + [EnumMember(Value = ("symbol"))] Symbol, /// /// array /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("array"))] + [EnumMember(Value = ("array"))] Array, /// /// object /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("object"))] + [EnumMember(Value = ("object"))] Object, /// /// function /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("function"))] + [EnumMember(Value = ("function"))] Function, /// /// map /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("map"))] + [EnumMember(Value = ("map"))] Map, /// /// set /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("set"))] + [EnumMember(Value = ("set"))] Set, /// /// weakmap /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakmap"))] + [EnumMember(Value = ("weakmap"))] Weakmap, /// /// weakset /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakset"))] + [EnumMember(Value = ("weakset"))] Weakset, /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error, /// /// proxy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("proxy"))] + [EnumMember(Value = ("proxy"))] Proxy, /// /// promise /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("promise"))] + [EnumMember(Value = ("promise"))] Promise, /// /// typedarray /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("typedarray"))] + [EnumMember(Value = ("typedarray"))] Typedarray, /// /// arraybuffer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("arraybuffer"))] + [EnumMember(Value = ("arraybuffer"))] Arraybuffer, /// /// node /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("node"))] + [EnumMember(Value = ("node"))] Node, /// /// window /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("window"))] + [EnumMember(Value = ("window"))] Window } @@ -29969,7 +30019,7 @@ public CefSharp.DevTools.Runtime.WebDriverValueType Type /// /// Type /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -29979,7 +30029,7 @@ internal string type /// /// Value /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public object Value { get; @@ -29989,7 +30039,7 @@ public object Value /// /// ObjectId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("objectId"), IsRequired = (false))] + [DataMember(Name = ("objectId"), IsRequired = (false))] public string ObjectId { get; @@ -30005,42 +30055,42 @@ public enum RemoteObjectType /// /// object /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("object"))] + [EnumMember(Value = ("object"))] Object, /// /// function /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("function"))] + [EnumMember(Value = ("function"))] Function, /// /// undefined /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("undefined"))] + [EnumMember(Value = ("undefined"))] Undefined, /// /// string /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("string"))] + [EnumMember(Value = ("string"))] String, /// /// number /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("number"))] + [EnumMember(Value = ("number"))] Number, /// /// boolean /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("boolean"))] + [EnumMember(Value = ("boolean"))] Boolean, /// /// symbol /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("symbol"))] + [EnumMember(Value = ("symbol"))] Symbol, /// /// bigint /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bigint"))] + [EnumMember(Value = ("bigint"))] Bigint } @@ -30054,97 +30104,97 @@ public enum RemoteObjectSubtype /// /// array /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("array"))] + [EnumMember(Value = ("array"))] Array, /// /// null /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("null"))] + [EnumMember(Value = ("null"))] Null, /// /// node /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("node"))] + [EnumMember(Value = ("node"))] Node, /// /// regexp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("regexp"))] + [EnumMember(Value = ("regexp"))] Regexp, /// /// date /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("date"))] + [EnumMember(Value = ("date"))] Date, /// /// map /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("map"))] + [EnumMember(Value = ("map"))] Map, /// /// set /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("set"))] + [EnumMember(Value = ("set"))] Set, /// /// weakmap /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakmap"))] + [EnumMember(Value = ("weakmap"))] Weakmap, /// /// weakset /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakset"))] + [EnumMember(Value = ("weakset"))] Weakset, /// /// iterator /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("iterator"))] + [EnumMember(Value = ("iterator"))] Iterator, /// /// generator /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("generator"))] + [EnumMember(Value = ("generator"))] Generator, /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error, /// /// proxy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("proxy"))] + [EnumMember(Value = ("proxy"))] Proxy, /// /// promise /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("promise"))] + [EnumMember(Value = ("promise"))] Promise, /// /// typedarray /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("typedarray"))] + [EnumMember(Value = ("typedarray"))] Typedarray, /// /// arraybuffer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("arraybuffer"))] + [EnumMember(Value = ("arraybuffer"))] Arraybuffer, /// /// dataview /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dataview"))] + [EnumMember(Value = ("dataview"))] Dataview, /// /// webassemblymemory /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webassemblymemory"))] + [EnumMember(Value = ("webassemblymemory"))] Webassemblymemory, /// /// wasmvalue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wasmvalue"))] + [EnumMember(Value = ("wasmvalue"))] Wasmvalue } @@ -30173,7 +30223,7 @@ public CefSharp.DevTools.Runtime.RemoteObjectType Type /// /// Object type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -30203,7 +30253,7 @@ public CefSharp.DevTools.Runtime.RemoteObjectSubtype? Subtype /// NOTE: If you change anything here, make sure to also update /// `subtype` in `ObjectPreview` and `PropertyPreview` below. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subtype"), IsRequired = (false))] + [DataMember(Name = ("subtype"), IsRequired = (false))] internal string subtype { get; @@ -30213,7 +30263,7 @@ internal string subtype /// /// Object class (constructor) name. Specified for `object` type values only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("className"), IsRequired = (false))] + [DataMember(Name = ("className"), IsRequired = (false))] public string ClassName { get; @@ -30223,7 +30273,7 @@ public string ClassName /// /// Remote object value in case of primitive values or JSON values (if it was requested). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public object Value { get; @@ -30234,7 +30284,7 @@ public object Value /// Primitive value which can not be JSON-stringified does not have `value`, but gets this /// property. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("unserializableValue"), IsRequired = (false))] + [DataMember(Name = ("unserializableValue"), IsRequired = (false))] public string UnserializableValue { get; @@ -30244,7 +30294,7 @@ public string UnserializableValue /// /// String representation of the object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("description"), IsRequired = (false))] + [DataMember(Name = ("description"), IsRequired = (false))] public string Description { get; @@ -30254,7 +30304,7 @@ public string Description /// /// WebDriver BiDi representation of the value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("webDriverValue"), IsRequired = (false))] + [DataMember(Name = ("webDriverValue"), IsRequired = (false))] public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue { get; @@ -30264,7 +30314,7 @@ public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue /// /// Unique object identifier (for non-primitive values). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("objectId"), IsRequired = (false))] + [DataMember(Name = ("objectId"), IsRequired = (false))] public string ObjectId { get; @@ -30274,7 +30324,7 @@ public string ObjectId /// /// Preview containing abbreviated property values. Specified for `object` type values only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("preview"), IsRequired = (false))] + [DataMember(Name = ("preview"), IsRequired = (false))] public CefSharp.DevTools.Runtime.ObjectPreview Preview { get; @@ -30284,7 +30334,7 @@ public CefSharp.DevTools.Runtime.ObjectPreview Preview /// /// CustomPreview /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("customPreview"), IsRequired = (false))] + [DataMember(Name = ("customPreview"), IsRequired = (false))] public CefSharp.DevTools.Runtime.CustomPreview CustomPreview { get; @@ -30302,7 +30352,7 @@ public partial class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase /// The JSON-stringified result of formatter.header(object, config) call. /// It contains json ML array that represents RemoteObject. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("header"), IsRequired = (true))] + [DataMember(Name = ("header"), IsRequired = (true))] public string Header { get; @@ -30314,7 +30364,7 @@ public string Header /// contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. /// The result value is json ML array. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("bodyGetterId"), IsRequired = (false))] + [DataMember(Name = ("bodyGetterId"), IsRequired = (false))] public string BodyGetterId { get; @@ -30330,42 +30380,42 @@ public enum ObjectPreviewType /// /// object /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("object"))] + [EnumMember(Value = ("object"))] Object, /// /// function /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("function"))] + [EnumMember(Value = ("function"))] Function, /// /// undefined /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("undefined"))] + [EnumMember(Value = ("undefined"))] Undefined, /// /// string /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("string"))] + [EnumMember(Value = ("string"))] String, /// /// number /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("number"))] + [EnumMember(Value = ("number"))] Number, /// /// boolean /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("boolean"))] + [EnumMember(Value = ("boolean"))] Boolean, /// /// symbol /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("symbol"))] + [EnumMember(Value = ("symbol"))] Symbol, /// /// bigint /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bigint"))] + [EnumMember(Value = ("bigint"))] Bigint } @@ -30377,97 +30427,97 @@ public enum ObjectPreviewSubtype /// /// array /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("array"))] + [EnumMember(Value = ("array"))] Array, /// /// null /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("null"))] + [EnumMember(Value = ("null"))] Null, /// /// node /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("node"))] + [EnumMember(Value = ("node"))] Node, /// /// regexp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("regexp"))] + [EnumMember(Value = ("regexp"))] Regexp, /// /// date /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("date"))] + [EnumMember(Value = ("date"))] Date, /// /// map /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("map"))] + [EnumMember(Value = ("map"))] Map, /// /// set /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("set"))] + [EnumMember(Value = ("set"))] Set, /// /// weakmap /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakmap"))] + [EnumMember(Value = ("weakmap"))] Weakmap, /// /// weakset /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakset"))] + [EnumMember(Value = ("weakset"))] Weakset, /// /// iterator /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("iterator"))] + [EnumMember(Value = ("iterator"))] Iterator, /// /// generator /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("generator"))] + [EnumMember(Value = ("generator"))] Generator, /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error, /// /// proxy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("proxy"))] + [EnumMember(Value = ("proxy"))] Proxy, /// /// promise /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("promise"))] + [EnumMember(Value = ("promise"))] Promise, /// /// typedarray /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("typedarray"))] + [EnumMember(Value = ("typedarray"))] Typedarray, /// /// arraybuffer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("arraybuffer"))] + [EnumMember(Value = ("arraybuffer"))] Arraybuffer, /// /// dataview /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dataview"))] + [EnumMember(Value = ("dataview"))] Dataview, /// /// webassemblymemory /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webassemblymemory"))] + [EnumMember(Value = ("webassemblymemory"))] Webassemblymemory, /// /// wasmvalue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wasmvalue"))] + [EnumMember(Value = ("wasmvalue"))] Wasmvalue } @@ -30496,7 +30546,7 @@ public CefSharp.DevTools.Runtime.ObjectPreviewType Type /// /// Object type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -30522,7 +30572,7 @@ public CefSharp.DevTools.Runtime.ObjectPreviewSubtype? Subtype /// /// Object subtype hint. Specified for `object` type values only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subtype"), IsRequired = (false))] + [DataMember(Name = ("subtype"), IsRequired = (false))] internal string subtype { get; @@ -30532,7 +30582,7 @@ internal string subtype /// /// String representation of the object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("description"), IsRequired = (false))] + [DataMember(Name = ("description"), IsRequired = (false))] public string Description { get; @@ -30542,7 +30592,7 @@ public string Description /// /// True iff some of the properties or entries of the original object did not fit. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("overflow"), IsRequired = (true))] + [DataMember(Name = ("overflow"), IsRequired = (true))] public bool Overflow { get; @@ -30552,7 +30602,7 @@ public bool Overflow /// /// List of the properties. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("properties"), IsRequired = (true))] + [DataMember(Name = ("properties"), IsRequired = (true))] public System.Collections.Generic.IList Properties { get; @@ -30562,7 +30612,7 @@ public System.Collections.Generic.IList /// List of the entries. Specified for `map` and `set` subtype values only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("entries"), IsRequired = (false))] + [DataMember(Name = ("entries"), IsRequired = (false))] public System.Collections.Generic.IList Entries { get; @@ -30578,47 +30628,47 @@ public enum PropertyPreviewType /// /// object /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("object"))] + [EnumMember(Value = ("object"))] Object, /// /// function /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("function"))] + [EnumMember(Value = ("function"))] Function, /// /// undefined /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("undefined"))] + [EnumMember(Value = ("undefined"))] Undefined, /// /// string /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("string"))] + [EnumMember(Value = ("string"))] String, /// /// number /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("number"))] + [EnumMember(Value = ("number"))] Number, /// /// boolean /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("boolean"))] + [EnumMember(Value = ("boolean"))] Boolean, /// /// symbol /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("symbol"))] + [EnumMember(Value = ("symbol"))] Symbol, /// /// accessor /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("accessor"))] + [EnumMember(Value = ("accessor"))] Accessor, /// /// bigint /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("bigint"))] + [EnumMember(Value = ("bigint"))] Bigint } @@ -30630,97 +30680,97 @@ public enum PropertyPreviewSubtype /// /// array /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("array"))] + [EnumMember(Value = ("array"))] Array, /// /// null /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("null"))] + [EnumMember(Value = ("null"))] Null, /// /// node /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("node"))] + [EnumMember(Value = ("node"))] Node, /// /// regexp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("regexp"))] + [EnumMember(Value = ("regexp"))] Regexp, /// /// date /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("date"))] + [EnumMember(Value = ("date"))] Date, /// /// map /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("map"))] + [EnumMember(Value = ("map"))] Map, /// /// set /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("set"))] + [EnumMember(Value = ("set"))] Set, /// /// weakmap /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakmap"))] + [EnumMember(Value = ("weakmap"))] Weakmap, /// /// weakset /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("weakset"))] + [EnumMember(Value = ("weakset"))] Weakset, /// /// iterator /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("iterator"))] + [EnumMember(Value = ("iterator"))] Iterator, /// /// generator /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("generator"))] + [EnumMember(Value = ("generator"))] Generator, /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error, /// /// proxy /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("proxy"))] + [EnumMember(Value = ("proxy"))] Proxy, /// /// promise /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("promise"))] + [EnumMember(Value = ("promise"))] Promise, /// /// typedarray /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("typedarray"))] + [EnumMember(Value = ("typedarray"))] Typedarray, /// /// arraybuffer /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("arraybuffer"))] + [EnumMember(Value = ("arraybuffer"))] Arraybuffer, /// /// dataview /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dataview"))] + [EnumMember(Value = ("dataview"))] Dataview, /// /// webassemblymemory /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webassemblymemory"))] + [EnumMember(Value = ("webassemblymemory"))] Webassemblymemory, /// /// wasmvalue /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("wasmvalue"))] + [EnumMember(Value = ("wasmvalue"))] Wasmvalue } @@ -30733,7 +30783,7 @@ public partial class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Property name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -30759,7 +30809,7 @@ public CefSharp.DevTools.Runtime.PropertyPreviewType Type /// /// Object type. Accessor means that the property itself is an accessor property. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -30769,7 +30819,7 @@ internal string type /// /// User-friendly property value string. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public string Value { get; @@ -30779,7 +30829,7 @@ public string Value /// /// Nested value preview. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("valuePreview"), IsRequired = (false))] + [DataMember(Name = ("valuePreview"), IsRequired = (false))] public CefSharp.DevTools.Runtime.ObjectPreview ValuePreview { get; @@ -30805,7 +30855,7 @@ public CefSharp.DevTools.Runtime.PropertyPreviewSubtype? Subtype /// /// Object subtype hint. Specified for `object` type values only. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("subtype"), IsRequired = (false))] + [DataMember(Name = ("subtype"), IsRequired = (false))] internal string subtype { get; @@ -30822,7 +30872,7 @@ public partial class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Preview of the key. Specified for map-like collection entries. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("key"), IsRequired = (false))] + [DataMember(Name = ("key"), IsRequired = (false))] public CefSharp.DevTools.Runtime.ObjectPreview Key { get; @@ -30832,7 +30882,7 @@ public CefSharp.DevTools.Runtime.ObjectPreview Key /// /// Preview of the value. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (true))] + [DataMember(Name = ("value"), IsRequired = (true))] public CefSharp.DevTools.Runtime.ObjectPreview Value { get; @@ -30849,7 +30899,7 @@ public partial class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntity /// /// Property name or symbol description. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -30859,7 +30909,7 @@ public string Name /// /// The value associated with the property. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Value { get; @@ -30869,7 +30919,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Value /// /// True if the value associated with the property may be changed (data descriptors only). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("writable"), IsRequired = (false))] + [DataMember(Name = ("writable"), IsRequired = (false))] public bool? Writable { get; @@ -30880,7 +30930,7 @@ public bool? Writable /// A function which serves as a getter for the property, or `undefined` if there is no getter /// (accessor descriptors only). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("get"), IsRequired = (false))] + [DataMember(Name = ("get"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Get { get; @@ -30891,7 +30941,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Get /// A function which serves as a setter for the property, or `undefined` if there is no setter /// (accessor descriptors only). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("set"), IsRequired = (false))] + [DataMember(Name = ("set"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Set { get; @@ -30902,7 +30952,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Set /// True if the type of this property descriptor may be changed and if the property may be /// deleted from the corresponding object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("configurable"), IsRequired = (true))] + [DataMember(Name = ("configurable"), IsRequired = (true))] public bool Configurable { get; @@ -30913,7 +30963,7 @@ public bool Configurable /// True if this property shows up during enumeration of the properties on the corresponding /// object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("enumerable"), IsRequired = (true))] + [DataMember(Name = ("enumerable"), IsRequired = (true))] public bool Enumerable { get; @@ -30923,7 +30973,7 @@ public bool Enumerable /// /// True if the result was thrown during the evaluation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("wasThrown"), IsRequired = (false))] + [DataMember(Name = ("wasThrown"), IsRequired = (false))] public bool? WasThrown { get; @@ -30933,7 +30983,7 @@ public bool? WasThrown /// /// True if the property is owned for the object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("isOwn"), IsRequired = (false))] + [DataMember(Name = ("isOwn"), IsRequired = (false))] public bool? IsOwn { get; @@ -30943,7 +30993,7 @@ public bool? IsOwn /// /// Property symbol object, if the property is of the `symbol` type. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("symbol"), IsRequired = (false))] + [DataMember(Name = ("symbol"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Symbol { get; @@ -30960,7 +31010,7 @@ public partial class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDoma /// /// Conventional property name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -30970,7 +31020,7 @@ public string Name /// /// The value associated with the property. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Value { get; @@ -30987,7 +31037,7 @@ public partial class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomai /// /// Private property name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -30997,7 +31047,7 @@ public string Name /// /// The value associated with the private property. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Value { get; @@ -31008,7 +31058,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Value /// A function which serves as a getter for the private property, /// or `undefined` if there is no getter (accessor descriptors only). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("get"), IsRequired = (false))] + [DataMember(Name = ("get"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Get { get; @@ -31019,7 +31069,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Get /// A function which serves as a setter for the private property, /// or `undefined` if there is no setter (accessor descriptors only). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("set"), IsRequired = (false))] + [DataMember(Name = ("set"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Set { get; @@ -31037,7 +31087,7 @@ public partial class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Primitive value or serializable javascript object. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("value"), IsRequired = (false))] + [DataMember(Name = ("value"), IsRequired = (false))] public object Value { get; @@ -31047,7 +31097,7 @@ public object Value /// /// Primitive value which can not be JSON-stringified. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("unserializableValue"), IsRequired = (false))] + [DataMember(Name = ("unserializableValue"), IsRequired = (false))] public string UnserializableValue { get; @@ -31057,7 +31107,7 @@ public string UnserializableValue /// /// Remote object handle. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("objectId"), IsRequired = (false))] + [DataMember(Name = ("objectId"), IsRequired = (false))] public string ObjectId { get; @@ -31075,7 +31125,7 @@ public partial class ExecutionContextDescription : CefSharp.DevTools.DevToolsDom /// Unique id of the execution context. It can be used to specify in which execution context /// script evaluation should be performed. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public int Id { get; @@ -31085,7 +31135,7 @@ public int Id /// /// Execution context origin. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))] + [DataMember(Name = ("origin"), IsRequired = (true))] public string Origin { get; @@ -31095,7 +31145,7 @@ public string Origin /// /// Human readable name describing given context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -31107,7 +31157,7 @@ public string Name /// multiple processes, so can be reliably used to identify specific context while backend /// performs a cross-process navigation. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("uniqueId"), IsRequired = (true))] + [DataMember(Name = ("uniqueId"), IsRequired = (true))] public string UniqueId { get; @@ -31117,7 +31167,7 @@ public string UniqueId /// /// Embedder-specific auxiliary data. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("auxData"), IsRequired = (false))] + [DataMember(Name = ("auxData"), IsRequired = (false))] public object AuxData { get; @@ -31135,7 +31185,7 @@ public partial class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Exception id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("exceptionId"), IsRequired = (true))] + [DataMember(Name = ("exceptionId"), IsRequired = (true))] public int ExceptionId { get; @@ -31145,7 +31195,7 @@ public int ExceptionId /// /// Exception text, which should be used together with exception object when available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("text"), IsRequired = (true))] + [DataMember(Name = ("text"), IsRequired = (true))] public string Text { get; @@ -31155,7 +31205,7 @@ public string Text /// /// Line number of the exception location (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -31165,7 +31215,7 @@ public int LineNumber /// /// Column number of the exception location (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (true))] + [DataMember(Name = ("columnNumber"), IsRequired = (true))] public int ColumnNumber { get; @@ -31175,7 +31225,7 @@ public int ColumnNumber /// /// Script ID of the exception location. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (false))] + [DataMember(Name = ("scriptId"), IsRequired = (false))] public string ScriptId { get; @@ -31185,7 +31235,7 @@ public string ScriptId /// /// URL of the exception location, to be used when the script was not reported. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (false))] + [DataMember(Name = ("url"), IsRequired = (false))] public string Url { get; @@ -31195,7 +31245,7 @@ public string Url /// /// JavaScript stack trace if available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + [DataMember(Name = ("stackTrace"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -31205,7 +31255,7 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// Exception object if available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("exception"), IsRequired = (false))] + [DataMember(Name = ("exception"), IsRequired = (false))] public CefSharp.DevTools.Runtime.RemoteObject Exception { get; @@ -31215,7 +31265,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Exception /// /// Identifier of the context where exception happened. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (false))] + [DataMember(Name = ("executionContextId"), IsRequired = (false))] public int? ExecutionContextId { get; @@ -31227,7 +31277,7 @@ public int? ExecutionContextId /// with this exception, such as information about associated network /// requests, etc. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("exceptionMetaData"), IsRequired = (false))] + [DataMember(Name = ("exceptionMetaData"), IsRequired = (false))] public object ExceptionMetaData { get; @@ -31244,7 +31294,7 @@ public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// JavaScript function name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("functionName"), IsRequired = (true))] + [DataMember(Name = ("functionName"), IsRequired = (true))] public string FunctionName { get; @@ -31254,7 +31304,7 @@ public string FunctionName /// /// JavaScript script id. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("scriptId"), IsRequired = (true))] + [DataMember(Name = ("scriptId"), IsRequired = (true))] public string ScriptId { get; @@ -31264,7 +31314,7 @@ public string ScriptId /// /// JavaScript script name or url. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("url"), IsRequired = (true))] + [DataMember(Name = ("url"), IsRequired = (true))] public string Url { get; @@ -31274,7 +31324,7 @@ public string Url /// /// JavaScript script line number (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("lineNumber"), IsRequired = (true))] + [DataMember(Name = ("lineNumber"), IsRequired = (true))] public int LineNumber { get; @@ -31284,7 +31334,7 @@ public int LineNumber /// /// JavaScript script column number (0-based). /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("columnNumber"), IsRequired = (true))] + [DataMember(Name = ("columnNumber"), IsRequired = (true))] public int ColumnNumber { get; @@ -31302,7 +31352,7 @@ public partial class StackTrace : CefSharp.DevTools.DevToolsDomainEntityBase /// String label of this stack trace. For async traces this may be a name of the function that /// initiated the async call. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("description"), IsRequired = (false))] + [DataMember(Name = ("description"), IsRequired = (false))] public string Description { get; @@ -31312,7 +31362,7 @@ public string Description /// /// JavaScript function name. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("callFrames"), IsRequired = (true))] + [DataMember(Name = ("callFrames"), IsRequired = (true))] public System.Collections.Generic.IList CallFrames { get; @@ -31322,7 +31372,7 @@ public System.Collections.Generic.IList Cal /// /// Asynchronous JavaScript stack trace that preceded this stack, if available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parent"), IsRequired = (false))] + [DataMember(Name = ("parent"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace Parent { get; @@ -31332,7 +31382,7 @@ public CefSharp.DevTools.Runtime.StackTrace Parent /// /// Asynchronous JavaScript stack trace that preceded this stack, if available. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("parentId"), IsRequired = (false))] + [DataMember(Name = ("parentId"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTraceId ParentId { get; @@ -31350,7 +31400,7 @@ public partial class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Id /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("id"), IsRequired = (true))] + [DataMember(Name = ("id"), IsRequired = (true))] public string Id { get; @@ -31360,7 +31410,7 @@ public string Id /// /// DebuggerId /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("debuggerId"), IsRequired = (false))] + [DataMember(Name = ("debuggerId"), IsRequired = (false))] public string DebuggerId { get; @@ -31377,7 +31427,7 @@ public class BindingCalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Name /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("name"), IsRequired = (true))] + [DataMember(Name = ("name"), IsRequired = (true))] public string Name { get; @@ -31387,7 +31437,7 @@ public string Name /// /// Payload /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("payload"), IsRequired = (true))] + [DataMember(Name = ("payload"), IsRequired = (true))] public string Payload { get; @@ -31397,7 +31447,7 @@ public string Payload /// /// Identifier of the context where the call was made. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + [DataMember(Name = ("executionContextId"), IsRequired = (true))] public int ExecutionContextId { get; @@ -31413,92 +31463,92 @@ public enum ConsoleAPICalledType /// /// log /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("log"))] + [EnumMember(Value = ("log"))] Log, /// /// debug /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("debug"))] + [EnumMember(Value = ("debug"))] Debug, /// /// info /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("info"))] + [EnumMember(Value = ("info"))] Info, /// /// error /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("error"))] + [EnumMember(Value = ("error"))] Error, /// /// warning /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("warning"))] + [EnumMember(Value = ("warning"))] Warning, /// /// dir /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dir"))] + [EnumMember(Value = ("dir"))] Dir, /// /// dirxml /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dirxml"))] + [EnumMember(Value = ("dirxml"))] Dirxml, /// /// table /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("table"))] + [EnumMember(Value = ("table"))] Table, /// /// trace /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("trace"))] + [EnumMember(Value = ("trace"))] Trace, /// /// clear /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("clear"))] + [EnumMember(Value = ("clear"))] Clear, /// /// startGroup /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("startGroup"))] + [EnumMember(Value = ("startGroup"))] StartGroup, /// /// startGroupCollapsed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("startGroupCollapsed"))] + [EnumMember(Value = ("startGroupCollapsed"))] StartGroupCollapsed, /// /// endGroup /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("endGroup"))] + [EnumMember(Value = ("endGroup"))] EndGroup, /// /// assert /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("assert"))] + [EnumMember(Value = ("assert"))] Assert, /// /// profile /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("profile"))] + [EnumMember(Value = ("profile"))] Profile, /// /// profileEnd /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("profileEnd"))] + [EnumMember(Value = ("profileEnd"))] ProfileEnd, /// /// count /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("count"))] + [EnumMember(Value = ("count"))] Count, /// /// timeEnd /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("timeEnd"))] + [EnumMember(Value = ("timeEnd"))] TimeEnd } @@ -31527,7 +31577,7 @@ public CefSharp.DevTools.Runtime.ConsoleAPICalledType Type /// /// Type of the call. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("type"), IsRequired = (true))] + [DataMember(Name = ("type"), IsRequired = (true))] internal string type { get; @@ -31537,7 +31587,7 @@ internal string type /// /// Call arguments. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("args"), IsRequired = (true))] + [DataMember(Name = ("args"), IsRequired = (true))] public System.Collections.Generic.IList Args { get; @@ -31547,7 +31597,7 @@ public System.Collections.Generic.IList /// /// Identifier of the context where the call was made. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + [DataMember(Name = ("executionContextId"), IsRequired = (true))] public int ExecutionContextId { get; @@ -31557,7 +31607,7 @@ public int ExecutionContextId /// /// Call timestamp. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -31569,7 +31619,7 @@ public double Timestamp /// the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call /// chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("stackTrace"), IsRequired = (false))] + [DataMember(Name = ("stackTrace"), IsRequired = (false))] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -31581,7 +31631,7 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call /// on named context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (false))] + [DataMember(Name = ("context"), IsRequired = (false))] public string Context { get; @@ -31598,7 +31648,7 @@ public class ExceptionRevokedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Reason describing why exception was revoked. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("reason"), IsRequired = (true))] + [DataMember(Name = ("reason"), IsRequired = (true))] public string Reason { get; @@ -31608,7 +31658,7 @@ public string Reason /// /// The id of revoked exception, as reported in `exceptionThrown`. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("exceptionId"), IsRequired = (true))] + [DataMember(Name = ("exceptionId"), IsRequired = (true))] public int ExceptionId { get; @@ -31625,7 +31675,7 @@ public class ExceptionThrownEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Timestamp of the exception. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("timestamp"), IsRequired = (true))] + [DataMember(Name = ("timestamp"), IsRequired = (true))] public double Timestamp { get; @@ -31635,7 +31685,7 @@ public double Timestamp /// /// ExceptionDetails /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("exceptionDetails"), IsRequired = (true))] + [DataMember(Name = ("exceptionDetails"), IsRequired = (true))] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -31652,7 +31702,7 @@ public class ExecutionContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// A newly created execution context. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("context"), IsRequired = (true))] + [DataMember(Name = ("context"), IsRequired = (true))] public CefSharp.DevTools.Runtime.ExecutionContextDescription Context { get; @@ -31669,7 +31719,7 @@ public class ExecutionContextDestroyedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Id of the destroyed context /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (true))] + [DataMember(Name = ("executionContextId"), IsRequired = (true))] public int ExecutionContextId { get; @@ -31679,7 +31729,7 @@ public int ExecutionContextId /// /// Unique Id of the destroyed context /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextUniqueId"), IsRequired = (true))] + [DataMember(Name = ("executionContextUniqueId"), IsRequired = (true))] public string ExecutionContextUniqueId { get; @@ -31697,7 +31747,7 @@ public class InspectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Object /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("object"), IsRequired = (true))] + [DataMember(Name = ("object"), IsRequired = (true))] public CefSharp.DevTools.Runtime.RemoteObject Object { get; @@ -31707,7 +31757,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Object /// /// Hints /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("hints"), IsRequired = (true))] + [DataMember(Name = ("hints"), IsRequired = (true))] public object Hints { get; @@ -31717,7 +31767,7 @@ public object Hints /// /// Identifier of the context where the call was made. /// - [System.Runtime.Serialization.DataMemberAttribute(Name = ("executionContextId"), IsRequired = (false))] + [DataMember(Name = ("executionContextId"), IsRequired = (false))] public int? ExecutionContextId { get; @@ -31731,10 +31781,10 @@ namespace CefSharp.DevTools.Accessibility /// /// GetPartialAXTreeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetPartialAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetPartialAXTreeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList nodes { get; @@ -31759,10 +31809,10 @@ namespace CefSharp.DevTools.Accessibility /// /// GetFullAXTreeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetFullAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetFullAXTreeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList nodes { get; @@ -31787,10 +31837,10 @@ namespace CefSharp.DevTools.Accessibility /// /// GetRootAXNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetRootAXNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetRootAXNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Accessibility.AXNode node { get; @@ -31815,10 +31865,10 @@ namespace CefSharp.DevTools.Accessibility /// /// GetAXNodeAndAncestorsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetAXNodeAndAncestorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetAXNodeAndAncestorsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList nodes { get; @@ -31843,10 +31893,10 @@ namespace CefSharp.DevTools.Accessibility /// /// GetChildAXNodesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetChildAXNodesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetChildAXNodesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList nodes { get; @@ -31871,10 +31921,10 @@ namespace CefSharp.DevTools.Accessibility /// /// QueryAXTreeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class QueryAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class QueryAXTreeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList nodes { get; @@ -31974,7 +32024,7 @@ public System.Threading.Tasks.Task EnableAsync() /// Identifier of the node to get the partial accessibility tree for. /// Identifier of the backend node to get the partial accessibility tree for. /// JavaScript object id of the node wrapper to get the partial accessibility tree for. - /// Whether to fetch this nodes ancestors, siblings and children. Defaults to true. + /// Whether to fetch this node's ancestors, siblings and children. Defaults to true. /// returns System.Threading.Tasks.Task<GetPartialAXTreeResponse> public System.Threading.Tasks.Task GetPartialAXTreeAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? fetchRelatives = null) { @@ -32151,10 +32201,10 @@ namespace CefSharp.DevTools.Animation /// /// GetCurrentTimeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetCurrentTimeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetCurrentTimeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double currentTime { get; @@ -32179,10 +32229,10 @@ namespace CefSharp.DevTools.Animation /// /// GetPlaybackRateResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetPlaybackRateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetPlaybackRateResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double playbackRate { get; @@ -32207,10 +32257,10 @@ namespace CefSharp.DevTools.Animation /// /// ResolveAnimationResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ResolveAnimationResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ResolveAnimationResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject remoteObject { get; @@ -32440,10 +32490,10 @@ namespace CefSharp.DevTools.Audits /// /// GetEncodedResponseResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetEncodedResponseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetEncodedResponseResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string body { get; @@ -32461,7 +32511,7 @@ public byte[] Body } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int originalSize { get; @@ -32479,7 +32529,7 @@ public int OriginalSize } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int encodedSize { get; @@ -32511,17 +32561,17 @@ public enum GetEncodedResponseEncoding /// /// webp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webp"))] + [EnumMember(Value = ("webp"))] Webp, /// /// jpeg /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("jpeg"))] + [EnumMember(Value = ("jpeg"))] Jpeg, /// /// png /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("png"))] + [EnumMember(Value = ("png"))] Png } @@ -32744,10 +32794,10 @@ namespace CefSharp.DevTools.Browser /// /// GetVersionResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetVersionResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetVersionResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string protocolVersion { get; @@ -32765,7 +32815,7 @@ public string ProtocolVersion } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string product { get; @@ -32783,7 +32833,7 @@ public string Product } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string revision { get; @@ -32801,7 +32851,7 @@ public string Revision } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string userAgent { get; @@ -32819,7 +32869,7 @@ public string UserAgent } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string jsVersion { get; @@ -32844,10 +32894,10 @@ namespace CefSharp.DevTools.Browser /// /// GetBrowserCommandLineResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetBrowserCommandLineResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetBrowserCommandLineResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] arguments { get; @@ -32872,10 +32922,10 @@ namespace CefSharp.DevTools.Browser /// /// GetHistogramsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetHistogramsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetHistogramsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList histograms { get; @@ -32900,10 +32950,10 @@ namespace CefSharp.DevTools.Browser /// /// GetHistogramResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetHistogramResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetHistogramResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Browser.Histogram histogram { get; @@ -32928,10 +32978,10 @@ namespace CefSharp.DevTools.Browser /// /// GetWindowBoundsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetWindowBoundsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetWindowBoundsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Browser.Bounds bounds { get; @@ -32956,10 +33006,10 @@ namespace CefSharp.DevTools.Browser /// /// GetWindowForTargetResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetWindowForTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetWindowForTargetResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int windowId { get; @@ -32977,7 +33027,7 @@ public int WindowId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Browser.Bounds bounds { get; @@ -33011,22 +33061,22 @@ public enum SetDownloadBehaviorBehavior /// /// deny /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("deny"))] + [EnumMember(Value = ("deny"))] Deny, /// /// allow /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("allow"))] + [EnumMember(Value = ("allow"))] Allow, /// /// allowAndName /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("allowAndName"))] + [EnumMember(Value = ("allowAndName"))] AllowAndName, /// /// default /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("default"))] + [EnumMember(Value = ("default"))] Default } @@ -33389,10 +33439,10 @@ namespace CefSharp.DevTools.CSS /// /// AddRuleResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class AddRuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class AddRuleResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSRule rule { get; @@ -33417,10 +33467,10 @@ namespace CefSharp.DevTools.CSS /// /// CollectClassNamesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CollectClassNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CollectClassNamesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] classNames { get; @@ -33445,10 +33495,10 @@ namespace CefSharp.DevTools.CSS /// /// CreateStyleSheetResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CreateStyleSheetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CreateStyleSheetResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string styleSheetId { get; @@ -33473,10 +33523,10 @@ namespace CefSharp.DevTools.CSS /// /// GetBackgroundColorsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetBackgroundColorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetBackgroundColorsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] backgroundColors { get; @@ -33494,7 +33544,7 @@ public string[] BackgroundColors } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string computedFontSize { get; @@ -33512,7 +33562,7 @@ public string ComputedFontSize } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string computedFontWeight { get; @@ -33537,10 +33587,10 @@ namespace CefSharp.DevTools.CSS /// /// GetComputedStyleForNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetComputedStyleForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetComputedStyleForNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList computedStyle { get; @@ -33565,10 +33615,10 @@ namespace CefSharp.DevTools.CSS /// /// GetInlineStylesForNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetInlineStylesForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetInlineStylesForNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSStyle inlineStyle { get; @@ -33586,7 +33636,7 @@ public CefSharp.DevTools.CSS.CSSStyle InlineStyle } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSStyle attributesStyle { get; @@ -33611,10 +33661,10 @@ namespace CefSharp.DevTools.CSS /// /// GetMatchedStylesForNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetMatchedStylesForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetMatchedStylesForNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSStyle inlineStyle { get; @@ -33632,7 +33682,7 @@ public CefSharp.DevTools.CSS.CSSStyle InlineStyle } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSStyle attributesStyle { get; @@ -33650,7 +33700,7 @@ public CefSharp.DevTools.CSS.CSSStyle AttributesStyle } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList matchedCSSRules { get; @@ -33668,7 +33718,7 @@ public System.Collections.Generic.IList Matched } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList pseudoElements { get; @@ -33686,7 +33736,7 @@ public System.Collections.Generic.IList inherited { get; @@ -33704,7 +33754,7 @@ public System.Collections.Generic.IList inheritedPseudoElements { get; @@ -33722,7 +33772,7 @@ public System.Collections.Generic.IList cssKeyframesRules { get; @@ -33740,7 +33790,7 @@ public System.Collections.Generic.IList } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int? parentLayoutNodeId { get; @@ -33765,10 +33815,10 @@ namespace CefSharp.DevTools.CSS /// /// GetMediaQueriesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetMediaQueriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetMediaQueriesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList medias { get; @@ -33793,10 +33843,10 @@ namespace CefSharp.DevTools.CSS /// /// GetPlatformFontsForNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetPlatformFontsForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetPlatformFontsForNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList fonts { get; @@ -33821,10 +33871,10 @@ namespace CefSharp.DevTools.CSS /// /// GetStyleSheetTextResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetStyleSheetTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetStyleSheetTextResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string text { get; @@ -33849,10 +33899,10 @@ namespace CefSharp.DevTools.CSS /// /// GetLayersForNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetLayersForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetLayersForNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSLayerData rootLayer { get; @@ -33877,10 +33927,10 @@ namespace CefSharp.DevTools.CSS /// /// TakeComputedStyleUpdatesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class TakeComputedStyleUpdatesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class TakeComputedStyleUpdatesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] nodeIds { get; @@ -33905,10 +33955,10 @@ namespace CefSharp.DevTools.CSS /// /// SetKeyframeKeyResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetKeyframeKeyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetKeyframeKeyResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.Value keyText { get; @@ -33933,10 +33983,10 @@ namespace CefSharp.DevTools.CSS /// /// SetMediaTextResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetMediaTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetMediaTextResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSMedia media { get; @@ -33961,10 +34011,10 @@ namespace CefSharp.DevTools.CSS /// /// SetContainerQueryTextResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetContainerQueryTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetContainerQueryTextResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSContainerQuery containerQuery { get; @@ -33989,10 +34039,10 @@ namespace CefSharp.DevTools.CSS /// /// SetSupportsTextResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetSupportsTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetSupportsTextResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSSupports supports { get; @@ -34017,10 +34067,10 @@ namespace CefSharp.DevTools.CSS /// /// SetScopeTextResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetScopeTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetScopeTextResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.CSSScope scope { get; @@ -34045,10 +34095,10 @@ namespace CefSharp.DevTools.CSS /// /// SetRuleSelectorResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetRuleSelectorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetRuleSelectorResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CSS.SelectorList selectorList { get; @@ -34073,10 +34123,10 @@ namespace CefSharp.DevTools.CSS /// /// SetStyleSheetTextResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetStyleSheetTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetStyleSheetTextResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string sourceMapURL { get; @@ -34101,10 +34151,10 @@ namespace CefSharp.DevTools.CSS /// /// SetStyleTextsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetStyleTextsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetStyleTextsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList styles { get; @@ -34129,10 +34179,10 @@ namespace CefSharp.DevTools.CSS /// /// StopRuleUsageTrackingResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class StopRuleUsageTrackingResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class StopRuleUsageTrackingResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList ruleUsage { get; @@ -34157,10 +34207,10 @@ namespace CefSharp.DevTools.CSS /// /// TakeCoverageDeltaResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class TakeCoverageDeltaResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class TakeCoverageDeltaResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList coverage { get; @@ -34178,7 +34228,7 @@ public System.Collections.Generic.IList Coverag } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double timestamp { get; @@ -34224,7 +34274,7 @@ public CSSClient(CefSharp.DevTools.IDevToolsClient client) /// /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded - /// web font + /// web font. /// public event System.EventHandler FontsUpdated { @@ -34700,7 +34750,7 @@ public System.Threading.Tasks.Task StartRuleUsageTrackin /// /// Stop tracking rule usage and return the list of rules that were used since last call to - /// `takeCoverageDelta` (or since start of coverage instrumentation) + /// `takeCoverageDelta` (or since start of coverage instrumentation). /// /// returns System.Threading.Tasks.Task<StopRuleUsageTrackingResponse> public System.Threading.Tasks.Task StopRuleUsageTrackingAsync() @@ -34711,7 +34761,7 @@ public System.Threading.Tasks.Task StopRuleUsageT /// /// Obtain list of rules that became used since last call to this method (or since start of coverage - /// instrumentation) + /// instrumentation). /// /// returns System.Threading.Tasks.Task<TakeCoverageDeltaResponse> public System.Threading.Tasks.Task TakeCoverageDeltaAsync() @@ -34741,10 +34791,10 @@ namespace CefSharp.DevTools.CacheStorage /// /// RequestCacheNamesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestCacheNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestCacheNamesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList caches { get; @@ -34769,10 +34819,10 @@ namespace CefSharp.DevTools.CacheStorage /// /// RequestCachedResponseResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestCachedResponseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestCachedResponseResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.CacheStorage.CachedResponse response { get; @@ -34797,10 +34847,10 @@ namespace CefSharp.DevTools.CacheStorage /// /// RequestEntriesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestEntriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestEntriesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList cacheDataEntries { get; @@ -34818,7 +34868,7 @@ public System.Collections.Generic.IList /// CollectClassNamesFromSubtreeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CollectClassNamesFromSubtreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CollectClassNamesFromSubtreeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] classNames { get; @@ -35141,10 +35191,10 @@ namespace CefSharp.DevTools.DOM /// /// CopyToResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CopyToResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CopyToResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodeId { get; @@ -35169,10 +35219,10 @@ namespace CefSharp.DevTools.DOM /// /// DescribeNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class DescribeNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class DescribeNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.DOM.Node node { get; @@ -35197,10 +35247,10 @@ namespace CefSharp.DevTools.DOM /// /// GetAttributesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetAttributesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetAttributesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] attributes { get; @@ -35225,10 +35275,10 @@ namespace CefSharp.DevTools.DOM /// /// GetBoxModelResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetBoxModelResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetBoxModelResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.DOM.BoxModel model { get; @@ -35253,10 +35303,10 @@ namespace CefSharp.DevTools.DOM /// /// GetContentQuadsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetContentQuadsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetContentQuadsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double[] quads { get; @@ -35281,10 +35331,10 @@ namespace CefSharp.DevTools.DOM /// /// GetDocumentResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetDocumentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetDocumentResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.DOM.Node root { get; @@ -35309,10 +35359,10 @@ namespace CefSharp.DevTools.DOM /// /// GetNodesForSubtreeByStyleResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetNodesForSubtreeByStyleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetNodesForSubtreeByStyleResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] nodeIds { get; @@ -35337,10 +35387,10 @@ namespace CefSharp.DevTools.DOM /// /// GetNodeForLocationResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetNodeForLocationResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetNodeForLocationResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int backendNodeId { get; @@ -35358,7 +35408,7 @@ public int BackendNodeId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string frameId { get; @@ -35376,7 +35426,7 @@ public string FrameId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int? nodeId { get; @@ -35401,10 +35451,10 @@ namespace CefSharp.DevTools.DOM /// /// GetOuterHTMLResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetOuterHTMLResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetOuterHTMLResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string outerHTML { get; @@ -35429,10 +35479,10 @@ namespace CefSharp.DevTools.DOM /// /// GetRelayoutBoundaryResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetRelayoutBoundaryResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetRelayoutBoundaryResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodeId { get; @@ -35457,10 +35507,10 @@ namespace CefSharp.DevTools.DOM /// /// GetSearchResultsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetSearchResultsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetSearchResultsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] nodeIds { get; @@ -35485,10 +35535,10 @@ namespace CefSharp.DevTools.DOM /// /// MoveToResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class MoveToResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class MoveToResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodeId { get; @@ -35513,10 +35563,10 @@ namespace CefSharp.DevTools.DOM /// /// PerformSearchResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class PerformSearchResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class PerformSearchResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string searchId { get; @@ -35534,7 +35584,7 @@ public string SearchId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int resultCount { get; @@ -35559,10 +35609,10 @@ namespace CefSharp.DevTools.DOM /// /// PushNodeByPathToFrontendResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class PushNodeByPathToFrontendResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class PushNodeByPathToFrontendResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodeId { get; @@ -35587,10 +35637,10 @@ namespace CefSharp.DevTools.DOM /// /// PushNodesByBackendIdsToFrontendResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class PushNodesByBackendIdsToFrontendResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class PushNodesByBackendIdsToFrontendResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] nodeIds { get; @@ -35615,10 +35665,10 @@ namespace CefSharp.DevTools.DOM /// /// QuerySelectorResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class QuerySelectorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class QuerySelectorResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodeId { get; @@ -35643,10 +35693,10 @@ namespace CefSharp.DevTools.DOM /// /// QuerySelectorAllResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class QuerySelectorAllResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class QuerySelectorAllResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] nodeIds { get; @@ -35671,10 +35721,10 @@ namespace CefSharp.DevTools.DOM /// /// GetTopLayerElementsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetTopLayerElementsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetTopLayerElementsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] nodeIds { get; @@ -35699,10 +35749,10 @@ namespace CefSharp.DevTools.DOM /// /// RequestNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodeId { get; @@ -35727,10 +35777,10 @@ namespace CefSharp.DevTools.DOM /// /// ResolveNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ResolveNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ResolveNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject @object { get; @@ -35755,10 +35805,10 @@ namespace CefSharp.DevTools.DOM /// /// GetNodeStackTracesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetNodeStackTracesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetNodeStackTracesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.StackTrace creation { get; @@ -35783,10 +35833,10 @@ namespace CefSharp.DevTools.DOM /// /// GetFileInfoResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetFileInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetFileInfoResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string path { get; @@ -35811,10 +35861,10 @@ namespace CefSharp.DevTools.DOM /// /// SetNodeNameResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetNodeNameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetNodeNameResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodeId { get; @@ -35839,10 +35889,10 @@ namespace CefSharp.DevTools.DOM /// /// GetFrameOwnerResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetFrameOwnerResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetFrameOwnerResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int backendNodeId { get; @@ -35860,7 +35910,7 @@ public int BackendNodeId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int? nodeId { get; @@ -35885,10 +35935,10 @@ namespace CefSharp.DevTools.DOM /// /// GetContainerForNodeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetContainerForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetContainerForNodeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int? nodeId { get; @@ -35913,10 +35963,10 @@ namespace CefSharp.DevTools.DOM /// /// GetQueryingDescendantsForContainerResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetQueryingDescendantsForContainerResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetQueryingDescendantsForContainerResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] nodeIds { get; @@ -35948,12 +35998,12 @@ public enum EnableIncludeWhitespace /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None, /// /// all /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("all"))] + [EnumMember(Value = ("all"))] All } @@ -36488,6 +36538,7 @@ public System.Threading.Tasks.Task GetContentQuadsAsync partial void ValidateGetDocument(int? depth = null, bool? pierce = null); /// /// Returns the root DOM node (and optionally the subtree) to the caller. + /// Implicitly enables the DOM domain events for the current target. /// /// The maximum depth at which children should be retrieved, defaults to 1. Use -1 for theentire subtree or provide an integer larger than 0. /// Whether or not iframes and shadow roots should be traversed when returning the subtree(default is false). @@ -37158,10 +37209,10 @@ namespace CefSharp.DevTools.DOMDebugger /// /// GetEventListenersResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetEventListenersResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetEventListenersResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList listeners { get; @@ -37428,10 +37479,10 @@ namespace CefSharp.DevTools.DOMSnapshot /// /// CaptureSnapshotResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CaptureSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CaptureSnapshotResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList documents { get; @@ -37449,7 +37500,7 @@ public System.Collections.Generic.IList /// GetDOMStorageItemsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetDOMStorageItemsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetDOMStorageItemsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] entries { get; @@ -37751,10 +37802,10 @@ namespace CefSharp.DevTools.Database /// /// ExecuteSQLResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ExecuteSQLResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ExecuteSQLResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] columnNames { get; @@ -37772,7 +37823,7 @@ public string[] ColumnNames } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal object[] values { get; @@ -37790,7 +37841,7 @@ public object[] Values } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Database.Error sqlError { get; @@ -37815,10 +37866,10 @@ namespace CefSharp.DevTools.Database /// /// GetDatabaseTableNamesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetDatabaseTableNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetDatabaseTableNamesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] tableNames { get; @@ -37979,10 +38030,10 @@ namespace CefSharp.DevTools.Emulation /// /// CanEmulateResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CanEmulateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CanEmulateResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool result { get; @@ -38007,10 +38058,10 @@ namespace CefSharp.DevTools.Emulation /// /// SetVirtualTimePolicyResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetVirtualTimePolicyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetVirtualTimePolicyResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double virtualTimeTicksBase { get; @@ -38042,49 +38093,55 @@ public enum SetEmitTouchEventsForMouseConfiguration /// /// mobile /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mobile"))] + [EnumMember(Value = ("mobile"))] Mobile, /// /// desktop /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("desktop"))] + [EnumMember(Value = ("desktop"))] Desktop } /// - /// Vision deficiency to emulate. + /// Vision deficiency to emulate. Order: best-effort emulations come first, followed by any + /// physiologically accurate emulations for medically recognized color vision deficiencies. /// public enum SetEmulatedVisionDeficiencyType { /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None, /// - /// achromatopsia - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("achromatopsia"))] - Achromatopsia, - /// /// blurredVision /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("blurredVision"))] + [EnumMember(Value = ("blurredVision"))] BlurredVision, /// + /// reducedContrast + /// + [EnumMember(Value = ("reducedContrast"))] + ReducedContrast, + /// + /// achromatopsia + /// + [EnumMember(Value = ("achromatopsia"))] + Achromatopsia, + /// /// deuteranopia /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("deuteranopia"))] + [EnumMember(Value = ("deuteranopia"))] Deuteranopia, /// /// protanopia /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("protanopia"))] + [EnumMember(Value = ("protanopia"))] Protanopia, /// /// tritanopia /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("tritanopia"))] + [EnumMember(Value = ("tritanopia"))] Tritanopia } @@ -38376,7 +38433,7 @@ public System.Threading.Tasks.Task SetEmulatedMediaAsync /// /// Emulates the given vision deficiency. /// - /// Vision deficiency to emulate. + /// Vision deficiency to emulate. Order: best-effort emulations come first, followed by anyphysiologically accurate emulations for medically recognized color vision deficiencies. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetEmulatedVisionDeficiencyAsync(CefSharp.DevTools.Emulation.SetEmulatedVisionDeficiencyType type) { @@ -38637,10 +38694,10 @@ namespace CefSharp.DevTools.HeadlessExperimental /// /// BeginFrameResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class BeginFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class BeginFrameResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool hasDamage { get; @@ -38658,7 +38715,7 @@ public bool HasDamage } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string screenshotData { get; @@ -38743,10 +38800,10 @@ namespace CefSharp.DevTools.IO /// /// ReadResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ReadResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ReadResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool? base64Encoded { get; @@ -38764,7 +38821,7 @@ public bool? Base64Encoded } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string data { get; @@ -38782,7 +38839,7 @@ public string Data } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool eof { get; @@ -38807,10 +38864,10 @@ namespace CefSharp.DevTools.IO /// /// ResolveBlobResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ResolveBlobResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ResolveBlobResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string uuid { get; @@ -38910,10 +38967,10 @@ namespace CefSharp.DevTools.IndexedDB /// /// RequestDataResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestDataResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList objectStoreDataEntries { get; @@ -38931,7 +38988,7 @@ public System.Collections.Generic.IList O } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool hasMore { get; @@ -38956,10 +39013,10 @@ namespace CefSharp.DevTools.IndexedDB /// /// GetMetadataResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetMetadataResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double entriesCount { get; @@ -38977,7 +39034,7 @@ public double EntriesCount } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double keyGeneratorValue { get; @@ -39002,10 +39059,10 @@ namespace CefSharp.DevTools.IndexedDB /// /// RequestDatabaseResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestDatabaseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestDatabaseResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.IndexedDB.DatabaseWithObjectStores databaseWithObjectStores { get; @@ -39030,10 +39087,10 @@ namespace CefSharp.DevTools.IndexedDB /// /// RequestDatabaseNamesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestDatabaseNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestDatabaseNamesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] databaseNames { get; @@ -39218,7 +39275,7 @@ public System.Threading.Tasks.Task RequestDataAsync(string partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); /// - /// Gets metadata of an object store + /// Gets metadata of an object store. /// /// Database name. /// Object store name. @@ -39308,22 +39365,22 @@ public enum DispatchDragEventType /// /// dragEnter /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dragEnter"))] + [EnumMember(Value = ("dragEnter"))] DragEnter, /// /// dragOver /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dragOver"))] + [EnumMember(Value = ("dragOver"))] DragOver, /// /// drop /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("drop"))] + [EnumMember(Value = ("drop"))] Drop, /// /// dragCancel /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("dragCancel"))] + [EnumMember(Value = ("dragCancel"))] DragCancel } @@ -39335,22 +39392,22 @@ public enum DispatchKeyEventType /// /// keyDown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("keyDown"))] + [EnumMember(Value = ("keyDown"))] KeyDown, /// /// keyUp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("keyUp"))] + [EnumMember(Value = ("keyUp"))] KeyUp, /// /// rawKeyDown /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("rawKeyDown"))] + [EnumMember(Value = ("rawKeyDown"))] RawKeyDown, /// /// char /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("char"))] + [EnumMember(Value = ("char"))] Char } @@ -39362,22 +39419,22 @@ public enum DispatchMouseEventType /// /// mousePressed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mousePressed"))] + [EnumMember(Value = ("mousePressed"))] MousePressed, /// /// mouseReleased /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouseReleased"))] + [EnumMember(Value = ("mouseReleased"))] MouseReleased, /// /// mouseMoved /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouseMoved"))] + [EnumMember(Value = ("mouseMoved"))] MouseMoved, /// /// mouseWheel /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouseWheel"))] + [EnumMember(Value = ("mouseWheel"))] MouseWheel } @@ -39389,12 +39446,12 @@ public enum DispatchMouseEventPointerType /// /// mouse /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouse"))] + [EnumMember(Value = ("mouse"))] Mouse, /// /// pen /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("pen"))] + [EnumMember(Value = ("pen"))] Pen } @@ -39407,22 +39464,22 @@ public enum DispatchTouchEventType /// /// touchStart /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("touchStart"))] + [EnumMember(Value = ("touchStart"))] TouchStart, /// /// touchEnd /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("touchEnd"))] + [EnumMember(Value = ("touchEnd"))] TouchEnd, /// /// touchMove /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("touchMove"))] + [EnumMember(Value = ("touchMove"))] TouchMove, /// /// touchCancel /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("touchCancel"))] + [EnumMember(Value = ("touchCancel"))] TouchCancel } @@ -39434,22 +39491,22 @@ public enum EmulateTouchFromMouseEventType /// /// mousePressed /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mousePressed"))] + [EnumMember(Value = ("mousePressed"))] MousePressed, /// /// mouseReleased /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouseReleased"))] + [EnumMember(Value = ("mouseReleased"))] MouseReleased, /// /// mouseMoved /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouseMoved"))] + [EnumMember(Value = ("mouseMoved"))] MouseMoved, /// /// mouseWheel /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mouseWheel"))] + [EnumMember(Value = ("mouseWheel"))] MouseWheel } @@ -40095,10 +40152,10 @@ namespace CefSharp.DevTools.LayerTree /// /// CompositingReasonsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CompositingReasonsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CompositingReasonsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] compositingReasons { get; @@ -40116,7 +40173,7 @@ public string[] CompositingReasons } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] compositingReasonIds { get; @@ -40141,10 +40198,10 @@ namespace CefSharp.DevTools.LayerTree /// /// LoadSnapshotResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class LoadSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class LoadSnapshotResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string snapshotId { get; @@ -40169,10 +40226,10 @@ namespace CefSharp.DevTools.LayerTree /// /// MakeSnapshotResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class MakeSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class MakeSnapshotResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string snapshotId { get; @@ -40197,10 +40254,10 @@ namespace CefSharp.DevTools.LayerTree /// /// ProfileSnapshotResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ProfileSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ProfileSnapshotResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double[] timings { get; @@ -40225,10 +40282,10 @@ namespace CefSharp.DevTools.LayerTree /// /// ReplaySnapshotResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ReplaySnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ReplaySnapshotResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string dataURL { get; @@ -40253,10 +40310,10 @@ namespace CefSharp.DevTools.LayerTree /// /// SnapshotCommandLogResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SnapshotCommandLogResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SnapshotCommandLogResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList commandLog { get; @@ -40580,10 +40637,10 @@ namespace CefSharp.DevTools.Memory /// /// GetDOMCountersResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetDOMCountersResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetDOMCountersResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int documents { get; @@ -40601,7 +40658,7 @@ public int Documents } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int nodes { get; @@ -40619,7 +40676,7 @@ public int Nodes } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int jsEventListeners { get; @@ -40644,10 +40701,10 @@ namespace CefSharp.DevTools.Memory /// /// GetAllTimeSamplingProfileResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetAllTimeSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetAllTimeSamplingProfileResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Memory.SamplingProfile profile { get; @@ -40672,10 +40729,10 @@ namespace CefSharp.DevTools.Memory /// /// GetBrowserSamplingProfileResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetBrowserSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetBrowserSamplingProfileResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Memory.SamplingProfile profile { get; @@ -40700,10 +40757,10 @@ namespace CefSharp.DevTools.Memory /// /// GetSamplingProfileResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetSamplingProfileResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Memory.SamplingProfile profile { get; @@ -40874,10 +40931,10 @@ namespace CefSharp.DevTools.Network /// /// GetCertificateResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetCertificateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetCertificateResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] tableNames { get; @@ -40902,10 +40959,10 @@ namespace CefSharp.DevTools.Network /// /// GetCookiesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetCookiesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList cookies { get; @@ -40930,10 +40987,10 @@ namespace CefSharp.DevTools.Network /// /// GetResponseBodyResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetResponseBodyResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string body { get; @@ -40951,7 +41008,7 @@ public string Body } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool base64Encoded { get; @@ -40976,10 +41033,10 @@ namespace CefSharp.DevTools.Network /// /// GetRequestPostDataResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetRequestPostDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetRequestPostDataResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string postData { get; @@ -41004,10 +41061,10 @@ namespace CefSharp.DevTools.Network /// /// GetResponseBodyForInterceptionResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetResponseBodyForInterceptionResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetResponseBodyForInterceptionResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string body { get; @@ -41025,7 +41082,7 @@ public string Body } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool base64Encoded { get; @@ -41050,10 +41107,10 @@ namespace CefSharp.DevTools.Network /// /// TakeResponseBodyForInterceptionAsStreamResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class TakeResponseBodyForInterceptionAsStreamResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class TakeResponseBodyForInterceptionAsStreamResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string stream { get; @@ -41078,10 +41135,10 @@ namespace CefSharp.DevTools.Network /// /// SearchInResponseBodyResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SearchInResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SearchInResponseBodyResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList result { get; @@ -41106,10 +41163,10 @@ namespace CefSharp.DevTools.Network /// /// SetCookieResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetCookieResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetCookieResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool success { get; @@ -41134,10 +41191,10 @@ namespace CefSharp.DevTools.Network /// /// GetSecurityIsolationStatusResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetSecurityIsolationStatusResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetSecurityIsolationStatusResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Network.SecurityIsolationStatus status { get; @@ -41162,10 +41219,10 @@ namespace CefSharp.DevTools.Network /// /// LoadNetworkResourceResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class LoadNetworkResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class LoadNetworkResourceResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Network.LoadNetworkResourcePageResult resource { get; @@ -42224,10 +42281,10 @@ namespace CefSharp.DevTools.Overlay /// /// GetHighlightObjectForTestResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetHighlightObjectForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetHighlightObjectForTestResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal object highlight { get; @@ -42252,10 +42309,10 @@ namespace CefSharp.DevTools.Overlay /// /// GetGridHighlightObjectsForTestResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetGridHighlightObjectsForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetGridHighlightObjectsForTestResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal object highlights { get; @@ -42280,10 +42337,10 @@ namespace CefSharp.DevTools.Overlay /// /// GetSourceOrderHighlightObjectForTestResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetSourceOrderHighlightObjectForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetSourceOrderHighlightObjectForTestResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal object highlight { get; @@ -42859,10 +42916,10 @@ namespace CefSharp.DevTools.Page /// /// AddScriptToEvaluateOnNewDocumentResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class AddScriptToEvaluateOnNewDocumentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class AddScriptToEvaluateOnNewDocumentResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string identifier { get; @@ -42887,10 +42944,10 @@ namespace CefSharp.DevTools.Page /// /// CaptureScreenshotResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CaptureScreenshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CaptureScreenshotResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string data { get; @@ -42915,10 +42972,10 @@ namespace CefSharp.DevTools.Page /// /// CaptureSnapshotResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CaptureSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CaptureSnapshotResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string data { get; @@ -42943,10 +43000,10 @@ namespace CefSharp.DevTools.Page /// /// CreateIsolatedWorldResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CreateIsolatedWorldResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CreateIsolatedWorldResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int executionContextId { get; @@ -42971,10 +43028,10 @@ namespace CefSharp.DevTools.Page /// /// GetAppManifestResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetAppManifestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetAppManifestResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string url { get; @@ -42992,7 +43049,7 @@ public string Url } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList errors { get; @@ -43010,7 +43067,7 @@ public System.Collections.Generic.IList } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string data { get; @@ -43028,7 +43085,7 @@ public string Data } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.AppManifestParsedProperties parsed { get; @@ -43053,10 +43110,10 @@ namespace CefSharp.DevTools.Page /// /// GetInstallabilityErrorsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetInstallabilityErrorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetInstallabilityErrorsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList installabilityErrors { get; @@ -43076,43 +43133,15 @@ public System.Collections.Generic.IList - /// GetManifestIconsResponse - /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetManifestIconsResponse : CefSharp.DevTools.DevToolsDomainResponseBase - { - [System.Runtime.Serialization.DataMemberAttribute] - internal string primaryIcon - { - get; - set; - } - - /// - /// primaryIcon - /// - public byte[] PrimaryIcon - { - get - { - return Convert(primaryIcon); - } - } - } -} - namespace CefSharp.DevTools.Page { /// /// GetAppIdResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetAppIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetAppIdResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string appId { get; @@ -43130,7 +43159,7 @@ public string AppId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string recommendedId { get; @@ -43155,10 +43184,10 @@ namespace CefSharp.DevTools.Page /// /// GetAdScriptIdResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetAdScriptIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetAdScriptIdResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.AdScriptId adScriptId { get; @@ -43183,10 +43212,10 @@ namespace CefSharp.DevTools.Page /// /// GetFrameTreeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetFrameTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetFrameTreeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.FrameTree frameTree { get; @@ -43211,10 +43240,10 @@ namespace CefSharp.DevTools.Page /// /// GetLayoutMetricsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetLayoutMetricsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetLayoutMetricsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.LayoutViewport layoutViewport { get; @@ -43232,7 +43261,7 @@ public CefSharp.DevTools.Page.LayoutViewport LayoutViewport } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.VisualViewport visualViewport { get; @@ -43250,7 +43279,7 @@ public CefSharp.DevTools.Page.VisualViewport VisualViewport } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.DOM.Rect contentSize { get; @@ -43268,7 +43297,7 @@ public CefSharp.DevTools.DOM.Rect ContentSize } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.LayoutViewport cssLayoutViewport { get; @@ -43286,7 +43315,7 @@ public CefSharp.DevTools.Page.LayoutViewport CssLayoutViewport } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.VisualViewport cssVisualViewport { get; @@ -43304,7 +43333,7 @@ public CefSharp.DevTools.Page.VisualViewport CssVisualViewport } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.DOM.Rect cssContentSize { get; @@ -43329,10 +43358,10 @@ namespace CefSharp.DevTools.Page /// /// GetNavigationHistoryResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetNavigationHistoryResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetNavigationHistoryResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int currentIndex { get; @@ -43350,7 +43379,7 @@ public int CurrentIndex } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList entries { get; @@ -43375,10 +43404,10 @@ namespace CefSharp.DevTools.Page /// /// GetResourceContentResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetResourceContentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetResourceContentResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string content { get; @@ -43396,7 +43425,7 @@ public string Content } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool base64Encoded { get; @@ -43421,10 +43450,10 @@ namespace CefSharp.DevTools.Page /// /// GetResourceTreeResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetResourceTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetResourceTreeResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Page.FrameResourceTree frameTree { get; @@ -43449,10 +43478,10 @@ namespace CefSharp.DevTools.Page /// /// NavigateResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class NavigateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class NavigateResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string frameId { get; @@ -43470,7 +43499,7 @@ public string FrameId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string loaderId { get; @@ -43488,7 +43517,7 @@ public string LoaderId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string errorText { get; @@ -43513,10 +43542,10 @@ namespace CefSharp.DevTools.Page /// /// PrintToPDFResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class PrintToPDFResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class PrintToPDFResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string data { get; @@ -43534,7 +43563,7 @@ public byte[] Data } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string stream { get; @@ -43559,10 +43588,10 @@ namespace CefSharp.DevTools.Page /// /// SearchInResourceResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SearchInResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SearchInResourceResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList result { get; @@ -43587,10 +43616,10 @@ namespace CefSharp.DevTools.Page /// /// GetPermissionsPolicyStateResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetPermissionsPolicyStateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetPermissionsPolicyStateResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList states { get; @@ -43615,10 +43644,10 @@ namespace CefSharp.DevTools.Page /// /// GetOriginTrialsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetOriginTrialsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetOriginTrialsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList originTrials { get; @@ -43650,17 +43679,17 @@ public enum CaptureScreenshotFormat /// /// jpeg /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("jpeg"))] + [EnumMember(Value = ("jpeg"))] Jpeg, /// /// png /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("png"))] + [EnumMember(Value = ("png"))] Png, /// /// webp /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("webp"))] + [EnumMember(Value = ("webp"))] Webp } @@ -43672,7 +43701,7 @@ public enum CaptureSnapshotFormat /// /// mhtml /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("mhtml"))] + [EnumMember(Value = ("mhtml"))] Mhtml } @@ -43684,12 +43713,12 @@ public enum PrintToPDFTransferMode /// /// ReturnAsBase64 /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ReturnAsBase64"))] + [EnumMember(Value = ("ReturnAsBase64"))] ReturnAsBase64, /// /// ReturnAsStream /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ReturnAsStream"))] + [EnumMember(Value = ("ReturnAsStream"))] ReturnAsStream } @@ -43701,12 +43730,12 @@ public enum StartScreencastFormat /// /// jpeg /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("jpeg"))] + [EnumMember(Value = ("jpeg"))] Jpeg, /// /// png /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("png"))] + [EnumMember(Value = ("png"))] Png } @@ -43718,42 +43747,15 @@ public enum SetWebLifecycleStateState /// /// frozen /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("frozen"))] + [EnumMember(Value = ("frozen"))] Frozen, /// /// active /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("active"))] + [EnumMember(Value = ("active"))] Active } - /// - /// SetSPCTransactionModeMode - /// - public enum SetSPCTransactionModeMode - { - /// - /// none - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] - None, - /// - /// autoAccept - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoAccept"))] - AutoAccept, - /// - /// autoReject - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoReject"))] - AutoReject, - /// - /// autoOptOut - /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("autoOptOut"))] - AutoOptOut - } - /// /// Actions and events related to the inspected page belong to the page domain. /// @@ -44047,6 +44049,40 @@ public event System.EventHandler PrerenderAt } } + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prefetch attempt is updated. + /// + public event System.EventHandler PrefetchStatusUpdated + { + add + { + _client.AddEventHandler("Page.prefetchStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Page.prefetchStatusUpdated", value); + } + } + + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prerender attempt is updated. + /// + public event System.EventHandler PrerenderStatusUpdated + { + add + { + _client.AddEventHandler("Page.prerenderStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Page.prerenderStatusUpdated", value); + } + } + /// /// LoadEventFired /// @@ -44314,16 +44350,6 @@ public System.Threading.Tasks.Task GetInstallab return _client.ExecuteDevToolsMethodAsync("Page.getInstallabilityErrors", dict); } - /// - /// GetManifestIcons - /// - /// returns System.Threading.Tasks.Task<GetManifestIconsResponse> - public System.Threading.Tasks.Task GetManifestIconsAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Page.getManifestIcons", dict); - } - /// /// Returns the unique (PWA) app id. /// Only returns values if the feature flag 'WebAppEnableManifestId' is enabled @@ -44935,14 +44961,14 @@ public System.Threading.Tasks.Task ClearCompilationCache return _client.ExecuteDevToolsMethodAsync("Page.clearCompilationCache", dict); } - partial void ValidateSetSPCTransactionMode(CefSharp.DevTools.Page.SetSPCTransactionModeMode mode); + partial void ValidateSetSPCTransactionMode(CefSharp.DevTools.Page.AutoResponseMode mode); /// /// Sets the Secure Payment Confirmation transaction mode. /// https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode /// /// mode /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetSPCTransactionModeAsync(CefSharp.DevTools.Page.SetSPCTransactionModeMode mode) + public System.Threading.Tasks.Task SetSPCTransactionModeAsync(CefSharp.DevTools.Page.AutoResponseMode mode) { ValidateSetSPCTransactionMode(mode); var dict = new System.Collections.Generic.Dictionary(); @@ -44950,6 +44976,21 @@ public System.Threading.Tasks.Task SetSPCTransactionMode return _client.ExecuteDevToolsMethodAsync("Page.setSPCTransactionMode", dict); } + partial void ValidateSetRPHRegistrationMode(CefSharp.DevTools.Page.AutoResponseMode mode); + /// + /// Extensions for Custom Handlers API: + /// https://html.spec.whatwg.org/multipage/system-state.html#rph-automation + /// + /// mode + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetRPHRegistrationModeAsync(CefSharp.DevTools.Page.AutoResponseMode mode) + { + ValidateSetRPHRegistrationMode(mode); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("mode", EnumToString(mode)); + return _client.ExecuteDevToolsMethodAsync("Page.setRPHRegistrationMode", dict); + } + partial void ValidateGenerateTestReport(string message, string group = null); /// /// Generates a report for testing. @@ -45003,10 +45044,10 @@ namespace CefSharp.DevTools.Performance /// /// GetMetricsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetMetricsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetMetricsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList metrics { get; @@ -45038,12 +45079,12 @@ public enum EnableTimeDomain /// /// timeTicks /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("timeTicks"))] + [EnumMember(Value = ("timeTicks"))] TimeTicks, /// /// threadTicks /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("threadTicks"))] + [EnumMember(Value = ("threadTicks"))] ThreadTicks } @@ -45500,10 +45541,10 @@ namespace CefSharp.DevTools.Storage /// /// GetStorageKeyForFrameResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetStorageKeyForFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetStorageKeyForFrameResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string storageKey { get; @@ -45528,10 +45569,10 @@ namespace CefSharp.DevTools.Storage /// /// GetCookiesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetCookiesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList cookies { get; @@ -45556,10 +45597,10 @@ namespace CefSharp.DevTools.Storage /// /// GetUsageAndQuotaResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetUsageAndQuotaResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetUsageAndQuotaResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double usage { get; @@ -45577,7 +45618,7 @@ public double Usage } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double quota { get; @@ -45595,7 +45636,7 @@ public double Quota } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool overrideActive { get; @@ -45613,7 +45654,7 @@ public bool OverrideActive } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList usageBreakdown { get; @@ -45638,10 +45679,10 @@ namespace CefSharp.DevTools.Storage /// /// GetTrustTokensResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetTrustTokensResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetTrustTokensResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList tokens { get; @@ -45666,10 +45707,10 @@ namespace CefSharp.DevTools.Storage /// /// ClearTrustTokensResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class ClearTrustTokensResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class ClearTrustTokensResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool didDeleteTokens { get; @@ -45694,10 +45735,10 @@ namespace CefSharp.DevTools.Storage /// /// GetInterestGroupDetailsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetInterestGroupDetailsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetInterestGroupDetailsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Storage.InterestGroupDetails details { get; @@ -45722,10 +45763,10 @@ namespace CefSharp.DevTools.Storage /// /// GetSharedStorageMetadataResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetSharedStorageMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetSharedStorageMetadataResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Storage.SharedStorageMetadata metadata { get; @@ -45750,10 +45791,10 @@ namespace CefSharp.DevTools.Storage /// /// GetSharedStorageEntriesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetSharedStorageEntriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetSharedStorageEntriesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList entries { get; @@ -46310,10 +46351,10 @@ namespace CefSharp.DevTools.SystemInfo /// /// GetInfoResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetInfoResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.SystemInfo.GPUInfo gpu { get; @@ -46331,7 +46372,7 @@ public CefSharp.DevTools.SystemInfo.GPUInfo Gpu } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string modelName { get; @@ -46349,7 +46390,7 @@ public string ModelName } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string modelVersion { get; @@ -46367,7 +46408,7 @@ public string ModelVersion } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string commandLine { get; @@ -46392,10 +46433,10 @@ namespace CefSharp.DevTools.SystemInfo /// /// GetFeatureStateResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetFeatureStateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetFeatureStateResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool featureEnabled { get; @@ -46420,10 +46461,10 @@ namespace CefSharp.DevTools.SystemInfo /// /// GetProcessInfoResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetProcessInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetProcessInfoResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList processInfo { get; @@ -46503,10 +46544,10 @@ namespace CefSharp.DevTools.Target /// /// AttachToTargetResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class AttachToTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class AttachToTargetResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string sessionId { get; @@ -46531,10 +46572,10 @@ namespace CefSharp.DevTools.Target /// /// AttachToBrowserTargetResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class AttachToBrowserTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class AttachToBrowserTargetResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string sessionId { get; @@ -46559,10 +46600,10 @@ namespace CefSharp.DevTools.Target /// /// CloseTargetResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CloseTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CloseTargetResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool success { get; @@ -46587,10 +46628,10 @@ namespace CefSharp.DevTools.Target /// /// CreateBrowserContextResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CreateBrowserContextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CreateBrowserContextResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string browserContextId { get; @@ -46615,10 +46656,10 @@ namespace CefSharp.DevTools.Target /// /// GetBrowserContextsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetBrowserContextsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetBrowserContextsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] browserContextIds { get; @@ -46643,10 +46684,10 @@ namespace CefSharp.DevTools.Target /// /// CreateTargetResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CreateTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CreateTargetResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string targetId { get; @@ -46671,10 +46712,10 @@ namespace CefSharp.DevTools.Target /// /// GetTargetInfoResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetTargetInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetTargetInfoResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Target.TargetInfo targetInfo { get; @@ -46699,10 +46740,10 @@ namespace CefSharp.DevTools.Target /// /// GetTargetsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetTargetsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetTargetsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList targetInfos { get; @@ -47285,10 +47326,10 @@ namespace CefSharp.DevTools.Tracing /// /// GetCategoriesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetCategoriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetCategoriesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] categories { get; @@ -47313,10 +47354,10 @@ namespace CefSharp.DevTools.Tracing /// /// RequestMemoryDumpResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RequestMemoryDumpResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RequestMemoryDumpResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string dumpGuid { get; @@ -47334,7 +47375,7 @@ public string DumpGuid } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool success { get; @@ -47367,12 +47408,12 @@ public enum StartTransferMode /// /// ReportEvents /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ReportEvents"))] + [EnumMember(Value = ("ReportEvents"))] ReportEvents, /// /// ReturnAsStream /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("ReturnAsStream"))] + [EnumMember(Value = ("ReturnAsStream"))] ReturnAsStream } @@ -47572,10 +47613,10 @@ namespace CefSharp.DevTools.Fetch /// /// GetResponseBodyResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetResponseBodyResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string body { get; @@ -47593,7 +47634,7 @@ public string Body } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool base64Encoded { get; @@ -47618,10 +47659,10 @@ namespace CefSharp.DevTools.Fetch /// /// TakeResponseBodyAsStreamResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class TakeResponseBodyAsStreamResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class TakeResponseBodyAsStreamResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string stream { get; @@ -47938,10 +47979,10 @@ namespace CefSharp.DevTools.WebAudio /// /// GetRealtimeDataResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetRealtimeDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetRealtimeDataResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.WebAudio.ContextRealtimeData realtimeData { get; @@ -48230,10 +48271,10 @@ namespace CefSharp.DevTools.WebAuthn /// /// AddVirtualAuthenticatorResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class AddVirtualAuthenticatorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class AddVirtualAuthenticatorResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string authenticatorId { get; @@ -48258,10 +48299,10 @@ namespace CefSharp.DevTools.WebAuthn /// /// GetCredentialResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetCredentialResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetCredentialResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.WebAuthn.Credential credential { get; @@ -48286,10 +48327,10 @@ namespace CefSharp.DevTools.WebAuthn /// /// GetCredentialsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetCredentialsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetCredentialsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList credentials { get; @@ -48688,15 +48729,176 @@ public System.Threading.Tasks.Task DisableAsync() } } +namespace CefSharp.DevTools.DeviceAccess +{ + using System.Linq; + + /// + /// DeviceAccess + /// + public partial class DeviceAccessClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// DeviceAccess + /// + /// DevToolsClient + public DeviceAccessClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// A device request opened a user prompt to select a device. Respond with the + /// selectPrompt or cancelPrompt command. + /// + public event System.EventHandler DeviceRequestPrompted + { + add + { + _client.AddEventHandler("DeviceAccess.deviceRequestPrompted", value); + } + + remove + { + _client.RemoveEventHandler("DeviceAccess.deviceRequestPrompted", value); + } + } + + /// + /// Enable events in this domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.enable", dict); + } + + /// + /// Disable events in this domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.disable", dict); + } + + partial void ValidateSelectPrompt(string id, string deviceId); + /// + /// Select a device in response to a DeviceAccess.deviceRequestPrompted event. + /// + /// id + /// deviceId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SelectPromptAsync(string id, string deviceId) + { + ValidateSelectPrompt(id, deviceId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("id", id); + dict.Add("deviceId", deviceId); + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.selectPrompt", dict); + } + + partial void ValidateCancelPrompt(string id); + /// + /// Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event. + /// + /// id + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task CancelPromptAsync(string id) + { + ValidateCancelPrompt(id); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("id", id); + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.cancelPrompt", dict); + } + } +} + +namespace CefSharp.DevTools.Preload +{ + using System.Linq; + + /// + /// Preload + /// + public partial class PreloadClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// Preload + /// + /// DevToolsClient + public PreloadClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Upsert. Currently, it is only emitted when a rule set added. + /// + public event System.EventHandler RuleSetUpdated + { + add + { + _client.AddEventHandler("Preload.ruleSetUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.ruleSetUpdated", value); + } + } + + /// + /// RuleSetRemoved + /// + public event System.EventHandler RuleSetRemoved + { + add + { + _client.AddEventHandler("Preload.ruleSetRemoved", value); + } + + remove + { + _client.RemoveEventHandler("Preload.ruleSetRemoved", value); + } + } + + /// + /// Enable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Preload.enable", dict); + } + + /// + /// Disable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Preload.disable", dict); + } + } +} + namespace CefSharp.DevTools.Debugger { /// /// EnableResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class EnableResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class EnableResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string debuggerId { get; @@ -48721,10 +48923,10 @@ namespace CefSharp.DevTools.Debugger /// /// EvaluateOnCallFrameResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class EvaluateOnCallFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class EvaluateOnCallFrameResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject result { get; @@ -48742,7 +48944,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Result } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -48767,10 +48969,10 @@ namespace CefSharp.DevTools.Debugger /// /// GetPossibleBreakpointsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetPossibleBreakpointsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetPossibleBreakpointsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList locations { get; @@ -48795,10 +48997,10 @@ namespace CefSharp.DevTools.Debugger /// /// GetScriptSourceResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetScriptSourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetScriptSourceResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string scriptSource { get; @@ -48816,7 +49018,7 @@ public string ScriptSource } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string bytecode { get; @@ -48841,10 +49043,10 @@ namespace CefSharp.DevTools.Debugger /// /// DisassembleWasmModuleResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class DisassembleWasmModuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class DisassembleWasmModuleResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string streamId { get; @@ -48862,7 +49064,7 @@ public string StreamId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int totalNumberOfLines { get; @@ -48880,7 +49082,7 @@ public int TotalNumberOfLines } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal int[] functionBodyOffsets { get; @@ -48898,7 +49100,7 @@ public int[] FunctionBodyOffsets } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Debugger.WasmDisassemblyChunk chunk { get; @@ -48923,10 +49125,10 @@ namespace CefSharp.DevTools.Debugger /// /// NextWasmDisassemblyChunkResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class NextWasmDisassemblyChunkResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class NextWasmDisassemblyChunkResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Debugger.WasmDisassemblyChunk chunk { get; @@ -48951,10 +49153,10 @@ namespace CefSharp.DevTools.Debugger /// /// GetStackTraceResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetStackTraceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetStackTraceResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.StackTrace stackTrace { get; @@ -48979,10 +49181,10 @@ namespace CefSharp.DevTools.Debugger /// /// RestartFrameResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RestartFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RestartFrameResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList callFrames { get; @@ -49000,7 +49202,7 @@ public System.Collections.Generic.IList Ca } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.StackTrace asyncStackTrace { get; @@ -49018,7 +49220,7 @@ public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.StackTraceId asyncStackTraceId { get; @@ -49043,10 +49245,10 @@ namespace CefSharp.DevTools.Debugger /// /// SearchInContentResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SearchInContentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SearchInContentResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList result { get; @@ -49071,10 +49273,10 @@ namespace CefSharp.DevTools.Debugger /// /// SetBreakpointResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetBreakpointResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetBreakpointResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string breakpointId { get; @@ -49092,7 +49294,7 @@ public string BreakpointId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Debugger.Location actualLocation { get; @@ -49117,10 +49319,10 @@ namespace CefSharp.DevTools.Debugger /// /// SetInstrumentationBreakpointResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetInstrumentationBreakpointResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetInstrumentationBreakpointResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string breakpointId { get; @@ -49145,10 +49347,10 @@ namespace CefSharp.DevTools.Debugger /// /// SetBreakpointByUrlResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetBreakpointByUrlResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetBreakpointByUrlResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string breakpointId { get; @@ -49166,7 +49368,7 @@ public string BreakpointId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList locations { get; @@ -49191,10 +49393,10 @@ namespace CefSharp.DevTools.Debugger /// /// SetBreakpointOnFunctionCallResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetBreakpointOnFunctionCallResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetBreakpointOnFunctionCallResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string breakpointId { get; @@ -49219,10 +49421,10 @@ namespace CefSharp.DevTools.Debugger /// /// SetScriptSourceResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class SetScriptSourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class SetScriptSourceResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList callFrames { get; @@ -49240,7 +49442,7 @@ public System.Collections.Generic.IList Ca } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal bool? stackChanged { get; @@ -49258,7 +49460,7 @@ public bool? StackChanged } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.StackTrace asyncStackTrace { get; @@ -49276,7 +49478,7 @@ public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.StackTraceId asyncStackTraceId { get; @@ -49294,7 +49496,7 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string status { get; @@ -49312,7 +49514,7 @@ public string Status } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -49344,12 +49546,12 @@ public enum ContinueToLocationTargetCallFrames /// /// any /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("any"))] + [EnumMember(Value = ("any"))] Any, /// /// current /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("current"))] + [EnumMember(Value = ("current"))] Current } @@ -49362,7 +49564,7 @@ public enum RestartFrameMode /// /// StepInto /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("StepInto"))] + [EnumMember(Value = ("StepInto"))] StepInto } @@ -49374,12 +49576,12 @@ public enum SetInstrumentationBreakpointInstrumentation /// /// beforeScriptExecution /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("beforeScriptExecution"))] + [EnumMember(Value = ("beforeScriptExecution"))] BeforeScriptExecution, /// /// beforeScriptWithSourceMapExecution /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("beforeScriptWithSourceMapExecution"))] + [EnumMember(Value = ("beforeScriptWithSourceMapExecution"))] BeforeScriptWithSourceMapExecution } @@ -49391,22 +49593,22 @@ public enum SetPauseOnExceptionsState /// /// none /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("none"))] + [EnumMember(Value = ("none"))] None, /// /// caught /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("caught"))] + [EnumMember(Value = ("caught"))] Caught, /// /// uncaught /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("uncaught"))] + [EnumMember(Value = ("uncaught"))] Uncaught, /// /// all /// - [System.Runtime.Serialization.EnumMemberAttribute(Value = ("all"))] + [EnumMember(Value = ("all"))] All } @@ -50125,10 +50327,10 @@ namespace CefSharp.DevTools.HeapProfiler /// /// GetHeapObjectIdResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetHeapObjectIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetHeapObjectIdResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string heapSnapshotObjectId { get; @@ -50153,10 +50355,10 @@ namespace CefSharp.DevTools.HeapProfiler /// /// GetObjectByHeapObjectIdResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetObjectByHeapObjectIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetObjectByHeapObjectIdResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject result { get; @@ -50181,10 +50383,10 @@ namespace CefSharp.DevTools.HeapProfiler /// /// GetSamplingProfileResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetSamplingProfileResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.HeapProfiler.SamplingHeapProfile profile { get; @@ -50209,10 +50411,10 @@ namespace CefSharp.DevTools.HeapProfiler /// /// StopSamplingResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class StopSamplingResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class StopSamplingResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.HeapProfiler.SamplingHeapProfile profile { get; @@ -50559,10 +50761,10 @@ namespace CefSharp.DevTools.Profiler /// /// GetBestEffortCoverageResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetBestEffortCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetBestEffortCoverageResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList result { get; @@ -50587,10 +50789,10 @@ namespace CefSharp.DevTools.Profiler /// /// StartPreciseCoverageResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class StartPreciseCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class StartPreciseCoverageResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double timestamp { get; @@ -50615,10 +50817,10 @@ namespace CefSharp.DevTools.Profiler /// /// StopResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class StopResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class StopResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Profiler.Profile profile { get; @@ -50643,10 +50845,10 @@ namespace CefSharp.DevTools.Profiler /// /// TakePreciseCoverageResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class TakePreciseCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class TakePreciseCoverageResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList result { get; @@ -50664,7 +50866,7 @@ public System.Collections.Generic.IList /// AwaitPromiseResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class AwaitPromiseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class AwaitPromiseResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject result { get; @@ -50901,7 +51103,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Result } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -50926,10 +51128,10 @@ namespace CefSharp.DevTools.Runtime /// /// CallFunctionOnResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CallFunctionOnResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CallFunctionOnResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject result { get; @@ -50947,7 +51149,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Result } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -50972,10 +51174,10 @@ namespace CefSharp.DevTools.Runtime /// /// CompileScriptResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class CompileScriptResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class CompileScriptResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string scriptId { get; @@ -50993,7 +51195,7 @@ public string ScriptId } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -51018,10 +51220,10 @@ namespace CefSharp.DevTools.Runtime /// /// EvaluateResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class EvaluateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class EvaluateResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject result { get; @@ -51039,7 +51241,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Result } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -51064,10 +51266,10 @@ namespace CefSharp.DevTools.Runtime /// /// GetIsolateIdResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetIsolateIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetIsolateIdResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string id { get; @@ -51092,10 +51294,10 @@ namespace CefSharp.DevTools.Runtime /// /// GetHeapUsageResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetHeapUsageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetHeapUsageResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double usedSize { get; @@ -51113,7 +51315,7 @@ public double UsedSize } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal double totalSize { get; @@ -51138,10 +51340,10 @@ namespace CefSharp.DevTools.Runtime /// /// GetPropertiesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetPropertiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetPropertiesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal System.Collections.Generic.IList result { get; @@ -51159,7 +51361,7 @@ public System.Collections.Generic.IList internalProperties { get; @@ -51177,7 +51379,7 @@ public System.Collections.Generic.IList privateProperties { get; @@ -51195,7 +51397,7 @@ public System.Collections.Generic.IList /// GlobalLexicalScopeNamesResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GlobalLexicalScopeNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GlobalLexicalScopeNamesResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal string[] names { get; @@ -51248,10 +51450,10 @@ namespace CefSharp.DevTools.Runtime /// /// QueryObjectsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class QueryObjectsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class QueryObjectsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject objects { get; @@ -51276,10 +51478,10 @@ namespace CefSharp.DevTools.Runtime /// /// RunScriptResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class RunScriptResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class RunScriptResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.RemoteObject result { get; @@ -51297,7 +51499,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Result } } - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -51322,10 +51524,10 @@ namespace CefSharp.DevTools.Runtime /// /// GetExceptionDetailsResponse /// - [System.Runtime.Serialization.DataContractAttribute] - public class GetExceptionDetailsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + [DataContract] + public class GetExceptionDetailsResponse : DevToolsDomainResponseBase { - [System.Runtime.Serialization.DataMemberAttribute] + [DataMember] internal CefSharp.DevTools.Runtime.ExceptionDetails exceptionDetails { get; @@ -52788,6 +52990,40 @@ public CefSharp.DevTools.Media.MediaClient Media } } + private CefSharp.DevTools.DeviceAccess.DeviceAccessClient _DeviceAccess; + /// + /// DeviceAccess + /// + public CefSharp.DevTools.DeviceAccess.DeviceAccessClient DeviceAccess + { + get + { + if ((_DeviceAccess) == (null)) + { + _DeviceAccess = (new CefSharp.DevTools.DeviceAccess.DeviceAccessClient(this)); + } + + return _DeviceAccess; + } + } + + private CefSharp.DevTools.Preload.PreloadClient _Preload; + /// + /// Preload + /// + public CefSharp.DevTools.Preload.PreloadClient Preload + { + get + { + if ((_Preload) == (null)) + { + _Preload = (new CefSharp.DevTools.Preload.PreloadClient(this)); + } + + return _Preload; + } + } + private CefSharp.DevTools.Debugger.DebuggerClient _Debugger; /// /// Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index ab8424222..8729e921a 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,9 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 111.0.5563.65 +// CHROMIUM VERSION 112.0.5615.49 +using System.Text.Json.Serialization; + namespace CefSharp.DevTools.Accessibility { /// @@ -14,87 +16,87 @@ public enum AXValueType /// /// boolean /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("boolean")] + [JsonPropertyName("boolean")] Boolean, /// /// tristate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tristate")] + [JsonPropertyName("tristate")] Tristate, /// /// booleanOrUndefined /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("booleanOrUndefined")] + [JsonPropertyName("booleanOrUndefined")] BooleanOrUndefined, /// /// idref /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("idref")] + [JsonPropertyName("idref")] Idref, /// /// idrefList /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("idrefList")] + [JsonPropertyName("idrefList")] IdrefList, /// /// integer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("integer")] + [JsonPropertyName("integer")] Integer, /// /// node /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonPropertyName("node")] Node, /// /// nodeList /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeList")] + [JsonPropertyName("nodeList")] NodeList, /// /// number /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + [JsonPropertyName("number")] Number, /// /// string /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] String, /// /// computedString /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedString")] + [JsonPropertyName("computedString")] ComputedString, /// /// token /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("token")] + [JsonPropertyName("token")] Token, /// /// tokenList /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tokenList")] + [JsonPropertyName("tokenList")] TokenList, /// /// domRelation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("domRelation")] + [JsonPropertyName("domRelation")] DomRelation, /// /// role /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("role")] + [JsonPropertyName("role")] Role, /// /// internalRole /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("internalRole")] + [JsonPropertyName("internalRole")] InternalRole, /// /// valueUndefined /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("valueUndefined")] + [JsonPropertyName("valueUndefined")] ValueUndefined } @@ -106,32 +108,32 @@ public enum AXValueSourceType /// /// attribute /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attribute")] + [JsonPropertyName("attribute")] Attribute, /// /// implicit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("implicit")] + [JsonPropertyName("implicit")] Implicit, /// /// style /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("style")] + [JsonPropertyName("style")] Style, /// /// contents /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contents")] + [JsonPropertyName("contents")] Contents, /// /// placeholder /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("placeholder")] + [JsonPropertyName("placeholder")] Placeholder, /// /// relatedElement /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("relatedElement")] + [JsonPropertyName("relatedElement")] RelatedElement } @@ -143,52 +145,52 @@ public enum AXValueNativeSourceType /// /// description /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + [JsonPropertyName("description")] Description, /// /// figcaption /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("figcaption")] + [JsonPropertyName("figcaption")] Figcaption, /// /// label /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("label")] + [JsonPropertyName("label")] Label, /// /// labelfor /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("labelfor")] + [JsonPropertyName("labelfor")] Labelfor, /// /// labelwrapped /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("labelwrapped")] + [JsonPropertyName("labelwrapped")] Labelwrapped, /// /// legend /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("legend")] + [JsonPropertyName("legend")] Legend, /// /// rubyannotation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rubyannotation")] + [JsonPropertyName("rubyannotation")] Rubyannotation, /// /// tablecaption /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tablecaption")] + [JsonPropertyName("tablecaption")] Tablecaption, /// /// title /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonPropertyName("title")] Title, /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other } @@ -200,7 +202,7 @@ public partial class AXValueSource : CefSharp.DevTools.DevToolsDomainEntityBase /// /// What type of source this is. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Accessibility.AXValueSourceType Type { get; @@ -210,7 +212,7 @@ public CefSharp.DevTools.Accessibility.AXValueSourceType Type /// /// The value of this property source. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public CefSharp.DevTools.Accessibility.AXValue Value { get; @@ -220,7 +222,7 @@ public CefSharp.DevTools.Accessibility.AXValue Value /// /// The name of the relevant attribute, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attribute")] + [JsonPropertyName("attribute")] public string Attribute { get; @@ -230,7 +232,7 @@ public string Attribute /// /// The value of the relevant attribute, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributeValue")] + [JsonPropertyName("attributeValue")] public CefSharp.DevTools.Accessibility.AXValue AttributeValue { get; @@ -240,7 +242,7 @@ public CefSharp.DevTools.Accessibility.AXValue AttributeValue /// /// Whether this source is superseded by a higher priority source. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("superseded")] + [JsonPropertyName("superseded")] public bool? Superseded { get; @@ -250,7 +252,7 @@ public bool? Superseded /// /// The native markup source for this value, e.g. a <label> element. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nativeSource")] + [JsonPropertyName("nativeSource")] public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource { get; @@ -260,7 +262,7 @@ public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource /// /// The value, such as a node or node list, of the native source. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nativeSourceValue")] + [JsonPropertyName("nativeSourceValue")] public CefSharp.DevTools.Accessibility.AXValue NativeSourceValue { get; @@ -270,7 +272,7 @@ public CefSharp.DevTools.Accessibility.AXValue NativeSourceValue /// /// Whether the value for this property is invalid. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("invalid")] + [JsonPropertyName("invalid")] public bool? Invalid { get; @@ -280,7 +282,7 @@ public bool? Invalid /// /// Reason for the value being invalid, if it is. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("invalidReason")] + [JsonPropertyName("invalidReason")] public string InvalidReason { get; @@ -296,7 +298,7 @@ public partial class AXRelatedNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The BackendNodeId of the related DOM node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendDOMNodeId")] + [JsonPropertyName("backendDOMNodeId")] public int BackendDOMNodeId { get; @@ -306,7 +308,7 @@ public int BackendDOMNodeId /// /// The IDRef value provided, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("idref")] + [JsonPropertyName("idref")] public string Idref { get; @@ -316,7 +318,7 @@ public string Idref /// /// The text alternative of this node in the current context. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] public string Text { get; @@ -332,7 +334,7 @@ public partial class AXProperty : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The name of this property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public CefSharp.DevTools.Accessibility.AXPropertyName Name { get; @@ -342,7 +344,7 @@ public CefSharp.DevTools.Accessibility.AXPropertyName Name /// /// The value of this property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Accessibility.AXValue Value { @@ -359,7 +361,7 @@ public partial class AXValue : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The type of this value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Accessibility.AXValueType Type { get; @@ -369,7 +371,7 @@ public CefSharp.DevTools.Accessibility.AXValueType Type /// /// The computed value of this property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public object Value { get; @@ -379,7 +381,7 @@ public object Value /// /// One or more related nodes, if applicable. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("relatedNodes")] + [JsonPropertyName("relatedNodes")] public System.Collections.Generic.IList RelatedNodes { get; @@ -389,7 +391,7 @@ public System.Collections.Generic.IList /// The sources which contributed to the computation of this property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sources")] + [JsonPropertyName("sources")] public System.Collections.Generic.IList Sources { get; @@ -410,197 +412,197 @@ public enum AXPropertyName /// /// busy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("busy")] + [JsonPropertyName("busy")] Busy, /// /// disabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("disabled")] + [JsonPropertyName("disabled")] Disabled, /// /// editable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("editable")] + [JsonPropertyName("editable")] Editable, /// /// focusable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("focusable")] + [JsonPropertyName("focusable")] Focusable, /// /// focused /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("focused")] + [JsonPropertyName("focused")] Focused, /// /// hidden /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hidden")] + [JsonPropertyName("hidden")] Hidden, /// /// hiddenRoot /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hiddenRoot")] + [JsonPropertyName("hiddenRoot")] HiddenRoot, /// /// invalid /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("invalid")] + [JsonPropertyName("invalid")] Invalid, /// /// keyshortcuts /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyshortcuts")] + [JsonPropertyName("keyshortcuts")] Keyshortcuts, /// /// settable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("settable")] + [JsonPropertyName("settable")] Settable, /// /// roledescription /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("roledescription")] + [JsonPropertyName("roledescription")] Roledescription, /// /// live /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("live")] + [JsonPropertyName("live")] Live, /// /// atomic /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("atomic")] + [JsonPropertyName("atomic")] Atomic, /// /// relevant /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("relevant")] + [JsonPropertyName("relevant")] Relevant, /// /// root /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + [JsonPropertyName("root")] Root, /// /// autocomplete /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autocomplete")] + [JsonPropertyName("autocomplete")] Autocomplete, /// /// hasPopup /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasPopup")] + [JsonPropertyName("hasPopup")] HasPopup, /// /// level /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("level")] + [JsonPropertyName("level")] Level, /// /// multiselectable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("multiselectable")] + [JsonPropertyName("multiselectable")] Multiselectable, /// /// orientation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("orientation")] + [JsonPropertyName("orientation")] Orientation, /// /// multiline /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("multiline")] + [JsonPropertyName("multiline")] Multiline, /// /// readonly /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("readonly")] + [JsonPropertyName("readonly")] Readonly, /// /// required /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("required")] + [JsonPropertyName("required")] Required, /// /// valuemin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuemin")] + [JsonPropertyName("valuemin")] Valuemin, /// /// valuemax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuemax")] + [JsonPropertyName("valuemax")] Valuemax, /// /// valuetext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuetext")] + [JsonPropertyName("valuetext")] Valuetext, /// /// checked /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("checked")] + [JsonPropertyName("checked")] Checked, /// /// expanded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("expanded")] + [JsonPropertyName("expanded")] Expanded, /// /// modal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("modal")] + [JsonPropertyName("modal")] Modal, /// /// pressed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pressed")] + [JsonPropertyName("pressed")] Pressed, /// /// selected /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selected")] + [JsonPropertyName("selected")] Selected, /// /// activedescendant /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("activedescendant")] + [JsonPropertyName("activedescendant")] Activedescendant, /// /// controls /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("controls")] + [JsonPropertyName("controls")] Controls, /// /// describedby /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("describedby")] + [JsonPropertyName("describedby")] Describedby, /// /// details /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("details")] + [JsonPropertyName("details")] Details, /// /// errormessage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errormessage")] + [JsonPropertyName("errormessage")] Errormessage, /// /// flowto /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("flowto")] + [JsonPropertyName("flowto")] Flowto, /// /// labelledby /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("labelledby")] + [JsonPropertyName("labelledby")] Labelledby, /// /// owns /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("owns")] + [JsonPropertyName("owns")] Owns } @@ -612,7 +614,7 @@ public partial class AXNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Unique identifier for this node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { @@ -623,7 +625,7 @@ public string NodeId /// /// Whether this node is ignored for accessibility /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ignored")] + [JsonPropertyName("ignored")] public bool Ignored { get; @@ -633,7 +635,7 @@ public bool Ignored /// /// Collection of reasons why this node is hidden. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ignoredReasons")] + [JsonPropertyName("ignoredReasons")] public System.Collections.Generic.IList IgnoredReasons { get; @@ -643,7 +645,7 @@ public System.Collections.Generic.IList /// This `Node`'s role, whether explicit or implicit. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("role")] + [JsonPropertyName("role")] public CefSharp.DevTools.Accessibility.AXValue Role { get; @@ -653,7 +655,7 @@ public CefSharp.DevTools.Accessibility.AXValue Role /// /// This `Node`'s Chrome raw role. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("chromeRole")] + [JsonPropertyName("chromeRole")] public CefSharp.DevTools.Accessibility.AXValue ChromeRole { get; @@ -663,7 +665,7 @@ public CefSharp.DevTools.Accessibility.AXValue ChromeRole /// /// The accessible name for this `Node`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public CefSharp.DevTools.Accessibility.AXValue Name { get; @@ -673,7 +675,7 @@ public CefSharp.DevTools.Accessibility.AXValue Name /// /// The accessible description for this `Node`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + [JsonPropertyName("description")] public CefSharp.DevTools.Accessibility.AXValue Description { get; @@ -683,7 +685,7 @@ public CefSharp.DevTools.Accessibility.AXValue Description /// /// The value for this `Node`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public CefSharp.DevTools.Accessibility.AXValue Value { get; @@ -693,7 +695,7 @@ public CefSharp.DevTools.Accessibility.AXValue Value /// /// All other properties /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("properties")] + [JsonPropertyName("properties")] public System.Collections.Generic.IList Properties { get; @@ -703,7 +705,7 @@ public System.Collections.Generic.IList /// ID for this node's parent. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + [JsonPropertyName("parentId")] public string ParentId { get; @@ -713,7 +715,7 @@ public string ParentId /// /// IDs for each of this node's child nodes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("childIds")] + [JsonPropertyName("childIds")] public string[] ChildIds { get; @@ -723,7 +725,7 @@ public string[] ChildIds /// /// The backend ID for the associated DOM node, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendDOMNodeId")] + [JsonPropertyName("backendDOMNodeId")] public int? BackendDOMNodeId { get; @@ -733,7 +735,7 @@ public int? BackendDOMNodeId /// /// The frame ID for the frame associated with this nodes document. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -750,8 +752,8 @@ public class LoadCompleteEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// New document root node. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + [JsonInclude] + [JsonPropertyName("root")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Accessibility.AXNode Root { @@ -768,8 +770,8 @@ public class NodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Updated node data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Nodes { @@ -789,17 +791,17 @@ public enum AnimationType /// /// CSSTransition /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSSTransition")] + [JsonPropertyName("CSSTransition")] CSSTransition, /// /// CSSAnimation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSSAnimation")] + [JsonPropertyName("CSSAnimation")] CSSAnimation, /// /// WebAnimation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebAnimation")] + [JsonPropertyName("WebAnimation")] WebAnimation } @@ -811,7 +813,7 @@ public partial class Animation : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `Animation`'s id. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -822,7 +824,7 @@ public string Id /// /// `Animation`'s name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -833,7 +835,7 @@ public string Name /// /// `Animation`'s internal paused state. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pausedState")] + [JsonPropertyName("pausedState")] public bool PausedState { get; @@ -843,7 +845,7 @@ public bool PausedState /// /// `Animation`'s play state. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("playState")] + [JsonPropertyName("playState")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayState { @@ -854,7 +856,7 @@ public string PlayState /// /// `Animation`'s playback rate. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("playbackRate")] + [JsonPropertyName("playbackRate")] public double PlaybackRate { get; @@ -864,7 +866,7 @@ public double PlaybackRate /// /// `Animation`'s start time. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startTime")] + [JsonPropertyName("startTime")] public double StartTime { get; @@ -874,7 +876,7 @@ public double StartTime /// /// `Animation`'s current time. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] + [JsonPropertyName("currentTime")] public double CurrentTime { get; @@ -884,7 +886,7 @@ public double CurrentTime /// /// Animation type of `Animation`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Animation.AnimationType Type { get; @@ -894,7 +896,7 @@ public CefSharp.DevTools.Animation.AnimationType Type /// /// `Animation`'s source animation node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + [JsonPropertyName("source")] public CefSharp.DevTools.Animation.AnimationEffect Source { get; @@ -905,7 +907,7 @@ public CefSharp.DevTools.Animation.AnimationEffect Source /// A unique ID for `Animation` representing the sources that triggered this CSS /// animation/transition. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssId")] + [JsonPropertyName("cssId")] public string CssId { get; @@ -921,7 +923,7 @@ public partial class AnimationEffect : CefSharp.DevTools.DevToolsDomainEntityBas /// /// `AnimationEffect`'s delay. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("delay")] + [JsonPropertyName("delay")] public double Delay { get; @@ -931,7 +933,7 @@ public double Delay /// /// `AnimationEffect`'s end delay. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endDelay")] + [JsonPropertyName("endDelay")] public double EndDelay { get; @@ -941,7 +943,7 @@ public double EndDelay /// /// `AnimationEffect`'s iteration start. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterationStart")] + [JsonPropertyName("iterationStart")] public double IterationStart { get; @@ -951,7 +953,7 @@ public double IterationStart /// /// `AnimationEffect`'s iterations. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterations")] + [JsonPropertyName("iterations")] public double Iterations { get; @@ -961,7 +963,7 @@ public double Iterations /// /// `AnimationEffect`'s iteration duration. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("duration")] + [JsonPropertyName("duration")] public double Duration { get; @@ -971,7 +973,7 @@ public double Duration /// /// `AnimationEffect`'s playback direction. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("direction")] + [JsonPropertyName("direction")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Direction { @@ -982,7 +984,7 @@ public string Direction /// /// `AnimationEffect`'s fill mode. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fill")] + [JsonPropertyName("fill")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Fill { @@ -993,7 +995,7 @@ public string Fill /// /// `AnimationEffect`'s target node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; @@ -1003,7 +1005,7 @@ public int? BackendNodeId /// /// `AnimationEffect`'s keyframes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyframesRule")] + [JsonPropertyName("keyframesRule")] public CefSharp.DevTools.Animation.KeyframesRule KeyframesRule { get; @@ -1013,7 +1015,7 @@ public CefSharp.DevTools.Animation.KeyframesRule KeyframesRule /// /// `AnimationEffect`'s timing function. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("easing")] + [JsonPropertyName("easing")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Easing { @@ -1030,7 +1032,7 @@ public partial class KeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBase /// /// CSS keyframed animation's name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public string Name { get; @@ -1040,7 +1042,7 @@ public string Name /// /// List of animation keyframes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyframes")] + [JsonPropertyName("keyframes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Keyframes { @@ -1057,7 +1059,7 @@ public partial class KeyframeStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Keyframe's time offset. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offset")] + [JsonPropertyName("offset")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Offset { @@ -1068,7 +1070,7 @@ public string Offset /// /// `AnimationEffect`'s timing function. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("easing")] + [JsonPropertyName("easing")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Easing { @@ -1085,8 +1087,8 @@ public class AnimationCanceledEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the animation that was cancelled. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonInclude] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -1103,8 +1105,8 @@ public class AnimationCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Id of the animation that was created. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonInclude] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -1121,8 +1123,8 @@ public class AnimationStartedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Animation that was started. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("animation")] + [JsonInclude] + [JsonPropertyName("animation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Animation.Animation Animation { @@ -1142,7 +1144,7 @@ public partial class AffectedCookie : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The following three properties uniquely identify a cookie /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -1153,7 +1155,7 @@ public string Name /// /// Path /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + [JsonPropertyName("path")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Path { @@ -1164,7 +1166,7 @@ public string Path /// /// Domain /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + [JsonPropertyName("domain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Domain { @@ -1181,7 +1183,7 @@ public partial class AffectedRequest : CefSharp.DevTools.DevToolsDomainEntityBas /// /// The unique request id. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -1192,7 +1194,7 @@ public string RequestId /// /// Url /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] public string Url { get; @@ -1208,7 +1210,7 @@ public partial class AffectedFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// FrameId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -1225,42 +1227,42 @@ public enum CookieExclusionReason /// /// ExcludeSameSiteUnspecifiedTreatedAsLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteUnspecifiedTreatedAsLax")] + [JsonPropertyName("ExcludeSameSiteUnspecifiedTreatedAsLax")] ExcludeSameSiteUnspecifiedTreatedAsLax, /// /// ExcludeSameSiteNoneInsecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteNoneInsecure")] + [JsonPropertyName("ExcludeSameSiteNoneInsecure")] ExcludeSameSiteNoneInsecure, /// /// ExcludeSameSiteLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteLax")] + [JsonPropertyName("ExcludeSameSiteLax")] ExcludeSameSiteLax, /// /// ExcludeSameSiteStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSameSiteStrict")] + [JsonPropertyName("ExcludeSameSiteStrict")] ExcludeSameSiteStrict, /// /// ExcludeInvalidSameParty /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeInvalidSameParty")] + [JsonPropertyName("ExcludeInvalidSameParty")] ExcludeInvalidSameParty, /// /// ExcludeSamePartyCrossPartyContext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeSamePartyCrossPartyContext")] + [JsonPropertyName("ExcludeSamePartyCrossPartyContext")] ExcludeSamePartyCrossPartyContext, /// /// ExcludeDomainNonASCII /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeDomainNonASCII")] + [JsonPropertyName("ExcludeDomainNonASCII")] ExcludeDomainNonASCII, /// /// ExcludeThirdPartyCookieBlockedInFirstPartySet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExcludeThirdPartyCookieBlockedInFirstPartySet")] + [JsonPropertyName("ExcludeThirdPartyCookieBlockedInFirstPartySet")] ExcludeThirdPartyCookieBlockedInFirstPartySet } @@ -1272,52 +1274,52 @@ public enum CookieWarningReason /// /// WarnSameSiteUnspecifiedCrossSiteContext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteUnspecifiedCrossSiteContext")] + [JsonPropertyName("WarnSameSiteUnspecifiedCrossSiteContext")] WarnSameSiteUnspecifiedCrossSiteContext, /// /// WarnSameSiteNoneInsecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteNoneInsecure")] + [JsonPropertyName("WarnSameSiteNoneInsecure")] WarnSameSiteNoneInsecure, /// /// WarnSameSiteUnspecifiedLaxAllowUnsafe /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteUnspecifiedLaxAllowUnsafe")] + [JsonPropertyName("WarnSameSiteUnspecifiedLaxAllowUnsafe")] WarnSameSiteUnspecifiedLaxAllowUnsafe, /// /// WarnSameSiteStrictLaxDowngradeStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteStrictLaxDowngradeStrict")] + [JsonPropertyName("WarnSameSiteStrictLaxDowngradeStrict")] WarnSameSiteStrictLaxDowngradeStrict, /// /// WarnSameSiteStrictCrossDowngradeStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteStrictCrossDowngradeStrict")] + [JsonPropertyName("WarnSameSiteStrictCrossDowngradeStrict")] WarnSameSiteStrictCrossDowngradeStrict, /// /// WarnSameSiteStrictCrossDowngradeLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteStrictCrossDowngradeLax")] + [JsonPropertyName("WarnSameSiteStrictCrossDowngradeLax")] WarnSameSiteStrictCrossDowngradeLax, /// /// WarnSameSiteLaxCrossDowngradeStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteLaxCrossDowngradeStrict")] + [JsonPropertyName("WarnSameSiteLaxCrossDowngradeStrict")] WarnSameSiteLaxCrossDowngradeStrict, /// /// WarnSameSiteLaxCrossDowngradeLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnSameSiteLaxCrossDowngradeLax")] + [JsonPropertyName("WarnSameSiteLaxCrossDowngradeLax")] WarnSameSiteLaxCrossDowngradeLax, /// /// WarnAttributeValueExceedsMaxSize /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnAttributeValueExceedsMaxSize")] + [JsonPropertyName("WarnAttributeValueExceedsMaxSize")] WarnAttributeValueExceedsMaxSize, /// /// WarnDomainNonASCII /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnDomainNonASCII")] + [JsonPropertyName("WarnDomainNonASCII")] WarnDomainNonASCII } @@ -1329,12 +1331,12 @@ public enum CookieOperation /// /// SetCookie /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SetCookie")] + [JsonPropertyName("SetCookie")] SetCookie, /// /// ReadCookie /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ReadCookie")] + [JsonPropertyName("ReadCookie")] ReadCookie } @@ -1351,7 +1353,7 @@ public partial class CookieIssueDetails : CefSharp.DevTools.DevToolsDomainEntity /// cookie line is syntactically or semantically malformed in a way /// that no valid cookie could be created. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookie")] + [JsonPropertyName("cookie")] public CefSharp.DevTools.Audits.AffectedCookie Cookie { get; @@ -1361,7 +1363,7 @@ public CefSharp.DevTools.Audits.AffectedCookie Cookie /// /// RawCookieLine /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rawCookieLine")] + [JsonPropertyName("rawCookieLine")] public string RawCookieLine { get; @@ -1371,7 +1373,7 @@ public string RawCookieLine /// /// CookieWarningReasons /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieWarningReasons")] + [JsonPropertyName("cookieWarningReasons")] public CefSharp.DevTools.Audits.CookieWarningReason[] CookieWarningReasons { get; @@ -1381,7 +1383,7 @@ public CefSharp.DevTools.Audits.CookieWarningReason[] CookieWarningReasons /// /// CookieExclusionReasons /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieExclusionReasons")] + [JsonPropertyName("cookieExclusionReasons")] public CefSharp.DevTools.Audits.CookieExclusionReason[] CookieExclusionReasons { get; @@ -1392,7 +1394,7 @@ public CefSharp.DevTools.Audits.CookieExclusionReason[] CookieExclusionReasons /// Optionally identifies the site-for-cookies and the cookie url, which /// may be used by the front-end as additional context. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("operation")] + [JsonPropertyName("operation")] public CefSharp.DevTools.Audits.CookieOperation Operation { get; @@ -1402,7 +1404,7 @@ public CefSharp.DevTools.Audits.CookieOperation Operation /// /// SiteForCookies /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("siteForCookies")] + [JsonPropertyName("siteForCookies")] public string SiteForCookies { get; @@ -1412,7 +1414,7 @@ public string SiteForCookies /// /// CookieUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieUrl")] + [JsonPropertyName("cookieUrl")] public string CookieUrl { get; @@ -1422,7 +1424,7 @@ public string CookieUrl /// /// Request /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -1438,17 +1440,17 @@ public enum MixedContentResolutionStatus /// /// MixedContentBlocked /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentBlocked")] + [JsonPropertyName("MixedContentBlocked")] MixedContentBlocked, /// /// MixedContentAutomaticallyUpgraded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentAutomaticallyUpgraded")] + [JsonPropertyName("MixedContentAutomaticallyUpgraded")] MixedContentAutomaticallyUpgraded, /// /// MixedContentWarning /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentWarning")] + [JsonPropertyName("MixedContentWarning")] MixedContentWarning } @@ -1460,137 +1462,137 @@ public enum MixedContentResourceType /// /// AttributionSrc /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionSrc")] + [JsonPropertyName("AttributionSrc")] AttributionSrc, /// /// Audio /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Audio")] + [JsonPropertyName("Audio")] Audio, /// /// Beacon /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Beacon")] + [JsonPropertyName("Beacon")] Beacon, /// /// CSPReport /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSPReport")] + [JsonPropertyName("CSPReport")] CSPReport, /// /// Download /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Download")] + [JsonPropertyName("Download")] Download, /// /// EventSource /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventSource")] + [JsonPropertyName("EventSource")] EventSource, /// /// Favicon /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Favicon")] + [JsonPropertyName("Favicon")] Favicon, /// /// Font /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Font")] + [JsonPropertyName("Font")] Font, /// /// Form /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Form")] + [JsonPropertyName("Form")] Form, /// /// Frame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Frame")] + [JsonPropertyName("Frame")] Frame, /// /// Image /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Image")] + [JsonPropertyName("Image")] Image, /// /// Import /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Import")] + [JsonPropertyName("Import")] Import, /// /// Manifest /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Manifest")] + [JsonPropertyName("Manifest")] Manifest, /// /// Ping /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Ping")] + [JsonPropertyName("Ping")] Ping, /// /// PluginData /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PluginData")] + [JsonPropertyName("PluginData")] PluginData, /// /// PluginResource /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PluginResource")] + [JsonPropertyName("PluginResource")] PluginResource, /// /// Prefetch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Prefetch")] + [JsonPropertyName("Prefetch")] Prefetch, /// /// Resource /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Resource")] + [JsonPropertyName("Resource")] Resource, /// /// Script /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Script")] + [JsonPropertyName("Script")] Script, /// /// ServiceWorker /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ServiceWorker")] + [JsonPropertyName("ServiceWorker")] ServiceWorker, /// /// SharedWorker /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedWorker")] + [JsonPropertyName("SharedWorker")] SharedWorker, /// /// Stylesheet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Stylesheet")] + [JsonPropertyName("Stylesheet")] Stylesheet, /// /// Track /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Track")] + [JsonPropertyName("Track")] Track, /// /// Video /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Video")] + [JsonPropertyName("Video")] Video, /// /// Worker /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Worker")] + [JsonPropertyName("Worker")] Worker, /// /// XMLHttpRequest /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("XMLHttpRequest")] + [JsonPropertyName("XMLHttpRequest")] XMLHttpRequest, /// /// XSLT /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("XSLT")] + [JsonPropertyName("XSLT")] XSLT } @@ -1605,7 +1607,7 @@ public partial class MixedContentIssueDetails : CefSharp.DevTools.DevToolsDomain /// blink::mojom::RequestContextType, which will be replaced /// by network::mojom::RequestDestination /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + [JsonPropertyName("resourceType")] public CefSharp.DevTools.Audits.MixedContentResourceType? ResourceType { get; @@ -1615,7 +1617,7 @@ public CefSharp.DevTools.Audits.MixedContentResourceType? ResourceType /// /// The way the mixed content issue is being resolved. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resolutionStatus")] + [JsonPropertyName("resolutionStatus")] public CefSharp.DevTools.Audits.MixedContentResolutionStatus ResolutionStatus { get; @@ -1625,7 +1627,7 @@ public CefSharp.DevTools.Audits.MixedContentResolutionStatus ResolutionStatus /// /// The unsafe http url causing the mixed content issue. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecureURL")] + [JsonPropertyName("insecureURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InsecureURL { @@ -1636,7 +1638,7 @@ public string InsecureURL /// /// The url responsible for the call to an unsafe url. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mainResourceURL")] + [JsonPropertyName("mainResourceURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MainResourceURL { @@ -1648,7 +1650,7 @@ public string MainResourceURL /// The mixed content request. /// Does not always exist (e.g. for unsafe form submission urls). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -1658,7 +1660,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// Optional because not every mixed content issue is necessarily linked to a frame. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [JsonPropertyName("frame")] public CefSharp.DevTools.Audits.AffectedFrame Frame { get; @@ -1675,27 +1677,27 @@ public enum BlockedByResponseReason /// /// CoepFrameResourceNeedsCoepHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CoepFrameResourceNeedsCoepHeader")] + [JsonPropertyName("CoepFrameResourceNeedsCoepHeader")] CoepFrameResourceNeedsCoepHeader, /// /// CoopSandboxedIFrameCannotNavigateToCoopPage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CoopSandboxedIFrameCannotNavigateToCoopPage")] + [JsonPropertyName("CoopSandboxedIFrameCannotNavigateToCoopPage")] CoopSandboxedIFrameCannotNavigateToCoopPage, /// /// CorpNotSameOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorpNotSameOrigin")] + [JsonPropertyName("CorpNotSameOrigin")] CorpNotSameOrigin, /// /// CorpNotSameOriginAfterDefaultedToSameOriginByCoep /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorpNotSameOriginAfterDefaultedToSameOriginByCoep")] + [JsonPropertyName("CorpNotSameOriginAfterDefaultedToSameOriginByCoep")] CorpNotSameOriginAfterDefaultedToSameOriginByCoep, /// /// CorpNotSameSite /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorpNotSameSite")] + [JsonPropertyName("CorpNotSameSite")] CorpNotSameSite } @@ -1709,7 +1711,7 @@ public partial class BlockedByResponseIssueDetails : CefSharp.DevTools.DevToolsD /// /// Request /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedRequest Request { @@ -1720,7 +1722,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// ParentFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentFrame")] + [JsonPropertyName("parentFrame")] public CefSharp.DevTools.Audits.AffectedFrame ParentFrame { get; @@ -1730,7 +1732,7 @@ public CefSharp.DevTools.Audits.AffectedFrame ParentFrame /// /// BlockedFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedFrame")] + [JsonPropertyName("blockedFrame")] public CefSharp.DevTools.Audits.AffectedFrame BlockedFrame { get; @@ -1740,7 +1742,7 @@ public CefSharp.DevTools.Audits.AffectedFrame BlockedFrame /// /// Reason /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonPropertyName("reason")] public CefSharp.DevTools.Audits.BlockedByResponseReason Reason { get; @@ -1756,12 +1758,12 @@ public enum HeavyAdResolutionStatus /// /// HeavyAdBlocked /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeavyAdBlocked")] + [JsonPropertyName("HeavyAdBlocked")] HeavyAdBlocked, /// /// HeavyAdWarning /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeavyAdWarning")] + [JsonPropertyName("HeavyAdWarning")] HeavyAdWarning } @@ -1773,17 +1775,17 @@ public enum HeavyAdReason /// /// NetworkTotalLimit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NetworkTotalLimit")] + [JsonPropertyName("NetworkTotalLimit")] NetworkTotalLimit, /// /// CpuTotalLimit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CpuTotalLimit")] + [JsonPropertyName("CpuTotalLimit")] CpuTotalLimit, /// /// CpuPeakLimit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CpuPeakLimit")] + [JsonPropertyName("CpuPeakLimit")] CpuPeakLimit } @@ -1795,7 +1797,7 @@ public partial class HeavyAdIssueDetails : CefSharp.DevTools.DevToolsDomainEntit /// /// The resolution status, either blocking the content or warning. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resolution")] + [JsonPropertyName("resolution")] public CefSharp.DevTools.Audits.HeavyAdResolutionStatus Resolution { get; @@ -1805,7 +1807,7 @@ public CefSharp.DevTools.Audits.HeavyAdResolutionStatus Resolution /// /// The reason the ad was blocked, total network or cpu or peak cpu. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonPropertyName("reason")] public CefSharp.DevTools.Audits.HeavyAdReason Reason { get; @@ -1815,7 +1817,7 @@ public CefSharp.DevTools.Audits.HeavyAdReason Reason /// /// The frame that was blocked. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedFrame Frame { @@ -1832,32 +1834,32 @@ public enum ContentSecurityPolicyViolationType /// /// kInlineViolation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kInlineViolation")] + [JsonPropertyName("kInlineViolation")] KInlineViolation, /// /// kEvalViolation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kEvalViolation")] + [JsonPropertyName("kEvalViolation")] KEvalViolation, /// /// kURLViolation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kURLViolation")] + [JsonPropertyName("kURLViolation")] KURLViolation, /// /// kTrustedTypesSinkViolation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kTrustedTypesSinkViolation")] + [JsonPropertyName("kTrustedTypesSinkViolation")] KTrustedTypesSinkViolation, /// /// kTrustedTypesPolicyViolation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kTrustedTypesPolicyViolation")] + [JsonPropertyName("kTrustedTypesPolicyViolation")] KTrustedTypesPolicyViolation, /// /// kWasmEvalViolation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kWasmEvalViolation")] + [JsonPropertyName("kWasmEvalViolation")] KWasmEvalViolation } @@ -1869,7 +1871,7 @@ public partial class SourceCodeLocation : CefSharp.DevTools.DevToolsDomainEntity /// /// ScriptId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] public string ScriptId { get; @@ -1879,7 +1881,7 @@ public string ScriptId /// /// Url /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -1890,7 +1892,7 @@ public string Url /// /// LineNumber /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -1900,7 +1902,7 @@ public int LineNumber /// /// ColumnNumber /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int ColumnNumber { get; @@ -1916,7 +1918,7 @@ public partial class ContentSecurityPolicyIssueDetails : CefSharp.DevTools.DevTo /// /// The url not included in allowed sources. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedURL")] + [JsonPropertyName("blockedURL")] public string BlockedURL { get; @@ -1926,7 +1928,7 @@ public string BlockedURL /// /// Specific directive that is violated, causing the CSP issue. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatedDirective")] + [JsonPropertyName("violatedDirective")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ViolatedDirective { @@ -1937,7 +1939,7 @@ public string ViolatedDirective /// /// IsReportOnly /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isReportOnly")] + [JsonPropertyName("isReportOnly")] public bool IsReportOnly { get; @@ -1947,7 +1949,7 @@ public bool IsReportOnly /// /// ContentSecurityPolicyViolationType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSecurityPolicyViolationType")] + [JsonPropertyName("contentSecurityPolicyViolationType")] public CefSharp.DevTools.Audits.ContentSecurityPolicyViolationType ContentSecurityPolicyViolationType { get; @@ -1957,7 +1959,7 @@ public CefSharp.DevTools.Audits.ContentSecurityPolicyViolationType ContentSecuri /// /// FrameAncestor /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameAncestor")] + [JsonPropertyName("frameAncestor")] public CefSharp.DevTools.Audits.AffectedFrame FrameAncestor { get; @@ -1967,7 +1969,7 @@ public CefSharp.DevTools.Audits.AffectedFrame FrameAncestor /// /// SourceCodeLocation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceCodeLocation")] + [JsonPropertyName("sourceCodeLocation")] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { get; @@ -1977,7 +1979,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation /// /// ViolatingNodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatingNodeId")] + [JsonPropertyName("violatingNodeId")] public int? ViolatingNodeId { get; @@ -1993,12 +1995,12 @@ public enum SharedArrayBufferIssueType /// /// TransferIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TransferIssue")] + [JsonPropertyName("TransferIssue")] TransferIssue, /// /// CreationIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CreationIssue")] + [JsonPropertyName("CreationIssue")] CreationIssue } @@ -2011,7 +2013,7 @@ public partial class SharedArrayBufferIssueDetails : CefSharp.DevTools.DevToolsD /// /// SourceCodeLocation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceCodeLocation")] + [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { @@ -2022,7 +2024,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation /// /// IsWarning /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isWarning")] + [JsonPropertyName("isWarning")] public bool IsWarning { get; @@ -2032,7 +2034,7 @@ public bool IsWarning /// /// Type /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Audits.SharedArrayBufferIssueType Type { get; @@ -2048,17 +2050,17 @@ public enum TwaQualityEnforcementViolationType /// /// kHttpError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kHttpError")] + [JsonPropertyName("kHttpError")] KHttpError, /// /// kUnavailableOffline /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kUnavailableOffline")] + [JsonPropertyName("kUnavailableOffline")] KUnavailableOffline, /// /// kDigitalAssetLinks /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("kDigitalAssetLinks")] + [JsonPropertyName("kDigitalAssetLinks")] KDigitalAssetLinks } @@ -2070,7 +2072,7 @@ public partial class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevTools /// /// The url that triggers the violation. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -2081,7 +2083,7 @@ public string Url /// /// ViolationType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violationType")] + [JsonPropertyName("violationType")] public CefSharp.DevTools.Audits.TwaQualityEnforcementViolationType ViolationType { get; @@ -2091,7 +2093,7 @@ public CefSharp.DevTools.Audits.TwaQualityEnforcementViolationType ViolationType /// /// HttpStatusCode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpStatusCode")] + [JsonPropertyName("httpStatusCode")] public int? HttpStatusCode { get; @@ -2102,7 +2104,7 @@ public int? HttpStatusCode /// The package name of the Trusted Web Activity client app. This field is /// only used when violation type is kDigitalAssetLinks. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("packageName")] + [JsonPropertyName("packageName")] public string PackageName { get; @@ -2113,7 +2115,7 @@ public string PackageName /// The signature of the Trusted Web Activity client app. This field is only /// used when violation type is kDigitalAssetLinks. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signature")] + [JsonPropertyName("signature")] public string Signature { get; @@ -2129,7 +2131,7 @@ public partial class LowTextContrastIssueDetails : CefSharp.DevTools.DevToolsDom /// /// ViolatingNodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatingNodeId")] + [JsonPropertyName("violatingNodeId")] public int ViolatingNodeId { get; @@ -2139,7 +2141,7 @@ public int ViolatingNodeId /// /// ViolatingNodeSelector /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatingNodeSelector")] + [JsonPropertyName("violatingNodeSelector")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ViolatingNodeSelector { @@ -2150,7 +2152,7 @@ public string ViolatingNodeSelector /// /// ContrastRatio /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contrastRatio")] + [JsonPropertyName("contrastRatio")] public double ContrastRatio { get; @@ -2160,7 +2162,7 @@ public double ContrastRatio /// /// ThresholdAA /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("thresholdAA")] + [JsonPropertyName("thresholdAA")] public double ThresholdAA { get; @@ -2170,7 +2172,7 @@ public double ThresholdAA /// /// ThresholdAAA /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("thresholdAAA")] + [JsonPropertyName("thresholdAAA")] public double ThresholdAAA { get; @@ -2180,7 +2182,7 @@ public double ThresholdAAA /// /// FontSize /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontSize")] + [JsonPropertyName("fontSize")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontSize { @@ -2191,7 +2193,7 @@ public string FontSize /// /// FontWeight /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontWeight")] + [JsonPropertyName("fontWeight")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontWeight { @@ -2209,7 +2211,7 @@ public partial class CorsIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBa /// /// CorsErrorStatus /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("corsErrorStatus")] + [JsonPropertyName("corsErrorStatus")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus { @@ -2220,7 +2222,7 @@ public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus /// /// IsWarning /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isWarning")] + [JsonPropertyName("isWarning")] public bool IsWarning { get; @@ -2230,7 +2232,7 @@ public bool IsWarning /// /// Request /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.AffectedRequest Request { @@ -2241,7 +2243,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// Location /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [JsonPropertyName("location")] public CefSharp.DevTools.Audits.SourceCodeLocation Location { get; @@ -2251,7 +2253,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation Location /// /// InitiatorOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiatorOrigin")] + [JsonPropertyName("initiatorOrigin")] public string InitiatorOrigin { get; @@ -2261,7 +2263,7 @@ public string InitiatorOrigin /// /// ResourceIPAddressSpace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceIPAddressSpace")] + [JsonPropertyName("resourceIPAddressSpace")] public CefSharp.DevTools.Network.IPAddressSpace? ResourceIPAddressSpace { get; @@ -2271,7 +2273,7 @@ public CefSharp.DevTools.Network.IPAddressSpace? ResourceIPAddressSpace /// /// ClientSecurityState /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientSecurityState")] + [JsonPropertyName("clientSecurityState")] public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState { get; @@ -2287,57 +2289,57 @@ public enum AttributionReportingIssueType /// /// PermissionPolicyDisabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PermissionPolicyDisabled")] + [JsonPropertyName("PermissionPolicyDisabled")] PermissionPolicyDisabled, /// /// PermissionPolicyNotDelegated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PermissionPolicyNotDelegated")] + [JsonPropertyName("PermissionPolicyNotDelegated")] PermissionPolicyNotDelegated, /// /// UntrustworthyReportingOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UntrustworthyReportingOrigin")] + [JsonPropertyName("UntrustworthyReportingOrigin")] UntrustworthyReportingOrigin, /// /// InsecureContext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecureContext")] + [JsonPropertyName("InsecureContext")] InsecureContext, /// /// InvalidHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidHeader")] + [JsonPropertyName("InvalidHeader")] InvalidHeader, /// /// InvalidRegisterTriggerHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidRegisterTriggerHeader")] + [JsonPropertyName("InvalidRegisterTriggerHeader")] InvalidRegisterTriggerHeader, /// /// InvalidEligibleHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidEligibleHeader")] + [JsonPropertyName("InvalidEligibleHeader")] InvalidEligibleHeader, /// /// TooManyConcurrentRequests /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TooManyConcurrentRequests")] + [JsonPropertyName("TooManyConcurrentRequests")] TooManyConcurrentRequests, /// /// SourceAndTriggerHeaders /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SourceAndTriggerHeaders")] + [JsonPropertyName("SourceAndTriggerHeaders")] SourceAndTriggerHeaders, /// /// SourceIgnored /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SourceIgnored")] + [JsonPropertyName("SourceIgnored")] SourceIgnored, /// /// TriggerIgnored /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TriggerIgnored")] + [JsonPropertyName("TriggerIgnored")] TriggerIgnored } @@ -2350,7 +2352,7 @@ public partial class AttributionReportingIssueDetails : CefSharp.DevTools.DevToo /// /// ViolationType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violationType")] + [JsonPropertyName("violationType")] public CefSharp.DevTools.Audits.AttributionReportingIssueType ViolationType { get; @@ -2360,7 +2362,7 @@ public CefSharp.DevTools.Audits.AttributionReportingIssueType ViolationType /// /// Request /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonPropertyName("request")] public CefSharp.DevTools.Audits.AffectedRequest Request { get; @@ -2370,7 +2372,7 @@ public CefSharp.DevTools.Audits.AffectedRequest Request /// /// ViolatingNodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatingNodeId")] + [JsonPropertyName("violatingNodeId")] public int? ViolatingNodeId { get; @@ -2380,7 +2382,7 @@ public int? ViolatingNodeId /// /// InvalidParameter /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("invalidParameter")] + [JsonPropertyName("invalidParameter")] public string InvalidParameter { get; @@ -2398,7 +2400,7 @@ public partial class QuirksModeIssueDetails : CefSharp.DevTools.DevToolsDomainEn /// If false, it means the document's mode is "quirks" /// instead of "limited-quirks". /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isLimitedQuirksMode")] + [JsonPropertyName("isLimitedQuirksMode")] public bool IsLimitedQuirksMode { get; @@ -2408,7 +2410,7 @@ public bool IsLimitedQuirksMode /// /// DocumentNodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentNodeId")] + [JsonPropertyName("documentNodeId")] public int DocumentNodeId { get; @@ -2418,7 +2420,7 @@ public int DocumentNodeId /// /// Url /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -2429,7 +2431,7 @@ public string Url /// /// FrameId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -2440,7 +2442,7 @@ public string FrameId /// /// LoaderId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { @@ -2457,7 +2459,7 @@ public partial class NavigatorUserAgentIssueDetails : CefSharp.DevTools.DevTools /// /// Url /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -2468,7 +2470,7 @@ public string Url /// /// Location /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [JsonPropertyName("location")] public CefSharp.DevTools.Audits.SourceCodeLocation Location { get; @@ -2484,33 +2486,58 @@ public enum GenericIssueErrorType /// /// CrossOriginPortalPostMessageError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginPortalPostMessageError")] + [JsonPropertyName("CrossOriginPortalPostMessageError")] CrossOriginPortalPostMessageError, /// /// FormLabelForNameError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormLabelForNameError")] + [JsonPropertyName("FormLabelForNameError")] FormLabelForNameError, /// /// FormDuplicateIdForInputError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormDuplicateIdForInputError")] + [JsonPropertyName("FormDuplicateIdForInputError")] FormDuplicateIdForInputError, /// /// FormInputWithNoLabelError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormInputWithNoLabelError")] + [JsonPropertyName("FormInputWithNoLabelError")] FormInputWithNoLabelError, /// /// FormAutocompleteAttributeEmptyError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormAutocompleteAttributeEmptyError")] + [JsonPropertyName("FormAutocompleteAttributeEmptyError")] FormAutocompleteAttributeEmptyError, /// /// FormEmptyIdAndNameAttributesForInputError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FormEmptyIdAndNameAttributesForInputError")] - FormEmptyIdAndNameAttributesForInputError + [JsonPropertyName("FormEmptyIdAndNameAttributesForInputError")] + FormEmptyIdAndNameAttributesForInputError, + /// + /// FormAriaLabelledByToNonExistingId + /// + [JsonPropertyName("FormAriaLabelledByToNonExistingId")] + FormAriaLabelledByToNonExistingId, + /// + /// FormInputAssignedAutocompleteValueToIdOrNameAttributeError + /// + [JsonPropertyName("FormInputAssignedAutocompleteValueToIdOrNameAttributeError")] + FormInputAssignedAutocompleteValueToIdOrNameAttributeError, + /// + /// FormLabelHasNeitherForNorNestedInput + /// + [JsonPropertyName("FormLabelHasNeitherForNorNestedInput")] + FormLabelHasNeitherForNorNestedInput, + /// + /// FormLabelForMatchesNonExistingIdError + /// + [JsonPropertyName("FormLabelForMatchesNonExistingIdError")] + FormLabelForMatchesNonExistingIdError, + /// + /// FormHasPasswordFieldWithoutUsernameFieldError + /// + [JsonPropertyName("FormHasPasswordFieldWithoutUsernameFieldError")] + FormHasPasswordFieldWithoutUsernameFieldError } /// @@ -2521,7 +2548,7 @@ public partial class GenericIssueDetails : CefSharp.DevTools.DevToolsDomainEntit /// /// Issues with the same errorType are aggregated in the frontend. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorType")] + [JsonPropertyName("errorType")] public CefSharp.DevTools.Audits.GenericIssueErrorType ErrorType { get; @@ -2531,7 +2558,7 @@ public CefSharp.DevTools.Audits.GenericIssueErrorType ErrorType /// /// FrameId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -2541,7 +2568,7 @@ public string FrameId /// /// ViolatingNodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violatingNodeId")] + [JsonPropertyName("violatingNodeId")] public int? ViolatingNodeId { get; @@ -2549,298 +2576,6 @@ public int? ViolatingNodeId } } - /// - /// DeprecationIssueType - /// - public enum DeprecationIssueType - { - /// - /// AuthorizationCoveredByWildcard - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AuthorizationCoveredByWildcard")] - AuthorizationCoveredByWildcard, - /// - /// CanRequestURLHTTPContainingNewline - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CanRequestURLHTTPContainingNewline")] - CanRequestURLHTTPContainingNewline, - /// - /// ChromeLoadTimesConnectionInfo - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ChromeLoadTimesConnectionInfo")] - ChromeLoadTimesConnectionInfo, - /// - /// ChromeLoadTimesFirstPaintAfterLoadTime - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ChromeLoadTimesFirstPaintAfterLoadTime")] - ChromeLoadTimesFirstPaintAfterLoadTime, - /// - /// ChromeLoadTimesWasAlternateProtocolAvailable - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ChromeLoadTimesWasAlternateProtocolAvailable")] - ChromeLoadTimesWasAlternateProtocolAvailable, - /// - /// CookieWithTruncatingChar - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CookieWithTruncatingChar")] - CookieWithTruncatingChar, - /// - /// CrossOriginAccessBasedOnDocumentDomain - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginAccessBasedOnDocumentDomain")] - CrossOriginAccessBasedOnDocumentDomain, - /// - /// CrossOriginWindowAlert - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginWindowAlert")] - CrossOriginWindowAlert, - /// - /// CrossOriginWindowConfirm - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossOriginWindowConfirm")] - CrossOriginWindowConfirm, - /// - /// CSSSelectorInternalMediaControlsOverlayCastButton - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSSSelectorInternalMediaControlsOverlayCastButton")] - CSSSelectorInternalMediaControlsOverlayCastButton, - /// - /// DeprecationExample - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DeprecationExample")] - DeprecationExample, - /// - /// DocumentDomainSettingWithoutOriginAgentClusterHeader - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DocumentDomainSettingWithoutOriginAgentClusterHeader")] - DocumentDomainSettingWithoutOriginAgentClusterHeader, - /// - /// EventPath - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventPath")] - EventPath, - /// - /// ExpectCTHeader - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExpectCTHeader")] - ExpectCTHeader, - /// - /// GeolocationInsecureOrigin - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("GeolocationInsecureOrigin")] - GeolocationInsecureOrigin, - /// - /// GeolocationInsecureOriginDeprecatedNotRemoved - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("GeolocationInsecureOriginDeprecatedNotRemoved")] - GeolocationInsecureOriginDeprecatedNotRemoved, - /// - /// GetUserMediaInsecureOrigin - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("GetUserMediaInsecureOrigin")] - GetUserMediaInsecureOrigin, - /// - /// HostCandidateAttributeGetter - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HostCandidateAttributeGetter")] - HostCandidateAttributeGetter, - /// - /// IdentityInCanMakePaymentEvent - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdentityInCanMakePaymentEvent")] - IdentityInCanMakePaymentEvent, - /// - /// InsecurePrivateNetworkSubresourceRequest - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecurePrivateNetworkSubresourceRequest")] - InsecurePrivateNetworkSubresourceRequest, - /// - /// LocalCSSFileExtensionRejected - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("LocalCSSFileExtensionRejected")] - LocalCSSFileExtensionRejected, - /// - /// MediaSourceAbortRemove - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaSourceAbortRemove")] - MediaSourceAbortRemove, - /// - /// MediaSourceDurationTruncatingBuffered - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MediaSourceDurationTruncatingBuffered")] - MediaSourceDurationTruncatingBuffered, - /// - /// NoSysexWebMIDIWithoutPermission - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoSysexWebMIDIWithoutPermission")] - NoSysexWebMIDIWithoutPermission, - /// - /// NotificationInsecureOrigin - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotificationInsecureOrigin")] - NotificationInsecureOrigin, - /// - /// NotificationPermissionRequestedIframe - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotificationPermissionRequestedIframe")] - NotificationPermissionRequestedIframe, - /// - /// ObsoleteCreateImageBitmapImageOrientationNone - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ObsoleteCreateImageBitmapImageOrientationNone")] - ObsoleteCreateImageBitmapImageOrientationNone, - /// - /// ObsoleteWebRtcCipherSuite - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ObsoleteWebRtcCipherSuite")] - ObsoleteWebRtcCipherSuite, - /// - /// OpenWebDatabaseInsecureContext - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OpenWebDatabaseInsecureContext")] - OpenWebDatabaseInsecureContext, - /// - /// OverflowVisibleOnReplacedElement - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OverflowVisibleOnReplacedElement")] - OverflowVisibleOnReplacedElement, - /// - /// PaymentInstruments - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PaymentInstruments")] - PaymentInstruments, - /// - /// PaymentRequestCSPViolation - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PaymentRequestCSPViolation")] - PaymentRequestCSPViolation, - /// - /// PersistentQuotaType - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PersistentQuotaType")] - PersistentQuotaType, - /// - /// PictureSourceSrc - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PictureSourceSrc")] - PictureSourceSrc, - /// - /// PrefixedCancelAnimationFrame - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedCancelAnimationFrame")] - PrefixedCancelAnimationFrame, - /// - /// PrefixedRequestAnimationFrame - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedRequestAnimationFrame")] - PrefixedRequestAnimationFrame, - /// - /// PrefixedStorageInfo - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedStorageInfo")] - PrefixedStorageInfo, - /// - /// PrefixedVideoDisplayingFullscreen - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoDisplayingFullscreen")] - PrefixedVideoDisplayingFullscreen, - /// - /// PrefixedVideoEnterFullscreen - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoEnterFullscreen")] - PrefixedVideoEnterFullscreen, - /// - /// PrefixedVideoEnterFullScreen - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoEnterFullScreen")] - PrefixedVideoEnterFullScreen, - /// - /// PrefixedVideoExitFullscreen - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoExitFullscreen")] - PrefixedVideoExitFullscreen, - /// - /// PrefixedVideoExitFullScreen - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoExitFullScreen")] - PrefixedVideoExitFullScreen, - /// - /// PrefixedVideoSupportsFullscreen - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrefixedVideoSupportsFullscreen")] - PrefixedVideoSupportsFullscreen, - /// - /// PrivacySandboxExtensionsAPI - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrivacySandboxExtensionsAPI")] - PrivacySandboxExtensionsAPI, - /// - /// RangeExpand - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RangeExpand")] - RangeExpand, - /// - /// RequestedSubresourceWithEmbeddedCredentials - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedSubresourceWithEmbeddedCredentials")] - RequestedSubresourceWithEmbeddedCredentials, - /// - /// RTCConstraintEnableDtlsSrtpFalse - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCConstraintEnableDtlsSrtpFalse")] - RTCConstraintEnableDtlsSrtpFalse, - /// - /// RTCConstraintEnableDtlsSrtpTrue - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCConstraintEnableDtlsSrtpTrue")] - RTCConstraintEnableDtlsSrtpTrue, - /// - /// RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics")] - RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics, - /// - /// RTCPeerConnectionSdpSemanticsPlanB - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RTCPeerConnectionSdpSemanticsPlanB")] - RTCPeerConnectionSdpSemanticsPlanB, - /// - /// RtcpMuxPolicyNegotiate - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RtcpMuxPolicyNegotiate")] - RtcpMuxPolicyNegotiate, - /// - /// SharedArrayBufferConstructedWithoutIsolation - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedArrayBufferConstructedWithoutIsolation")] - SharedArrayBufferConstructedWithoutIsolation, - /// - /// TextToSpeech_DisallowedByAutoplay - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TextToSpeech_DisallowedByAutoplay")] - TextToSpeechDisallowedByAutoplay, - /// - /// V8SharedArrayBufferConstructedInExtensionWithoutIsolation - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("V8SharedArrayBufferConstructedInExtensionWithoutIsolation")] - V8SharedArrayBufferConstructedInExtensionWithoutIsolation, - /// - /// XHRJSONEncodingDetection - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("XHRJSONEncodingDetection")] - XHRJSONEncodingDetection, - /// - /// XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload")] - XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload, - /// - /// XRSupportsSession - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("XRSupportsSession")] - XRSupportsSession - } - /// /// This issue tracks information needed to print a deprecation message. /// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md @@ -2850,7 +2585,7 @@ public partial class DeprecationIssueDetails : CefSharp.DevTools.DevToolsDomainE /// /// AffectedFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("affectedFrame")] + [JsonPropertyName("affectedFrame")] public CefSharp.DevTools.Audits.AffectedFrame AffectedFrame { get; @@ -2860,7 +2595,7 @@ public CefSharp.DevTools.Audits.AffectedFrame AffectedFrame /// /// SourceCodeLocation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceCodeLocation")] + [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { @@ -2869,10 +2604,11 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation } /// - /// Type + /// One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] - public CefSharp.DevTools.Audits.DeprecationIssueType Type + [JsonPropertyName("type")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Type { get; set; @@ -2887,12 +2623,12 @@ public enum ClientHintIssueReason /// /// MetaTagAllowListInvalidOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MetaTagAllowListInvalidOrigin")] + [JsonPropertyName("MetaTagAllowListInvalidOrigin")] MetaTagAllowListInvalidOrigin, /// /// MetaTagModifiedHTML /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MetaTagModifiedHTML")] + [JsonPropertyName("MetaTagModifiedHTML")] MetaTagModifiedHTML } @@ -2904,7 +2640,7 @@ public partial class FederatedAuthRequestIssueDetails : CefSharp.DevTools.DevToo /// /// FederatedAuthRequestIssueReason /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("federatedAuthRequestIssueReason")] + [JsonPropertyName("federatedAuthRequestIssueReason")] public CefSharp.DevTools.Audits.FederatedAuthRequestIssueReason FederatedAuthRequestIssueReason { get; @@ -2923,142 +2659,142 @@ public enum FederatedAuthRequestIssueReason /// /// ShouldEmbargo /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ShouldEmbargo")] + [JsonPropertyName("ShouldEmbargo")] ShouldEmbargo, /// /// TooManyRequests /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TooManyRequests")] + [JsonPropertyName("TooManyRequests")] TooManyRequests, /// /// WellKnownHttpNotFound /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownHttpNotFound")] + [JsonPropertyName("WellKnownHttpNotFound")] WellKnownHttpNotFound, /// /// WellKnownNoResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownNoResponse")] + [JsonPropertyName("WellKnownNoResponse")] WellKnownNoResponse, /// /// WellKnownInvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownInvalidResponse")] + [JsonPropertyName("WellKnownInvalidResponse")] WellKnownInvalidResponse, /// /// WellKnownListEmpty /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownListEmpty")] + [JsonPropertyName("WellKnownListEmpty")] WellKnownListEmpty, /// /// ConfigNotInWellKnown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigNotInWellKnown")] + [JsonPropertyName("ConfigNotInWellKnown")] ConfigNotInWellKnown, /// /// WellKnownTooBig /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WellKnownTooBig")] + [JsonPropertyName("WellKnownTooBig")] WellKnownTooBig, /// /// ConfigHttpNotFound /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigHttpNotFound")] + [JsonPropertyName("ConfigHttpNotFound")] ConfigHttpNotFound, /// /// ConfigNoResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigNoResponse")] + [JsonPropertyName("ConfigNoResponse")] ConfigNoResponse, /// /// ConfigInvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConfigInvalidResponse")] + [JsonPropertyName("ConfigInvalidResponse")] ConfigInvalidResponse, /// /// ClientMetadataHttpNotFound /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataHttpNotFound")] + [JsonPropertyName("ClientMetadataHttpNotFound")] ClientMetadataHttpNotFound, /// /// ClientMetadataNoResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataNoResponse")] + [JsonPropertyName("ClientMetadataNoResponse")] ClientMetadataNoResponse, /// /// ClientMetadataInvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientMetadataInvalidResponse")] + [JsonPropertyName("ClientMetadataInvalidResponse")] ClientMetadataInvalidResponse, /// /// DisabledInSettings /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DisabledInSettings")] + [JsonPropertyName("DisabledInSettings")] DisabledInSettings, /// /// ErrorFetchingSignin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ErrorFetchingSignin")] + [JsonPropertyName("ErrorFetchingSignin")] ErrorFetchingSignin, /// /// InvalidSigninResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSigninResponse")] + [JsonPropertyName("InvalidSigninResponse")] InvalidSigninResponse, /// /// AccountsHttpNotFound /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsHttpNotFound")] + [JsonPropertyName("AccountsHttpNotFound")] AccountsHttpNotFound, /// /// AccountsNoResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsNoResponse")] + [JsonPropertyName("AccountsNoResponse")] AccountsNoResponse, /// /// AccountsInvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsInvalidResponse")] + [JsonPropertyName("AccountsInvalidResponse")] AccountsInvalidResponse, /// /// AccountsListEmpty /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccountsListEmpty")] + [JsonPropertyName("AccountsListEmpty")] AccountsListEmpty, /// /// IdTokenHttpNotFound /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenHttpNotFound")] + [JsonPropertyName("IdTokenHttpNotFound")] IdTokenHttpNotFound, /// /// IdTokenNoResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenNoResponse")] + [JsonPropertyName("IdTokenNoResponse")] IdTokenNoResponse, /// /// IdTokenInvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenInvalidResponse")] + [JsonPropertyName("IdTokenInvalidResponse")] IdTokenInvalidResponse, /// /// IdTokenInvalidRequest /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdTokenInvalidRequest")] + [JsonPropertyName("IdTokenInvalidRequest")] IdTokenInvalidRequest, /// /// ErrorIdToken /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ErrorIdToken")] + [JsonPropertyName("ErrorIdToken")] ErrorIdToken, /// /// Canceled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Canceled")] + [JsonPropertyName("Canceled")] Canceled, /// /// RpPageNotVisible /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RpPageNotVisible")] + [JsonPropertyName("RpPageNotVisible")] RpPageNotVisible } @@ -3071,7 +2807,7 @@ public partial class ClientHintIssueDetails : CefSharp.DevTools.DevToolsDomainEn /// /// SourceCodeLocation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceCodeLocation")] + [JsonPropertyName("sourceCodeLocation")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation { @@ -3082,7 +2818,7 @@ public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation /// /// ClientHintIssueReason /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientHintIssueReason")] + [JsonPropertyName("clientHintIssueReason")] public CefSharp.DevTools.Audits.ClientHintIssueReason ClientHintIssueReason { get; @@ -3100,82 +2836,82 @@ public enum InspectorIssueCode /// /// CookieIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CookieIssue")] + [JsonPropertyName("CookieIssue")] CookieIssue, /// /// MixedContentIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContentIssue")] + [JsonPropertyName("MixedContentIssue")] MixedContentIssue, /// /// BlockedByResponseIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByResponseIssue")] + [JsonPropertyName("BlockedByResponseIssue")] BlockedByResponseIssue, /// /// HeavyAdIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeavyAdIssue")] + [JsonPropertyName("HeavyAdIssue")] HeavyAdIssue, /// /// ContentSecurityPolicyIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentSecurityPolicyIssue")] + [JsonPropertyName("ContentSecurityPolicyIssue")] ContentSecurityPolicyIssue, /// /// SharedArrayBufferIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedArrayBufferIssue")] + [JsonPropertyName("SharedArrayBufferIssue")] SharedArrayBufferIssue, /// /// TrustedWebActivityIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TrustedWebActivityIssue")] + [JsonPropertyName("TrustedWebActivityIssue")] TrustedWebActivityIssue, /// /// LowTextContrastIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("LowTextContrastIssue")] + [JsonPropertyName("LowTextContrastIssue")] LowTextContrastIssue, /// /// CorsIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorsIssue")] + [JsonPropertyName("CorsIssue")] CorsIssue, /// /// AttributionReportingIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AttributionReportingIssue")] + [JsonPropertyName("AttributionReportingIssue")] AttributionReportingIssue, /// /// QuirksModeIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("QuirksModeIssue")] + [JsonPropertyName("QuirksModeIssue")] QuirksModeIssue, /// /// NavigatorUserAgentIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigatorUserAgentIssue")] + [JsonPropertyName("NavigatorUserAgentIssue")] NavigatorUserAgentIssue, /// /// GenericIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("GenericIssue")] + [JsonPropertyName("GenericIssue")] GenericIssue, /// /// DeprecationIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DeprecationIssue")] + [JsonPropertyName("DeprecationIssue")] DeprecationIssue, /// /// ClientHintIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientHintIssue")] + [JsonPropertyName("ClientHintIssue")] ClientHintIssue, /// /// FederatedAuthRequestIssue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FederatedAuthRequestIssue")] + [JsonPropertyName("FederatedAuthRequestIssue")] FederatedAuthRequestIssue } @@ -3189,7 +2925,7 @@ public partial class InspectorIssueDetails : CefSharp.DevTools.DevToolsDomainEnt /// /// CookieIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieIssueDetails")] + [JsonPropertyName("cookieIssueDetails")] public CefSharp.DevTools.Audits.CookieIssueDetails CookieIssueDetails { get; @@ -3199,7 +2935,7 @@ public CefSharp.DevTools.Audits.CookieIssueDetails CookieIssueDetails /// /// MixedContentIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixedContentIssueDetails")] + [JsonPropertyName("mixedContentIssueDetails")] public CefSharp.DevTools.Audits.MixedContentIssueDetails MixedContentIssueDetails { get; @@ -3209,7 +2945,7 @@ public CefSharp.DevTools.Audits.MixedContentIssueDetails MixedContentIssueDetail /// /// BlockedByResponseIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedByResponseIssueDetails")] + [JsonPropertyName("blockedByResponseIssueDetails")] public CefSharp.DevTools.Audits.BlockedByResponseIssueDetails BlockedByResponseIssueDetails { get; @@ -3219,7 +2955,7 @@ public CefSharp.DevTools.Audits.BlockedByResponseIssueDetails BlockedByResponseI /// /// HeavyAdIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("heavyAdIssueDetails")] + [JsonPropertyName("heavyAdIssueDetails")] public CefSharp.DevTools.Audits.HeavyAdIssueDetails HeavyAdIssueDetails { get; @@ -3229,7 +2965,7 @@ public CefSharp.DevTools.Audits.HeavyAdIssueDetails HeavyAdIssueDetails /// /// ContentSecurityPolicyIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSecurityPolicyIssueDetails")] + [JsonPropertyName("contentSecurityPolicyIssueDetails")] public CefSharp.DevTools.Audits.ContentSecurityPolicyIssueDetails ContentSecurityPolicyIssueDetails { get; @@ -3239,7 +2975,7 @@ public CefSharp.DevTools.Audits.ContentSecurityPolicyIssueDetails ContentSecurit /// /// SharedArrayBufferIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sharedArrayBufferIssueDetails")] + [JsonPropertyName("sharedArrayBufferIssueDetails")] public CefSharp.DevTools.Audits.SharedArrayBufferIssueDetails SharedArrayBufferIssueDetails { get; @@ -3249,7 +2985,7 @@ public CefSharp.DevTools.Audits.SharedArrayBufferIssueDetails SharedArrayBufferI /// /// TwaQualityEnforcementDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("twaQualityEnforcementDetails")] + [JsonPropertyName("twaQualityEnforcementDetails")] public CefSharp.DevTools.Audits.TrustedWebActivityIssueDetails TwaQualityEnforcementDetails { get; @@ -3259,7 +2995,7 @@ public CefSharp.DevTools.Audits.TrustedWebActivityIssueDetails TwaQualityEnforce /// /// LowTextContrastIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lowTextContrastIssueDetails")] + [JsonPropertyName("lowTextContrastIssueDetails")] public CefSharp.DevTools.Audits.LowTextContrastIssueDetails LowTextContrastIssueDetails { get; @@ -3269,7 +3005,7 @@ public CefSharp.DevTools.Audits.LowTextContrastIssueDetails LowTextContrastIssue /// /// CorsIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("corsIssueDetails")] + [JsonPropertyName("corsIssueDetails")] public CefSharp.DevTools.Audits.CorsIssueDetails CorsIssueDetails { get; @@ -3279,7 +3015,7 @@ public CefSharp.DevTools.Audits.CorsIssueDetails CorsIssueDetails /// /// AttributionReportingIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributionReportingIssueDetails")] + [JsonPropertyName("attributionReportingIssueDetails")] public CefSharp.DevTools.Audits.AttributionReportingIssueDetails AttributionReportingIssueDetails { get; @@ -3289,7 +3025,7 @@ public CefSharp.DevTools.Audits.AttributionReportingIssueDetails AttributionRepo /// /// QuirksModeIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("quirksModeIssueDetails")] + [JsonPropertyName("quirksModeIssueDetails")] public CefSharp.DevTools.Audits.QuirksModeIssueDetails QuirksModeIssueDetails { get; @@ -3299,7 +3035,7 @@ public CefSharp.DevTools.Audits.QuirksModeIssueDetails QuirksModeIssueDetails /// /// NavigatorUserAgentIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("navigatorUserAgentIssueDetails")] + [JsonPropertyName("navigatorUserAgentIssueDetails")] public CefSharp.DevTools.Audits.NavigatorUserAgentIssueDetails NavigatorUserAgentIssueDetails { get; @@ -3309,7 +3045,7 @@ public CefSharp.DevTools.Audits.NavigatorUserAgentIssueDetails NavigatorUserAgen /// /// GenericIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("genericIssueDetails")] + [JsonPropertyName("genericIssueDetails")] public CefSharp.DevTools.Audits.GenericIssueDetails GenericIssueDetails { get; @@ -3319,7 +3055,7 @@ public CefSharp.DevTools.Audits.GenericIssueDetails GenericIssueDetails /// /// DeprecationIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deprecationIssueDetails")] + [JsonPropertyName("deprecationIssueDetails")] public CefSharp.DevTools.Audits.DeprecationIssueDetails DeprecationIssueDetails { get; @@ -3329,7 +3065,7 @@ public CefSharp.DevTools.Audits.DeprecationIssueDetails DeprecationIssueDetails /// /// ClientHintIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientHintIssueDetails")] + [JsonPropertyName("clientHintIssueDetails")] public CefSharp.DevTools.Audits.ClientHintIssueDetails ClientHintIssueDetails { get; @@ -3339,7 +3075,7 @@ public CefSharp.DevTools.Audits.ClientHintIssueDetails ClientHintIssueDetails /// /// FederatedAuthRequestIssueDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("federatedAuthRequestIssueDetails")] + [JsonPropertyName("federatedAuthRequestIssueDetails")] public CefSharp.DevTools.Audits.FederatedAuthRequestIssueDetails FederatedAuthRequestIssueDetails { get; @@ -3355,7 +3091,7 @@ public partial class InspectorIssue : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Code /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("code")] + [JsonPropertyName("code")] public CefSharp.DevTools.Audits.InspectorIssueCode Code { get; @@ -3365,7 +3101,7 @@ public CefSharp.DevTools.Audits.InspectorIssueCode Code /// /// Details /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("details")] + [JsonPropertyName("details")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.InspectorIssueDetails Details { @@ -3377,7 +3113,7 @@ public CefSharp.DevTools.Audits.InspectorIssueDetails Details /// A unique id for this issue. May be omitted if no other entity (e.g. /// exception, CDP message, etc.) is referencing this issue. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issueId")] + [JsonPropertyName("issueId")] public string IssueId { get; @@ -3393,8 +3129,8 @@ public class IssueAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Issue /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issue")] + [JsonInclude] + [JsonPropertyName("issue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Audits.InspectorIssue Issue { @@ -3416,32 +3152,32 @@ public enum ServiceName /// /// backgroundFetch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundFetch")] + [JsonPropertyName("backgroundFetch")] BackgroundFetch, /// /// backgroundSync /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundSync")] + [JsonPropertyName("backgroundSync")] BackgroundSync, /// /// pushMessaging /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushMessaging")] + [JsonPropertyName("pushMessaging")] PushMessaging, /// /// notifications /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("notifications")] + [JsonPropertyName("notifications")] Notifications, /// /// paymentHandler /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paymentHandler")] + [JsonPropertyName("paymentHandler")] PaymentHandler, /// /// periodicBackgroundSync /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("periodicBackgroundSync")] + [JsonPropertyName("periodicBackgroundSync")] PeriodicBackgroundSync } @@ -3453,7 +3189,7 @@ public partial class EventMetadata : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Key /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { @@ -3464,7 +3200,7 @@ public string Key /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -3481,7 +3217,7 @@ public partial class BackgroundServiceEvent : CefSharp.DevTools.DevToolsDomainEn /// /// Timestamp of the event (in seconds). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -3491,7 +3227,7 @@ public double Timestamp /// /// The origin this event belongs to. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -3502,7 +3238,7 @@ public string Origin /// /// The Service Worker ID that initiated the event. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("serviceWorkerRegistrationId")] + [JsonPropertyName("serviceWorkerRegistrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ServiceWorkerRegistrationId { @@ -3513,7 +3249,7 @@ public string ServiceWorkerRegistrationId /// /// The Background Service this event belongs to. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("service")] + [JsonPropertyName("service")] public CefSharp.DevTools.BackgroundService.ServiceName Service { get; @@ -3523,7 +3259,7 @@ public CefSharp.DevTools.BackgroundService.ServiceName Service /// /// A description of the event. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventName")] + [JsonPropertyName("eventName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventName { @@ -3534,7 +3270,7 @@ public string EventName /// /// An identifier that groups related events together. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("instanceId")] + [JsonPropertyName("instanceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InstanceId { @@ -3545,7 +3281,7 @@ public string InstanceId /// /// A list of event-specific information. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventMetadata")] + [JsonPropertyName("eventMetadata")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList EventMetadata { @@ -3556,7 +3292,7 @@ public System.Collections.Generic.IList /// Storage key this event belongs to. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { @@ -3573,8 +3309,8 @@ public class RecordingStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// IsRecording /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isRecording")] + [JsonInclude] + [JsonPropertyName("isRecording")] public bool IsRecording { get; @@ -3584,8 +3320,8 @@ public bool IsRecording /// /// Service /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("service")] + [JsonInclude] + [JsonPropertyName("service")] public CefSharp.DevTools.BackgroundService.ServiceName Service { get; @@ -3602,8 +3338,8 @@ public class BackgroundServiceEventReceivedEventArgs : CefSharp.DevTools.DevTool /// /// BackgroundServiceEvent /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundServiceEvent")] + [JsonInclude] + [JsonPropertyName("backgroundServiceEvent")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.BackgroundService.BackgroundServiceEvent BackgroundServiceEvent { @@ -3623,22 +3359,22 @@ public enum WindowState /// /// normal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("normal")] + [JsonPropertyName("normal")] Normal, /// /// minimized /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("minimized")] + [JsonPropertyName("minimized")] Minimized, /// /// maximized /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maximized")] + [JsonPropertyName("maximized")] Maximized, /// /// fullscreen /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullscreen")] + [JsonPropertyName("fullscreen")] Fullscreen } @@ -3650,7 +3386,7 @@ public partial class Bounds : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The offset from the left edge of the screen to the window in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("left")] + [JsonPropertyName("left")] public int? Left { get; @@ -3660,7 +3396,7 @@ public int? Left /// /// The offset from the top edge of the screen to the window in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("top")] + [JsonPropertyName("top")] public int? Top { get; @@ -3670,7 +3406,7 @@ public int? Top /// /// The window width in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + [JsonPropertyName("width")] public int? Width { get; @@ -3680,7 +3416,7 @@ public int? Width /// /// The window height in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + [JsonPropertyName("height")] public int? Height { get; @@ -3690,7 +3426,7 @@ public int? Height /// /// The window state. Default to normal. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowState")] + [JsonPropertyName("windowState")] public CefSharp.DevTools.Browser.WindowState? WindowState { get; @@ -3706,137 +3442,137 @@ public enum PermissionType /// /// accessibilityEvents /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("accessibilityEvents")] + [JsonPropertyName("accessibilityEvents")] AccessibilityEvents, /// /// audioCapture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("audioCapture")] + [JsonPropertyName("audioCapture")] AudioCapture, /// /// backgroundSync /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundSync")] + [JsonPropertyName("backgroundSync")] BackgroundSync, /// /// backgroundFetch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundFetch")] + [JsonPropertyName("backgroundFetch")] BackgroundFetch, /// /// clipboardReadWrite /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboardReadWrite")] + [JsonPropertyName("clipboardReadWrite")] ClipboardReadWrite, /// /// clipboardSanitizedWrite /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboardSanitizedWrite")] + [JsonPropertyName("clipboardSanitizedWrite")] ClipboardSanitizedWrite, /// /// displayCapture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("displayCapture")] + [JsonPropertyName("displayCapture")] DisplayCapture, /// /// durableStorage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("durableStorage")] + [JsonPropertyName("durableStorage")] DurableStorage, /// /// flash /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("flash")] + [JsonPropertyName("flash")] Flash, /// /// geolocation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("geolocation")] + [JsonPropertyName("geolocation")] Geolocation, /// /// idleDetection /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("idleDetection")] + [JsonPropertyName("idleDetection")] IdleDetection, /// /// localFonts /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("localFonts")] + [JsonPropertyName("localFonts")] LocalFonts, /// /// midi /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("midi")] + [JsonPropertyName("midi")] Midi, /// /// midiSysex /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("midiSysex")] + [JsonPropertyName("midiSysex")] MidiSysex, /// /// nfc /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nfc")] + [JsonPropertyName("nfc")] Nfc, /// /// notifications /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("notifications")] + [JsonPropertyName("notifications")] Notifications, /// /// paymentHandler /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paymentHandler")] + [JsonPropertyName("paymentHandler")] PaymentHandler, /// /// periodicBackgroundSync /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("periodicBackgroundSync")] + [JsonPropertyName("periodicBackgroundSync")] PeriodicBackgroundSync, /// /// protectedMediaIdentifier /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("protectedMediaIdentifier")] + [JsonPropertyName("protectedMediaIdentifier")] ProtectedMediaIdentifier, /// /// sensors /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sensors")] + [JsonPropertyName("sensors")] Sensors, /// /// storageAccess /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageAccess")] + [JsonPropertyName("storageAccess")] StorageAccess, /// /// topLevelStorageAccess /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("topLevelStorageAccess")] + [JsonPropertyName("topLevelStorageAccess")] TopLevelStorageAccess, /// /// videoCapture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoCapture")] + [JsonPropertyName("videoCapture")] VideoCapture, /// /// videoCapturePanTiltZoom /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoCapturePanTiltZoom")] + [JsonPropertyName("videoCapturePanTiltZoom")] VideoCapturePanTiltZoom, /// /// wakeLockScreen /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wakeLockScreen")] + [JsonPropertyName("wakeLockScreen")] WakeLockScreen, /// /// wakeLockSystem /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wakeLockSystem")] + [JsonPropertyName("wakeLockSystem")] WakeLockSystem, /// /// windowManagement /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowManagement")] + [JsonPropertyName("windowManagement")] WindowManagement } @@ -3848,17 +3584,17 @@ public enum PermissionSetting /// /// granted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("granted")] + [JsonPropertyName("granted")] Granted, /// /// denied /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("denied")] + [JsonPropertyName("denied")] Denied, /// /// prompt /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("prompt")] + [JsonPropertyName("prompt")] Prompt } @@ -3872,7 +3608,7 @@ public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEnti /// Name of permission. /// See https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -3883,7 +3619,7 @@ public string Name /// /// For "midi" permission, may also specify sysex control. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sysex")] + [JsonPropertyName("sysex")] public bool? Sysex { get; @@ -3894,7 +3630,7 @@ public bool? Sysex /// For "push" permission, may specify userVisibleOnly. /// Note that userVisibleOnly = true is the only currently supported type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("userVisibleOnly")] + [JsonPropertyName("userVisibleOnly")] public bool? UserVisibleOnly { get; @@ -3904,7 +3640,7 @@ public bool? UserVisibleOnly /// /// For "clipboard" permission, may specify allowWithoutSanitization. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("allowWithoutSanitization")] + [JsonPropertyName("allowWithoutSanitization")] public bool? AllowWithoutSanitization { get; @@ -3914,7 +3650,7 @@ public bool? AllowWithoutSanitization /// /// For "camera" permission, may specify panTiltZoom. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("panTiltZoom")] + [JsonPropertyName("panTiltZoom")] public bool? PanTiltZoom { get; @@ -3930,12 +3666,12 @@ public enum BrowserCommandId /// /// openTabSearch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("openTabSearch")] + [JsonPropertyName("openTabSearch")] OpenTabSearch, /// /// closeTabSearch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("closeTabSearch")] + [JsonPropertyName("closeTabSearch")] CloseTabSearch } @@ -3947,7 +3683,7 @@ public partial class Bucket : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Minimum value (inclusive). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("low")] + [JsonPropertyName("low")] public int Low { get; @@ -3957,7 +3693,7 @@ public int Low /// /// Maximum value (exclusive). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("high")] + [JsonPropertyName("high")] public int High { get; @@ -3967,7 +3703,7 @@ public int High /// /// Number of samples. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + [JsonPropertyName("count")] public int Count { get; @@ -3983,7 +3719,7 @@ public partial class Histogram : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -3994,7 +3730,7 @@ public string Name /// /// Sum of sample values. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sum")] + [JsonPropertyName("sum")] public int Sum { get; @@ -4004,7 +3740,7 @@ public int Sum /// /// Total number of samples. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + [JsonPropertyName("count")] public int Count { get; @@ -4014,7 +3750,7 @@ public int Count /// /// Buckets. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("buckets")] + [JsonPropertyName("buckets")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Buckets { @@ -4031,8 +3767,8 @@ public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the frame that caused the download to begin. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -4043,8 +3779,8 @@ public string FrameId /// /// Global unique identifier of the download. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [JsonInclude] + [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { @@ -4055,8 +3791,8 @@ public string Guid /// /// URL of the resource being downloaded. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -4067,8 +3803,8 @@ public string Url /// /// Suggested file name of the resource (the actual name of the file saved on disk may differ). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("suggestedFilename")] + [JsonInclude] + [JsonPropertyName("suggestedFilename")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SuggestedFilename { @@ -4085,17 +3821,17 @@ public enum DownloadProgressState /// /// inProgress /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inProgress")] + [JsonPropertyName("inProgress")] InProgress, /// /// completed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("completed")] + [JsonPropertyName("completed")] Completed, /// /// canceled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("canceled")] + [JsonPropertyName("canceled")] Canceled } @@ -4107,8 +3843,8 @@ public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Global unique identifier of the download. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [JsonInclude] + [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { @@ -4119,8 +3855,8 @@ public string Guid /// /// Total expected bytes to download. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalBytes")] + [JsonInclude] + [JsonPropertyName("totalBytes")] public double TotalBytes { get; @@ -4130,8 +3866,8 @@ public double TotalBytes /// /// Total bytes received. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("receivedBytes")] + [JsonInclude] + [JsonPropertyName("receivedBytes")] public double ReceivedBytes { get; @@ -4141,8 +3877,8 @@ public double ReceivedBytes /// /// Download status. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("state")] + [JsonInclude] + [JsonPropertyName("state")] public CefSharp.DevTools.Browser.DownloadProgressState State { get; @@ -4163,22 +3899,22 @@ public enum StyleSheetOrigin /// /// injected /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("injected")] + [JsonPropertyName("injected")] Injected, /// /// user-agent /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("user-agent")] + [JsonPropertyName("user-agent")] UserAgent, /// /// inspector /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inspector")] + [JsonPropertyName("inspector")] Inspector, /// /// regular /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("regular")] + [JsonPropertyName("regular")] Regular } @@ -4190,7 +3926,7 @@ public partial class PseudoElementMatches : CefSharp.DevTools.DevToolsDomainEnti /// /// Pseudo element type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOM.PseudoType PseudoType { get; @@ -4200,7 +3936,7 @@ public CefSharp.DevTools.DOM.PseudoType PseudoType /// /// Pseudo element custom ident. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoIdentifier")] + [JsonPropertyName("pseudoIdentifier")] public string PseudoIdentifier { get; @@ -4210,7 +3946,7 @@ public string PseudoIdentifier /// /// Matches of CSS rules applicable to the pseudo style. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("matches")] + [JsonPropertyName("matches")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Matches { @@ -4227,7 +3963,7 @@ public partial class InheritedStyleEntry : CefSharp.DevTools.DevToolsDomainEntit /// /// The ancestor node's inline style, if any, in the style inheritance chain. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineStyle")] + [JsonPropertyName("inlineStyle")] public CefSharp.DevTools.CSS.CSSStyle InlineStyle { get; @@ -4237,7 +3973,7 @@ public CefSharp.DevTools.CSS.CSSStyle InlineStyle /// /// Matches of CSS rules matching the ancestor node in the style inheritance chain. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("matchedCSSRules")] + [JsonPropertyName("matchedCSSRules")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList MatchedCSSRules { @@ -4254,7 +3990,7 @@ public partial class InheritedPseudoElementMatches : CefSharp.DevTools.DevToolsD /// /// Matches of pseudo styles from the pseudos of an ancestor node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElements")] + [JsonPropertyName("pseudoElements")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList PseudoElements { @@ -4271,7 +4007,7 @@ public partial class RuleMatch : CefSharp.DevTools.DevToolsDomainEntityBase /// /// CSS rule in the match. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rule")] + [JsonPropertyName("rule")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSRule Rule { @@ -4282,7 +4018,7 @@ public CefSharp.DevTools.CSS.CSSRule Rule /// /// Matching selector indices in the rule's selectorList selectors (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("matchingSelectors")] + [JsonPropertyName("matchingSelectors")] public int[] MatchingSelectors { get; @@ -4298,7 +4034,7 @@ public partial class Value : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Value text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -4309,7 +4045,7 @@ public string Text /// /// Value range in the underlying resource (if available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -4325,7 +4061,7 @@ public partial class SelectorList : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Selectors in the list. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectors")] + [JsonPropertyName("selectors")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Selectors { @@ -4336,7 +4072,7 @@ public System.Collections.Generic.IList Selectors /// /// Rule selector text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -4353,7 +4089,7 @@ public partial class CSSStyleSheetHeader : CefSharp.DevTools.DevToolsDomainEntit /// /// The stylesheet identifier. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { @@ -4364,7 +4100,7 @@ public string StyleSheetId /// /// Owner frame identifier. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -4377,7 +4113,7 @@ public string FrameId /// new CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported /// as a CSS module script). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceURL")] + [JsonPropertyName("sourceURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceURL { @@ -4388,7 +4124,7 @@ public string SourceURL /// /// URL of source map associated with the stylesheet (if any). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; @@ -4398,7 +4134,7 @@ public string SourceMapURL /// /// Stylesheet origin. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; @@ -4408,7 +4144,7 @@ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin /// /// Stylesheet title. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { @@ -4419,7 +4155,7 @@ public string Title /// /// The backend id for the owner node of the stylesheet. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ownerNode")] + [JsonPropertyName("ownerNode")] public int? OwnerNode { get; @@ -4429,7 +4165,7 @@ public int? OwnerNode /// /// Denotes whether the stylesheet is disabled. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("disabled")] + [JsonPropertyName("disabled")] public bool Disabled { get; @@ -4439,7 +4175,7 @@ public bool Disabled /// /// Whether the sourceURL field value comes from the sourceURL comment. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasSourceURL")] + [JsonPropertyName("hasSourceURL")] public bool? HasSourceURL { get; @@ -4450,7 +4186,7 @@ public bool? HasSourceURL /// Whether this stylesheet is created for STYLE tag by parser. This flag is not set for /// document.written STYLE tags. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isInline")] + [JsonPropertyName("isInline")] public bool IsInline { get; @@ -4463,7 +4199,7 @@ public bool IsInline /// <link> element's stylesheets become mutable only if DevTools modifies them. /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isMutable")] + [JsonPropertyName("isMutable")] public bool IsMutable { get; @@ -4474,7 +4210,7 @@ public bool IsMutable /// True if this stylesheet is created through new CSSStyleSheet() or imported as a /// CSS module script. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isConstructed")] + [JsonPropertyName("isConstructed")] public bool IsConstructed { get; @@ -4484,7 +4220,7 @@ public bool IsConstructed /// /// Line offset of the stylesheet within the resource (zero based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + [JsonPropertyName("startLine")] public double StartLine { get; @@ -4494,7 +4230,7 @@ public double StartLine /// /// Column offset of the stylesheet within the resource (zero based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + [JsonPropertyName("startColumn")] public double StartColumn { get; @@ -4504,7 +4240,7 @@ public double StartColumn /// /// Size of the content (in characters). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + [JsonPropertyName("length")] public double Length { get; @@ -4514,7 +4250,7 @@ public double Length /// /// Line offset of the end of the stylesheet within the resource (zero based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + [JsonPropertyName("endLine")] public double EndLine { get; @@ -4524,7 +4260,7 @@ public double EndLine /// /// Column offset of the end of the stylesheet within the resource (zero based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + [JsonPropertyName("endColumn")] public double EndColumn { get; @@ -4541,7 +4277,7 @@ public partial class CSSRule : CefSharp.DevTools.DevToolsDomainEntityBase /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -4551,7 +4287,7 @@ public string StyleSheetId /// /// Rule selector data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectorList")] + [JsonPropertyName("selectorList")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.SelectorList SelectorList { @@ -4562,7 +4298,7 @@ public CefSharp.DevTools.CSS.SelectorList SelectorList /// /// Parent stylesheet's origin. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; @@ -4572,7 +4308,7 @@ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin /// /// Associated style declaration. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("style")] + [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { @@ -4584,7 +4320,7 @@ public CefSharp.DevTools.CSS.CSSStyle Style /// Media list array (for rules involving media queries). The array enumerates media queries /// starting with the innermost one, going outwards. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("media")] + [JsonPropertyName("media")] public System.Collections.Generic.IList Media { get; @@ -4595,7 +4331,7 @@ public System.Collections.Generic.IList Media /// Container query list array (for rules involving container queries). /// The array enumerates container queries starting with the innermost one, going outwards. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containerQueries")] + [JsonPropertyName("containerQueries")] public System.Collections.Generic.IList ContainerQueries { get; @@ -4606,7 +4342,7 @@ public System.Collections.Generic.IList /// @supports CSS at-rule array. /// The array enumerates @supports at-rules starting with the innermost one, going outwards. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("supports")] + [JsonPropertyName("supports")] public System.Collections.Generic.IList Supports { get; @@ -4617,7 +4353,7 @@ public System.Collections.Generic.IList Suppo /// Cascade layer array. Contains the layer hierarchy that this rule belongs to starting /// with the innermost layer and going outwards. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layers")] + [JsonPropertyName("layers")] public System.Collections.Generic.IList Layers { get; @@ -4628,7 +4364,7 @@ public System.Collections.Generic.IList Layers /// @scope CSS at-rule array. /// The array enumerates @scope at-rules starting with the innermost one, going outwards. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scopes")] + [JsonPropertyName("scopes")] public System.Collections.Generic.IList Scopes { get; @@ -4645,7 +4381,7 @@ public partial class RuleUsage : CefSharp.DevTools.DevToolsDomainEntityBase /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { @@ -4656,7 +4392,7 @@ public string StyleSheetId /// /// Offset of the start of the rule (including selector) from the beginning of the stylesheet. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startOffset")] + [JsonPropertyName("startOffset")] public double StartOffset { get; @@ -4666,7 +4402,7 @@ public double StartOffset /// /// Offset of the end of the rule body from the beginning of the stylesheet. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endOffset")] + [JsonPropertyName("endOffset")] public double EndOffset { get; @@ -4676,7 +4412,7 @@ public double EndOffset /// /// Indicates whether the rule was actually used by some element in the page. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("used")] + [JsonPropertyName("used")] public bool Used { get; @@ -4692,7 +4428,7 @@ public partial class SourceRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Start line of range. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + [JsonPropertyName("startLine")] public int StartLine { get; @@ -4702,7 +4438,7 @@ public int StartLine /// /// Start column of range (inclusive). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + [JsonPropertyName("startColumn")] public int StartColumn { get; @@ -4712,7 +4448,7 @@ public int StartColumn /// /// End line of range /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + [JsonPropertyName("endLine")] public int EndLine { get; @@ -4722,7 +4458,7 @@ public int EndLine /// /// End column of range (exclusive). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + [JsonPropertyName("endColumn")] public int EndColumn { get; @@ -4738,7 +4474,7 @@ public partial class ShorthandEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Shorthand name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -4749,7 +4485,7 @@ public string Name /// /// Shorthand value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -4760,7 +4496,7 @@ public string Value /// /// Whether the property has "!important" annotation (implies `false` if absent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("important")] + [JsonPropertyName("important")] public bool? Important { get; @@ -4776,7 +4512,7 @@ public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomain /// /// Computed style property name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -4787,7 +4523,7 @@ public string Name /// /// Computed style property value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -4805,7 +4541,7 @@ public partial class CSSStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -4815,7 +4551,7 @@ public string StyleSheetId /// /// CSS properties in the style. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssProperties")] + [JsonPropertyName("cssProperties")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList CssProperties { @@ -4826,7 +4562,7 @@ public System.Collections.Generic.IList CssPr /// /// Computed values for all shorthands found in the style. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shorthandEntries")] + [JsonPropertyName("shorthandEntries")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ShorthandEntries { @@ -4837,7 +4573,7 @@ public System.Collections.Generic.IList Sh /// /// Style declaration text (if available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssText")] + [JsonPropertyName("cssText")] public string CssText { get; @@ -4847,7 +4583,7 @@ public string CssText /// /// Style declaration range in the enclosing stylesheet (if available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -4863,7 +4599,7 @@ public partial class CSSProperty : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The property name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -4874,7 +4610,7 @@ public string Name /// /// The property value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -4885,7 +4621,7 @@ public string Value /// /// Whether the property has "!important" annotation (implies `false` if absent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("important")] + [JsonPropertyName("important")] public bool? Important { get; @@ -4895,7 +4631,7 @@ public bool? Important /// /// Whether the property is implicit (implies `false` if absent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("implicit")] + [JsonPropertyName("implicit")] public bool? Implicit { get; @@ -4905,7 +4641,7 @@ public bool? Implicit /// /// The full property text as specified in the style. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] public string Text { get; @@ -4915,7 +4651,7 @@ public string Text /// /// Whether the property is understood by the browser (implies `true` if absent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parsedOk")] + [JsonPropertyName("parsedOk")] public bool? ParsedOk { get; @@ -4925,7 +4661,7 @@ public bool? ParsedOk /// /// Whether the property is disabled by the user (present for source-based properties only). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("disabled")] + [JsonPropertyName("disabled")] public bool? Disabled { get; @@ -4935,7 +4671,7 @@ public bool? Disabled /// /// The entire property range in the enclosing style declaration (if available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -4946,7 +4682,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// Parsed longhand components of this property if it is a shorthand. /// This field will be empty if the given property is not a shorthand. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("longhandProperties")] + [JsonPropertyName("longhandProperties")] public System.Collections.Generic.IList LonghandProperties { get; @@ -4965,22 +4701,22 @@ public enum CSSMediaSource /// /// mediaRule /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mediaRule")] + [JsonPropertyName("mediaRule")] MediaRule, /// /// importRule /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("importRule")] + [JsonPropertyName("importRule")] ImportRule, /// /// linkedSheet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("linkedSheet")] + [JsonPropertyName("linkedSheet")] LinkedSheet, /// /// inlineSheet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineSheet")] + [JsonPropertyName("inlineSheet")] InlineSheet } @@ -4992,7 +4728,7 @@ public partial class CSSMedia : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Media query text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -5006,7 +4742,7 @@ public string Text /// stylesheet's LINK tag, "inlineSheet" if specified by a "media" attribute in an inline /// stylesheet's STYLE tag. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + [JsonPropertyName("source")] public CefSharp.DevTools.CSS.CSSMediaSource Source { get; @@ -5016,7 +4752,7 @@ public CefSharp.DevTools.CSS.CSSMediaSource Source /// /// URL of the document containing the media query description. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceURL")] + [JsonPropertyName("sourceURL")] public string SourceURL { get; @@ -5027,7 +4763,7 @@ public string SourceURL /// The associated rule (@media or @import) header range in the enclosing stylesheet (if /// available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5037,7 +4773,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -5047,7 +4783,7 @@ public string StyleSheetId /// /// Array of media queries. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mediaList")] + [JsonPropertyName("mediaList")] public System.Collections.Generic.IList MediaList { get; @@ -5063,7 +4799,7 @@ public partial class MediaQuery : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Array of media query expressions. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("expressions")] + [JsonPropertyName("expressions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Expressions { @@ -5074,7 +4810,7 @@ public System.Collections.Generic.IList /// Whether the media query condition is satisfied. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("active")] + [JsonPropertyName("active")] public bool Active { get; @@ -5090,7 +4826,7 @@ public partial class MediaQueryExpression : CefSharp.DevTools.DevToolsDomainEnti /// /// Media query expression value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public double Value { get; @@ -5100,7 +4836,7 @@ public double Value /// /// Media query expression units. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unit")] + [JsonPropertyName("unit")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Unit { @@ -5111,7 +4847,7 @@ public string Unit /// /// Media query expression feature. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("feature")] + [JsonPropertyName("feature")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Feature { @@ -5122,7 +4858,7 @@ public string Feature /// /// The associated range of the value text in the enclosing stylesheet (if available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("valueRange")] + [JsonPropertyName("valueRange")] public CefSharp.DevTools.CSS.SourceRange ValueRange { get; @@ -5132,7 +4868,7 @@ public CefSharp.DevTools.CSS.SourceRange ValueRange /// /// Computed length of media query expression (if applicable). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedLength")] + [JsonPropertyName("computedLength")] public double? ComputedLength { get; @@ -5148,7 +4884,7 @@ public partial class CSSContainerQuery : CefSharp.DevTools.DevToolsDomainEntityB /// /// Container query text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -5160,7 +4896,7 @@ public string Text /// The associated rule header range in the enclosing stylesheet (if /// available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5170,7 +4906,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -5180,7 +4916,7 @@ public string StyleSheetId /// /// Optional name for the container. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public string Name { get; @@ -5190,7 +4926,7 @@ public string Name /// /// Optional physical axes queried for the container. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("physicalAxes")] + [JsonPropertyName("physicalAxes")] public CefSharp.DevTools.DOM.PhysicalAxes? PhysicalAxes { get; @@ -5200,7 +4936,7 @@ public CefSharp.DevTools.DOM.PhysicalAxes? PhysicalAxes /// /// Optional logical axes queried for the container. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("logicalAxes")] + [JsonPropertyName("logicalAxes")] public CefSharp.DevTools.DOM.LogicalAxes? LogicalAxes { get; @@ -5216,7 +4952,7 @@ public partial class CSSSupports : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Supports rule text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -5227,7 +4963,7 @@ public string Text /// /// Whether the supports condition is satisfied. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("active")] + [JsonPropertyName("active")] public bool Active { get; @@ -5238,7 +4974,7 @@ public bool Active /// The associated rule header range in the enclosing stylesheet (if /// available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5248,7 +4984,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -5264,7 +5000,7 @@ public partial class CSSScope : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Scope rule text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -5276,7 +5012,7 @@ public string Text /// The associated rule header range in the enclosing stylesheet (if /// available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5286,7 +5022,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -5302,7 +5038,7 @@ public partial class CSSLayer : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Layer name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -5314,7 +5050,7 @@ public string Text /// The associated rule header range in the enclosing stylesheet (if /// available). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] public CefSharp.DevTools.CSS.SourceRange Range { get; @@ -5324,7 +5060,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// Identifier of the stylesheet containing this object (if exists). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -5340,7 +5076,7 @@ public partial class CSSLayerData : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Layer name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -5351,7 +5087,7 @@ public string Name /// /// Direct sub-layers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subLayers")] + [JsonPropertyName("subLayers")] public System.Collections.Generic.IList SubLayers { get; @@ -5362,7 +5098,7 @@ public System.Collections.Generic.IList SubL /// Layer order. The order determines the order of the layer in the cascade order. /// A higher number has higher priority in the cascade order. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("order")] + [JsonPropertyName("order")] public double Order { get; @@ -5378,7 +5114,7 @@ public partial class PlatformFontUsage : CefSharp.DevTools.DevToolsDomainEntityB /// /// Font's family name reported by platform. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("familyName")] + [JsonPropertyName("familyName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FamilyName { @@ -5389,7 +5125,7 @@ public string FamilyName /// /// Indicates if the font was downloaded or resolved locally. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isCustomFont")] + [JsonPropertyName("isCustomFont")] public bool IsCustomFont { get; @@ -5399,7 +5135,7 @@ public bool IsCustomFont /// /// Amount of glyphs that were rendered with this font. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("glyphCount")] + [JsonPropertyName("glyphCount")] public double GlyphCount { get; @@ -5415,7 +5151,7 @@ public partial class FontVariationAxis : CefSharp.DevTools.DevToolsDomainEntityB /// /// The font-variation-setting tag (a.k.a. "axis tag"). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tag")] + [JsonPropertyName("tag")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Tag { @@ -5426,7 +5162,7 @@ public string Tag /// /// Human-readable variation name in the default language (normally, "en"). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -5437,7 +5173,7 @@ public string Name /// /// The minimum value (inclusive) the font supports for this tag. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("minValue")] + [JsonPropertyName("minValue")] public double MinValue { get; @@ -5447,7 +5183,7 @@ public double MinValue /// /// The maximum value (inclusive) the font supports for this tag. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxValue")] + [JsonPropertyName("maxValue")] public double MaxValue { get; @@ -5457,7 +5193,7 @@ public double MaxValue /// /// The default value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultValue")] + [JsonPropertyName("defaultValue")] public double DefaultValue { get; @@ -5474,7 +5210,7 @@ public partial class FontFace : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontFamily")] + [JsonPropertyName("fontFamily")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontFamily { @@ -5485,7 +5221,7 @@ public string FontFamily /// /// The font-style. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontStyle")] + [JsonPropertyName("fontStyle")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontStyle { @@ -5496,7 +5232,7 @@ public string FontStyle /// /// The font-variant. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontVariant")] + [JsonPropertyName("fontVariant")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontVariant { @@ -5507,7 +5243,7 @@ public string FontVariant /// /// The font-weight. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontWeight")] + [JsonPropertyName("fontWeight")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontWeight { @@ -5518,7 +5254,7 @@ public string FontWeight /// /// The font-stretch. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontStretch")] + [JsonPropertyName("fontStretch")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontStretch { @@ -5529,7 +5265,7 @@ public string FontStretch /// /// The font-display. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontDisplay")] + [JsonPropertyName("fontDisplay")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FontDisplay { @@ -5540,7 +5276,7 @@ public string FontDisplay /// /// The unicode-range. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unicodeRange")] + [JsonPropertyName("unicodeRange")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UnicodeRange { @@ -5551,7 +5287,7 @@ public string UnicodeRange /// /// The src. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("src")] + [JsonPropertyName("src")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Src { @@ -5562,7 +5298,7 @@ public string Src /// /// The resolved platform font family /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("platformFontFamily")] + [JsonPropertyName("platformFontFamily")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlatformFontFamily { @@ -5573,7 +5309,7 @@ public string PlatformFontFamily /// /// Available variation settings (a.k.a. "axes"). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontVariationAxes")] + [JsonPropertyName("fontVariationAxes")] public System.Collections.Generic.IList FontVariationAxes { get; @@ -5589,7 +5325,7 @@ public partial class CSSKeyframesRule : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Animation name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("animationName")] + [JsonPropertyName("animationName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.Value AnimationName { @@ -5600,7 +5336,7 @@ public CefSharp.DevTools.CSS.Value AnimationName /// /// List of keyframes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyframes")] + [JsonPropertyName("keyframes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Keyframes { @@ -5618,7 +5354,7 @@ public partial class CSSKeyframeRule : CefSharp.DevTools.DevToolsDomainEntityBas /// The css style sheet identifier (absent for user agent stylesheet and user-specified /// stylesheet rules) this rule came from. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -5628,7 +5364,7 @@ public string StyleSheetId /// /// Parent stylesheet's origin. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] public CefSharp.DevTools.CSS.StyleSheetOrigin Origin { get; @@ -5638,7 +5374,7 @@ public CefSharp.DevTools.CSS.StyleSheetOrigin Origin /// /// Associated key text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyText")] + [JsonPropertyName("keyText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.Value KeyText { @@ -5649,7 +5385,7 @@ public CefSharp.DevTools.CSS.Value KeyText /// /// Associated style declaration. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("style")] + [JsonPropertyName("style")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyle Style { @@ -5666,7 +5402,7 @@ public partial class StyleDeclarationEdit : CefSharp.DevTools.DevToolsDomainEnti /// /// The css style sheet identifier. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { @@ -5677,7 +5413,7 @@ public string StyleSheetId /// /// The range of the style text in the enclosing stylesheet. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("range")] + [JsonPropertyName("range")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.SourceRange Range { @@ -5688,7 +5424,7 @@ public CefSharp.DevTools.CSS.SourceRange Range /// /// New style text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -5699,15 +5435,15 @@ public string Text /// /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded - /// web font + /// web font. /// public class FontsUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// /// The web font that has loaded. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("font")] + [JsonInclude] + [JsonPropertyName("font")] public CefSharp.DevTools.CSS.FontFace Font { get; @@ -5723,8 +5459,8 @@ public class StyleSheetAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Added stylesheet metainfo. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("header")] + [JsonInclude] + [JsonPropertyName("header")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.CSS.CSSStyleSheetHeader Header { @@ -5741,8 +5477,8 @@ public class StyleSheetChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// StyleSheetId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonInclude] + [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { @@ -5759,8 +5495,8 @@ public class StyleSheetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Identifier of the removed stylesheet. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonInclude] + [JsonPropertyName("styleSheetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StyleSheetId { @@ -5780,32 +5516,32 @@ public enum CachedResponseType /// /// basic /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("basic")] + [JsonPropertyName("basic")] Basic, /// /// cors /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cors")] + [JsonPropertyName("cors")] Cors, /// /// default /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("default")] + [JsonPropertyName("default")] Default, /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error, /// /// opaqueResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("opaqueResponse")] + [JsonPropertyName("opaqueResponse")] OpaqueResponse, /// /// opaqueRedirect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("opaqueRedirect")] + [JsonPropertyName("opaqueRedirect")] OpaqueRedirect } @@ -5817,7 +5553,7 @@ public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Request URL. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestURL")] + [JsonPropertyName("requestURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestURL { @@ -5828,7 +5564,7 @@ public string RequestURL /// /// Request method. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestMethod")] + [JsonPropertyName("requestMethod")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestMethod { @@ -5839,7 +5575,7 @@ public string RequestMethod /// /// Request headers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeaders")] + [JsonPropertyName("requestHeaders")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList RequestHeaders { @@ -5850,7 +5586,7 @@ public System.Collections.Generic.IList R /// /// Number of seconds since epoch. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseTime")] + [JsonPropertyName("responseTime")] public double ResponseTime { get; @@ -5860,7 +5596,7 @@ public double ResponseTime /// /// HTTP response status code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatus")] + [JsonPropertyName("responseStatus")] public int ResponseStatus { get; @@ -5870,7 +5606,7 @@ public int ResponseStatus /// /// HTTP response status text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatusText")] + [JsonPropertyName("responseStatusText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ResponseStatusText { @@ -5881,7 +5617,7 @@ public string ResponseStatusText /// /// HTTP response type /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseType")] + [JsonPropertyName("responseType")] public CefSharp.DevTools.CacheStorage.CachedResponseType ResponseType { get; @@ -5891,7 +5627,7 @@ public CefSharp.DevTools.CacheStorage.CachedResponseType ResponseType /// /// Response headers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseHeaders")] + [JsonPropertyName("responseHeaders")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ResponseHeaders { @@ -5908,7 +5644,7 @@ public partial class Cache : CefSharp.DevTools.DevToolsDomainEntityBase /// /// An opaque unique id of the cache. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheId")] + [JsonPropertyName("cacheId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CacheId { @@ -5919,7 +5655,7 @@ public string CacheId /// /// Security origin of the cache. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityOrigin")] + [JsonPropertyName("securityOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SecurityOrigin { @@ -5930,7 +5666,7 @@ public string SecurityOrigin /// /// Storage key of the cache. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { @@ -5941,7 +5677,7 @@ public string StorageKey /// /// The name of the cache. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheName")] + [JsonPropertyName("cacheName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CacheName { @@ -5958,7 +5694,7 @@ public partial class Header : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -5969,7 +5705,7 @@ public string Name /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -5986,7 +5722,7 @@ public partial class CachedResponse : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Entry content, base64-encoded. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + [JsonPropertyName("body")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Body { @@ -6006,7 +5742,7 @@ public partial class Sink : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -6017,7 +5753,7 @@ public string Name /// /// Id /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -6029,7 +5765,7 @@ public string Id /// Text describing the current session. Present only if there is an active /// session on the sink. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("session")] + [JsonPropertyName("session")] public string Session { get; @@ -6046,8 +5782,8 @@ public class SinksUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Sinks /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sinks")] + [JsonInclude] + [JsonPropertyName("sinks")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Sinks { @@ -6065,8 +5801,8 @@ public class IssueUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// IssueMessage /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issueMessage")] + [JsonInclude] + [JsonPropertyName("issueMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IssueMessage { @@ -6086,7 +5822,7 @@ public partial class BackendNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `Node`'s nodeType. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + [JsonPropertyName("nodeType")] public int NodeType { get; @@ -6096,7 +5832,7 @@ public int NodeType /// /// `Node`'s nodeName. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + [JsonPropertyName("nodeName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeName { @@ -6107,7 +5843,7 @@ public string NodeName /// /// BackendNodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; @@ -6123,127 +5859,127 @@ public enum PseudoType /// /// first-line /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("first-line")] + [JsonPropertyName("first-line")] FirstLine, /// /// first-letter /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("first-letter")] + [JsonPropertyName("first-letter")] FirstLetter, /// /// before /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("before")] + [JsonPropertyName("before")] Before, /// /// after /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("after")] + [JsonPropertyName("after")] After, /// /// marker /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("marker")] + [JsonPropertyName("marker")] Marker, /// /// backdrop /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backdrop")] + [JsonPropertyName("backdrop")] Backdrop, /// /// selection /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selection")] + [JsonPropertyName("selection")] Selection, /// /// target-text /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("target-text")] + [JsonPropertyName("target-text")] TargetText, /// /// spelling-error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("spelling-error")] + [JsonPropertyName("spelling-error")] SpellingError, /// /// grammar-error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("grammar-error")] + [JsonPropertyName("grammar-error")] GrammarError, /// /// highlight /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("highlight")] + [JsonPropertyName("highlight")] Highlight, /// /// first-line-inherited /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("first-line-inherited")] + [JsonPropertyName("first-line-inherited")] FirstLineInherited, /// /// scrollbar /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar")] + [JsonPropertyName("scrollbar")] Scrollbar, /// /// scrollbar-thumb /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-thumb")] + [JsonPropertyName("scrollbar-thumb")] ScrollbarThumb, /// /// scrollbar-button /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-button")] + [JsonPropertyName("scrollbar-button")] ScrollbarButton, /// /// scrollbar-track /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-track")] + [JsonPropertyName("scrollbar-track")] ScrollbarTrack, /// /// scrollbar-track-piece /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-track-piece")] + [JsonPropertyName("scrollbar-track-piece")] ScrollbarTrackPiece, /// /// scrollbar-corner /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollbar-corner")] + [JsonPropertyName("scrollbar-corner")] ScrollbarCorner, /// /// resizer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resizer")] + [JsonPropertyName("resizer")] Resizer, /// /// input-list-button /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("input-list-button")] + [JsonPropertyName("input-list-button")] InputListButton, /// /// view-transition /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition")] + [JsonPropertyName("view-transition")] ViewTransition, /// /// view-transition-group /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-group")] + [JsonPropertyName("view-transition-group")] ViewTransitionGroup, /// /// view-transition-image-pair /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-image-pair")] + [JsonPropertyName("view-transition-image-pair")] ViewTransitionImagePair, /// /// view-transition-old /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-old")] + [JsonPropertyName("view-transition-old")] ViewTransitionOld, /// /// view-transition-new /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("view-transition-new")] + [JsonPropertyName("view-transition-new")] ViewTransitionNew } @@ -6255,17 +5991,17 @@ public enum ShadowRootType /// /// user-agent /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("user-agent")] + [JsonPropertyName("user-agent")] UserAgent, /// /// open /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("open")] + [JsonPropertyName("open")] Open, /// /// closed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("closed")] + [JsonPropertyName("closed")] Closed } @@ -6277,17 +6013,17 @@ public enum CompatibilityMode /// /// QuirksMode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("QuirksMode")] + [JsonPropertyName("QuirksMode")] QuirksMode, /// /// LimitedQuirksMode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("LimitedQuirksMode")] + [JsonPropertyName("LimitedQuirksMode")] LimitedQuirksMode, /// /// NoQuirksMode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoQuirksMode")] + [JsonPropertyName("NoQuirksMode")] NoQuirksMode } @@ -6299,17 +6035,17 @@ public enum PhysicalAxes /// /// Horizontal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Horizontal")] + [JsonPropertyName("Horizontal")] Horizontal, /// /// Vertical /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Vertical")] + [JsonPropertyName("Vertical")] Vertical, /// /// Both /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Both")] + [JsonPropertyName("Both")] Both } @@ -6321,17 +6057,17 @@ public enum LogicalAxes /// /// Inline /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Inline")] + [JsonPropertyName("Inline")] Inline, /// /// Block /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Block")] + [JsonPropertyName("Block")] Block, /// /// Both /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Both")] + [JsonPropertyName("Both")] Both } @@ -6346,7 +6082,7 @@ public partial class Node : CefSharp.DevTools.DevToolsDomainEntityBase /// will only push node with given `id` once. It is aware of all requested nodes and will only /// fire DOM events for nodes known to the client. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -6356,7 +6092,7 @@ public int NodeId /// /// The id of the parent node if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + [JsonPropertyName("parentId")] public int? ParentId { get; @@ -6366,7 +6102,7 @@ public int? ParentId /// /// The BackendNodeId for this node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; @@ -6376,7 +6112,7 @@ public int BackendNodeId /// /// `Node`'s nodeType. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + [JsonPropertyName("nodeType")] public int NodeType { get; @@ -6386,7 +6122,7 @@ public int NodeType /// /// `Node`'s nodeName. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + [JsonPropertyName("nodeName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeName { @@ -6397,7 +6133,7 @@ public string NodeName /// /// `Node`'s localName. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("localName")] + [JsonPropertyName("localName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LocalName { @@ -6408,7 +6144,7 @@ public string LocalName /// /// `Node`'s nodeValue. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeValue")] + [JsonPropertyName("nodeValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeValue { @@ -6419,7 +6155,7 @@ public string NodeValue /// /// Child count for `Container` nodes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("childNodeCount")] + [JsonPropertyName("childNodeCount")] public int? ChildNodeCount { get; @@ -6429,7 +6165,7 @@ public int? ChildNodeCount /// /// Child nodes of this node when requested with children. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("children")] + [JsonPropertyName("children")] public System.Collections.Generic.IList Children { get; @@ -6439,7 +6175,7 @@ public System.Collections.Generic.IList Children /// /// Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + [JsonPropertyName("attributes")] public string[] Attributes { get; @@ -6449,7 +6185,7 @@ public string[] Attributes /// /// Document URL that `Document` or `FrameOwner` node points to. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + [JsonPropertyName("documentURL")] public string DocumentURL { get; @@ -6459,7 +6195,7 @@ public string DocumentURL /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseURL")] + [JsonPropertyName("baseURL")] public string BaseURL { get; @@ -6469,7 +6205,7 @@ public string BaseURL /// /// `DocumentType`'s publicId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("publicId")] + [JsonPropertyName("publicId")] public string PublicId { get; @@ -6479,7 +6215,7 @@ public string PublicId /// /// `DocumentType`'s systemId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("systemId")] + [JsonPropertyName("systemId")] public string SystemId { get; @@ -6489,7 +6225,7 @@ public string SystemId /// /// `DocumentType`'s internalSubset. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("internalSubset")] + [JsonPropertyName("internalSubset")] public string InternalSubset { get; @@ -6499,7 +6235,7 @@ public string InternalSubset /// /// `Document`'s XML version in case of XML documents. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("xmlVersion")] + [JsonPropertyName("xmlVersion")] public string XmlVersion { get; @@ -6509,7 +6245,7 @@ public string XmlVersion /// /// `Attr`'s name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public string Name { get; @@ -6519,7 +6255,7 @@ public string Name /// /// `Attr`'s value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public string Value { get; @@ -6529,7 +6265,7 @@ public string Value /// /// Pseudo element type for this node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOM.PseudoType? PseudoType { get; @@ -6540,7 +6276,7 @@ public CefSharp.DevTools.DOM.PseudoType? PseudoType /// Pseudo element identifier for this node. Only present if there is a /// valid pseudoType. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoIdentifier")] + [JsonPropertyName("pseudoIdentifier")] public string PseudoIdentifier { get; @@ -6550,7 +6286,7 @@ public string PseudoIdentifier /// /// Shadow root type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shadowRootType")] + [JsonPropertyName("shadowRootType")] public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType { get; @@ -6560,7 +6296,7 @@ public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType /// /// Frame ID for frame owner elements. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -6570,7 +6306,7 @@ public string FrameId /// /// Content document for frame owner elements. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentDocument")] + [JsonPropertyName("contentDocument")] public CefSharp.DevTools.DOM.Node ContentDocument { get; @@ -6580,7 +6316,7 @@ public CefSharp.DevTools.DOM.Node ContentDocument /// /// Shadow root list for given element host. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shadowRoots")] + [JsonPropertyName("shadowRoots")] public System.Collections.Generic.IList ShadowRoots { get; @@ -6590,7 +6326,7 @@ public System.Collections.Generic.IList ShadowRoots /// /// Content document fragment for template elements. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("templateContent")] + [JsonPropertyName("templateContent")] public CefSharp.DevTools.DOM.Node TemplateContent { get; @@ -6600,7 +6336,7 @@ public CefSharp.DevTools.DOM.Node TemplateContent /// /// Pseudo elements associated with this node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElements")] + [JsonPropertyName("pseudoElements")] public System.Collections.Generic.IList PseudoElements { get; @@ -6612,7 +6348,7 @@ public System.Collections.Generic.IList PseudoElemen /// This property used to return the imported document for the HTMLImport links. /// The property is always undefined now. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("importedDocument")] + [JsonPropertyName("importedDocument")] public CefSharp.DevTools.DOM.Node ImportedDocument { get; @@ -6622,7 +6358,7 @@ public CefSharp.DevTools.DOM.Node ImportedDocument /// /// Distributed nodes for given insertion point. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("distributedNodes")] + [JsonPropertyName("distributedNodes")] public System.Collections.Generic.IList DistributedNodes { get; @@ -6632,7 +6368,7 @@ public System.Collections.Generic.IList Distr /// /// Whether the node is SVG. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isSVG")] + [JsonPropertyName("isSVG")] public bool? IsSVG { get; @@ -6642,7 +6378,7 @@ public bool? IsSVG /// /// CompatibilityMode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("compatibilityMode")] + [JsonPropertyName("compatibilityMode")] public CefSharp.DevTools.DOM.CompatibilityMode? CompatibilityMode { get; @@ -6652,7 +6388,7 @@ public CefSharp.DevTools.DOM.CompatibilityMode? CompatibilityMode /// /// AssignedSlot /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("assignedSlot")] + [JsonPropertyName("assignedSlot")] public CefSharp.DevTools.DOM.BackendNode AssignedSlot { get; @@ -6668,7 +6404,7 @@ public partial class RGBA : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The red component, in the [0-255] range. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("r")] + [JsonPropertyName("r")] public int R { get; @@ -6678,7 +6414,7 @@ public int R /// /// The green component, in the [0-255] range. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("g")] + [JsonPropertyName("g")] public int G { get; @@ -6688,7 +6424,7 @@ public int G /// /// The blue component, in the [0-255] range. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("b")] + [JsonPropertyName("b")] public int B { get; @@ -6698,7 +6434,7 @@ public int B /// /// The alpha component, in the [0-1] range (default: 1). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("a")] + [JsonPropertyName("a")] public double? A { get; @@ -6714,7 +6450,7 @@ public partial class BoxModel : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Content box /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("content")] + [JsonPropertyName("content")] public double[] Content { get; @@ -6724,7 +6460,7 @@ public double[] Content /// /// Padding box /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("padding")] + [JsonPropertyName("padding")] public double[] Padding { get; @@ -6734,7 +6470,7 @@ public double[] Padding /// /// Border box /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("border")] + [JsonPropertyName("border")] public double[] Border { get; @@ -6744,7 +6480,7 @@ public double[] Border /// /// Margin box /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("margin")] + [JsonPropertyName("margin")] public double[] Margin { get; @@ -6754,7 +6490,7 @@ public double[] Margin /// /// Node width /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + [JsonPropertyName("width")] public int Width { get; @@ -6764,7 +6500,7 @@ public int Width /// /// Node height /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + [JsonPropertyName("height")] public int Height { get; @@ -6774,7 +6510,7 @@ public int Height /// /// Shape outside coordinates /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shapeOutside")] + [JsonPropertyName("shapeOutside")] public CefSharp.DevTools.DOM.ShapeOutsideInfo ShapeOutside { get; @@ -6790,7 +6526,7 @@ public partial class ShapeOutsideInfo : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Shape bounds /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + [JsonPropertyName("bounds")] public double[] Bounds { get; @@ -6800,7 +6536,7 @@ public double[] Bounds /// /// Shape coordinate details /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shape")] + [JsonPropertyName("shape")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object[] Shape { @@ -6811,7 +6547,7 @@ public object[] Shape /// /// Margin shape bounds /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("marginShape")] + [JsonPropertyName("marginShape")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object[] MarginShape { @@ -6828,7 +6564,7 @@ public partial class Rect : CefSharp.DevTools.DevToolsDomainEntityBase /// /// X coordinate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + [JsonPropertyName("x")] public double X { get; @@ -6838,7 +6574,7 @@ public double X /// /// Y coordinate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + [JsonPropertyName("y")] public double Y { get; @@ -6848,7 +6584,7 @@ public double Y /// /// Rectangle width /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + [JsonPropertyName("width")] public double Width { get; @@ -6858,7 +6594,7 @@ public double Width /// /// Rectangle height /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + [JsonPropertyName("height")] public double Height { get; @@ -6874,7 +6610,7 @@ public partial class CSSComputedStyleProperty : CefSharp.DevTools.DevToolsDomain /// /// Computed style property name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -6885,7 +6621,7 @@ public string Name /// /// Computed style property value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -6902,8 +6638,8 @@ public class AttributeModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the node that has changed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -6913,8 +6649,8 @@ public int NodeId /// /// Attribute name. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonInclude] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -6925,8 +6661,8 @@ public string Name /// /// Attribute value. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonInclude] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -6943,8 +6679,8 @@ public class AttributeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Id of the node that has changed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -6954,8 +6690,8 @@ public int NodeId /// /// A ttribute name. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonInclude] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -6972,8 +6708,8 @@ public class CharacterDataModifiedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Id of the node that has changed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -6983,8 +6719,8 @@ public int NodeId /// /// New text value. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("characterData")] + [JsonInclude] + [JsonPropertyName("characterData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CharacterData { @@ -7001,8 +6737,8 @@ public class ChildNodeCountUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Id of the node that has changed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -7012,8 +6748,8 @@ public int NodeId /// /// New node count. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("childNodeCount")] + [JsonInclude] + [JsonPropertyName("childNodeCount")] public int ChildNodeCount { get; @@ -7029,8 +6765,8 @@ public class ChildNodeInsertedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the node that has changed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentNodeId")] + [JsonInclude] + [JsonPropertyName("parentNodeId")] public int ParentNodeId { get; @@ -7040,8 +6776,8 @@ public int ParentNodeId /// /// Id of the previous sibling. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("previousNodeId")] + [JsonInclude] + [JsonPropertyName("previousNodeId")] public int PreviousNodeId { get; @@ -7051,8 +6787,8 @@ public int PreviousNodeId /// /// Inserted node data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonInclude] + [JsonPropertyName("node")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Node Node { @@ -7069,8 +6805,8 @@ public class ChildNodeRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Parent id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentNodeId")] + [JsonInclude] + [JsonPropertyName("parentNodeId")] public int ParentNodeId { get; @@ -7080,8 +6816,8 @@ public int ParentNodeId /// /// Id of the node that has been removed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -7097,8 +6833,8 @@ public class DistributedNodesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Insertion point where distributed nodes were updated. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("insertionPointId")] + [JsonInclude] + [JsonPropertyName("insertionPointId")] public int InsertionPointId { get; @@ -7108,8 +6844,8 @@ public int InsertionPointId /// /// Distributed nodes for given insertion point. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("distributedNodes")] + [JsonInclude] + [JsonPropertyName("distributedNodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList DistributedNodes { @@ -7126,8 +6862,8 @@ public class InlineStyleInvalidatedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Ids of the nodes for which the inline styles have been invalidated. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -7143,8 +6879,8 @@ public class PseudoElementAddedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Pseudo element's parent element id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + [JsonInclude] + [JsonPropertyName("parentId")] public int ParentId { get; @@ -7154,8 +6890,8 @@ public int ParentId /// /// The added pseudo element. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElement")] + [JsonInclude] + [JsonPropertyName("pseudoElement")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Node PseudoElement { @@ -7172,8 +6908,8 @@ public class PseudoElementRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Pseudo element's parent element id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + [JsonInclude] + [JsonPropertyName("parentId")] public int ParentId { get; @@ -7183,8 +6919,8 @@ public int ParentId /// /// The removed pseudo element id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElementId")] + [JsonInclude] + [JsonPropertyName("pseudoElementId")] public int PseudoElementId { get; @@ -7201,8 +6937,8 @@ public class SetChildNodesEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Parent node id to populate with children. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + [JsonInclude] + [JsonPropertyName("parentId")] public int ParentId { get; @@ -7212,8 +6948,8 @@ public int ParentId /// /// Child nodes array. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Nodes { @@ -7230,8 +6966,8 @@ public class ShadowRootPoppedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Host element id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hostId")] + [JsonInclude] + [JsonPropertyName("hostId")] public int HostId { get; @@ -7241,8 +6977,8 @@ public int HostId /// /// Shadow root id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rootId")] + [JsonInclude] + [JsonPropertyName("rootId")] public int RootId { get; @@ -7258,8 +6994,8 @@ public class ShadowRootPushedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Host element id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hostId")] + [JsonInclude] + [JsonPropertyName("hostId")] public int HostId { get; @@ -7269,8 +7005,8 @@ public int HostId /// /// Shadow root. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + [JsonInclude] + [JsonPropertyName("root")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Node Root { @@ -7290,17 +7026,17 @@ public enum DOMBreakpointType /// /// subtree-modified /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtree-modified")] + [JsonPropertyName("subtree-modified")] SubtreeModified, /// /// attribute-modified /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attribute-modified")] + [JsonPropertyName("attribute-modified")] AttributeModified, /// /// node-removed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node-removed")] + [JsonPropertyName("node-removed")] NodeRemoved } @@ -7312,12 +7048,12 @@ public enum CSPViolationType /// /// trustedtype-sink-violation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trustedtype-sink-violation")] + [JsonPropertyName("trustedtype-sink-violation")] TrustedtypeSinkViolation, /// /// trustedtype-policy-violation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trustedtype-policy-violation")] + [JsonPropertyName("trustedtype-policy-violation")] TrustedtypePolicyViolation } @@ -7329,7 +7065,7 @@ public partial class EventListener : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `EventListener`'s type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { @@ -7340,7 +7076,7 @@ public string Type /// /// `EventListener`'s useCapture. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("useCapture")] + [JsonPropertyName("useCapture")] public bool UseCapture { get; @@ -7350,7 +7086,7 @@ public bool UseCapture /// /// `EventListener`'s passive flag. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("passive")] + [JsonPropertyName("passive")] public bool Passive { get; @@ -7360,7 +7096,7 @@ public bool Passive /// /// `EventListener`'s once flag. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("once")] + [JsonPropertyName("once")] public bool Once { get; @@ -7370,7 +7106,7 @@ public bool Once /// /// Script id of the handler code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -7381,7 +7117,7 @@ public string ScriptId /// /// Line number in the script (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -7391,7 +7127,7 @@ public int LineNumber /// /// Column number in the script (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int ColumnNumber { get; @@ -7401,7 +7137,7 @@ public int ColumnNumber /// /// Event handler function value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("handler")] + [JsonPropertyName("handler")] public CefSharp.DevTools.Runtime.RemoteObject Handler { get; @@ -7411,7 +7147,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Handler /// /// Event original handler function value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("originalHandler")] + [JsonPropertyName("originalHandler")] public CefSharp.DevTools.Runtime.RemoteObject OriginalHandler { get; @@ -7421,7 +7157,7 @@ public CefSharp.DevTools.Runtime.RemoteObject OriginalHandler /// /// Node the listener is added to (if any). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; @@ -7440,7 +7176,7 @@ public partial class DOMNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// `Node`'s nodeType. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + [JsonPropertyName("nodeType")] public int NodeType { get; @@ -7450,7 +7186,7 @@ public int NodeType /// /// `Node`'s nodeName. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + [JsonPropertyName("nodeName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeName { @@ -7461,7 +7197,7 @@ public string NodeName /// /// `Node`'s nodeValue. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeValue")] + [JsonPropertyName("nodeValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeValue { @@ -7472,7 +7208,7 @@ public string NodeValue /// /// Only set for textarea elements, contains the text value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("textValue")] + [JsonPropertyName("textValue")] public string TextValue { get; @@ -7482,7 +7218,7 @@ public string TextValue /// /// Only set for input elements, contains the input's associated text value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputValue")] + [JsonPropertyName("inputValue")] public string InputValue { get; @@ -7492,7 +7228,7 @@ public string InputValue /// /// Only set for radio and checkbox input elements, indicates if the element has been checked /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputChecked")] + [JsonPropertyName("inputChecked")] public bool? InputChecked { get; @@ -7502,7 +7238,7 @@ public bool? InputChecked /// /// Only set for option elements, indicates if the element has been selected /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("optionSelected")] + [JsonPropertyName("optionSelected")] public bool? OptionSelected { get; @@ -7512,7 +7248,7 @@ public bool? OptionSelected /// /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; @@ -7523,7 +7259,7 @@ public int BackendNodeId /// The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if /// any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("childNodeIndexes")] + [JsonPropertyName("childNodeIndexes")] public int[] ChildNodeIndexes { get; @@ -7533,7 +7269,7 @@ public int[] ChildNodeIndexes /// /// Attributes of an `Element` node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + [JsonPropertyName("attributes")] public System.Collections.Generic.IList Attributes { get; @@ -7544,7 +7280,7 @@ public System.Collections.Generic.IList /// Indexes of pseudo elements associated with this node in the `domNodes` array returned by /// `getSnapshot`, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElementIndexes")] + [JsonPropertyName("pseudoElementIndexes")] public int[] PseudoElementIndexes { get; @@ -7555,7 +7291,7 @@ public int[] PseudoElementIndexes /// The index of the node's related layout tree node in the `layoutTreeNodes` array returned by /// `getSnapshot`, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutNodeIndex")] + [JsonPropertyName("layoutNodeIndex")] public int? LayoutNodeIndex { get; @@ -7565,7 +7301,7 @@ public int? LayoutNodeIndex /// /// Document URL that `Document` or `FrameOwner` node points to. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + [JsonPropertyName("documentURL")] public string DocumentURL { get; @@ -7575,7 +7311,7 @@ public string DocumentURL /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseURL")] + [JsonPropertyName("baseURL")] public string BaseURL { get; @@ -7585,7 +7321,7 @@ public string BaseURL /// /// Only set for documents, contains the document's content language. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentLanguage")] + [JsonPropertyName("contentLanguage")] public string ContentLanguage { get; @@ -7595,7 +7331,7 @@ public string ContentLanguage /// /// Only set for documents, contains the document's character set encoding. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentEncoding")] + [JsonPropertyName("documentEncoding")] public string DocumentEncoding { get; @@ -7605,7 +7341,7 @@ public string DocumentEncoding /// /// `DocumentType` node's publicId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("publicId")] + [JsonPropertyName("publicId")] public string PublicId { get; @@ -7615,7 +7351,7 @@ public string PublicId /// /// `DocumentType` node's systemId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("systemId")] + [JsonPropertyName("systemId")] public string SystemId { get; @@ -7625,7 +7361,7 @@ public string SystemId /// /// Frame ID for frame owner elements and also for the document node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -7636,7 +7372,7 @@ public string FrameId /// The index of a frame owner element's content document in the `domNodes` array returned by /// `getSnapshot`, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentDocumentIndex")] + [JsonPropertyName("contentDocumentIndex")] public int? ContentDocumentIndex { get; @@ -7646,7 +7382,7 @@ public int? ContentDocumentIndex /// /// Type of a pseudo element node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOM.PseudoType? PseudoType { get; @@ -7656,7 +7392,7 @@ public CefSharp.DevTools.DOM.PseudoType? PseudoType /// /// Shadow root type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shadowRootType")] + [JsonPropertyName("shadowRootType")] public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType { get; @@ -7668,7 +7404,7 @@ public CefSharp.DevTools.DOM.ShadowRootType? ShadowRootType /// event listeners attached via JavaScript as well as anchor tags that naturally navigate when /// clicked. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isClickable")] + [JsonPropertyName("isClickable")] public bool? IsClickable { get; @@ -7678,7 +7414,7 @@ public bool? IsClickable /// /// Details of the node's event listeners, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventListeners")] + [JsonPropertyName("eventListeners")] public System.Collections.Generic.IList EventListeners { get; @@ -7688,7 +7424,7 @@ public System.Collections.Generic.IList /// The selected url for nodes with a srcset attribute. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentSourceURL")] + [JsonPropertyName("currentSourceURL")] public string CurrentSourceURL { get; @@ -7698,7 +7434,7 @@ public string CurrentSourceURL /// /// The url of the script (if any) that generates this node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("originURL")] + [JsonPropertyName("originURL")] public string OriginURL { get; @@ -7708,7 +7444,7 @@ public string OriginURL /// /// Scroll offsets, set when this node is a Document. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] + [JsonPropertyName("scrollOffsetX")] public double? ScrollOffsetX { get; @@ -7718,7 +7454,7 @@ public double? ScrollOffsetX /// /// ScrollOffsetY /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] + [JsonPropertyName("scrollOffsetY")] public double? ScrollOffsetY { get; @@ -7735,7 +7471,7 @@ public partial class InlineTextBox : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("boundingBox")] + [JsonPropertyName("boundingBox")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect BoundingBox { @@ -7747,7 +7483,7 @@ public CefSharp.DevTools.DOM.Rect BoundingBox /// The starting index in characters, for this post layout textbox substring. Characters that /// would be represented as a surrogate pair in UTF-16 have length 2. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startCharacterIndex")] + [JsonPropertyName("startCharacterIndex")] public int StartCharacterIndex { get; @@ -7758,7 +7494,7 @@ public int StartCharacterIndex /// The number of characters in this post layout textbox substring. Characters that would be /// represented as a surrogate pair in UTF-16 have length 2. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("numCharacters")] + [JsonPropertyName("numCharacters")] public int NumCharacters { get; @@ -7774,7 +7510,7 @@ public partial class LayoutTreeNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The index of the related DOM node in the `domNodes` array returned by `getSnapshot`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("domNodeIndex")] + [JsonPropertyName("domNodeIndex")] public int DomNodeIndex { get; @@ -7784,7 +7520,7 @@ public int DomNodeIndex /// /// The bounding box in document coordinates. Note that scroll offset of the document is ignored. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("boundingBox")] + [JsonPropertyName("boundingBox")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect BoundingBox { @@ -7795,7 +7531,7 @@ public CefSharp.DevTools.DOM.Rect BoundingBox /// /// Contents of the LayoutText, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutText")] + [JsonPropertyName("layoutText")] public string LayoutText { get; @@ -7805,7 +7541,7 @@ public string LayoutText /// /// The post-layout inline text nodes, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineTextNodes")] + [JsonPropertyName("inlineTextNodes")] public System.Collections.Generic.IList InlineTextNodes { get; @@ -7815,7 +7551,7 @@ public System.Collections.Generic.IList /// Index into the `computedStyles` array returned by `getSnapshot`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleIndex")] + [JsonPropertyName("styleIndex")] public int? StyleIndex { get; @@ -7827,7 +7563,7 @@ public int? StyleIndex /// that are painted together will have the same index. Only provided if includePaintOrder in /// getSnapshot was true. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paintOrder")] + [JsonPropertyName("paintOrder")] public int? PaintOrder { get; @@ -7837,7 +7573,7 @@ public int? PaintOrder /// /// Set to true to indicate the element begins a new stacking context. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isStackingContext")] + [JsonPropertyName("isStackingContext")] public bool? IsStackingContext { get; @@ -7853,7 +7589,7 @@ public partial class ComputedStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name/value pairs of computed style properties. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("properties")] + [JsonPropertyName("properties")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Properties { @@ -7870,7 +7606,7 @@ public partial class NameValue : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Attribute/property name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -7881,7 +7617,7 @@ public string Name /// /// Attribute/property value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -7898,7 +7634,7 @@ public partial class RareStringData : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Index /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("index")] + [JsonPropertyName("index")] public int[] Index { get; @@ -7908,7 +7644,7 @@ public int[] Index /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public int[] Value { get; @@ -7924,7 +7660,7 @@ public partial class RareBooleanData : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Index /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("index")] + [JsonPropertyName("index")] public int[] Index { get; @@ -7940,7 +7676,7 @@ public partial class RareIntegerData : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Index /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("index")] + [JsonPropertyName("index")] public int[] Index { get; @@ -7950,7 +7686,7 @@ public int[] Index /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public int[] Value { get; @@ -7966,7 +7702,7 @@ public partial class DocumentSnapshot : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Document URL that `Document` or `FrameOwner` node points to. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + [JsonPropertyName("documentURL")] public int DocumentURL { get; @@ -7976,7 +7712,7 @@ public int DocumentURL /// /// Document title. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonPropertyName("title")] public int Title { get; @@ -7986,7 +7722,7 @@ public int Title /// /// Base URL that `Document` or `FrameOwner` node uses for URL completion. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseURL")] + [JsonPropertyName("baseURL")] public int BaseURL { get; @@ -7996,7 +7732,7 @@ public int BaseURL /// /// Contains the document's content language. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentLanguage")] + [JsonPropertyName("contentLanguage")] public int ContentLanguage { get; @@ -8006,7 +7742,7 @@ public int ContentLanguage /// /// Contains the document's character set encoding. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodingName")] + [JsonPropertyName("encodingName")] public int EncodingName { get; @@ -8016,7 +7752,7 @@ public int EncodingName /// /// `DocumentType` node's publicId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("publicId")] + [JsonPropertyName("publicId")] public int PublicId { get; @@ -8026,7 +7762,7 @@ public int PublicId /// /// `DocumentType` node's systemId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("systemId")] + [JsonPropertyName("systemId")] public int SystemId { get; @@ -8036,7 +7772,7 @@ public int SystemId /// /// Frame ID for frame owner elements and also for the document node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] public int FrameId { get; @@ -8046,7 +7782,7 @@ public int FrameId /// /// A table with dom nodes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMSnapshot.NodeTreeSnapshot Nodes { @@ -8057,7 +7793,7 @@ public CefSharp.DevTools.DOMSnapshot.NodeTreeSnapshot Nodes /// /// The nodes in the layout tree. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layout")] + [JsonPropertyName("layout")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMSnapshot.LayoutTreeSnapshot Layout { @@ -8068,7 +7804,7 @@ public CefSharp.DevTools.DOMSnapshot.LayoutTreeSnapshot Layout /// /// The post-layout inline text nodes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("textBoxes")] + [JsonPropertyName("textBoxes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMSnapshot.TextBoxSnapshot TextBoxes { @@ -8079,7 +7815,7 @@ public CefSharp.DevTools.DOMSnapshot.TextBoxSnapshot TextBoxes /// /// Horizontal scroll offset. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] + [JsonPropertyName("scrollOffsetX")] public double? ScrollOffsetX { get; @@ -8089,7 +7825,7 @@ public double? ScrollOffsetX /// /// Vertical scroll offset. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] + [JsonPropertyName("scrollOffsetY")] public double? ScrollOffsetY { get; @@ -8099,7 +7835,7 @@ public double? ScrollOffsetY /// /// Document content width. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentWidth")] + [JsonPropertyName("contentWidth")] public double? ContentWidth { get; @@ -8109,7 +7845,7 @@ public double? ContentWidth /// /// Document content height. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentHeight")] + [JsonPropertyName("contentHeight")] public double? ContentHeight { get; @@ -8125,7 +7861,7 @@ public partial class NodeTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Parent node index. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentIndex")] + [JsonPropertyName("parentIndex")] public int[] ParentIndex { get; @@ -8135,7 +7871,7 @@ public int[] ParentIndex /// /// `Node`'s nodeType. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + [JsonPropertyName("nodeType")] public int[] NodeType { get; @@ -8145,7 +7881,7 @@ public int[] NodeType /// /// Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shadowRootType")] + [JsonPropertyName("shadowRootType")] public CefSharp.DevTools.DOMSnapshot.RareStringData ShadowRootType { get; @@ -8155,7 +7891,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData ShadowRootType /// /// `Node`'s nodeName. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeName")] + [JsonPropertyName("nodeName")] public int[] NodeName { get; @@ -8165,7 +7901,7 @@ public int[] NodeName /// /// `Node`'s nodeValue. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeValue")] + [JsonPropertyName("nodeValue")] public int[] NodeValue { get; @@ -8175,7 +7911,7 @@ public int[] NodeValue /// /// `Node`'s id, corresponds to DOM.Node.backendNodeId. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonPropertyName("backendNodeId")] public int[] BackendNodeId { get; @@ -8185,7 +7921,7 @@ public int[] BackendNodeId /// /// Attributes of an `Element` node. Flatten name, value pairs. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + [JsonPropertyName("attributes")] public int[] Attributes { get; @@ -8195,7 +7931,7 @@ public int[] Attributes /// /// Only set for textarea elements, contains the text value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("textValue")] + [JsonPropertyName("textValue")] public CefSharp.DevTools.DOMSnapshot.RareStringData TextValue { get; @@ -8205,7 +7941,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData TextValue /// /// Only set for input elements, contains the input's associated text value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputValue")] + [JsonPropertyName("inputValue")] public CefSharp.DevTools.DOMSnapshot.RareStringData InputValue { get; @@ -8215,7 +7951,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData InputValue /// /// Only set for radio and checkbox input elements, indicates if the element has been checked /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inputChecked")] + [JsonPropertyName("inputChecked")] public CefSharp.DevTools.DOMSnapshot.RareBooleanData InputChecked { get; @@ -8225,7 +7961,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData InputChecked /// /// Only set for option elements, indicates if the element has been selected /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("optionSelected")] + [JsonPropertyName("optionSelected")] public CefSharp.DevTools.DOMSnapshot.RareBooleanData OptionSelected { get; @@ -8235,7 +7971,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData OptionSelected /// /// The index of the document in the list of the snapshot documents. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentDocumentIndex")] + [JsonPropertyName("contentDocumentIndex")] public CefSharp.DevTools.DOMSnapshot.RareIntegerData ContentDocumentIndex { get; @@ -8245,7 +7981,7 @@ public CefSharp.DevTools.DOMSnapshot.RareIntegerData ContentDocumentIndex /// /// Type of a pseudo element node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoType")] + [JsonPropertyName("pseudoType")] public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoType { get; @@ -8256,7 +7992,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoType /// Pseudo element identifier for this node. Only present if there is a /// valid pseudoType. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoIdentifier")] + [JsonPropertyName("pseudoIdentifier")] public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoIdentifier { get; @@ -8268,7 +8004,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData PseudoIdentifier /// event listeners attached via JavaScript as well as anchor tags that naturally navigate when /// clicked. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isClickable")] + [JsonPropertyName("isClickable")] public CefSharp.DevTools.DOMSnapshot.RareBooleanData IsClickable { get; @@ -8278,7 +8014,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData IsClickable /// /// The selected url for nodes with a srcset attribute. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentSourceURL")] + [JsonPropertyName("currentSourceURL")] public CefSharp.DevTools.DOMSnapshot.RareStringData CurrentSourceURL { get; @@ -8288,7 +8024,7 @@ public CefSharp.DevTools.DOMSnapshot.RareStringData CurrentSourceURL /// /// The url of the script (if any) that generates this node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("originURL")] + [JsonPropertyName("originURL")] public CefSharp.DevTools.DOMSnapshot.RareStringData OriginURL { get; @@ -8304,7 +8040,7 @@ public partial class LayoutTreeSnapshot : CefSharp.DevTools.DevToolsDomainEntity /// /// Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIndex")] + [JsonPropertyName("nodeIndex")] public int[] NodeIndex { get; @@ -8314,7 +8050,7 @@ public int[] NodeIndex /// /// Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styles")] + [JsonPropertyName("styles")] public int[] Styles { get; @@ -8324,7 +8060,7 @@ public int[] Styles /// /// The absolute position bounding box. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + [JsonPropertyName("bounds")] public double[] Bounds { get; @@ -8334,7 +8070,7 @@ public double[] Bounds /// /// Contents of the LayoutText, if any. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] public int[] Text { get; @@ -8344,7 +8080,7 @@ public int[] Text /// /// Stacking context information. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackingContexts")] + [JsonPropertyName("stackingContexts")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMSnapshot.RareBooleanData StackingContexts { @@ -8357,7 +8093,7 @@ public CefSharp.DevTools.DOMSnapshot.RareBooleanData StackingContexts /// that are painted together will have the same index. Only provided if includePaintOrder in /// captureSnapshot was true. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paintOrders")] + [JsonPropertyName("paintOrders")] public int[] PaintOrders { get; @@ -8367,7 +8103,7 @@ public int[] PaintOrders /// /// The offset rect of nodes. Only available when includeDOMRects is set to true /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetRects")] + [JsonPropertyName("offsetRects")] public double[] OffsetRects { get; @@ -8377,7 +8113,7 @@ public double[] OffsetRects /// /// The scroll rect of nodes. Only available when includeDOMRects is set to true /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollRects")] + [JsonPropertyName("scrollRects")] public double[] ScrollRects { get; @@ -8387,7 +8123,7 @@ public double[] ScrollRects /// /// The client rect of nodes. Only available when includeDOMRects is set to true /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientRects")] + [JsonPropertyName("clientRects")] public double[] ClientRects { get; @@ -8397,7 +8133,7 @@ public double[] ClientRects /// /// The list of background colors that are blended with colors of overlapping elements. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blendedBackgroundColors")] + [JsonPropertyName("blendedBackgroundColors")] public int[] BlendedBackgroundColors { get; @@ -8407,7 +8143,7 @@ public int[] BlendedBackgroundColors /// /// The list of computed text opacities. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("textColorOpacities")] + [JsonPropertyName("textColorOpacities")] public double[] TextColorOpacities { get; @@ -8424,7 +8160,7 @@ public partial class TextBoxSnapshot : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Index of the layout tree node that owns this box collection. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutIndex")] + [JsonPropertyName("layoutIndex")] public int[] LayoutIndex { get; @@ -8434,7 +8170,7 @@ public int[] LayoutIndex /// /// The absolute position bounding box. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + [JsonPropertyName("bounds")] public double[] Bounds { get; @@ -8445,7 +8181,7 @@ public double[] Bounds /// The starting index in characters, for this post layout textbox substring. Characters that /// would be represented as a surrogate pair in UTF-16 have length 2. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("start")] + [JsonPropertyName("start")] public int[] Start { get; @@ -8456,7 +8192,7 @@ public int[] Start /// The number of characters in this post layout textbox substring. Characters that would be /// represented as a surrogate pair in UTF-16 have length 2. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + [JsonPropertyName("length")] public int[] Length { get; @@ -8475,7 +8211,7 @@ public partial class StorageId : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Security origin for the storage. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityOrigin")] + [JsonPropertyName("securityOrigin")] public string SecurityOrigin { get; @@ -8485,7 +8221,7 @@ public string SecurityOrigin /// /// Represents a key by which DOM Storage keys its CachedStorageAreas /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonPropertyName("storageKey")] public string StorageKey { get; @@ -8495,7 +8231,7 @@ public string StorageKey /// /// Whether the storage is local storage (not session storage). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isLocalStorage")] + [JsonPropertyName("isLocalStorage")] public bool IsLocalStorage { get; @@ -8511,8 +8247,8 @@ public class DomStorageItemAddedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// StorageId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [JsonInclude] + [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { @@ -8523,8 +8259,8 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId /// /// Key /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonInclude] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { @@ -8535,8 +8271,8 @@ public string Key /// /// NewValue /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("newValue")] + [JsonInclude] + [JsonPropertyName("newValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NewValue { @@ -8553,8 +8289,8 @@ public class DomStorageItemRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// StorageId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [JsonInclude] + [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { @@ -8565,8 +8301,8 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId /// /// Key /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonInclude] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { @@ -8583,8 +8319,8 @@ public class DomStorageItemUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// StorageId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [JsonInclude] + [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { @@ -8595,8 +8331,8 @@ public CefSharp.DevTools.DOMStorage.StorageId StorageId /// /// Key /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonInclude] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { @@ -8607,8 +8343,8 @@ public string Key /// /// OldValue /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("oldValue")] + [JsonInclude] + [JsonPropertyName("oldValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OldValue { @@ -8619,8 +8355,8 @@ public string OldValue /// /// NewValue /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("newValue")] + [JsonInclude] + [JsonPropertyName("newValue")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NewValue { @@ -8637,8 +8373,8 @@ public class DomStorageItemsClearedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// StorageId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageId")] + [JsonInclude] + [JsonPropertyName("storageId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOMStorage.StorageId StorageId { @@ -8658,7 +8394,7 @@ public partial class Database : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Database ID. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -8669,7 +8405,7 @@ public string Id /// /// Database domain. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + [JsonPropertyName("domain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Domain { @@ -8680,7 +8416,7 @@ public string Domain /// /// Database name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -8691,7 +8427,7 @@ public string Name /// /// Database version. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] + [JsonPropertyName("version")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Version { @@ -8708,7 +8444,7 @@ public partial class Error : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Error message. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { @@ -8719,7 +8455,7 @@ public string Message /// /// Error code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("code")] + [JsonPropertyName("code")] public int Code { get; @@ -8735,8 +8471,8 @@ public class AddDatabaseEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBas /// /// Database /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("database")] + [JsonInclude] + [JsonPropertyName("database")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Database.Database Database { @@ -8756,22 +8492,22 @@ public enum ScreenOrientationType /// /// portraitPrimary /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("portraitPrimary")] + [JsonPropertyName("portraitPrimary")] PortraitPrimary, /// /// portraitSecondary /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("portraitSecondary")] + [JsonPropertyName("portraitSecondary")] PortraitSecondary, /// /// landscapePrimary /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("landscapePrimary")] + [JsonPropertyName("landscapePrimary")] LandscapePrimary, /// /// landscapeSecondary /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("landscapeSecondary")] + [JsonPropertyName("landscapeSecondary")] LandscapeSecondary } @@ -8783,7 +8519,7 @@ public partial class ScreenOrientation : CefSharp.DevTools.DevToolsDomainEntityB /// /// Orientation type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Emulation.ScreenOrientationType Type { get; @@ -8793,7 +8529,7 @@ public CefSharp.DevTools.Emulation.ScreenOrientationType Type /// /// Orientation angle. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("angle")] + [JsonPropertyName("angle")] public int Angle { get; @@ -8809,12 +8545,12 @@ public enum DisplayFeatureOrientation /// /// vertical /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("vertical")] + [JsonPropertyName("vertical")] Vertical, /// /// horizontal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("horizontal")] + [JsonPropertyName("horizontal")] Horizontal } @@ -8826,7 +8562,7 @@ public partial class DisplayFeature : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Orientation of a display feature in relation to screen /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("orientation")] + [JsonPropertyName("orientation")] public CefSharp.DevTools.Emulation.DisplayFeatureOrientation Orientation { get; @@ -8837,7 +8573,7 @@ public CefSharp.DevTools.Emulation.DisplayFeatureOrientation Orientation /// The offset from the screen origin in either the x (for vertical /// orientation) or y (for horizontal orientation) direction. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offset")] + [JsonPropertyName("offset")] public int Offset { get; @@ -8849,7 +8585,7 @@ public int Offset /// displayed - this length along with the offset describes this area. /// A display feature that only splits content will have a 0 mask_length. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maskLength")] + [JsonPropertyName("maskLength")] public int MaskLength { get; @@ -8865,7 +8601,7 @@ public partial class MediaFeature : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -8876,7 +8612,7 @@ public string Name /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -8896,17 +8632,17 @@ public enum VirtualTimePolicy /// /// advance /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("advance")] + [JsonPropertyName("advance")] Advance, /// /// pause /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pause")] + [JsonPropertyName("pause")] Pause, /// /// pauseIfNetworkFetchesPending /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pauseIfNetworkFetchesPending")] + [JsonPropertyName("pauseIfNetworkFetchesPending")] PauseIfNetworkFetchesPending } @@ -8918,7 +8654,7 @@ public partial class UserAgentBrandVersion : CefSharp.DevTools.DevToolsDomainEnt /// /// Brand /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("brand")] + [JsonPropertyName("brand")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Brand { @@ -8929,7 +8665,7 @@ public string Brand /// /// Version /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] + [JsonPropertyName("version")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Version { @@ -8947,7 +8683,7 @@ public partial class UserAgentMetadata : CefSharp.DevTools.DevToolsDomainEntityB /// /// Brands appearing in Sec-CH-UA. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("brands")] + [JsonPropertyName("brands")] public System.Collections.Generic.IList Brands { get; @@ -8957,7 +8693,7 @@ public System.Collections.Generic.IList /// Brands appearing in Sec-CH-UA-Full-Version-List. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullVersionList")] + [JsonPropertyName("fullVersionList")] public System.Collections.Generic.IList FullVersionList { get; @@ -8967,7 +8703,7 @@ public System.Collections.Generic.IList /// FullVersion /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullVersion")] + [JsonPropertyName("fullVersion")] public string FullVersion { get; @@ -8977,7 +8713,7 @@ public string FullVersion /// /// Platform /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("platform")] + [JsonPropertyName("platform")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Platform { @@ -8988,7 +8724,7 @@ public string Platform /// /// PlatformVersion /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("platformVersion")] + [JsonPropertyName("platformVersion")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlatformVersion { @@ -8999,7 +8735,7 @@ public string PlatformVersion /// /// Architecture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("architecture")] + [JsonPropertyName("architecture")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Architecture { @@ -9010,7 +8746,7 @@ public string Architecture /// /// Model /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("model")] + [JsonPropertyName("model")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Model { @@ -9021,7 +8757,7 @@ public string Model /// /// Mobile /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mobile")] + [JsonPropertyName("mobile")] public bool Mobile { get; @@ -9031,7 +8767,7 @@ public bool Mobile /// /// Bitness /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bitness")] + [JsonPropertyName("bitness")] public string Bitness { get; @@ -9041,7 +8777,7 @@ public string Bitness /// /// Wow64 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wow64")] + [JsonPropertyName("wow64")] public bool? Wow64 { get; @@ -9057,12 +8793,12 @@ public enum DisabledImageType /// /// avif /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("avif")] + [JsonPropertyName("avif")] Avif, /// /// webp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] + [JsonPropertyName("webp")] Webp } } @@ -9077,17 +8813,17 @@ public enum ScreenshotParamsFormat /// /// jpeg /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jpeg")] + [JsonPropertyName("jpeg")] Jpeg, /// /// png /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("png")] + [JsonPropertyName("png")] Png, /// /// webp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] + [JsonPropertyName("webp")] Webp } @@ -9099,7 +8835,7 @@ public partial class ScreenshotParams : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Image compression format (defaults to png). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("format")] + [JsonPropertyName("format")] public CefSharp.DevTools.HeadlessExperimental.ScreenshotParamsFormat? Format { get; @@ -9109,7 +8845,7 @@ public CefSharp.DevTools.HeadlessExperimental.ScreenshotParamsFormat? Format /// /// Compression quality from range [0..100] (jpeg only). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("quality")] + [JsonPropertyName("quality")] public int? Quality { get; @@ -9119,7 +8855,7 @@ public int? Quality /// /// Optimize image encoding for speed, not for resulting size (defaults to false) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("optimizeForSpeed")] + [JsonPropertyName("optimizeForSpeed")] public bool? OptimizeForSpeed { get; @@ -9138,7 +8874,7 @@ public partial class DatabaseWithObjectStores : CefSharp.DevTools.DevToolsDomain /// /// Database name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -9150,7 +8886,7 @@ public string Name /// Database version (type is not 'integer', as the standard /// requires the version number to be 'unsigned long long') /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("version")] + [JsonPropertyName("version")] public double Version { get; @@ -9160,7 +8896,7 @@ public double Version /// /// Object stores in this database. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectStores")] + [JsonPropertyName("objectStores")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ObjectStores { @@ -9177,7 +8913,7 @@ public partial class ObjectStore : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Object store name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -9188,7 +8924,7 @@ public string Name /// /// Object store key path. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyPath")] + [JsonPropertyName("keyPath")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.IndexedDB.KeyPath KeyPath { @@ -9199,7 +8935,7 @@ public CefSharp.DevTools.IndexedDB.KeyPath KeyPath /// /// If true, object store has auto increment flag set. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoIncrement")] + [JsonPropertyName("autoIncrement")] public bool AutoIncrement { get; @@ -9209,7 +8945,7 @@ public bool AutoIncrement /// /// Indexes in this object store. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("indexes")] + [JsonPropertyName("indexes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Indexes { @@ -9226,7 +8962,7 @@ public partial class ObjectStoreIndex : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Index name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -9237,7 +8973,7 @@ public string Name /// /// Index key path. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyPath")] + [JsonPropertyName("keyPath")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.IndexedDB.KeyPath KeyPath { @@ -9248,7 +8984,7 @@ public CefSharp.DevTools.IndexedDB.KeyPath KeyPath /// /// If true, index is unique. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unique")] + [JsonPropertyName("unique")] public bool Unique { get; @@ -9258,7 +8994,7 @@ public bool Unique /// /// If true, index allows multiple entries for a key. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("multiEntry")] + [JsonPropertyName("multiEntry")] public bool MultiEntry { get; @@ -9274,22 +9010,22 @@ public enum KeyType /// /// number /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + [JsonPropertyName("number")] Number, /// /// string /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] String, /// /// date /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + [JsonPropertyName("date")] Date, /// /// array /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] Array } @@ -9301,7 +9037,7 @@ public partial class Key : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Key type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.IndexedDB.KeyType Type { get; @@ -9311,7 +9047,7 @@ public CefSharp.DevTools.IndexedDB.KeyType Type /// /// Number value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + [JsonPropertyName("number")] public double? Number { get; @@ -9321,7 +9057,7 @@ public double? Number /// /// String value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] public string String { get; @@ -9331,7 +9067,7 @@ public string String /// /// Date value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + [JsonPropertyName("date")] public double? Date { get; @@ -9341,7 +9077,7 @@ public double? Date /// /// Array value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] public System.Collections.Generic.IList Array { get; @@ -9357,7 +9093,7 @@ public partial class KeyRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Lower bound. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lower")] + [JsonPropertyName("lower")] public CefSharp.DevTools.IndexedDB.Key Lower { get; @@ -9367,7 +9103,7 @@ public CefSharp.DevTools.IndexedDB.Key Lower /// /// Upper bound. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("upper")] + [JsonPropertyName("upper")] public CefSharp.DevTools.IndexedDB.Key Upper { get; @@ -9377,7 +9113,7 @@ public CefSharp.DevTools.IndexedDB.Key Upper /// /// If true lower bound is open. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lowerOpen")] + [JsonPropertyName("lowerOpen")] public bool LowerOpen { get; @@ -9387,7 +9123,7 @@ public bool LowerOpen /// /// If true upper bound is open. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("upperOpen")] + [JsonPropertyName("upperOpen")] public bool UpperOpen { get; @@ -9403,7 +9139,7 @@ public partial class DataEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Key object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Key { @@ -9414,7 +9150,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Key /// /// Primary key object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("primaryKey")] + [JsonPropertyName("primaryKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject PrimaryKey { @@ -9425,7 +9161,7 @@ public CefSharp.DevTools.Runtime.RemoteObject PrimaryKey /// /// Value object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Value { @@ -9442,17 +9178,17 @@ public enum KeyPathType /// /// null /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("null")] + [JsonPropertyName("null")] Null, /// /// string /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] String, /// /// array /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] Array } @@ -9464,7 +9200,7 @@ public partial class KeyPath : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Key path type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.IndexedDB.KeyPathType Type { get; @@ -9474,7 +9210,7 @@ public CefSharp.DevTools.IndexedDB.KeyPathType Type /// /// String value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] public string String { get; @@ -9484,7 +9220,7 @@ public string String /// /// Array value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] public string[] Array { get; @@ -9503,7 +9239,7 @@ public partial class TouchPoint : CefSharp.DevTools.DevToolsDomainEntityBase /// /// X coordinate of the event relative to the main frame's viewport in CSS pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + [JsonPropertyName("x")] public double X { get; @@ -9514,7 +9250,7 @@ public double X /// Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to /// the top of the viewport and Y increases as it proceeds towards the bottom of the viewport. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + [JsonPropertyName("y")] public double Y { get; @@ -9524,7 +9260,7 @@ public double Y /// /// X radius of the touch area (default: 1.0). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("radiusX")] + [JsonPropertyName("radiusX")] public double? RadiusX { get; @@ -9534,7 +9270,7 @@ public double? RadiusX /// /// Y radius of the touch area (default: 1.0). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("radiusY")] + [JsonPropertyName("radiusY")] public double? RadiusY { get; @@ -9544,7 +9280,7 @@ public double? RadiusY /// /// Rotation angle (default: 0.0). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rotationAngle")] + [JsonPropertyName("rotationAngle")] public double? RotationAngle { get; @@ -9554,7 +9290,7 @@ public double? RotationAngle /// /// Force (default: 1.0). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("force")] + [JsonPropertyName("force")] public double? Force { get; @@ -9564,7 +9300,7 @@ public double? Force /// /// The normalized tangential pressure, which has a range of [-1,1] (default: 0). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tangentialPressure")] + [JsonPropertyName("tangentialPressure")] public double? TangentialPressure { get; @@ -9574,7 +9310,7 @@ public double? TangentialPressure /// /// The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tiltX")] + [JsonPropertyName("tiltX")] public int? TiltX { get; @@ -9584,7 +9320,7 @@ public int? TiltX /// /// The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tiltY")] + [JsonPropertyName("tiltY")] public int? TiltY { get; @@ -9594,7 +9330,7 @@ public int? TiltY /// /// The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("twist")] + [JsonPropertyName("twist")] public int? Twist { get; @@ -9604,7 +9340,7 @@ public int? Twist /// /// Identifier used to track touch sources between events, must be unique within an event. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] public double? Id { get; @@ -9620,17 +9356,17 @@ public enum GestureSourceType /// /// default /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("default")] + [JsonPropertyName("default")] Default, /// /// touch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("touch")] + [JsonPropertyName("touch")] Touch, /// /// mouse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouse")] + [JsonPropertyName("mouse")] Mouse } @@ -9642,32 +9378,32 @@ public enum MouseButton /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None, /// /// left /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("left")] + [JsonPropertyName("left")] Left, /// /// middle /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("middle")] + [JsonPropertyName("middle")] Middle, /// /// right /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("right")] + [JsonPropertyName("right")] Right, /// /// back /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("back")] + [JsonPropertyName("back")] Back, /// /// forward /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("forward")] + [JsonPropertyName("forward")] Forward } @@ -9679,7 +9415,7 @@ public partial class DragDataItem : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Mime type of the dragged data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")] + [JsonPropertyName("mimeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MimeType { @@ -9691,7 +9427,7 @@ public string MimeType /// Depending of the value of `mimeType`, it contains the dragged link, /// text, HTML markup or any other data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Data { @@ -9702,7 +9438,7 @@ public string Data /// /// Title associated with a link. Only valid when `mimeType` == "text/uri-list". /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonPropertyName("title")] public string Title { get; @@ -9713,7 +9449,7 @@ public string Title /// Stores the base URL for the contained markup. Only valid when `mimeType` /// == "text/html". /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseURL")] + [JsonPropertyName("baseURL")] public string BaseURL { get; @@ -9729,7 +9465,7 @@ public partial class DragData : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Items /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("items")] + [JsonPropertyName("items")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Items { @@ -9740,7 +9476,7 @@ public System.Collections.Generic.IList It /// /// List of filenames that should be included when dropping /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("files")] + [JsonPropertyName("files")] public string[] Files { get; @@ -9750,7 +9486,7 @@ public string[] Files /// /// Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dragOperationsMask")] + [JsonPropertyName("dragOperationsMask")] public int DragOperationsMask { get; @@ -9767,8 +9503,8 @@ public class DragInterceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Data /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Input.DragData Data { @@ -9788,8 +9524,8 @@ public class DetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// The reason why connection has been terminated. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonInclude] + [JsonPropertyName("reason")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Reason { @@ -9809,17 +9545,17 @@ public enum ScrollRectType /// /// RepaintsOnScroll /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RepaintsOnScroll")] + [JsonPropertyName("RepaintsOnScroll")] RepaintsOnScroll, /// /// TouchEventHandler /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TouchEventHandler")] + [JsonPropertyName("TouchEventHandler")] TouchEventHandler, /// /// WheelEventHandler /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WheelEventHandler")] + [JsonPropertyName("WheelEventHandler")] WheelEventHandler } @@ -9831,7 +9567,7 @@ public partial class ScrollRect : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Rectangle itself. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rect")] + [JsonPropertyName("rect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect Rect { @@ -9842,7 +9578,7 @@ public CefSharp.DevTools.DOM.Rect Rect /// /// Reason for rectangle to force scrolling on the main thread /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.LayerTree.ScrollRectType Type { get; @@ -9858,7 +9594,7 @@ public partial class StickyPositionConstraint : CefSharp.DevTools.DevToolsDomain /// /// Layout rectangle of the sticky element before being shifted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stickyBoxRect")] + [JsonPropertyName("stickyBoxRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect StickyBoxRect { @@ -9869,7 +9605,7 @@ public CefSharp.DevTools.DOM.Rect StickyBoxRect /// /// Layout rectangle of the containing block of the sticky element /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containingBlockRect")] + [JsonPropertyName("containingBlockRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect ContainingBlockRect { @@ -9880,7 +9616,7 @@ public CefSharp.DevTools.DOM.Rect ContainingBlockRect /// /// The nearest sticky layer that shifts the sticky box /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nearestLayerShiftingStickyBox")] + [JsonPropertyName("nearestLayerShiftingStickyBox")] public string NearestLayerShiftingStickyBox { get; @@ -9890,7 +9626,7 @@ public string NearestLayerShiftingStickyBox /// /// The nearest sticky layer that shifts the containing block /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nearestLayerShiftingContainingBlock")] + [JsonPropertyName("nearestLayerShiftingContainingBlock")] public string NearestLayerShiftingContainingBlock { get; @@ -9906,7 +9642,7 @@ public partial class PictureTile : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Offset from owning layer left boundary /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + [JsonPropertyName("x")] public double X { get; @@ -9916,7 +9652,7 @@ public double X /// /// Offset from owning layer top boundary /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + [JsonPropertyName("y")] public double Y { get; @@ -9926,7 +9662,7 @@ public double Y /// /// Base64-encoded snapshot data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("picture")] + [JsonPropertyName("picture")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Picture { @@ -9943,7 +9679,7 @@ public partial class Layer : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The unique id for this layer. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layerId")] + [JsonPropertyName("layerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LayerId { @@ -9954,7 +9690,7 @@ public string LayerId /// /// The id of parent (not present for root). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentLayerId")] + [JsonPropertyName("parentLayerId")] public string ParentLayerId { get; @@ -9964,7 +9700,7 @@ public string ParentLayerId /// /// The backend id for the node associated with this layer. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; @@ -9974,7 +9710,7 @@ public int? BackendNodeId /// /// Offset from parent layer, X coordinate. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetX")] + [JsonPropertyName("offsetX")] public double OffsetX { get; @@ -9984,7 +9720,7 @@ public double OffsetX /// /// Offset from parent layer, Y coordinate. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetY")] + [JsonPropertyName("offsetY")] public double OffsetY { get; @@ -9994,7 +9730,7 @@ public double OffsetY /// /// Layer width. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + [JsonPropertyName("width")] public double Width { get; @@ -10004,7 +9740,7 @@ public double Width /// /// Layer height. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + [JsonPropertyName("height")] public double Height { get; @@ -10014,7 +9750,7 @@ public double Height /// /// Transformation matrix for layer, default is identity matrix /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transform")] + [JsonPropertyName("transform")] public double[] Transform { get; @@ -10024,7 +9760,7 @@ public double[] Transform /// /// Transform anchor point X, absent if no transform specified /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorX")] + [JsonPropertyName("anchorX")] public double? AnchorX { get; @@ -10034,7 +9770,7 @@ public double? AnchorX /// /// Transform anchor point Y, absent if no transform specified /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorY")] + [JsonPropertyName("anchorY")] public double? AnchorY { get; @@ -10044,7 +9780,7 @@ public double? AnchorY /// /// Transform anchor point Z, absent if no transform specified /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorZ")] + [JsonPropertyName("anchorZ")] public double? AnchorZ { get; @@ -10054,7 +9790,7 @@ public double? AnchorZ /// /// Indicates how many time this layer has painted. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paintCount")] + [JsonPropertyName("paintCount")] public int PaintCount { get; @@ -10065,7 +9801,7 @@ public int PaintCount /// Indicates whether this layer hosts any content, rather than being used for /// transform/scrolling purposes only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("drawsContent")] + [JsonPropertyName("drawsContent")] public bool DrawsContent { get; @@ -10075,7 +9811,7 @@ public bool DrawsContent /// /// Set if layer is not visible. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("invisible")] + [JsonPropertyName("invisible")] public bool? Invisible { get; @@ -10085,7 +9821,7 @@ public bool? Invisible /// /// Rectangles scrolling on main thread only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollRects")] + [JsonPropertyName("scrollRects")] public System.Collections.Generic.IList ScrollRects { get; @@ -10095,7 +9831,7 @@ public System.Collections.Generic.IList /// /// Sticky position constraint information /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stickyPositionConstraint")] + [JsonPropertyName("stickyPositionConstraint")] public CefSharp.DevTools.LayerTree.StickyPositionConstraint StickyPositionConstraint { get; @@ -10111,8 +9847,8 @@ public class LayerPaintedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// The id of the painted layer. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layerId")] + [JsonInclude] + [JsonPropertyName("layerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LayerId { @@ -10123,8 +9859,8 @@ public string LayerId /// /// Clip rectangle. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clip")] + [JsonInclude] + [JsonPropertyName("clip")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect Clip { @@ -10141,8 +9877,8 @@ public class LayerTreeDidChangeEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Layer tree, absent if not in the comspositing mode. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layers")] + [JsonInclude] + [JsonPropertyName("layers")] public System.Collections.Generic.IList Layers { get; @@ -10161,67 +9897,67 @@ public enum LogEntrySource /// /// xml /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("xml")] + [JsonPropertyName("xml")] Xml, /// /// javascript /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("javascript")] + [JsonPropertyName("javascript")] Javascript, /// /// network /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("network")] + [JsonPropertyName("network")] Network, /// /// storage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storage")] + [JsonPropertyName("storage")] Storage, /// /// appcache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("appcache")] + [JsonPropertyName("appcache")] Appcache, /// /// rendering /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rendering")] + [JsonPropertyName("rendering")] Rendering, /// /// security /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("security")] + [JsonPropertyName("security")] Security, /// /// deprecation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deprecation")] + [JsonPropertyName("deprecation")] Deprecation, /// /// worker /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("worker")] + [JsonPropertyName("worker")] Worker, /// /// violation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("violation")] + [JsonPropertyName("violation")] Violation, /// /// intervention /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("intervention")] + [JsonPropertyName("intervention")] Intervention, /// /// recommendation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recommendation")] + [JsonPropertyName("recommendation")] Recommendation, /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other } @@ -10233,22 +9969,22 @@ public enum LogEntryLevel /// /// verbose /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("verbose")] + [JsonPropertyName("verbose")] Verbose, /// /// info /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("info")] + [JsonPropertyName("info")] Info, /// /// warning /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("warning")] + [JsonPropertyName("warning")] Warning, /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error } @@ -10260,7 +9996,7 @@ public enum LogEntryCategory /// /// cors /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cors")] + [JsonPropertyName("cors")] Cors } @@ -10272,7 +10008,7 @@ public partial class LogEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Log entry source. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + [JsonPropertyName("source")] public CefSharp.DevTools.Log.LogEntrySource Source { get; @@ -10282,7 +10018,7 @@ public CefSharp.DevTools.Log.LogEntrySource Source /// /// Log entry severity. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("level")] + [JsonPropertyName("level")] public CefSharp.DevTools.Log.LogEntryLevel Level { get; @@ -10292,7 +10028,7 @@ public CefSharp.DevTools.Log.LogEntryLevel Level /// /// Logged text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -10303,7 +10039,7 @@ public string Text /// /// Category /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("category")] + [JsonPropertyName("category")] public CefSharp.DevTools.Log.LogEntryCategory? Category { get; @@ -10313,7 +10049,7 @@ public CefSharp.DevTools.Log.LogEntryCategory? Category /// /// Timestamp when this entry was added. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -10323,7 +10059,7 @@ public double Timestamp /// /// URL of the resource if known. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] public string Url { get; @@ -10333,7 +10069,7 @@ public string Url /// /// Line number in the resource. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int? LineNumber { get; @@ -10343,7 +10079,7 @@ public int? LineNumber /// /// JavaScript stack trace. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -10353,7 +10089,7 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// Identifier of the network request associated with this entry. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("networkRequestId")] + [JsonPropertyName("networkRequestId")] public string NetworkRequestId { get; @@ -10363,7 +10099,7 @@ public string NetworkRequestId /// /// Identifier of the worker associated with this entry. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerId")] + [JsonPropertyName("workerId")] public string WorkerId { get; @@ -10373,7 +10109,7 @@ public string WorkerId /// /// Call arguments. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("args")] + [JsonPropertyName("args")] public System.Collections.Generic.IList Args { get; @@ -10389,37 +10125,37 @@ public enum ViolationSettingName /// /// longTask /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("longTask")] + [JsonPropertyName("longTask")] LongTask, /// /// longLayout /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("longLayout")] + [JsonPropertyName("longLayout")] LongLayout, /// /// blockedEvent /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedEvent")] + [JsonPropertyName("blockedEvent")] BlockedEvent, /// /// blockedParser /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedParser")] + [JsonPropertyName("blockedParser")] BlockedParser, /// /// discouragedAPIUse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("discouragedAPIUse")] + [JsonPropertyName("discouragedAPIUse")] DiscouragedAPIUse, /// /// handler /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("handler")] + [JsonPropertyName("handler")] Handler, /// /// recurringHandler /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recurringHandler")] + [JsonPropertyName("recurringHandler")] RecurringHandler } @@ -10431,7 +10167,7 @@ public partial class ViolationSetting : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Violation type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public CefSharp.DevTools.Log.ViolationSettingName Name { get; @@ -10441,7 +10177,7 @@ public CefSharp.DevTools.Log.ViolationSettingName Name /// /// Time threshold to trigger upon. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("threshold")] + [JsonPropertyName("threshold")] public double Threshold { get; @@ -10457,8 +10193,8 @@ public class EntryAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// The entry. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("entry")] + [JsonInclude] + [JsonPropertyName("entry")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Log.LogEntry Entry { @@ -10478,12 +10214,12 @@ public enum PressureLevel /// /// moderate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("moderate")] + [JsonPropertyName("moderate")] Moderate, /// /// critical /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("critical")] + [JsonPropertyName("critical")] Critical } @@ -10495,7 +10231,7 @@ public partial class SamplingProfileNode : CefSharp.DevTools.DevToolsDomainEntit /// /// Size of the sampled allocation. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + [JsonPropertyName("size")] public double Size { get; @@ -10505,7 +10241,7 @@ public double Size /// /// Total bytes attributed to this sample. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("total")] + [JsonPropertyName("total")] public double Total { get; @@ -10515,7 +10251,7 @@ public double Total /// /// Execution stack at the point of allocation. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stack")] + [JsonPropertyName("stack")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Stack { @@ -10532,7 +10268,7 @@ public partial class SamplingProfile : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Samples /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("samples")] + [JsonPropertyName("samples")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Samples { @@ -10543,7 +10279,7 @@ public System.Collections.Generic.IList /// Modules /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("modules")] + [JsonPropertyName("modules")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Modules { @@ -10560,7 +10296,7 @@ public partial class Module : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name of the module. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -10571,7 +10307,7 @@ public string Name /// /// UUID of the module. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("uuid")] + [JsonPropertyName("uuid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Uuid { @@ -10583,7 +10319,7 @@ public string Uuid /// Base address where the module is loaded into memory. Encoded as a decimal /// or hexadecimal (0x prefixed) string. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseAddress")] + [JsonPropertyName("baseAddress")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BaseAddress { @@ -10594,7 +10330,7 @@ public string BaseAddress /// /// Size of the module in bytes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + [JsonPropertyName("size")] public double Size { get; @@ -10613,92 +10349,92 @@ public enum ResourceType /// /// Document /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Document")] + [JsonPropertyName("Document")] Document, /// /// Stylesheet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Stylesheet")] + [JsonPropertyName("Stylesheet")] Stylesheet, /// /// Image /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Image")] + [JsonPropertyName("Image")] Image, /// /// Media /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Media")] + [JsonPropertyName("Media")] Media, /// /// Font /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Font")] + [JsonPropertyName("Font")] Font, /// /// Script /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Script")] + [JsonPropertyName("Script")] Script, /// /// TextTrack /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TextTrack")] + [JsonPropertyName("TextTrack")] TextTrack, /// /// XHR /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("XHR")] + [JsonPropertyName("XHR")] XHR, /// /// Fetch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Fetch")] + [JsonPropertyName("Fetch")] Fetch, /// /// Prefetch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Prefetch")] + [JsonPropertyName("Prefetch")] Prefetch, /// /// EventSource /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventSource")] + [JsonPropertyName("EventSource")] EventSource, /// /// WebSocket /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebSocket")] + [JsonPropertyName("WebSocket")] WebSocket, /// /// Manifest /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Manifest")] + [JsonPropertyName("Manifest")] Manifest, /// /// SignedExchange /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SignedExchange")] + [JsonPropertyName("SignedExchange")] SignedExchange, /// /// Ping /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Ping")] + [JsonPropertyName("Ping")] Ping, /// /// CSPViolationReport /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSPViolationReport")] + [JsonPropertyName("CSPViolationReport")] CSPViolationReport, /// /// Preflight /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Preflight")] + [JsonPropertyName("Preflight")] Preflight, /// /// Other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Other")] + [JsonPropertyName("Other")] Other } @@ -10710,72 +10446,72 @@ public enum ErrorReason /// /// Failed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Failed")] + [JsonPropertyName("Failed")] Failed, /// /// Aborted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Aborted")] + [JsonPropertyName("Aborted")] Aborted, /// /// TimedOut /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TimedOut")] + [JsonPropertyName("TimedOut")] TimedOut, /// /// AccessDenied /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AccessDenied")] + [JsonPropertyName("AccessDenied")] AccessDenied, /// /// ConnectionClosed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionClosed")] + [JsonPropertyName("ConnectionClosed")] ConnectionClosed, /// /// ConnectionReset /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionReset")] + [JsonPropertyName("ConnectionReset")] ConnectionReset, /// /// ConnectionRefused /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionRefused")] + [JsonPropertyName("ConnectionRefused")] ConnectionRefused, /// /// ConnectionAborted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionAborted")] + [JsonPropertyName("ConnectionAborted")] ConnectionAborted, /// /// ConnectionFailed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConnectionFailed")] + [JsonPropertyName("ConnectionFailed")] ConnectionFailed, /// /// NameNotResolved /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NameNotResolved")] + [JsonPropertyName("NameNotResolved")] NameNotResolved, /// /// InternetDisconnected /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InternetDisconnected")] + [JsonPropertyName("InternetDisconnected")] InternetDisconnected, /// /// AddressUnreachable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AddressUnreachable")] + [JsonPropertyName("AddressUnreachable")] AddressUnreachable, /// /// BlockedByClient /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByClient")] + [JsonPropertyName("BlockedByClient")] BlockedByClient, /// /// BlockedByResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByResponse")] + [JsonPropertyName("BlockedByResponse")] BlockedByResponse } @@ -10787,47 +10523,47 @@ public enum ConnectionType /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None, /// /// cellular2g /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellular2g")] + [JsonPropertyName("cellular2g")] Cellular2g, /// /// cellular3g /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellular3g")] + [JsonPropertyName("cellular3g")] Cellular3g, /// /// cellular4g /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellular4g")] + [JsonPropertyName("cellular4g")] Cellular4g, /// /// bluetooth /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bluetooth")] + [JsonPropertyName("bluetooth")] Bluetooth, /// /// ethernet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ethernet")] + [JsonPropertyName("ethernet")] Ethernet, /// /// wifi /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wifi")] + [JsonPropertyName("wifi")] Wifi, /// /// wimax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wimax")] + [JsonPropertyName("wimax")] Wimax, /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other } @@ -10840,17 +10576,17 @@ public enum CookieSameSite /// /// Strict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Strict")] + [JsonPropertyName("Strict")] Strict, /// /// Lax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Lax")] + [JsonPropertyName("Lax")] Lax, /// /// None /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("None")] + [JsonPropertyName("None")] None } @@ -10863,17 +10599,17 @@ public enum CookiePriority /// /// Low /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Low")] + [JsonPropertyName("Low")] Low, /// /// Medium /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Medium")] + [JsonPropertyName("Medium")] Medium, /// /// High /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("High")] + [JsonPropertyName("High")] High } @@ -10887,17 +10623,17 @@ public enum CookieSourceScheme /// /// Unset /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unset")] + [JsonPropertyName("Unset")] Unset, /// /// NonSecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NonSecure")] + [JsonPropertyName("NonSecure")] NonSecure, /// /// Secure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Secure")] + [JsonPropertyName("Secure")] Secure } @@ -10910,7 +10646,7 @@ public partial class ResourceTiming : CefSharp.DevTools.DevToolsDomainEntityBase /// Timing's requestTime is a baseline in seconds, while the other numbers are ticks in /// milliseconds relatively to this requestTime. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestTime")] + [JsonPropertyName("requestTime")] public double RequestTime { get; @@ -10920,7 +10656,7 @@ public double RequestTime /// /// Started resolving proxy. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxyStart")] + [JsonPropertyName("proxyStart")] public double ProxyStart { get; @@ -10930,7 +10666,7 @@ public double ProxyStart /// /// Finished resolving proxy. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxyEnd")] + [JsonPropertyName("proxyEnd")] public double ProxyEnd { get; @@ -10940,7 +10676,7 @@ public double ProxyEnd /// /// Started DNS address resolve. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsStart")] + [JsonPropertyName("dnsStart")] public double DnsStart { get; @@ -10950,7 +10686,7 @@ public double DnsStart /// /// Finished DNS address resolve. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsEnd")] + [JsonPropertyName("dnsEnd")] public double DnsEnd { get; @@ -10960,7 +10696,7 @@ public double DnsEnd /// /// Started connecting to the remote host. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectStart")] + [JsonPropertyName("connectStart")] public double ConnectStart { get; @@ -10970,7 +10706,7 @@ public double ConnectStart /// /// Connected to the remote host. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectEnd")] + [JsonPropertyName("connectEnd")] public double ConnectEnd { get; @@ -10980,7 +10716,7 @@ public double ConnectEnd /// /// Started SSL handshake. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sslStart")] + [JsonPropertyName("sslStart")] public double SslStart { get; @@ -10990,7 +10726,7 @@ public double SslStart /// /// Finished SSL handshake. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sslEnd")] + [JsonPropertyName("sslEnd")] public double SslEnd { get; @@ -11000,7 +10736,7 @@ public double SslEnd /// /// Started running ServiceWorker. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerStart")] + [JsonPropertyName("workerStart")] public double WorkerStart { get; @@ -11010,7 +10746,7 @@ public double WorkerStart /// /// Finished Starting ServiceWorker. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerReady")] + [JsonPropertyName("workerReady")] public double WorkerReady { get; @@ -11020,7 +10756,7 @@ public double WorkerReady /// /// Started fetch event. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerFetchStart")] + [JsonPropertyName("workerFetchStart")] public double WorkerFetchStart { get; @@ -11030,7 +10766,7 @@ public double WorkerFetchStart /// /// Settled fetch event respondWith promise. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workerRespondWithSettled")] + [JsonPropertyName("workerRespondWithSettled")] public double WorkerRespondWithSettled { get; @@ -11040,7 +10776,7 @@ public double WorkerRespondWithSettled /// /// Started sending request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sendStart")] + [JsonPropertyName("sendStart")] public double SendStart { get; @@ -11050,7 +10786,7 @@ public double SendStart /// /// Finished sending request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sendEnd")] + [JsonPropertyName("sendEnd")] public double SendEnd { get; @@ -11060,7 +10796,7 @@ public double SendEnd /// /// Time the server started pushing request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushStart")] + [JsonPropertyName("pushStart")] public double PushStart { get; @@ -11070,7 +10806,7 @@ public double PushStart /// /// Time the server finished pushing request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pushEnd")] + [JsonPropertyName("pushEnd")] public double PushEnd { get; @@ -11080,7 +10816,7 @@ public double PushEnd /// /// Finished receiving response headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("receiveHeadersEnd")] + [JsonPropertyName("receiveHeadersEnd")] public double ReceiveHeadersEnd { get; @@ -11096,27 +10832,27 @@ public enum ResourcePriority /// /// VeryLow /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("VeryLow")] + [JsonPropertyName("VeryLow")] VeryLow, /// /// Low /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Low")] + [JsonPropertyName("Low")] Low, /// /// Medium /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Medium")] + [JsonPropertyName("Medium")] Medium, /// /// High /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("High")] + [JsonPropertyName("High")] High, /// /// VeryHigh /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("VeryHigh")] + [JsonPropertyName("VeryHigh")] VeryHigh } @@ -11128,7 +10864,7 @@ public partial class PostDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Bytes /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bytes")] + [JsonPropertyName("bytes")] public byte[] Bytes { get; @@ -11144,42 +10880,42 @@ public enum RequestReferrerPolicy /// /// unsafe-url /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unsafe-url")] + [JsonPropertyName("unsafe-url")] UnsafeUrl, /// /// no-referrer-when-downgrade /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("no-referrer-when-downgrade")] + [JsonPropertyName("no-referrer-when-downgrade")] NoReferrerWhenDowngrade, /// /// no-referrer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("no-referrer")] + [JsonPropertyName("no-referrer")] NoReferrer, /// /// origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] Origin, /// /// origin-when-cross-origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin-when-cross-origin")] + [JsonPropertyName("origin-when-cross-origin")] OriginWhenCrossOrigin, /// /// same-origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("same-origin")] + [JsonPropertyName("same-origin")] SameOrigin, /// /// strict-origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("strict-origin")] + [JsonPropertyName("strict-origin")] StrictOrigin, /// /// strict-origin-when-cross-origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("strict-origin-when-cross-origin")] + [JsonPropertyName("strict-origin-when-cross-origin")] StrictOriginWhenCrossOrigin } @@ -11191,7 +10927,7 @@ public partial class Request : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Request URL (without fragment). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -11202,7 +10938,7 @@ public string Url /// /// Fragment of the requested URL starting with hash, if present. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlFragment")] + [JsonPropertyName("urlFragment")] public string UrlFragment { get; @@ -11212,7 +10948,7 @@ public string UrlFragment /// /// HTTP request method. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("method")] + [JsonPropertyName("method")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Method { @@ -11223,7 +10959,7 @@ public string Method /// /// HTTP request headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { @@ -11234,7 +10970,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// HTTP POST request data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("postData")] + [JsonPropertyName("postData")] public string PostData { get; @@ -11244,7 +10980,7 @@ public string PostData /// /// True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasPostData")] + [JsonPropertyName("hasPostData")] public bool? HasPostData { get; @@ -11254,7 +10990,7 @@ public bool? HasPostData /// /// Request body elements. This will be converted from base64 to binary /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("postDataEntries")] + [JsonPropertyName("postDataEntries")] public System.Collections.Generic.IList PostDataEntries { get; @@ -11264,7 +11000,7 @@ public System.Collections.Generic.IList /// /// The mixed content type of the request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixedContentType")] + [JsonPropertyName("mixedContentType")] public CefSharp.DevTools.Security.MixedContentType? MixedContentType { get; @@ -11274,7 +11010,7 @@ public CefSharp.DevTools.Security.MixedContentType? MixedContentType /// /// Priority of the resource request at the time request is sent. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initialPriority")] + [JsonPropertyName("initialPriority")] public CefSharp.DevTools.Network.ResourcePriority InitialPriority { get; @@ -11284,7 +11020,7 @@ public CefSharp.DevTools.Network.ResourcePriority InitialPriority /// /// The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/ /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("referrerPolicy")] + [JsonPropertyName("referrerPolicy")] public CefSharp.DevTools.Network.RequestReferrerPolicy ReferrerPolicy { get; @@ -11294,7 +11030,7 @@ public CefSharp.DevTools.Network.RequestReferrerPolicy ReferrerPolicy /// /// Whether is loaded via link preload. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isLinkPreload")] + [JsonPropertyName("isLinkPreload")] public bool? IsLinkPreload { get; @@ -11305,7 +11041,7 @@ public bool? IsLinkPreload /// Set for requests when the TrustToken API is used. Contains the parameters /// passed by the developer (e.g. via "fetch") as understood by the backend. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trustTokenParams")] + [JsonPropertyName("trustTokenParams")] public CefSharp.DevTools.Network.TrustTokenParams TrustTokenParams { get; @@ -11316,7 +11052,7 @@ public CefSharp.DevTools.Network.TrustTokenParams TrustTokenParams /// True if this resource request is considered to be the 'same site' as the /// request correspondinfg to the main frame. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isSameSite")] + [JsonPropertyName("isSameSite")] public bool? IsSameSite { get; @@ -11332,7 +11068,7 @@ public partial class SignedCertificateTimestamp : CefSharp.DevTools.DevToolsDoma /// /// Validation status. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonPropertyName("status")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Status { @@ -11343,7 +11079,7 @@ public string Status /// /// Origin. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -11354,7 +11090,7 @@ public string Origin /// /// Log name / description. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("logDescription")] + [JsonPropertyName("logDescription")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LogDescription { @@ -11365,7 +11101,7 @@ public string LogDescription /// /// Log ID. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("logId")] + [JsonPropertyName("logId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LogId { @@ -11377,7 +11113,7 @@ public string LogId /// Issuance date. Unlike TimeSinceEpoch, this contains the number of /// milliseconds since January 1, 1970, UTC, not the number of seconds. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -11387,7 +11123,7 @@ public double Timestamp /// /// Hash algorithm. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hashAlgorithm")] + [JsonPropertyName("hashAlgorithm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string HashAlgorithm { @@ -11398,7 +11134,7 @@ public string HashAlgorithm /// /// Signature algorithm. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureAlgorithm")] + [JsonPropertyName("signatureAlgorithm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SignatureAlgorithm { @@ -11409,7 +11145,7 @@ public string SignatureAlgorithm /// /// Signature data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureData")] + [JsonPropertyName("signatureData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SignatureData { @@ -11426,7 +11162,7 @@ public partial class SecurityDetails : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + [JsonPropertyName("protocol")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Protocol { @@ -11437,7 +11173,7 @@ public string Protocol /// /// Key Exchange used by the connection, or the empty string if not applicable. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchange")] + [JsonPropertyName("keyExchange")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string KeyExchange { @@ -11448,7 +11184,7 @@ public string KeyExchange /// /// (EC)DH group used by the connection, if applicable. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchangeGroup")] + [JsonPropertyName("keyExchangeGroup")] public string KeyExchangeGroup { get; @@ -11458,7 +11194,7 @@ public string KeyExchangeGroup /// /// Cipher name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cipher")] + [JsonPropertyName("cipher")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Cipher { @@ -11469,7 +11205,7 @@ public string Cipher /// /// TLS MAC. Note that AEAD ciphers do not have separate MACs. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mac")] + [JsonPropertyName("mac")] public string Mac { get; @@ -11479,7 +11215,7 @@ public string Mac /// /// Certificate ID value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateId")] + [JsonPropertyName("certificateId")] public int CertificateId { get; @@ -11489,7 +11225,7 @@ public int CertificateId /// /// Certificate subject name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subjectName")] + [JsonPropertyName("subjectName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SubjectName { @@ -11500,7 +11236,7 @@ public string SubjectName /// /// Subject Alternative Name (SAN) DNS names and IP addresses. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sanList")] + [JsonPropertyName("sanList")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] SanList { @@ -11511,7 +11247,7 @@ public string[] SanList /// /// Name of the issuing CA. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuer")] + [JsonPropertyName("issuer")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Issuer { @@ -11522,7 +11258,7 @@ public string Issuer /// /// Certificate valid from date. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("validFrom")] + [JsonPropertyName("validFrom")] public double ValidFrom { get; @@ -11532,7 +11268,7 @@ public double ValidFrom /// /// Certificate valid to (expiration) date /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("validTo")] + [JsonPropertyName("validTo")] public double ValidTo { get; @@ -11542,7 +11278,7 @@ public double ValidTo /// /// List of signed certificate timestamps (SCTs). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signedCertificateTimestampList")] + [JsonPropertyName("signedCertificateTimestampList")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList SignedCertificateTimestampList { @@ -11553,7 +11289,7 @@ public System.Collections.Generic.IList /// Whether the request complied with Certificate Transparency policy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateTransparencyCompliance")] + [JsonPropertyName("certificateTransparencyCompliance")] public CefSharp.DevTools.Network.CertificateTransparencyCompliance CertificateTransparencyCompliance { get; @@ -11565,7 +11301,7 @@ public CefSharp.DevTools.Network.CertificateTransparencyCompliance CertificateTr /// represented as a TLS SignatureScheme code point. Omitted if not /// applicable or not known. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("serverSignatureAlgorithm")] + [JsonPropertyName("serverSignatureAlgorithm")] public int? ServerSignatureAlgorithm { get; @@ -11575,7 +11311,7 @@ public int? ServerSignatureAlgorithm /// /// Whether the connection used Encrypted ClientHello /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("encryptedClientHello")] + [JsonPropertyName("encryptedClientHello")] public bool EncryptedClientHello { get; @@ -11591,17 +11327,17 @@ public enum CertificateTransparencyCompliance /// /// unknown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unknown")] + [JsonPropertyName("unknown")] Unknown, /// /// not-compliant /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("not-compliant")] + [JsonPropertyName("not-compliant")] NotCompliant, /// /// compliant /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("compliant")] + [JsonPropertyName("compliant")] Compliant } @@ -11613,62 +11349,62 @@ public enum BlockedReason /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other, /// /// csp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("csp")] + [JsonPropertyName("csp")] Csp, /// /// mixed-content /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixed-content")] + [JsonPropertyName("mixed-content")] MixedContent, /// /// origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] Origin, /// /// inspector /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inspector")] + [JsonPropertyName("inspector")] Inspector, /// /// subresource-filter /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subresource-filter")] + [JsonPropertyName("subresource-filter")] SubresourceFilter, /// /// content-type /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("content-type")] + [JsonPropertyName("content-type")] ContentType, /// /// coep-frame-resource-needs-coep-header /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("coep-frame-resource-needs-coep-header")] + [JsonPropertyName("coep-frame-resource-needs-coep-header")] CoepFrameResourceNeedsCoepHeader, /// /// coop-sandboxed-iframe-cannot-navigate-to-coop-page /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("coop-sandboxed-iframe-cannot-navigate-to-coop-page")] + [JsonPropertyName("coop-sandboxed-iframe-cannot-navigate-to-coop-page")] CoopSandboxedIframeCannotNavigateToCoopPage, /// /// corp-not-same-origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("corp-not-same-origin")] + [JsonPropertyName("corp-not-same-origin")] CorpNotSameOrigin, /// /// corp-not-same-origin-after-defaulted-to-same-origin-by-coep /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("corp-not-same-origin-after-defaulted-to-same-origin-by-coep")] + [JsonPropertyName("corp-not-same-origin-after-defaulted-to-same-origin-by-coep")] CorpNotSameOriginAfterDefaultedToSameOriginByCoep, /// /// corp-not-same-site /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("corp-not-same-site")] + [JsonPropertyName("corp-not-same-site")] CorpNotSameSite } @@ -11680,152 +11416,152 @@ public enum CorsError /// /// DisallowedByMode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DisallowedByMode")] + [JsonPropertyName("DisallowedByMode")] DisallowedByMode, /// /// InvalidResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidResponse")] + [JsonPropertyName("InvalidResponse")] InvalidResponse, /// /// WildcardOriginNotAllowed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WildcardOriginNotAllowed")] + [JsonPropertyName("WildcardOriginNotAllowed")] WildcardOriginNotAllowed, /// /// MissingAllowOriginHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MissingAllowOriginHeader")] + [JsonPropertyName("MissingAllowOriginHeader")] MissingAllowOriginHeader, /// /// MultipleAllowOriginValues /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MultipleAllowOriginValues")] + [JsonPropertyName("MultipleAllowOriginValues")] MultipleAllowOriginValues, /// /// InvalidAllowOriginValue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAllowOriginValue")] + [JsonPropertyName("InvalidAllowOriginValue")] InvalidAllowOriginValue, /// /// AllowOriginMismatch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AllowOriginMismatch")] + [JsonPropertyName("AllowOriginMismatch")] AllowOriginMismatch, /// /// InvalidAllowCredentials /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAllowCredentials")] + [JsonPropertyName("InvalidAllowCredentials")] InvalidAllowCredentials, /// /// CorsDisabledScheme /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CorsDisabledScheme")] + [JsonPropertyName("CorsDisabledScheme")] CorsDisabledScheme, /// /// PreflightInvalidStatus /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightInvalidStatus")] + [JsonPropertyName("PreflightInvalidStatus")] PreflightInvalidStatus, /// /// PreflightDisallowedRedirect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightDisallowedRedirect")] + [JsonPropertyName("PreflightDisallowedRedirect")] PreflightDisallowedRedirect, /// /// PreflightWildcardOriginNotAllowed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightWildcardOriginNotAllowed")] + [JsonPropertyName("PreflightWildcardOriginNotAllowed")] PreflightWildcardOriginNotAllowed, /// /// PreflightMissingAllowOriginHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightMissingAllowOriginHeader")] + [JsonPropertyName("PreflightMissingAllowOriginHeader")] PreflightMissingAllowOriginHeader, /// /// PreflightMultipleAllowOriginValues /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightMultipleAllowOriginValues")] + [JsonPropertyName("PreflightMultipleAllowOriginValues")] PreflightMultipleAllowOriginValues, /// /// PreflightInvalidAllowOriginValue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightInvalidAllowOriginValue")] + [JsonPropertyName("PreflightInvalidAllowOriginValue")] PreflightInvalidAllowOriginValue, /// /// PreflightAllowOriginMismatch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightAllowOriginMismatch")] + [JsonPropertyName("PreflightAllowOriginMismatch")] PreflightAllowOriginMismatch, /// /// PreflightInvalidAllowCredentials /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightInvalidAllowCredentials")] + [JsonPropertyName("PreflightInvalidAllowCredentials")] PreflightInvalidAllowCredentials, /// /// PreflightMissingAllowExternal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightMissingAllowExternal")] + [JsonPropertyName("PreflightMissingAllowExternal")] PreflightMissingAllowExternal, /// /// PreflightInvalidAllowExternal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightInvalidAllowExternal")] + [JsonPropertyName("PreflightInvalidAllowExternal")] PreflightInvalidAllowExternal, /// /// PreflightMissingAllowPrivateNetwork /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightMissingAllowPrivateNetwork")] + [JsonPropertyName("PreflightMissingAllowPrivateNetwork")] PreflightMissingAllowPrivateNetwork, /// /// PreflightInvalidAllowPrivateNetwork /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightInvalidAllowPrivateNetwork")] + [JsonPropertyName("PreflightInvalidAllowPrivateNetwork")] PreflightInvalidAllowPrivateNetwork, /// /// InvalidAllowMethodsPreflightResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAllowMethodsPreflightResponse")] + [JsonPropertyName("InvalidAllowMethodsPreflightResponse")] InvalidAllowMethodsPreflightResponse, /// /// InvalidAllowHeadersPreflightResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidAllowHeadersPreflightResponse")] + [JsonPropertyName("InvalidAllowHeadersPreflightResponse")] InvalidAllowHeadersPreflightResponse, /// /// MethodDisallowedByPreflightResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MethodDisallowedByPreflightResponse")] + [JsonPropertyName("MethodDisallowedByPreflightResponse")] MethodDisallowedByPreflightResponse, /// /// HeaderDisallowedByPreflightResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeaderDisallowedByPreflightResponse")] + [JsonPropertyName("HeaderDisallowedByPreflightResponse")] HeaderDisallowedByPreflightResponse, /// /// RedirectContainsCredentials /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RedirectContainsCredentials")] + [JsonPropertyName("RedirectContainsCredentials")] RedirectContainsCredentials, /// /// InsecurePrivateNetwork /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecurePrivateNetwork")] + [JsonPropertyName("InsecurePrivateNetwork")] InsecurePrivateNetwork, /// /// InvalidPrivateNetworkAccess /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidPrivateNetworkAccess")] + [JsonPropertyName("InvalidPrivateNetworkAccess")] InvalidPrivateNetworkAccess, /// /// UnexpectedPrivateNetworkAccess /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnexpectedPrivateNetworkAccess")] + [JsonPropertyName("UnexpectedPrivateNetworkAccess")] UnexpectedPrivateNetworkAccess, /// /// NoCorsRedirectModeNotFollow /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoCorsRedirectModeNotFollow")] + [JsonPropertyName("NoCorsRedirectModeNotFollow")] NoCorsRedirectModeNotFollow } @@ -11837,7 +11573,7 @@ public partial class CorsErrorStatus : CefSharp.DevTools.DevToolsDomainEntityBas /// /// CorsError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("corsError")] + [JsonPropertyName("corsError")] public CefSharp.DevTools.Network.CorsError CorsError { get; @@ -11847,7 +11583,7 @@ public CefSharp.DevTools.Network.CorsError CorsError /// /// FailedParameter /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("failedParameter")] + [JsonPropertyName("failedParameter")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FailedParameter { @@ -11864,22 +11600,22 @@ public enum ServiceWorkerResponseSource /// /// cache-storage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cache-storage")] + [JsonPropertyName("cache-storage")] CacheStorage, /// /// http-cache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("http-cache")] + [JsonPropertyName("http-cache")] HttpCache, /// /// fallback-code /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fallback-code")] + [JsonPropertyName("fallback-code")] FallbackCode, /// /// network /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("network")] + [JsonPropertyName("network")] Network } @@ -11892,12 +11628,12 @@ public enum TrustTokenParamsRefreshPolicy /// /// UseCached /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UseCached")] + [JsonPropertyName("UseCached")] UseCached, /// /// Refresh /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Refresh")] + [JsonPropertyName("Refresh")] Refresh } @@ -11911,7 +11647,7 @@ public partial class TrustTokenParams : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Operation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("operation")] + [JsonPropertyName("operation")] public CefSharp.DevTools.Network.TrustTokenOperationType Operation { get; @@ -11922,7 +11658,7 @@ public CefSharp.DevTools.Network.TrustTokenOperationType Operation /// Only set for "token-redemption" operation and determine whether /// to request a fresh SRR or use a still valid cached SRR. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("refreshPolicy")] + [JsonPropertyName("refreshPolicy")] public CefSharp.DevTools.Network.TrustTokenParamsRefreshPolicy RefreshPolicy { get; @@ -11933,7 +11669,7 @@ public CefSharp.DevTools.Network.TrustTokenParamsRefreshPolicy RefreshPolicy /// Origins of issuers from whom to request tokens or redemption /// records. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuers")] + [JsonPropertyName("issuers")] public string[] Issuers { get; @@ -11949,17 +11685,17 @@ public enum TrustTokenOperationType /// /// Issuance /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Issuance")] + [JsonPropertyName("Issuance")] Issuance, /// /// Redemption /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Redemption")] + [JsonPropertyName("Redemption")] Redemption, /// /// Signing /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Signing")] + [JsonPropertyName("Signing")] Signing } @@ -11971,42 +11707,42 @@ public enum AlternateProtocolUsage /// /// alternativeJobWonWithoutRace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("alternativeJobWonWithoutRace")] + [JsonPropertyName("alternativeJobWonWithoutRace")] AlternativeJobWonWithoutRace, /// /// alternativeJobWonRace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("alternativeJobWonRace")] + [JsonPropertyName("alternativeJobWonRace")] AlternativeJobWonRace, /// /// mainJobWonRace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mainJobWonRace")] + [JsonPropertyName("mainJobWonRace")] MainJobWonRace, /// /// mappingMissing /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mappingMissing")] + [JsonPropertyName("mappingMissing")] MappingMissing, /// /// broken /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("broken")] + [JsonPropertyName("broken")] Broken, /// /// dnsAlpnH3JobWonWithoutRace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsAlpnH3JobWonWithoutRace")] + [JsonPropertyName("dnsAlpnH3JobWonWithoutRace")] DnsAlpnH3JobWonWithoutRace, /// /// dnsAlpnH3JobWonRace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dnsAlpnH3JobWonRace")] + [JsonPropertyName("dnsAlpnH3JobWonRace")] DnsAlpnH3JobWonRace, /// /// unspecifiedReason /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unspecifiedReason")] + [JsonPropertyName("unspecifiedReason")] UnspecifiedReason } @@ -12018,7 +11754,7 @@ public partial class Response : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Response URL. This URL can be different from CachedResource.url in case of redirect. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -12029,7 +11765,7 @@ public string Url /// /// HTTP response status code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonPropertyName("status")] public int Status { get; @@ -12039,7 +11775,7 @@ public int Status /// /// HTTP response status text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("statusText")] + [JsonPropertyName("statusText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StatusText { @@ -12050,7 +11786,7 @@ public string StatusText /// /// HTTP response headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { @@ -12061,7 +11797,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headersText")] + [JsonPropertyName("headersText")] public string HeadersText { get; @@ -12071,7 +11807,7 @@ public string HeadersText /// /// Resource mimeType as determined by the browser. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")] + [JsonPropertyName("mimeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MimeType { @@ -12082,7 +11818,7 @@ public string MimeType /// /// Refined HTTP request headers that were actually transmitted over the network. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeaders")] + [JsonPropertyName("requestHeaders")] public CefSharp.DevTools.Network.Headers RequestHeaders { get; @@ -12092,7 +11828,7 @@ public CefSharp.DevTools.Network.Headers RequestHeaders /// /// HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeadersText")] + [JsonPropertyName("requestHeadersText")] public string RequestHeadersText { get; @@ -12102,7 +11838,7 @@ public string RequestHeadersText /// /// Specifies whether physical connection was actually reused for this request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectionReused")] + [JsonPropertyName("connectionReused")] public bool ConnectionReused { get; @@ -12112,7 +11848,7 @@ public bool ConnectionReused /// /// Physical connection id that was actually used for this request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectionId")] + [JsonPropertyName("connectionId")] public double ConnectionId { get; @@ -12122,7 +11858,7 @@ public double ConnectionId /// /// Remote IP address. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("remoteIPAddress")] + [JsonPropertyName("remoteIPAddress")] public string RemoteIPAddress { get; @@ -12132,7 +11868,7 @@ public string RemoteIPAddress /// /// Remote port. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("remotePort")] + [JsonPropertyName("remotePort")] public int? RemotePort { get; @@ -12142,7 +11878,7 @@ public int? RemotePort /// /// Specifies that the request was served from the disk cache. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fromDiskCache")] + [JsonPropertyName("fromDiskCache")] public bool? FromDiskCache { get; @@ -12152,7 +11888,7 @@ public bool? FromDiskCache /// /// Specifies that the request was served from the ServiceWorker. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fromServiceWorker")] + [JsonPropertyName("fromServiceWorker")] public bool? FromServiceWorker { get; @@ -12162,7 +11898,7 @@ public bool? FromServiceWorker /// /// Specifies that the request was served from the prefetch cache. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fromPrefetchCache")] + [JsonPropertyName("fromPrefetchCache")] public bool? FromPrefetchCache { get; @@ -12172,7 +11908,7 @@ public bool? FromPrefetchCache /// /// Total number of bytes received for this request so far. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedDataLength")] + [JsonPropertyName("encodedDataLength")] public double EncodedDataLength { get; @@ -12182,7 +11918,7 @@ public double EncodedDataLength /// /// Timing information for the given request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timing")] + [JsonPropertyName("timing")] public CefSharp.DevTools.Network.ResourceTiming Timing { get; @@ -12192,7 +11928,7 @@ public CefSharp.DevTools.Network.ResourceTiming Timing /// /// Response source of response from ServiceWorker. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("serviceWorkerResponseSource")] + [JsonPropertyName("serviceWorkerResponseSource")] public CefSharp.DevTools.Network.ServiceWorkerResponseSource? ServiceWorkerResponseSource { get; @@ -12202,7 +11938,7 @@ public CefSharp.DevTools.Network.ServiceWorkerResponseSource? ServiceWorkerRespo /// /// The time at which the returned response was generated. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseTime")] + [JsonPropertyName("responseTime")] public double? ResponseTime { get; @@ -12212,7 +11948,7 @@ public double? ResponseTime /// /// Cache Storage Cache Name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheStorageCacheName")] + [JsonPropertyName("cacheStorageCacheName")] public string CacheStorageCacheName { get; @@ -12222,7 +11958,7 @@ public string CacheStorageCacheName /// /// Protocol used to fetch this request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + [JsonPropertyName("protocol")] public string Protocol { get; @@ -12232,7 +11968,7 @@ public string Protocol /// /// The reason why Chrome uses a specific transport protocol for HTTP semantics. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("alternateProtocolUsage")] + [JsonPropertyName("alternateProtocolUsage")] public CefSharp.DevTools.Network.AlternateProtocolUsage? AlternateProtocolUsage { get; @@ -12242,7 +11978,7 @@ public CefSharp.DevTools.Network.AlternateProtocolUsage? AlternateProtocolUsage /// /// Security state of the request resource. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; @@ -12252,7 +11988,7 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// Security details for the request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityDetails")] + [JsonPropertyName("securityDetails")] public CefSharp.DevTools.Network.SecurityDetails SecurityDetails { get; @@ -12268,7 +12004,7 @@ public partial class WebSocketRequest : CefSharp.DevTools.DevToolsDomainEntityBa /// /// HTTP request headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { @@ -12285,7 +12021,7 @@ public partial class WebSocketResponse : CefSharp.DevTools.DevToolsDomainEntityB /// /// HTTP response status code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonPropertyName("status")] public int Status { get; @@ -12295,7 +12031,7 @@ public int Status /// /// HTTP response status text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("statusText")] + [JsonPropertyName("statusText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StatusText { @@ -12306,7 +12042,7 @@ public string StatusText /// /// HTTP response headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { @@ -12317,7 +12053,7 @@ public CefSharp.DevTools.Network.Headers Headers /// /// HTTP response headers text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headersText")] + [JsonPropertyName("headersText")] public string HeadersText { get; @@ -12327,7 +12063,7 @@ public string HeadersText /// /// HTTP request headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeaders")] + [JsonPropertyName("requestHeaders")] public CefSharp.DevTools.Network.Headers RequestHeaders { get; @@ -12337,7 +12073,7 @@ public CefSharp.DevTools.Network.Headers RequestHeaders /// /// HTTP request headers text. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestHeadersText")] + [JsonPropertyName("requestHeadersText")] public string RequestHeadersText { get; @@ -12353,7 +12089,7 @@ public partial class WebSocketFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// WebSocket message opcode. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("opcode")] + [JsonPropertyName("opcode")] public double Opcode { get; @@ -12363,7 +12099,7 @@ public double Opcode /// /// WebSocket message mask. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mask")] + [JsonPropertyName("mask")] public bool Mask { get; @@ -12375,7 +12111,7 @@ public bool Mask /// If the opcode is 1, this is a text message and payloadData is a UTF-8 string. /// If the opcode isn't 1, then payloadData is a base64 encoded string representing binary data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("payloadData")] + [JsonPropertyName("payloadData")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PayloadData { @@ -12392,7 +12128,7 @@ public partial class CachedResource : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Resource URL. This is the url of the original network request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -12403,7 +12139,7 @@ public string Url /// /// Type of this resource. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; @@ -12413,7 +12149,7 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// Cached response data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonPropertyName("response")] public CefSharp.DevTools.Network.Response Response { get; @@ -12423,7 +12159,7 @@ public CefSharp.DevTools.Network.Response Response /// /// Cached response body size. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bodySize")] + [JsonPropertyName("bodySize")] public double BodySize { get; @@ -12439,32 +12175,32 @@ public enum InitiatorType /// /// parser /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parser")] + [JsonPropertyName("parser")] Parser, /// /// script /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("script")] + [JsonPropertyName("script")] Script, /// /// preload /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("preload")] + [JsonPropertyName("preload")] Preload, /// /// SignedExchange /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SignedExchange")] + [JsonPropertyName("SignedExchange")] SignedExchange, /// /// preflight /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("preflight")] + [JsonPropertyName("preflight")] Preflight, /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other } @@ -12476,7 +12212,7 @@ public partial class Initiator : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Type of this initiator. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Network.InitiatorType Type { get; @@ -12486,7 +12222,7 @@ public CefSharp.DevTools.Network.InitiatorType Type /// /// Initiator JavaScript stack trace, set for Script only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stack")] + [JsonPropertyName("stack")] public CefSharp.DevTools.Runtime.StackTrace Stack { get; @@ -12496,7 +12232,7 @@ public CefSharp.DevTools.Runtime.StackTrace Stack /// /// Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] public string Url { get; @@ -12507,7 +12243,7 @@ public string Url /// Initiator line number, set for Parser type or for Script type (when script is importing /// module) (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public double? LineNumber { get; @@ -12518,7 +12254,7 @@ public double? LineNumber /// Initiator column number, set for Parser type or for Script type (when script is importing /// module) (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public double? ColumnNumber { get; @@ -12528,7 +12264,7 @@ public double? ColumnNumber /// /// Set if another request triggered this request (e.g. preflight). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonPropertyName("requestId")] public string RequestId { get; @@ -12544,7 +12280,7 @@ public partial class Cookie : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Cookie name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -12555,7 +12291,7 @@ public string Name /// /// Cookie value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -12566,7 +12302,7 @@ public string Value /// /// Cookie domain. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + [JsonPropertyName("domain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Domain { @@ -12577,7 +12313,7 @@ public string Domain /// /// Cookie path. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + [JsonPropertyName("path")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Path { @@ -12588,7 +12324,7 @@ public string Path /// /// Cookie expiration date as the number of seconds since the UNIX epoch. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] + [JsonPropertyName("expires")] public double Expires { get; @@ -12598,7 +12334,7 @@ public double Expires /// /// Cookie size. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + [JsonPropertyName("size")] public int Size { get; @@ -12608,7 +12344,7 @@ public int Size /// /// True if cookie is http-only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpOnly")] + [JsonPropertyName("httpOnly")] public bool HttpOnly { get; @@ -12618,7 +12354,7 @@ public bool HttpOnly /// /// True if cookie is secure. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("secure")] + [JsonPropertyName("secure")] public bool Secure { get; @@ -12628,7 +12364,7 @@ public bool Secure /// /// True in case of session cookie. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("session")] + [JsonPropertyName("session")] public bool Session { get; @@ -12638,7 +12374,7 @@ public bool Session /// /// Cookie SameSite type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameSite")] + [JsonPropertyName("sameSite")] public CefSharp.DevTools.Network.CookieSameSite? SameSite { get; @@ -12648,7 +12384,7 @@ public CefSharp.DevTools.Network.CookieSameSite? SameSite /// /// Cookie Priority /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("priority")] + [JsonPropertyName("priority")] public CefSharp.DevTools.Network.CookiePriority Priority { get; @@ -12658,7 +12394,7 @@ public CefSharp.DevTools.Network.CookiePriority Priority /// /// True if cookie is SameParty. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameParty")] + [JsonPropertyName("sameParty")] public bool SameParty { get; @@ -12668,7 +12404,7 @@ public bool SameParty /// /// Cookie source scheme type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceScheme")] + [JsonPropertyName("sourceScheme")] public CefSharp.DevTools.Network.CookieSourceScheme SourceScheme { get; @@ -12680,7 +12416,7 @@ public CefSharp.DevTools.Network.CookieSourceScheme SourceScheme /// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. /// This is a temporary ability and it will be removed in the future. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourcePort")] + [JsonPropertyName("sourcePort")] public int SourcePort { get; @@ -12691,7 +12427,7 @@ public int SourcePort /// Cookie partition key. The site of the top-level URL the browser was visiting at the start /// of the request to the endpoint that set the cookie. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("partitionKey")] + [JsonPropertyName("partitionKey")] public string PartitionKey { get; @@ -12701,7 +12437,7 @@ public string PartitionKey /// /// True if cookie partition key is opaque. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("partitionKeyOpaque")] + [JsonPropertyName("partitionKeyOpaque")] public bool? PartitionKeyOpaque { get; @@ -12717,97 +12453,97 @@ public enum SetCookieBlockedReason /// /// SecureOnly /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SecureOnly")] + [JsonPropertyName("SecureOnly")] SecureOnly, /// /// SameSiteStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteStrict")] + [JsonPropertyName("SameSiteStrict")] SameSiteStrict, /// /// SameSiteLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteLax")] + [JsonPropertyName("SameSiteLax")] SameSiteLax, /// /// SameSiteUnspecifiedTreatedAsLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteUnspecifiedTreatedAsLax")] + [JsonPropertyName("SameSiteUnspecifiedTreatedAsLax")] SameSiteUnspecifiedTreatedAsLax, /// /// SameSiteNoneInsecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteNoneInsecure")] + [JsonPropertyName("SameSiteNoneInsecure")] SameSiteNoneInsecure, /// /// UserPreferences /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UserPreferences")] + [JsonPropertyName("UserPreferences")] UserPreferences, /// /// ThirdPartyBlockedInFirstPartySet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ThirdPartyBlockedInFirstPartySet")] + [JsonPropertyName("ThirdPartyBlockedInFirstPartySet")] ThirdPartyBlockedInFirstPartySet, /// /// SyntaxError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SyntaxError")] + [JsonPropertyName("SyntaxError")] SyntaxError, /// /// SchemeNotSupported /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemeNotSupported")] + [JsonPropertyName("SchemeNotSupported")] SchemeNotSupported, /// /// OverwriteSecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OverwriteSecure")] + [JsonPropertyName("OverwriteSecure")] OverwriteSecure, /// /// InvalidDomain /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidDomain")] + [JsonPropertyName("InvalidDomain")] InvalidDomain, /// /// InvalidPrefix /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidPrefix")] + [JsonPropertyName("InvalidPrefix")] InvalidPrefix, /// /// UnknownError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnknownError")] + [JsonPropertyName("UnknownError")] UnknownError, /// /// SchemefulSameSiteStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemefulSameSiteStrict")] + [JsonPropertyName("SchemefulSameSiteStrict")] SchemefulSameSiteStrict, /// /// SchemefulSameSiteLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemefulSameSiteLax")] + [JsonPropertyName("SchemefulSameSiteLax")] SchemefulSameSiteLax, /// /// SchemefulSameSiteUnspecifiedTreatedAsLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemefulSameSiteUnspecifiedTreatedAsLax")] + [JsonPropertyName("SchemefulSameSiteUnspecifiedTreatedAsLax")] SchemefulSameSiteUnspecifiedTreatedAsLax, /// /// SamePartyFromCrossPartyContext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SamePartyFromCrossPartyContext")] + [JsonPropertyName("SamePartyFromCrossPartyContext")] SamePartyFromCrossPartyContext, /// /// SamePartyConflictsWithOtherAttributes /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SamePartyConflictsWithOtherAttributes")] + [JsonPropertyName("SamePartyConflictsWithOtherAttributes")] SamePartyConflictsWithOtherAttributes, /// /// NameValuePairExceedsMaxSize /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NameValuePairExceedsMaxSize")] + [JsonPropertyName("NameValuePairExceedsMaxSize")] NameValuePairExceedsMaxSize } @@ -12819,77 +12555,77 @@ public enum CookieBlockedReason /// /// SecureOnly /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SecureOnly")] + [JsonPropertyName("SecureOnly")] SecureOnly, /// /// NotOnPath /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotOnPath")] + [JsonPropertyName("NotOnPath")] NotOnPath, /// /// DomainMismatch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DomainMismatch")] + [JsonPropertyName("DomainMismatch")] DomainMismatch, /// /// SameSiteStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteStrict")] + [JsonPropertyName("SameSiteStrict")] SameSiteStrict, /// /// SameSiteLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteLax")] + [JsonPropertyName("SameSiteLax")] SameSiteLax, /// /// SameSiteUnspecifiedTreatedAsLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteUnspecifiedTreatedAsLax")] + [JsonPropertyName("SameSiteUnspecifiedTreatedAsLax")] SameSiteUnspecifiedTreatedAsLax, /// /// SameSiteNoneInsecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteNoneInsecure")] + [JsonPropertyName("SameSiteNoneInsecure")] SameSiteNoneInsecure, /// /// UserPreferences /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UserPreferences")] + [JsonPropertyName("UserPreferences")] UserPreferences, /// /// ThirdPartyBlockedInFirstPartySet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ThirdPartyBlockedInFirstPartySet")] + [JsonPropertyName("ThirdPartyBlockedInFirstPartySet")] ThirdPartyBlockedInFirstPartySet, /// /// UnknownError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnknownError")] + [JsonPropertyName("UnknownError")] UnknownError, /// /// SchemefulSameSiteStrict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemefulSameSiteStrict")] + [JsonPropertyName("SchemefulSameSiteStrict")] SchemefulSameSiteStrict, /// /// SchemefulSameSiteLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemefulSameSiteLax")] + [JsonPropertyName("SchemefulSameSiteLax")] SchemefulSameSiteLax, /// /// SchemefulSameSiteUnspecifiedTreatedAsLax /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemefulSameSiteUnspecifiedTreatedAsLax")] + [JsonPropertyName("SchemefulSameSiteUnspecifiedTreatedAsLax")] SchemefulSameSiteUnspecifiedTreatedAsLax, /// /// SamePartyFromCrossPartyContext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SamePartyFromCrossPartyContext")] + [JsonPropertyName("SamePartyFromCrossPartyContext")] SamePartyFromCrossPartyContext, /// /// NameValuePairExceedsMaxSize /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NameValuePairExceedsMaxSize")] + [JsonPropertyName("NameValuePairExceedsMaxSize")] NameValuePairExceedsMaxSize } @@ -12901,7 +12637,7 @@ public partial class BlockedSetCookieWithReason : CefSharp.DevTools.DevToolsDoma /// /// The reason(s) this cookie was blocked. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedReasons")] + [JsonPropertyName("blockedReasons")] public CefSharp.DevTools.Network.SetCookieBlockedReason[] BlockedReasons { get; @@ -12912,7 +12648,7 @@ public CefSharp.DevTools.Network.SetCookieBlockedReason[] BlockedReasons /// The string representing this individual cookie as it would appear in the header. /// This is not the entire "cookie" or "set-cookie" header which could have multiple cookies. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookieLine")] + [JsonPropertyName("cookieLine")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CookieLine { @@ -12925,7 +12661,7 @@ public string CookieLine /// sometimes complete cookie information is not available, such as in the case of parsing /// errors. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookie")] + [JsonPropertyName("cookie")] public CefSharp.DevTools.Network.Cookie Cookie { get; @@ -12941,7 +12677,7 @@ public partial class BlockedCookieWithReason : CefSharp.DevTools.DevToolsDomainE /// /// The reason(s) the cookie was blocked. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedReasons")] + [JsonPropertyName("blockedReasons")] public CefSharp.DevTools.Network.CookieBlockedReason[] BlockedReasons { get; @@ -12951,7 +12687,7 @@ public CefSharp.DevTools.Network.CookieBlockedReason[] BlockedReasons /// /// The cookie object representing the cookie which was not sent. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookie")] + [JsonPropertyName("cookie")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Cookie Cookie { @@ -12968,7 +12704,7 @@ public partial class CookieParam : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Cookie name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -12979,7 +12715,7 @@ public string Name /// /// Cookie value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -12991,7 +12727,7 @@ public string Value /// The request-URI to associate with the setting of the cookie. This value can affect the /// default domain, path, source port, and source scheme values of the created cookie. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] public string Url { get; @@ -13001,7 +12737,7 @@ public string Url /// /// Cookie domain. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("domain")] + [JsonPropertyName("domain")] public string Domain { get; @@ -13011,7 +12747,7 @@ public string Domain /// /// Cookie path. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + [JsonPropertyName("path")] public string Path { get; @@ -13021,7 +12757,7 @@ public string Path /// /// True if cookie is secure. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("secure")] + [JsonPropertyName("secure")] public bool? Secure { get; @@ -13031,7 +12767,7 @@ public bool? Secure /// /// True if cookie is http-only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpOnly")] + [JsonPropertyName("httpOnly")] public bool? HttpOnly { get; @@ -13041,7 +12777,7 @@ public bool? HttpOnly /// /// Cookie SameSite type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameSite")] + [JsonPropertyName("sameSite")] public CefSharp.DevTools.Network.CookieSameSite? SameSite { get; @@ -13051,7 +12787,7 @@ public CefSharp.DevTools.Network.CookieSameSite? SameSite /// /// Cookie expiration date, session cookie if not set /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] + [JsonPropertyName("expires")] public double? Expires { get; @@ -13061,7 +12797,7 @@ public double? Expires /// /// Cookie Priority. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("priority")] + [JsonPropertyName("priority")] public CefSharp.DevTools.Network.CookiePriority? Priority { get; @@ -13071,7 +12807,7 @@ public CefSharp.DevTools.Network.CookiePriority? Priority /// /// True if cookie is SameParty. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameParty")] + [JsonPropertyName("sameParty")] public bool? SameParty { get; @@ -13081,7 +12817,7 @@ public bool? SameParty /// /// Cookie source scheme type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceScheme")] + [JsonPropertyName("sourceScheme")] public CefSharp.DevTools.Network.CookieSourceScheme? SourceScheme { get; @@ -13093,7 +12829,7 @@ public CefSharp.DevTools.Network.CookieSourceScheme? SourceScheme /// An unspecified port value allows protocol clients to emulate legacy cookie scope for the port. /// This is a temporary ability and it will be removed in the future. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourcePort")] + [JsonPropertyName("sourcePort")] public int? SourcePort { get; @@ -13105,7 +12841,7 @@ public int? SourcePort /// of the request to the endpoint that set the cookie. /// If not set, the cookie will be set as not partitioned. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("partitionKey")] + [JsonPropertyName("partitionKey")] public string PartitionKey { get; @@ -13121,12 +12857,12 @@ public enum AuthChallengeSource /// /// Server /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Server")] + [JsonPropertyName("Server")] Server, /// /// Proxy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Proxy")] + [JsonPropertyName("Proxy")] Proxy } @@ -13138,7 +12874,7 @@ public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Source of the authentication challenge. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + [JsonPropertyName("source")] public CefSharp.DevTools.Network.AuthChallengeSource? Source { get; @@ -13148,7 +12884,7 @@ public CefSharp.DevTools.Network.AuthChallengeSource? Source /// /// Origin of the challenger. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -13159,7 +12895,7 @@ public string Origin /// /// The authentication scheme used, such as basic or digest /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scheme")] + [JsonPropertyName("scheme")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Scheme { @@ -13170,7 +12906,7 @@ public string Scheme /// /// The realm of the challenge. May be empty. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("realm")] + [JsonPropertyName("realm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Realm { @@ -13189,17 +12925,17 @@ public enum AuthChallengeResponseResponse /// /// Default /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Default")] + [JsonPropertyName("Default")] Default, /// /// CancelAuth /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CancelAuth")] + [JsonPropertyName("CancelAuth")] CancelAuth, /// /// ProvideCredentials /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ProvideCredentials")] + [JsonPropertyName("ProvideCredentials")] ProvideCredentials } @@ -13213,7 +12949,7 @@ public partial class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEnt /// deferring to the default behavior of the net stack, which will likely either the Cancel /// authentication or display a popup dialog box. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonPropertyName("response")] public CefSharp.DevTools.Network.AuthChallengeResponseResponse Response { get; @@ -13224,7 +12960,7 @@ public CefSharp.DevTools.Network.AuthChallengeResponseResponse Response /// The username to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("username")] + [JsonPropertyName("username")] public string Username { get; @@ -13235,7 +12971,7 @@ public string Username /// The password to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("password")] + [JsonPropertyName("password")] public string Password { get; @@ -13252,12 +12988,12 @@ public enum InterceptionStage /// /// Request /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Request")] + [JsonPropertyName("Request")] Request, /// /// HeadersReceived /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HeadersReceived")] + [JsonPropertyName("HeadersReceived")] HeadersReceived } @@ -13270,7 +13006,7 @@ public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is /// backslash. Omitting is equivalent to `"*"`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlPattern")] + [JsonPropertyName("urlPattern")] public string UrlPattern { get; @@ -13280,7 +13016,7 @@ public string UrlPattern /// /// If set, only requests for matching resource types will be intercepted. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType? ResourceType { get; @@ -13290,7 +13026,7 @@ public CefSharp.DevTools.Network.ResourceType? ResourceType /// /// Stage at which to begin intercepting requests. Default is Request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("interceptionStage")] + [JsonPropertyName("interceptionStage")] public CefSharp.DevTools.Network.InterceptionStage? InterceptionStage { get; @@ -13307,7 +13043,7 @@ public partial class SignedExchangeSignature : CefSharp.DevTools.DevToolsDomainE /// /// Signed exchange signature label. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("label")] + [JsonPropertyName("label")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Label { @@ -13318,7 +13054,7 @@ public string Label /// /// The hex string of signed exchange signature. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signature")] + [JsonPropertyName("signature")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Signature { @@ -13329,7 +13065,7 @@ public string Signature /// /// Signed exchange signature integrity. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("integrity")] + [JsonPropertyName("integrity")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Integrity { @@ -13340,7 +13076,7 @@ public string Integrity /// /// Signed exchange signature cert Url. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certUrl")] + [JsonPropertyName("certUrl")] public string CertUrl { get; @@ -13350,7 +13086,7 @@ public string CertUrl /// /// The hex string of signed exchange signature cert sha256. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certSha256")] + [JsonPropertyName("certSha256")] public string CertSha256 { get; @@ -13360,7 +13096,7 @@ public string CertSha256 /// /// Signed exchange signature validity Url. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("validityUrl")] + [JsonPropertyName("validityUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ValidityUrl { @@ -13371,7 +13107,7 @@ public string ValidityUrl /// /// Signed exchange signature date. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + [JsonPropertyName("date")] public int Date { get; @@ -13381,7 +13117,7 @@ public int Date /// /// Signed exchange signature expires. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("expires")] + [JsonPropertyName("expires")] public int Expires { get; @@ -13391,7 +13127,7 @@ public int Expires /// /// The encoded certificates. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificates")] + [JsonPropertyName("certificates")] public string[] Certificates { get; @@ -13408,7 +13144,7 @@ public partial class SignedExchangeHeader : CefSharp.DevTools.DevToolsDomainEnti /// /// Signed exchange request URL. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestUrl")] + [JsonPropertyName("requestUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestUrl { @@ -13419,7 +13155,7 @@ public string RequestUrl /// /// Signed exchange response code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseCode")] + [JsonPropertyName("responseCode")] public int ResponseCode { get; @@ -13429,7 +13165,7 @@ public int ResponseCode /// /// Signed exchange response headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseHeaders")] + [JsonPropertyName("responseHeaders")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers ResponseHeaders { @@ -13440,7 +13176,7 @@ public CefSharp.DevTools.Network.Headers ResponseHeaders /// /// Signed exchange response signature. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatures")] + [JsonPropertyName("signatures")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Signatures { @@ -13451,7 +13187,7 @@ public System.Collections.Generic.IList /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headerIntegrity")] + [JsonPropertyName("headerIntegrity")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string HeaderIntegrity { @@ -13468,32 +13204,32 @@ public enum SignedExchangeErrorField /// /// signatureSig /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureSig")] + [JsonPropertyName("signatureSig")] SignatureSig, /// /// signatureIntegrity /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureIntegrity")] + [JsonPropertyName("signatureIntegrity")] SignatureIntegrity, /// /// signatureCertUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureCertUrl")] + [JsonPropertyName("signatureCertUrl")] SignatureCertUrl, /// /// signatureCertSha256 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureCertSha256")] + [JsonPropertyName("signatureCertSha256")] SignatureCertSha256, /// /// signatureValidityUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureValidityUrl")] + [JsonPropertyName("signatureValidityUrl")] SignatureValidityUrl, /// /// signatureTimestamps /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureTimestamps")] + [JsonPropertyName("signatureTimestamps")] SignatureTimestamps } @@ -13505,7 +13241,7 @@ public partial class SignedExchangeError : CefSharp.DevTools.DevToolsDomainEntit /// /// Error message. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { @@ -13516,7 +13252,7 @@ public string Message /// /// The index of the signature which caused the error. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signatureIndex")] + [JsonPropertyName("signatureIndex")] public int? SignatureIndex { get; @@ -13526,7 +13262,7 @@ public int? SignatureIndex /// /// The field which caused the error. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorField")] + [JsonPropertyName("errorField")] public CefSharp.DevTools.Network.SignedExchangeErrorField? ErrorField { get; @@ -13542,7 +13278,7 @@ public partial class SignedExchangeInfo : CefSharp.DevTools.DevToolsDomainEntity /// /// The outer response of signed HTTP exchange which was received from network. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("outerResponse")] + [JsonPropertyName("outerResponse")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Response OuterResponse { @@ -13553,7 +13289,7 @@ public CefSharp.DevTools.Network.Response OuterResponse /// /// Information about the signed exchange header. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("header")] + [JsonPropertyName("header")] public CefSharp.DevTools.Network.SignedExchangeHeader Header { get; @@ -13563,7 +13299,7 @@ public CefSharp.DevTools.Network.SignedExchangeHeader Header /// /// Security details for the signed exchange header. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityDetails")] + [JsonPropertyName("securityDetails")] public CefSharp.DevTools.Network.SecurityDetails SecurityDetails { get; @@ -13573,7 +13309,7 @@ public CefSharp.DevTools.Network.SecurityDetails SecurityDetails /// /// Errors occurred while handling the signed exchagne. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errors")] + [JsonPropertyName("errors")] public System.Collections.Generic.IList Errors { get; @@ -13589,17 +13325,17 @@ public enum ContentEncoding /// /// deflate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deflate")] + [JsonPropertyName("deflate")] Deflate, /// /// gzip /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gzip")] + [JsonPropertyName("gzip")] Gzip, /// /// br /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("br")] + [JsonPropertyName("br")] Br } @@ -13611,27 +13347,27 @@ public enum PrivateNetworkRequestPolicy /// /// Allow /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Allow")] + [JsonPropertyName("Allow")] Allow, /// /// BlockFromInsecureToMorePrivate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockFromInsecureToMorePrivate")] + [JsonPropertyName("BlockFromInsecureToMorePrivate")] BlockFromInsecureToMorePrivate, /// /// WarnFromInsecureToMorePrivate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WarnFromInsecureToMorePrivate")] + [JsonPropertyName("WarnFromInsecureToMorePrivate")] WarnFromInsecureToMorePrivate, /// /// PreflightBlock /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightBlock")] + [JsonPropertyName("PreflightBlock")] PreflightBlock, /// /// PreflightWarn /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PreflightWarn")] + [JsonPropertyName("PreflightWarn")] PreflightWarn } @@ -13643,22 +13379,22 @@ public enum IPAddressSpace /// /// Local /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Local")] + [JsonPropertyName("Local")] Local, /// /// Private /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Private")] + [JsonPropertyName("Private")] Private, /// /// Public /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Public")] + [JsonPropertyName("Public")] Public, /// /// Unknown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unknown")] + [JsonPropertyName("Unknown")] Unknown } @@ -13672,7 +13408,7 @@ public partial class ConnectTiming : CefSharp.DevTools.DevToolsDomainEntityBase /// milliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for /// the same request (but not for redirected requests). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestTime")] + [JsonPropertyName("requestTime")] public double RequestTime { get; @@ -13688,7 +13424,7 @@ public partial class ClientSecurityState : CefSharp.DevTools.DevToolsDomainEntit /// /// InitiatorIsSecureContext /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiatorIsSecureContext")] + [JsonPropertyName("initiatorIsSecureContext")] public bool InitiatorIsSecureContext { get; @@ -13698,7 +13434,7 @@ public bool InitiatorIsSecureContext /// /// InitiatorIPAddressSpace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiatorIPAddressSpace")] + [JsonPropertyName("initiatorIPAddressSpace")] public CefSharp.DevTools.Network.IPAddressSpace InitiatorIPAddressSpace { get; @@ -13708,7 +13444,7 @@ public CefSharp.DevTools.Network.IPAddressSpace InitiatorIPAddressSpace /// /// PrivateNetworkRequestPolicy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("privateNetworkRequestPolicy")] + [JsonPropertyName("privateNetworkRequestPolicy")] public CefSharp.DevTools.Network.PrivateNetworkRequestPolicy PrivateNetworkRequestPolicy { get; @@ -13724,32 +13460,32 @@ public enum CrossOriginOpenerPolicyValue /// /// SameOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOrigin")] + [JsonPropertyName("SameOrigin")] SameOrigin, /// /// SameOriginAllowPopups /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOriginAllowPopups")] + [JsonPropertyName("SameOriginAllowPopups")] SameOriginAllowPopups, /// /// RestrictProperties /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RestrictProperties")] + [JsonPropertyName("RestrictProperties")] RestrictProperties, /// /// UnsafeNone /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnsafeNone")] + [JsonPropertyName("UnsafeNone")] UnsafeNone, /// /// SameOriginPlusCoep /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameOriginPlusCoep")] + [JsonPropertyName("SameOriginPlusCoep")] SameOriginPlusCoep, /// /// RestrictPropertiesPlusCoep /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RestrictPropertiesPlusCoep")] + [JsonPropertyName("RestrictPropertiesPlusCoep")] RestrictPropertiesPlusCoep } @@ -13761,7 +13497,7 @@ public partial class CrossOriginOpenerPolicyStatus : CefSharp.DevTools.DevToolsD /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue Value { get; @@ -13771,7 +13507,7 @@ public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue Value /// /// ReportOnlyValue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyValue")] + [JsonPropertyName("reportOnlyValue")] public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue ReportOnlyValue { get; @@ -13781,7 +13517,7 @@ public CefSharp.DevTools.Network.CrossOriginOpenerPolicyValue ReportOnlyValue /// /// ReportingEndpoint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingEndpoint")] + [JsonPropertyName("reportingEndpoint")] public string ReportingEndpoint { get; @@ -13791,7 +13527,7 @@ public string ReportingEndpoint /// /// ReportOnlyReportingEndpoint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyReportingEndpoint")] + [JsonPropertyName("reportOnlyReportingEndpoint")] public string ReportOnlyReportingEndpoint { get; @@ -13807,17 +13543,17 @@ public enum CrossOriginEmbedderPolicyValue /// /// None /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("None")] + [JsonPropertyName("None")] None, /// /// Credentialless /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Credentialless")] + [JsonPropertyName("Credentialless")] Credentialless, /// /// RequireCorp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequireCorp")] + [JsonPropertyName("RequireCorp")] RequireCorp } @@ -13829,7 +13565,7 @@ public partial class CrossOriginEmbedderPolicyStatus : CefSharp.DevTools.DevTool /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue Value { get; @@ -13839,7 +13575,7 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue Value /// /// ReportOnlyValue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyValue")] + [JsonPropertyName("reportOnlyValue")] public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue ReportOnlyValue { get; @@ -13849,7 +13585,7 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyValue ReportOnlyValue /// /// ReportingEndpoint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingEndpoint")] + [JsonPropertyName("reportingEndpoint")] public string ReportingEndpoint { get; @@ -13859,7 +13595,7 @@ public string ReportingEndpoint /// /// ReportOnlyReportingEndpoint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportOnlyReportingEndpoint")] + [JsonPropertyName("reportOnlyReportingEndpoint")] public string ReportOnlyReportingEndpoint { get; @@ -13875,7 +13611,7 @@ public partial class SecurityIsolationStatus : CefSharp.DevTools.DevToolsDomainE /// /// Coop /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("coop")] + [JsonPropertyName("coop")] public CefSharp.DevTools.Network.CrossOriginOpenerPolicyStatus Coop { get; @@ -13885,7 +13621,7 @@ public CefSharp.DevTools.Network.CrossOriginOpenerPolicyStatus Coop /// /// Coep /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("coep")] + [JsonPropertyName("coep")] public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep { get; @@ -13901,22 +13637,22 @@ public enum ReportStatus /// /// Queued /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Queued")] + [JsonPropertyName("Queued")] Queued, /// /// Pending /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Pending")] + [JsonPropertyName("Pending")] Pending, /// /// MarkedForRemoval /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MarkedForRemoval")] + [JsonPropertyName("MarkedForRemoval")] MarkedForRemoval, /// /// Success /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Success")] + [JsonPropertyName("Success")] Success } @@ -13928,7 +13664,7 @@ public partial class ReportingApiReport : CefSharp.DevTools.DevToolsDomainEntity /// /// Id /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -13939,7 +13675,7 @@ public string Id /// /// The URL of the document that triggered the report. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiatorUrl")] + [JsonPropertyName("initiatorUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InitiatorUrl { @@ -13950,7 +13686,7 @@ public string InitiatorUrl /// /// The name of the endpoint group that should be used to deliver the report. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("destination")] + [JsonPropertyName("destination")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Destination { @@ -13961,7 +13697,7 @@ public string Destination /// /// The type of the report (specifies the set of data that is contained in the report body). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { @@ -13972,7 +13708,7 @@ public string Type /// /// When the report was generated. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -13982,7 +13718,7 @@ public double Timestamp /// /// How many uploads deep the related request was. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("depth")] + [JsonPropertyName("depth")] public int Depth { get; @@ -13992,7 +13728,7 @@ public int Depth /// /// The number of delivery attempts made so far, not including an active attempt. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("completedAttempts")] + [JsonPropertyName("completedAttempts")] public int CompletedAttempts { get; @@ -14002,7 +13738,7 @@ public int CompletedAttempts /// /// Body /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + [JsonPropertyName("body")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object Body { @@ -14013,7 +13749,7 @@ public object Body /// /// Status /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonPropertyName("status")] public CefSharp.DevTools.Network.ReportStatus Status { get; @@ -14029,7 +13765,7 @@ public partial class ReportingApiEndpoint : CefSharp.DevTools.DevToolsDomainEnti /// /// The URL of the endpoint to which reports may be delivered. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -14040,7 +13776,7 @@ public string Url /// /// Name of the endpoint group. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("groupName")] + [JsonPropertyName("groupName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string GroupName { @@ -14057,7 +13793,7 @@ public partial class LoadNetworkResourcePageResult : CefSharp.DevTools.DevToolsD /// /// Success /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + [JsonPropertyName("success")] public bool Success { get; @@ -14067,7 +13803,7 @@ public bool Success /// /// Optional values used for error reporting. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("netError")] + [JsonPropertyName("netError")] public double? NetError { get; @@ -14077,7 +13813,7 @@ public double? NetError /// /// NetErrorName /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("netErrorName")] + [JsonPropertyName("netErrorName")] public string NetErrorName { get; @@ -14087,7 +13823,7 @@ public string NetErrorName /// /// HttpStatusCode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpStatusCode")] + [JsonPropertyName("httpStatusCode")] public double? HttpStatusCode { get; @@ -14097,7 +13833,7 @@ public double? HttpStatusCode /// /// If successful, one of the following two fields holds the result. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + [JsonPropertyName("stream")] public string Stream { get; @@ -14107,7 +13843,7 @@ public string Stream /// /// Response headers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [JsonPropertyName("headers")] public CefSharp.DevTools.Network.Headers Headers { get; @@ -14124,7 +13860,7 @@ public partial class LoadNetworkResourceOptions : CefSharp.DevTools.DevToolsDoma /// /// DisableCache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("disableCache")] + [JsonPropertyName("disableCache")] public bool DisableCache { get; @@ -14134,7 +13870,7 @@ public bool DisableCache /// /// IncludeCredentials /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("includeCredentials")] + [JsonPropertyName("includeCredentials")] public bool IncludeCredentials { get; @@ -14150,8 +13886,8 @@ public class DataReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14162,8 +13898,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14173,8 +13909,8 @@ public double Timestamp /// /// Data chunk length. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataLength")] + [JsonInclude] + [JsonPropertyName("dataLength")] public int DataLength { get; @@ -14184,8 +13920,8 @@ public int DataLength /// /// Actual bytes received (might be less than dataLength for compressed encodings). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedDataLength")] + [JsonInclude] + [JsonPropertyName("encodedDataLength")] public int EncodedDataLength { get; @@ -14201,8 +13937,8 @@ public class EventSourceMessageReceivedEventArgs : CefSharp.DevTools.DevToolsDom /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14213,8 +13949,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14224,8 +13960,8 @@ public double Timestamp /// /// Message type. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventName")] + [JsonInclude] + [JsonPropertyName("eventName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventName { @@ -14236,8 +13972,8 @@ public string EventName /// /// Message identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventId")] + [JsonInclude] + [JsonPropertyName("eventId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventId { @@ -14248,8 +13984,8 @@ public string EventId /// /// Message content. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Data { @@ -14266,8 +14002,8 @@ public class LoadingFailedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14278,8 +14014,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14289,8 +14025,8 @@ public double Timestamp /// /// Resource type. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; @@ -14300,8 +14036,8 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// User friendly error message. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorText")] + [JsonInclude] + [JsonPropertyName("errorText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorText { @@ -14312,8 +14048,8 @@ public string ErrorText /// /// True if loading was canceled. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("canceled")] + [JsonInclude] + [JsonPropertyName("canceled")] public bool? Canceled { get; @@ -14323,8 +14059,8 @@ public bool? Canceled /// /// The reason why loading was blocked, if any. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedReason")] + [JsonInclude] + [JsonPropertyName("blockedReason")] public CefSharp.DevTools.Network.BlockedReason? BlockedReason { get; @@ -14334,8 +14070,8 @@ public CefSharp.DevTools.Network.BlockedReason? BlockedReason /// /// The reason why loading was blocked by CORS, if any. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("corsErrorStatus")] + [JsonInclude] + [JsonPropertyName("corsErrorStatus")] public CefSharp.DevTools.Network.CorsErrorStatus CorsErrorStatus { get; @@ -14351,8 +14087,8 @@ public class LoadingFinishedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14363,8 +14099,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14374,8 +14110,8 @@ public double Timestamp /// /// Total number of bytes received for this request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedDataLength")] + [JsonInclude] + [JsonPropertyName("encodedDataLength")] public double EncodedDataLength { get; @@ -14386,8 +14122,8 @@ public double EncodedDataLength /// Set when 1) response was blocked by Cross-Origin Read Blocking and also /// 2) this needs to be reported to the DevTools console. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shouldReportCorbBlocking")] + [JsonInclude] + [JsonPropertyName("shouldReportCorbBlocking")] public bool? ShouldReportCorbBlocking { get; @@ -14407,8 +14143,8 @@ public class RequestInterceptedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// while processing that fetch, they will be reported with the same id as the original fetch. /// Likewise if HTTP authentication is needed then the same fetch id will be used. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("interceptionId")] + [JsonInclude] + [JsonPropertyName("interceptionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InterceptionId { @@ -14419,8 +14155,8 @@ public string InterceptionId /// /// Request /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonInclude] + [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { @@ -14431,8 +14167,8 @@ public CefSharp.DevTools.Network.Request Request /// /// The id of the frame that initiated the request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -14443,8 +14179,8 @@ public string FrameId /// /// How the requested resource will be used. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + [JsonInclude] + [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType ResourceType { get; @@ -14454,8 +14190,8 @@ public CefSharp.DevTools.Network.ResourceType ResourceType /// /// Whether this is a navigation request, which can abort the navigation completely. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isNavigationRequest")] + [JsonInclude] + [JsonPropertyName("isNavigationRequest")] public bool IsNavigationRequest { get; @@ -14466,8 +14202,8 @@ public bool IsNavigationRequest /// Set if the request is a navigation that will result in a download. /// Only present after response is received from the server (i.e. HeadersReceived stage). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isDownload")] + [JsonInclude] + [JsonPropertyName("isDownload")] public bool? IsDownload { get; @@ -14477,8 +14213,8 @@ public bool? IsDownload /// /// Redirect location, only sent if a redirect was intercepted. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("redirectUrl")] + [JsonInclude] + [JsonPropertyName("redirectUrl")] public string RedirectUrl { get; @@ -14489,8 +14225,8 @@ public string RedirectUrl /// Details of the Authorization Challenge encountered. If this is set then /// continueInterceptedRequest must contain an authChallengeResponse. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("authChallenge")] + [JsonInclude] + [JsonPropertyName("authChallenge")] public CefSharp.DevTools.Network.AuthChallenge AuthChallenge { get; @@ -14501,8 +14237,8 @@ public CefSharp.DevTools.Network.AuthChallenge AuthChallenge /// Response error if intercepted at response stage or if redirect occurred while intercepting /// request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseErrorReason")] + [JsonInclude] + [JsonPropertyName("responseErrorReason")] public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason { get; @@ -14513,8 +14249,8 @@ public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason /// Response code if intercepted at response stage or if redirect occurred while intercepting /// request or auth retry occurred. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatusCode")] + [JsonInclude] + [JsonPropertyName("responseStatusCode")] public int? ResponseStatusCode { get; @@ -14525,8 +14261,8 @@ public int? ResponseStatusCode /// Response headers if intercepted at the response stage or if redirect occurred while /// intercepting request or auth retry occurred. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseHeaders")] + [JsonInclude] + [JsonPropertyName("responseHeaders")] public CefSharp.DevTools.Network.Headers ResponseHeaders { get; @@ -14537,8 +14273,8 @@ public CefSharp.DevTools.Network.Headers ResponseHeaders /// If the intercepted request had a corresponding requestWillBeSent event fired for it, then /// this requestId will be the same as the requestId present in the requestWillBeSent event. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] public string RequestId { get; @@ -14554,8 +14290,8 @@ public class RequestServedFromCacheEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14572,8 +14308,8 @@ public class RequestWillBeSentEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14584,8 +14320,8 @@ public string RequestId /// /// Loader identifier. Empty string if the request is fetched from worker. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [JsonInclude] + [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { @@ -14596,8 +14332,8 @@ public string LoaderId /// /// URL of the document this request is loaded for. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentURL")] + [JsonInclude] + [JsonPropertyName("documentURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DocumentURL { @@ -14608,8 +14344,8 @@ public string DocumentURL /// /// Request data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonInclude] + [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { @@ -14620,8 +14356,8 @@ public CefSharp.DevTools.Network.Request Request /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14631,8 +14367,8 @@ public double Timestamp /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wallTime")] + [JsonInclude] + [JsonPropertyName("wallTime")] public double WallTime { get; @@ -14642,8 +14378,8 @@ public double WallTime /// /// Request initiator. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiator")] + [JsonInclude] + [JsonPropertyName("initiator")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Initiator Initiator { @@ -14656,8 +14392,8 @@ public CefSharp.DevTools.Network.Initiator Initiator /// requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted /// for the request which was just redirected. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("redirectHasExtraInfo")] + [JsonInclude] + [JsonPropertyName("redirectHasExtraInfo")] public bool RedirectHasExtraInfo { get; @@ -14667,8 +14403,8 @@ public bool RedirectHasExtraInfo /// /// Redirect response data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("redirectResponse")] + [JsonInclude] + [JsonPropertyName("redirectResponse")] public CefSharp.DevTools.Network.Response RedirectResponse { get; @@ -14678,8 +14414,8 @@ public CefSharp.DevTools.Network.Response RedirectResponse /// /// Type of this resource. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType? Type { get; @@ -14689,8 +14425,8 @@ public CefSharp.DevTools.Network.ResourceType? Type /// /// Frame identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -14700,8 +14436,8 @@ public string FrameId /// /// Whether the request is initiated by a user gesture. Defaults to false. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasUserGesture")] + [JsonInclude] + [JsonPropertyName("hasUserGesture")] public bool? HasUserGesture { get; @@ -14717,8 +14453,8 @@ public class ResourceChangedPriorityEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14729,8 +14465,8 @@ public string RequestId /// /// New priority /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("newPriority")] + [JsonInclude] + [JsonPropertyName("newPriority")] public CefSharp.DevTools.Network.ResourcePriority NewPriority { get; @@ -14740,8 +14476,8 @@ public CefSharp.DevTools.Network.ResourcePriority NewPriority /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14757,8 +14493,8 @@ public class SignedExchangeReceivedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14769,8 +14505,8 @@ public string RequestId /// /// Information about the signed exchange response. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("info")] + [JsonInclude] + [JsonPropertyName("info")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.SignedExchangeInfo Info { @@ -14787,8 +14523,8 @@ public class ResponseReceivedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14799,8 +14535,8 @@ public string RequestId /// /// Loader identifier. Empty string if the request is fetched from worker. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [JsonInclude] + [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { @@ -14811,8 +14547,8 @@ public string LoaderId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14822,8 +14558,8 @@ public double Timestamp /// /// Resource type. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; @@ -14833,8 +14569,8 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// Response data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonInclude] + [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Response Response { @@ -14846,8 +14582,8 @@ public CefSharp.DevTools.Network.Response Response /// Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be /// or were emitted for this request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasExtraInfo")] + [JsonInclude] + [JsonPropertyName("hasExtraInfo")] public bool HasExtraInfo { get; @@ -14857,8 +14593,8 @@ public bool HasExtraInfo /// /// Frame identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -14874,8 +14610,8 @@ public class WebSocketClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14886,8 +14622,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14903,8 +14639,8 @@ public class WebSocketCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14915,8 +14651,8 @@ public string RequestId /// /// WebSocket request URL. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -14927,8 +14663,8 @@ public string Url /// /// Request initiator. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiator")] + [JsonInclude] + [JsonPropertyName("initiator")] public CefSharp.DevTools.Network.Initiator Initiator { get; @@ -14944,8 +14680,8 @@ public class WebSocketFrameErrorEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14956,8 +14692,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -14967,8 +14703,8 @@ public double Timestamp /// /// WebSocket error message. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorMessage")] + [JsonInclude] + [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { @@ -14985,8 +14721,8 @@ public class WebSocketFrameReceivedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -14997,8 +14733,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -15008,8 +14744,8 @@ public double Timestamp /// /// WebSocket response data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonInclude] + [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketFrame Response { @@ -15026,8 +14762,8 @@ public class WebSocketFrameSentEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15038,8 +14774,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -15049,8 +14785,8 @@ public double Timestamp /// /// WebSocket response data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonInclude] + [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketFrame Response { @@ -15067,8 +14803,8 @@ public class WebSocketHandshakeResponseReceivedEventArgs : CefSharp.DevTools.Dev /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15079,8 +14815,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -15090,8 +14826,8 @@ public double Timestamp /// /// WebSocket response data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonInclude] + [JsonPropertyName("response")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketResponse Response { @@ -15108,8 +14844,8 @@ public class WebSocketWillSendHandshakeRequestEventArgs : CefSharp.DevTools.DevT /// /// Request identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15120,8 +14856,8 @@ public string RequestId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -15131,8 +14867,8 @@ public double Timestamp /// /// UTC Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wallTime")] + [JsonInclude] + [JsonPropertyName("wallTime")] public double WallTime { get; @@ -15142,8 +14878,8 @@ public double WallTime /// /// WebSocket request data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonInclude] + [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.WebSocketRequest Request { @@ -15160,8 +14896,8 @@ public class WebTransportCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// WebTransport identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transportId")] + [JsonInclude] + [JsonPropertyName("transportId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TransportId { @@ -15172,8 +14908,8 @@ public string TransportId /// /// WebTransport request URL. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -15184,8 +14920,8 @@ public string Url /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -15195,8 +14931,8 @@ public double Timestamp /// /// Request initiator. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiator")] + [JsonInclude] + [JsonPropertyName("initiator")] public CefSharp.DevTools.Network.Initiator Initiator { get; @@ -15212,8 +14948,8 @@ public class WebTransportConnectionEstablishedEventArgs : CefSharp.DevTools.DevT /// /// WebTransport identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transportId")] + [JsonInclude] + [JsonPropertyName("transportId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TransportId { @@ -15224,8 +14960,8 @@ public string TransportId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -15241,8 +14977,8 @@ public class WebTransportClosedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// WebTransport identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transportId")] + [JsonInclude] + [JsonPropertyName("transportId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TransportId { @@ -15253,8 +14989,8 @@ public string TransportId /// /// Timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -15273,8 +15009,8 @@ public class RequestWillBeSentExtraInfoEventArgs : CefSharp.DevTools.DevToolsDom /// /// Request identifier. Used to match this information to an existing requestWillBeSent event. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15286,8 +15022,8 @@ public string RequestId /// A list of cookies potentially associated to the requested URL. This includes both cookies sent with /// the request and the ones not sent; the latter are distinguished by having blockedReason field set. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("associatedCookies")] + [JsonInclude] + [JsonPropertyName("associatedCookies")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AssociatedCookies { @@ -15298,8 +15034,8 @@ public System.Collections.Generic.IList /// Raw request headers as they will be sent over the wire. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [JsonInclude] + [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { @@ -15310,8 +15046,8 @@ public CefSharp.DevTools.Network.Headers Headers /// /// Connection timing information for the request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectTiming")] + [JsonInclude] + [JsonPropertyName("connectTiming")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.ConnectTiming ConnectTiming { @@ -15322,8 +15058,8 @@ public CefSharp.DevTools.Network.ConnectTiming ConnectTiming /// /// The client security state set for the request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientSecurityState")] + [JsonInclude] + [JsonPropertyName("clientSecurityState")] public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState { get; @@ -15333,8 +15069,8 @@ public CefSharp.DevTools.Network.ClientSecurityState ClientSecurityState /// /// Whether the site has partitioned cookies stored in a partition different than the current one. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("siteHasCookieInOtherPartition")] + [JsonInclude] + [JsonPropertyName("siteHasCookieInOtherPartition")] public bool? SiteHasCookieInOtherPartition { get; @@ -15352,8 +15088,8 @@ public class ResponseReceivedExtraInfoEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Request identifier. Used to match this information to another responseReceived event. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15366,8 +15102,8 @@ public string RequestId /// reasons for blocking. The cookies here may not be valid due to syntax errors, which /// are represented by the invalid cookie line string instead of a proper cookie. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockedCookies")] + [JsonInclude] + [JsonPropertyName("blockedCookies")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList BlockedCookies { @@ -15378,8 +15114,8 @@ public System.Collections.Generic.IList /// Raw response headers as they were received over the wire. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headers")] + [JsonInclude] + [JsonPropertyName("headers")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Headers Headers { @@ -15391,8 +15127,8 @@ public CefSharp.DevTools.Network.Headers Headers /// The IP address space of the resource. The address space can only be determined once the transport /// established the connection, so we can't send it in `requestWillBeSentExtraInfo`. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceIPAddressSpace")] + [JsonInclude] + [JsonPropertyName("resourceIPAddressSpace")] public CefSharp.DevTools.Network.IPAddressSpace ResourceIPAddressSpace { get; @@ -15404,8 +15140,8 @@ public CefSharp.DevTools.Network.IPAddressSpace ResourceIPAddressSpace /// event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code /// for cached requests, where the status in responseReceived is a 200 and this will be 304. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("statusCode")] + [JsonInclude] + [JsonPropertyName("statusCode")] public int StatusCode { get; @@ -15416,8 +15152,8 @@ public int StatusCode /// Raw response header text as it was received over the wire. The raw text may not always be /// available, such as in the case of HTTP/2 or QUIC. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("headersText")] + [JsonInclude] + [JsonPropertyName("headersText")] public string HeadersText { get; @@ -15428,8 +15164,8 @@ public string HeadersText /// The cookie partition key that will be used to store partitioned cookies set in this response. /// Only sent when partitioned cookies are enabled. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookiePartitionKey")] + [JsonInclude] + [JsonPropertyName("cookiePartitionKey")] public string CookiePartitionKey { get; @@ -15439,8 +15175,8 @@ public string CookiePartitionKey /// /// True if partitioned cookies are enabled, but the partition key is not serializeable to string. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookiePartitionKeyOpaque")] + [JsonInclude] + [JsonPropertyName("cookiePartitionKeyOpaque")] public bool? CookiePartitionKeyOpaque { get; @@ -15459,57 +15195,57 @@ public enum TrustTokenOperationDoneStatus /// /// Ok /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Ok")] + [JsonPropertyName("Ok")] Ok, /// /// InvalidArgument /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidArgument")] + [JsonPropertyName("InvalidArgument")] InvalidArgument, /// /// FailedPrecondition /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FailedPrecondition")] + [JsonPropertyName("FailedPrecondition")] FailedPrecondition, /// /// ResourceExhausted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ResourceExhausted")] + [JsonPropertyName("ResourceExhausted")] ResourceExhausted, /// /// AlreadyExists /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AlreadyExists")] + [JsonPropertyName("AlreadyExists")] AlreadyExists, /// /// Unavailable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unavailable")] + [JsonPropertyName("Unavailable")] Unavailable, /// /// Unauthorized /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unauthorized")] + [JsonPropertyName("Unauthorized")] Unauthorized, /// /// BadResponse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BadResponse")] + [JsonPropertyName("BadResponse")] BadResponse, /// /// InternalError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InternalError")] + [JsonPropertyName("InternalError")] InternalError, /// /// UnknownError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnknownError")] + [JsonPropertyName("UnknownError")] UnknownError, /// /// FulfilledLocally /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FulfilledLocally")] + [JsonPropertyName("FulfilledLocally")] FulfilledLocally } @@ -15527,8 +15263,8 @@ public class TrustTokenOperationDoneEventArgs : CefSharp.DevTools.DevToolsDomain /// of the operation already exists und thus, the operation was abort /// preemptively (e.g. a cache hit). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonInclude] + [JsonPropertyName("status")] public CefSharp.DevTools.Network.TrustTokenOperationDoneStatus Status { get; @@ -15538,8 +15274,8 @@ public CefSharp.DevTools.Network.TrustTokenOperationDoneStatus Status /// /// Type /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Network.TrustTokenOperationType Type { get; @@ -15549,8 +15285,8 @@ public CefSharp.DevTools.Network.TrustTokenOperationType Type /// /// RequestId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15561,8 +15297,8 @@ public string RequestId /// /// Top level origin. The context in which the operation was attempted. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("topLevelOrigin")] + [JsonInclude] + [JsonPropertyName("topLevelOrigin")] public string TopLevelOrigin { get; @@ -15572,8 +15308,8 @@ public string TopLevelOrigin /// /// Origin of the issuer in case of a "Issuance" or "Redemption" operation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuerOrigin")] + [JsonInclude] + [JsonPropertyName("issuerOrigin")] public string IssuerOrigin { get; @@ -15583,8 +15319,8 @@ public string IssuerOrigin /// /// The number of obtained Trust Tokens on a successful "Issuance" operation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuedTokenCount")] + [JsonInclude] + [JsonPropertyName("issuedTokenCount")] public int? IssuedTokenCount { get; @@ -15601,8 +15337,8 @@ public class SubresourceWebBundleMetadataReceivedEventArgs : CefSharp.DevTools.D /// /// Request identifier. Used to match this information to another event. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15613,8 +15349,8 @@ public string RequestId /// /// A list of URLs of resources in the subresource Web Bundle. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("urls")] + [JsonInclude] + [JsonPropertyName("urls")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Urls { @@ -15631,8 +15367,8 @@ public class SubresourceWebBundleMetadataErrorEventArgs : CefSharp.DevTools.DevT /// /// Request identifier. Used to match this information to another event. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -15643,8 +15379,8 @@ public string RequestId /// /// Error message /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorMessage")] + [JsonInclude] + [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { @@ -15662,8 +15398,8 @@ public class SubresourceWebBundleInnerResponseParsedEventArgs : CefSharp.DevTool /// /// Request identifier of the subresource request /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("innerRequestId")] + [JsonInclude] + [JsonPropertyName("innerRequestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InnerRequestId { @@ -15674,8 +15410,8 @@ public string InnerRequestId /// /// URL of the subresource resource. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("innerRequestURL")] + [JsonInclude] + [JsonPropertyName("innerRequestURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InnerRequestURL { @@ -15688,8 +15424,8 @@ public string InnerRequestURL /// This made be absent in case when the instrumentation was enabled only /// after webbundle was parsed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bundleRequestId")] + [JsonInclude] + [JsonPropertyName("bundleRequestId")] public string BundleRequestId { get; @@ -15705,8 +15441,8 @@ public class SubresourceWebBundleInnerResponseErrorEventArgs : CefSharp.DevTools /// /// Request identifier of the subresource request /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("innerRequestId")] + [JsonInclude] + [JsonPropertyName("innerRequestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InnerRequestId { @@ -15717,8 +15453,8 @@ public string InnerRequestId /// /// URL of the subresource resource. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("innerRequestURL")] + [JsonInclude] + [JsonPropertyName("innerRequestURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InnerRequestURL { @@ -15729,8 +15465,8 @@ public string InnerRequestURL /// /// Error message /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorMessage")] + [JsonInclude] + [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { @@ -15743,8 +15479,8 @@ public string ErrorMessage /// This made be absent in case when the instrumentation was enabled only /// after webbundle was parsed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bundleRequestId")] + [JsonInclude] + [JsonPropertyName("bundleRequestId")] public string BundleRequestId { get; @@ -15761,8 +15497,8 @@ public class ReportingApiReportAddedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Report /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("report")] + [JsonInclude] + [JsonPropertyName("report")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.ReportingApiReport Report { @@ -15779,8 +15515,8 @@ public class ReportingApiReportUpdatedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Report /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("report")] + [JsonInclude] + [JsonPropertyName("report")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.ReportingApiReport Report { @@ -15797,8 +15533,8 @@ public class ReportingApiEndpointsChangedForOriginEventArgs : CefSharp.DevTools. /// /// Origin of the document(s) which configured the endpoints. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonInclude] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -15809,8 +15545,8 @@ public string Origin /// /// Endpoints /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endpoints")] + [JsonInclude] + [JsonPropertyName("endpoints")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Endpoints { @@ -15830,7 +15566,7 @@ public partial class SourceOrderConfig : CefSharp.DevTools.DevToolsDomainEntityB /// /// the color to outline the givent element in. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentOutlineColor")] + [JsonPropertyName("parentOutlineColor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.RGBA ParentOutlineColor { @@ -15841,7 +15577,7 @@ public CefSharp.DevTools.DOM.RGBA ParentOutlineColor /// /// the color to outline the child elements in. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("childOutlineColor")] + [JsonPropertyName("childOutlineColor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.RGBA ChildOutlineColor { @@ -15858,7 +15594,7 @@ public partial class GridHighlightConfig : CefSharp.DevTools.DevToolsDomainEntit /// /// Whether the extension lines from grid cells to the rulers should be shown (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showGridExtensionLines")] + [JsonPropertyName("showGridExtensionLines")] public bool? ShowGridExtensionLines { get; @@ -15868,7 +15604,7 @@ public bool? ShowGridExtensionLines /// /// Show Positive line number labels (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showPositiveLineNumbers")] + [JsonPropertyName("showPositiveLineNumbers")] public bool? ShowPositiveLineNumbers { get; @@ -15878,7 +15614,7 @@ public bool? ShowPositiveLineNumbers /// /// Show Negative line number labels (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showNegativeLineNumbers")] + [JsonPropertyName("showNegativeLineNumbers")] public bool? ShowNegativeLineNumbers { get; @@ -15888,7 +15624,7 @@ public bool? ShowNegativeLineNumbers /// /// Show area name labels (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showAreaNames")] + [JsonPropertyName("showAreaNames")] public bool? ShowAreaNames { get; @@ -15898,7 +15634,7 @@ public bool? ShowAreaNames /// /// Show line name labels (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showLineNames")] + [JsonPropertyName("showLineNames")] public bool? ShowLineNames { get; @@ -15908,7 +15644,7 @@ public bool? ShowLineNames /// /// Show track size labels (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showTrackSizes")] + [JsonPropertyName("showTrackSizes")] public bool? ShowTrackSizes { get; @@ -15918,7 +15654,7 @@ public bool? ShowTrackSizes /// /// The grid container border highlight color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridBorderColor")] + [JsonPropertyName("gridBorderColor")] public CefSharp.DevTools.DOM.RGBA GridBorderColor { get; @@ -15928,7 +15664,7 @@ public CefSharp.DevTools.DOM.RGBA GridBorderColor /// /// The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellBorderColor")] + [JsonPropertyName("cellBorderColor")] public CefSharp.DevTools.DOM.RGBA CellBorderColor { get; @@ -15938,7 +15674,7 @@ public CefSharp.DevTools.DOM.RGBA CellBorderColor /// /// The row line color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowLineColor")] + [JsonPropertyName("rowLineColor")] public CefSharp.DevTools.DOM.RGBA RowLineColor { get; @@ -15948,7 +15684,7 @@ public CefSharp.DevTools.DOM.RGBA RowLineColor /// /// The column line color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnLineColor")] + [JsonPropertyName("columnLineColor")] public CefSharp.DevTools.DOM.RGBA ColumnLineColor { get; @@ -15958,7 +15694,7 @@ public CefSharp.DevTools.DOM.RGBA ColumnLineColor /// /// Whether the grid border is dashed (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridBorderDash")] + [JsonPropertyName("gridBorderDash")] public bool? GridBorderDash { get; @@ -15968,7 +15704,7 @@ public bool? GridBorderDash /// /// Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cellBorderDash")] + [JsonPropertyName("cellBorderDash")] public bool? CellBorderDash { get; @@ -15978,7 +15714,7 @@ public bool? CellBorderDash /// /// Whether row lines are dashed (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowLineDash")] + [JsonPropertyName("rowLineDash")] public bool? RowLineDash { get; @@ -15988,7 +15724,7 @@ public bool? RowLineDash /// /// Whether column lines are dashed (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnLineDash")] + [JsonPropertyName("columnLineDash")] public bool? ColumnLineDash { get; @@ -15998,7 +15734,7 @@ public bool? ColumnLineDash /// /// The row gap highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowGapColor")] + [JsonPropertyName("rowGapColor")] public CefSharp.DevTools.DOM.RGBA RowGapColor { get; @@ -16008,7 +15744,7 @@ public CefSharp.DevTools.DOM.RGBA RowGapColor /// /// The row gap hatching fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowHatchColor")] + [JsonPropertyName("rowHatchColor")] public CefSharp.DevTools.DOM.RGBA RowHatchColor { get; @@ -16018,7 +15754,7 @@ public CefSharp.DevTools.DOM.RGBA RowHatchColor /// /// The column gap highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnGapColor")] + [JsonPropertyName("columnGapColor")] public CefSharp.DevTools.DOM.RGBA ColumnGapColor { get; @@ -16028,7 +15764,7 @@ public CefSharp.DevTools.DOM.RGBA ColumnGapColor /// /// The column gap hatching fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnHatchColor")] + [JsonPropertyName("columnHatchColor")] public CefSharp.DevTools.DOM.RGBA ColumnHatchColor { get; @@ -16038,7 +15774,7 @@ public CefSharp.DevTools.DOM.RGBA ColumnHatchColor /// /// The named grid areas border color (Default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("areaBorderColor")] + [JsonPropertyName("areaBorderColor")] public CefSharp.DevTools.DOM.RGBA AreaBorderColor { get; @@ -16048,7 +15784,7 @@ public CefSharp.DevTools.DOM.RGBA AreaBorderColor /// /// The grid container background color (Default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridBackgroundColor")] + [JsonPropertyName("gridBackgroundColor")] public CefSharp.DevTools.DOM.RGBA GridBackgroundColor { get; @@ -16064,7 +15800,7 @@ public partial class FlexContainerHighlightConfig : CefSharp.DevTools.DevToolsDo /// /// The style of the container border /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containerBorder")] + [JsonPropertyName("containerBorder")] public CefSharp.DevTools.Overlay.LineStyle ContainerBorder { get; @@ -16074,7 +15810,7 @@ public CefSharp.DevTools.Overlay.LineStyle ContainerBorder /// /// The style of the separator between lines /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineSeparator")] + [JsonPropertyName("lineSeparator")] public CefSharp.DevTools.Overlay.LineStyle LineSeparator { get; @@ -16084,7 +15820,7 @@ public CefSharp.DevTools.Overlay.LineStyle LineSeparator /// /// The style of the separator between items /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("itemSeparator")] + [JsonPropertyName("itemSeparator")] public CefSharp.DevTools.Overlay.LineStyle ItemSeparator { get; @@ -16094,7 +15830,7 @@ public CefSharp.DevTools.Overlay.LineStyle ItemSeparator /// /// Style of content-distribution space on the main axis (justify-content). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mainDistributedSpace")] + [JsonPropertyName("mainDistributedSpace")] public CefSharp.DevTools.Overlay.BoxStyle MainDistributedSpace { get; @@ -16104,7 +15840,7 @@ public CefSharp.DevTools.Overlay.BoxStyle MainDistributedSpace /// /// Style of content-distribution space on the cross axis (align-content). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("crossDistributedSpace")] + [JsonPropertyName("crossDistributedSpace")] public CefSharp.DevTools.Overlay.BoxStyle CrossDistributedSpace { get; @@ -16114,7 +15850,7 @@ public CefSharp.DevTools.Overlay.BoxStyle CrossDistributedSpace /// /// Style of empty space caused by row gaps (gap/row-gap). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rowGapSpace")] + [JsonPropertyName("rowGapSpace")] public CefSharp.DevTools.Overlay.BoxStyle RowGapSpace { get; @@ -16124,7 +15860,7 @@ public CefSharp.DevTools.Overlay.BoxStyle RowGapSpace /// /// Style of empty space caused by columns gaps (gap/column-gap). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnGapSpace")] + [JsonPropertyName("columnGapSpace")] public CefSharp.DevTools.Overlay.BoxStyle ColumnGapSpace { get; @@ -16134,7 +15870,7 @@ public CefSharp.DevTools.Overlay.BoxStyle ColumnGapSpace /// /// Style of the self-alignment line (align-items). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("crossAlignment")] + [JsonPropertyName("crossAlignment")] public CefSharp.DevTools.Overlay.LineStyle CrossAlignment { get; @@ -16150,7 +15886,7 @@ public partial class FlexItemHighlightConfig : CefSharp.DevTools.DevToolsDomainE /// /// Style of the box representing the item's base size /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseSizeBox")] + [JsonPropertyName("baseSizeBox")] public CefSharp.DevTools.Overlay.BoxStyle BaseSizeBox { get; @@ -16160,7 +15896,7 @@ public CefSharp.DevTools.Overlay.BoxStyle BaseSizeBox /// /// Style of the border around the box representing the item's base size /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("baseSizeBorder")] + [JsonPropertyName("baseSizeBorder")] public CefSharp.DevTools.Overlay.LineStyle BaseSizeBorder { get; @@ -16170,7 +15906,7 @@ public CefSharp.DevTools.Overlay.LineStyle BaseSizeBorder /// /// Style of the arrow representing if the item grew or shrank /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("flexibilityArrow")] + [JsonPropertyName("flexibilityArrow")] public CefSharp.DevTools.Overlay.LineStyle FlexibilityArrow { get; @@ -16186,12 +15922,12 @@ public enum LineStylePattern /// /// dashed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dashed")] + [JsonPropertyName("dashed")] Dashed, /// /// dotted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dotted")] + [JsonPropertyName("dotted")] Dotted } @@ -16203,7 +15939,7 @@ public partial class LineStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The color of the line (default: transparent) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("color")] + [JsonPropertyName("color")] public CefSharp.DevTools.DOM.RGBA Color { get; @@ -16213,7 +15949,7 @@ public CefSharp.DevTools.DOM.RGBA Color /// /// The line pattern (default: solid) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pattern")] + [JsonPropertyName("pattern")] public CefSharp.DevTools.Overlay.LineStylePattern? Pattern { get; @@ -16229,7 +15965,7 @@ public partial class BoxStyle : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The background color for the box (default: transparent) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fillColor")] + [JsonPropertyName("fillColor")] public CefSharp.DevTools.DOM.RGBA FillColor { get; @@ -16239,7 +15975,7 @@ public CefSharp.DevTools.DOM.RGBA FillColor /// /// The hatching color for the box (default: transparent) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hatchColor")] + [JsonPropertyName("hatchColor")] public CefSharp.DevTools.DOM.RGBA HatchColor { get; @@ -16255,17 +15991,17 @@ public enum ContrastAlgorithm /// /// aa /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("aa")] + [JsonPropertyName("aa")] Aa, /// /// aaa /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("aaa")] + [JsonPropertyName("aaa")] Aaa, /// /// apca /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("apca")] + [JsonPropertyName("apca")] Apca } @@ -16277,7 +16013,7 @@ public partial class HighlightConfig : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Whether the node info tooltip should be shown (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showInfo")] + [JsonPropertyName("showInfo")] public bool? ShowInfo { get; @@ -16287,7 +16023,7 @@ public bool? ShowInfo /// /// Whether the node styles in the tooltip (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showStyles")] + [JsonPropertyName("showStyles")] public bool? ShowStyles { get; @@ -16297,7 +16033,7 @@ public bool? ShowStyles /// /// Whether the rulers should be shown (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showRulers")] + [JsonPropertyName("showRulers")] public bool? ShowRulers { get; @@ -16307,7 +16043,7 @@ public bool? ShowRulers /// /// Whether the a11y info should be shown (default: true). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showAccessibilityInfo")] + [JsonPropertyName("showAccessibilityInfo")] public bool? ShowAccessibilityInfo { get; @@ -16317,7 +16053,7 @@ public bool? ShowAccessibilityInfo /// /// Whether the extension lines from node to the rulers should be shown (default: false). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showExtensionLines")] + [JsonPropertyName("showExtensionLines")] public bool? ShowExtensionLines { get; @@ -16327,7 +16063,7 @@ public bool? ShowExtensionLines /// /// The content box highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentColor")] + [JsonPropertyName("contentColor")] public CefSharp.DevTools.DOM.RGBA ContentColor { get; @@ -16337,7 +16073,7 @@ public CefSharp.DevTools.DOM.RGBA ContentColor /// /// The padding highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paddingColor")] + [JsonPropertyName("paddingColor")] public CefSharp.DevTools.DOM.RGBA PaddingColor { get; @@ -16347,7 +16083,7 @@ public CefSharp.DevTools.DOM.RGBA PaddingColor /// /// The border highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("borderColor")] + [JsonPropertyName("borderColor")] public CefSharp.DevTools.DOM.RGBA BorderColor { get; @@ -16357,7 +16093,7 @@ public CefSharp.DevTools.DOM.RGBA BorderColor /// /// The margin highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("marginColor")] + [JsonPropertyName("marginColor")] public CefSharp.DevTools.DOM.RGBA MarginColor { get; @@ -16367,7 +16103,7 @@ public CefSharp.DevTools.DOM.RGBA MarginColor /// /// The event target element highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventTargetColor")] + [JsonPropertyName("eventTargetColor")] public CefSharp.DevTools.DOM.RGBA EventTargetColor { get; @@ -16377,7 +16113,7 @@ public CefSharp.DevTools.DOM.RGBA EventTargetColor /// /// The shape outside fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shapeColor")] + [JsonPropertyName("shapeColor")] public CefSharp.DevTools.DOM.RGBA ShapeColor { get; @@ -16387,7 +16123,7 @@ public CefSharp.DevTools.DOM.RGBA ShapeColor /// /// The shape margin fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shapeMarginColor")] + [JsonPropertyName("shapeMarginColor")] public CefSharp.DevTools.DOM.RGBA ShapeMarginColor { get; @@ -16397,7 +16133,7 @@ public CefSharp.DevTools.DOM.RGBA ShapeMarginColor /// /// The grid layout color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssGridColor")] + [JsonPropertyName("cssGridColor")] public CefSharp.DevTools.DOM.RGBA CssGridColor { get; @@ -16407,7 +16143,7 @@ public CefSharp.DevTools.DOM.RGBA CssGridColor /// /// The color format used to format color styles (default: hex). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("colorFormat")] + [JsonPropertyName("colorFormat")] public CefSharp.DevTools.Overlay.ColorFormat? ColorFormat { get; @@ -16417,7 +16153,7 @@ public CefSharp.DevTools.Overlay.ColorFormat? ColorFormat /// /// The grid layout highlight configuration (default: all transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridHighlightConfig")] + [JsonPropertyName("gridHighlightConfig")] public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig { get; @@ -16427,7 +16163,7 @@ public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig /// /// The flex container highlight configuration (default: all transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("flexContainerHighlightConfig")] + [JsonPropertyName("flexContainerHighlightConfig")] public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighlightConfig { get; @@ -16437,7 +16173,7 @@ public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighl /// /// The flex item highlight configuration (default: all transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("flexItemHighlightConfig")] + [JsonPropertyName("flexItemHighlightConfig")] public CefSharp.DevTools.Overlay.FlexItemHighlightConfig FlexItemHighlightConfig { get; @@ -16447,7 +16183,7 @@ public CefSharp.DevTools.Overlay.FlexItemHighlightConfig FlexItemHighlightConfig /// /// The contrast algorithm to use for the contrast ratio (default: aa). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contrastAlgorithm")] + [JsonPropertyName("contrastAlgorithm")] public CefSharp.DevTools.Overlay.ContrastAlgorithm? ContrastAlgorithm { get; @@ -16457,7 +16193,7 @@ public CefSharp.DevTools.Overlay.ContrastAlgorithm? ContrastAlgorithm /// /// The container query container highlight configuration (default: all transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containerQueryContainerHighlightConfig")] + [JsonPropertyName("containerQueryContainerHighlightConfig")] public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig ContainerQueryContainerHighlightConfig { get; @@ -16473,22 +16209,22 @@ public enum ColorFormat /// /// rgb /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rgb")] + [JsonPropertyName("rgb")] Rgb, /// /// hsl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hsl")] + [JsonPropertyName("hsl")] Hsl, /// /// hwb /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hwb")] + [JsonPropertyName("hwb")] Hwb, /// /// hex /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hex")] + [JsonPropertyName("hex")] Hex } @@ -16500,7 +16236,7 @@ public partial class GridNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainE /// /// A descriptor for the highlight appearance. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gridHighlightConfig")] + [JsonPropertyName("gridHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig { @@ -16511,7 +16247,7 @@ public CefSharp.DevTools.Overlay.GridHighlightConfig GridHighlightConfig /// /// Identifier of the node to highlight. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -16527,7 +16263,7 @@ public partial class FlexNodeHighlightConfig : CefSharp.DevTools.DevToolsDomainE /// /// A descriptor for the highlight appearance of flex containers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("flexContainerHighlightConfig")] + [JsonPropertyName("flexContainerHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighlightConfig { @@ -16538,7 +16274,7 @@ public CefSharp.DevTools.Overlay.FlexContainerHighlightConfig FlexContainerHighl /// /// Identifier of the node to highlight. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -16554,7 +16290,7 @@ public partial class ScrollSnapContainerHighlightConfig : CefSharp.DevTools.DevT /// /// The style of the snapport border (default: transparent) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("snapportBorder")] + [JsonPropertyName("snapportBorder")] public CefSharp.DevTools.Overlay.LineStyle SnapportBorder { get; @@ -16564,7 +16300,7 @@ public CefSharp.DevTools.Overlay.LineStyle SnapportBorder /// /// The style of the snap area border (default: transparent) /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("snapAreaBorder")] + [JsonPropertyName("snapAreaBorder")] public CefSharp.DevTools.Overlay.LineStyle SnapAreaBorder { get; @@ -16574,7 +16310,7 @@ public CefSharp.DevTools.Overlay.LineStyle SnapAreaBorder /// /// The margin highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollMarginColor")] + [JsonPropertyName("scrollMarginColor")] public CefSharp.DevTools.DOM.RGBA ScrollMarginColor { get; @@ -16584,7 +16320,7 @@ public CefSharp.DevTools.DOM.RGBA ScrollMarginColor /// /// The padding highlight fill color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollPaddingColor")] + [JsonPropertyName("scrollPaddingColor")] public CefSharp.DevTools.DOM.RGBA ScrollPaddingColor { get; @@ -16600,7 +16336,7 @@ public partial class ScrollSnapHighlightConfig : CefSharp.DevTools.DevToolsDomai /// /// A descriptor for the highlight appearance of scroll snap containers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollSnapContainerHighlightConfig")] + [JsonPropertyName("scrollSnapContainerHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.ScrollSnapContainerHighlightConfig ScrollSnapContainerHighlightConfig { @@ -16611,7 +16347,7 @@ public CefSharp.DevTools.Overlay.ScrollSnapContainerHighlightConfig ScrollSnapCo /// /// Identifier of the node to highlight. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -16627,7 +16363,7 @@ public partial class HingeConfig : CefSharp.DevTools.DevToolsDomainEntityBase /// /// A rectangle represent hinge /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rect")] + [JsonPropertyName("rect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect Rect { @@ -16638,7 +16374,7 @@ public CefSharp.DevTools.DOM.Rect Rect /// /// The content box highlight fill color (default: a dark color). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentColor")] + [JsonPropertyName("contentColor")] public CefSharp.DevTools.DOM.RGBA ContentColor { get; @@ -16648,7 +16384,7 @@ public CefSharp.DevTools.DOM.RGBA ContentColor /// /// The content box highlight outline color (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("outlineColor")] + [JsonPropertyName("outlineColor")] public CefSharp.DevTools.DOM.RGBA OutlineColor { get; @@ -16664,7 +16400,7 @@ public partial class ContainerQueryHighlightConfig : CefSharp.DevTools.DevToolsD /// /// A descriptor for the highlight appearance of container query containers. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containerQueryContainerHighlightConfig")] + [JsonPropertyName("containerQueryContainerHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig ContainerQueryContainerHighlightConfig { @@ -16675,7 +16411,7 @@ public CefSharp.DevTools.Overlay.ContainerQueryContainerHighlightConfig Containe /// /// Identifier of the container node to highlight. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -16691,7 +16427,7 @@ public partial class ContainerQueryContainerHighlightConfig : CefSharp.DevTools. /// /// The style of the container border. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containerBorder")] + [JsonPropertyName("containerBorder")] public CefSharp.DevTools.Overlay.LineStyle ContainerBorder { get; @@ -16701,7 +16437,7 @@ public CefSharp.DevTools.Overlay.LineStyle ContainerBorder /// /// The style of the descendants' borders. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("descendantBorder")] + [JsonPropertyName("descendantBorder")] public CefSharp.DevTools.Overlay.LineStyle DescendantBorder { get; @@ -16717,7 +16453,7 @@ public partial class IsolatedElementHighlightConfig : CefSharp.DevTools.DevTools /// /// A descriptor for the highlight appearance of an element in isolation mode. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isolationModeHighlightConfig")] + [JsonPropertyName("isolationModeHighlightConfig")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Overlay.IsolationModeHighlightConfig IsolationModeHighlightConfig { @@ -16728,7 +16464,7 @@ public CefSharp.DevTools.Overlay.IsolationModeHighlightConfig IsolationModeHighl /// /// Identifier of the isolated element to highlight. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -16744,7 +16480,7 @@ public partial class IsolationModeHighlightConfig : CefSharp.DevTools.DevToolsDo /// /// The fill color of the resizers (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resizerColor")] + [JsonPropertyName("resizerColor")] public CefSharp.DevTools.DOM.RGBA ResizerColor { get; @@ -16754,7 +16490,7 @@ public CefSharp.DevTools.DOM.RGBA ResizerColor /// /// The fill color for resizer handles (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resizerHandleColor")] + [JsonPropertyName("resizerHandleColor")] public CefSharp.DevTools.DOM.RGBA ResizerHandleColor { get; @@ -16764,7 +16500,7 @@ public CefSharp.DevTools.DOM.RGBA ResizerHandleColor /// /// The fill color for the mask covering non-isolated elements (default: transparent). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maskColor")] + [JsonPropertyName("maskColor")] public CefSharp.DevTools.DOM.RGBA MaskColor { get; @@ -16780,27 +16516,27 @@ public enum InspectMode /// /// searchForNode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("searchForNode")] + [JsonPropertyName("searchForNode")] SearchForNode, /// /// searchForUAShadowDOM /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("searchForUAShadowDOM")] + [JsonPropertyName("searchForUAShadowDOM")] SearchForUAShadowDOM, /// /// captureAreaScreenshot /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("captureAreaScreenshot")] + [JsonPropertyName("captureAreaScreenshot")] CaptureAreaScreenshot, /// /// showDistances /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("showDistances")] + [JsonPropertyName("showDistances")] ShowDistances, /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None } @@ -16813,8 +16549,8 @@ public class InspectNodeRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Id of the node to inspect. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonInclude] + [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; @@ -16830,8 +16566,8 @@ public class NodeHighlightRequestedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// NodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -16847,8 +16583,8 @@ public class ScreenshotRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Viewport to capture, in device independent pixels (dip). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("viewport")] + [JsonInclude] + [JsonPropertyName("viewport")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Viewport Viewport { @@ -16868,17 +16604,17 @@ public enum AdFrameType /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None, /// /// child /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("child")] + [JsonPropertyName("child")] Child, /// /// root /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + [JsonPropertyName("root")] Root } @@ -16890,17 +16626,17 @@ public enum AdFrameExplanation /// /// ParentIsAd /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ParentIsAd")] + [JsonPropertyName("ParentIsAd")] ParentIsAd, /// /// CreatedByAdScript /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CreatedByAdScript")] + [JsonPropertyName("CreatedByAdScript")] CreatedByAdScript, /// /// MatchedBlockingRule /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MatchedBlockingRule")] + [JsonPropertyName("MatchedBlockingRule")] MatchedBlockingRule } @@ -16912,7 +16648,7 @@ public partial class AdFrameStatus : CefSharp.DevTools.DevToolsDomainEntityBase /// /// AdFrameType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("adFrameType")] + [JsonPropertyName("adFrameType")] public CefSharp.DevTools.Page.AdFrameType AdFrameType { get; @@ -16922,7 +16658,7 @@ public CefSharp.DevTools.Page.AdFrameType AdFrameType /// /// Explanations /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("explanations")] + [JsonPropertyName("explanations")] public CefSharp.DevTools.Page.AdFrameExplanation[] Explanations { get; @@ -16940,7 +16676,7 @@ public partial class AdScriptId : CefSharp.DevTools.DevToolsDomainEntityBase /// Script Id of the bottom-most script which caused the frame to be labelled /// as an ad. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -16951,7 +16687,7 @@ public string ScriptId /// /// Id of adScriptId's debugger. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debuggerId")] + [JsonPropertyName("debuggerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DebuggerId { @@ -16968,22 +16704,22 @@ public enum SecureContextType /// /// Secure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Secure")] + [JsonPropertyName("Secure")] Secure, /// /// SecureLocalhost /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SecureLocalhost")] + [JsonPropertyName("SecureLocalhost")] SecureLocalhost, /// /// InsecureScheme /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecureScheme")] + [JsonPropertyName("InsecureScheme")] InsecureScheme, /// /// InsecureAncestor /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InsecureAncestor")] + [JsonPropertyName("InsecureAncestor")] InsecureAncestor } @@ -16995,17 +16731,17 @@ public enum CrossOriginIsolatedContextType /// /// Isolated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Isolated")] + [JsonPropertyName("Isolated")] Isolated, /// /// NotIsolated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotIsolated")] + [JsonPropertyName("NotIsolated")] NotIsolated, /// /// NotIsolatedFeatureDisabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotIsolatedFeatureDisabled")] + [JsonPropertyName("NotIsolatedFeatureDisabled")] NotIsolatedFeatureDisabled } @@ -17017,22 +16753,22 @@ public enum GatedAPIFeatures /// /// SharedArrayBuffers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedArrayBuffers")] + [JsonPropertyName("SharedArrayBuffers")] SharedArrayBuffers, /// /// SharedArrayBuffersTransferAllowed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedArrayBuffersTransferAllowed")] + [JsonPropertyName("SharedArrayBuffersTransferAllowed")] SharedArrayBuffersTransferAllowed, /// /// PerformanceMeasureMemory /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PerformanceMeasureMemory")] + [JsonPropertyName("PerformanceMeasureMemory")] PerformanceMeasureMemory, /// /// PerformanceProfile /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PerformanceProfile")] + [JsonPropertyName("PerformanceProfile")] PerformanceProfile } @@ -17045,392 +16781,392 @@ public enum PermissionsPolicyFeature /// /// accelerometer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("accelerometer")] + [JsonPropertyName("accelerometer")] Accelerometer, /// /// ambient-light-sensor /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ambient-light-sensor")] + [JsonPropertyName("ambient-light-sensor")] AmbientLightSensor, /// /// attribution-reporting /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attribution-reporting")] + [JsonPropertyName("attribution-reporting")] AttributionReporting, /// /// autoplay /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoplay")] + [JsonPropertyName("autoplay")] Autoplay, /// /// bluetooth /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bluetooth")] + [JsonPropertyName("bluetooth")] Bluetooth, /// /// browsing-topics /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("browsing-topics")] + [JsonPropertyName("browsing-topics")] BrowsingTopics, /// /// camera /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("camera")] + [JsonPropertyName("camera")] Camera, /// /// ch-dpr /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-dpr")] + [JsonPropertyName("ch-dpr")] ChDpr, /// /// ch-device-memory /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-device-memory")] + [JsonPropertyName("ch-device-memory")] ChDeviceMemory, /// /// ch-downlink /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-downlink")] + [JsonPropertyName("ch-downlink")] ChDownlink, /// /// ch-ect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ect")] + [JsonPropertyName("ch-ect")] ChEct, /// /// ch-prefers-color-scheme /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-prefers-color-scheme")] + [JsonPropertyName("ch-prefers-color-scheme")] ChPrefersColorScheme, /// /// ch-prefers-reduced-motion /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-prefers-reduced-motion")] + [JsonPropertyName("ch-prefers-reduced-motion")] ChPrefersReducedMotion, /// /// ch-rtt /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-rtt")] + [JsonPropertyName("ch-rtt")] ChRtt, /// /// ch-save-data /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-save-data")] + [JsonPropertyName("ch-save-data")] ChSaveData, /// /// ch-ua /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua")] + [JsonPropertyName("ch-ua")] ChUa, /// /// ch-ua-arch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-arch")] + [JsonPropertyName("ch-ua-arch")] ChUaArch, /// /// ch-ua-bitness /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-bitness")] + [JsonPropertyName("ch-ua-bitness")] ChUaBitness, /// /// ch-ua-platform /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-platform")] + [JsonPropertyName("ch-ua-platform")] ChUaPlatform, /// /// ch-ua-model /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-model")] + [JsonPropertyName("ch-ua-model")] ChUaModel, /// /// ch-ua-mobile /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-mobile")] + [JsonPropertyName("ch-ua-mobile")] ChUaMobile, /// /// ch-ua-full /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-full")] + [JsonPropertyName("ch-ua-full")] ChUaFull, /// /// ch-ua-full-version /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-full-version")] + [JsonPropertyName("ch-ua-full-version")] ChUaFullVersion, /// /// ch-ua-full-version-list /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-full-version-list")] + [JsonPropertyName("ch-ua-full-version-list")] ChUaFullVersionList, /// /// ch-ua-platform-version /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-platform-version")] + [JsonPropertyName("ch-ua-platform-version")] ChUaPlatformVersion, /// /// ch-ua-reduced /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-reduced")] + [JsonPropertyName("ch-ua-reduced")] ChUaReduced, /// /// ch-ua-wow64 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-ua-wow64")] + [JsonPropertyName("ch-ua-wow64")] ChUaWow64, /// /// ch-viewport-height /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-viewport-height")] + [JsonPropertyName("ch-viewport-height")] ChViewportHeight, /// /// ch-viewport-width /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-viewport-width")] + [JsonPropertyName("ch-viewport-width")] ChViewportWidth, /// /// ch-width /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ch-width")] + [JsonPropertyName("ch-width")] ChWidth, /// /// clipboard-read /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboard-read")] + [JsonPropertyName("clipboard-read")] ClipboardRead, /// /// clipboard-write /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clipboard-write")] + [JsonPropertyName("clipboard-write")] ClipboardWrite, /// /// compute-pressure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("compute-pressure")] + [JsonPropertyName("compute-pressure")] ComputePressure, /// /// cross-origin-isolated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cross-origin-isolated")] + [JsonPropertyName("cross-origin-isolated")] CrossOriginIsolated, /// /// direct-sockets /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("direct-sockets")] + [JsonPropertyName("direct-sockets")] DirectSockets, /// /// display-capture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("display-capture")] + [JsonPropertyName("display-capture")] DisplayCapture, /// /// document-domain /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("document-domain")] + [JsonPropertyName("document-domain")] DocumentDomain, /// /// encrypted-media /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("encrypted-media")] + [JsonPropertyName("encrypted-media")] EncryptedMedia, /// /// execution-while-out-of-viewport /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("execution-while-out-of-viewport")] + [JsonPropertyName("execution-while-out-of-viewport")] ExecutionWhileOutOfViewport, /// /// execution-while-not-rendered /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("execution-while-not-rendered")] + [JsonPropertyName("execution-while-not-rendered")] ExecutionWhileNotRendered, /// /// focus-without-user-activation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("focus-without-user-activation")] + [JsonPropertyName("focus-without-user-activation")] FocusWithoutUserActivation, /// /// fullscreen /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fullscreen")] + [JsonPropertyName("fullscreen")] Fullscreen, /// /// frobulate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frobulate")] + [JsonPropertyName("frobulate")] Frobulate, /// /// gamepad /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gamepad")] + [JsonPropertyName("gamepad")] Gamepad, /// /// geolocation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("geolocation")] + [JsonPropertyName("geolocation")] Geolocation, /// /// gyroscope /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gyroscope")] + [JsonPropertyName("gyroscope")] Gyroscope, /// /// hid /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hid")] + [JsonPropertyName("hid")] Hid, /// /// identity-credentials-get /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("identity-credentials-get")] + [JsonPropertyName("identity-credentials-get")] IdentityCredentialsGet, /// /// idle-detection /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("idle-detection")] + [JsonPropertyName("idle-detection")] IdleDetection, /// /// interest-cohort /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("interest-cohort")] + [JsonPropertyName("interest-cohort")] InterestCohort, /// /// join-ad-interest-group /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("join-ad-interest-group")] + [JsonPropertyName("join-ad-interest-group")] JoinAdInterestGroup, /// /// keyboard-map /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyboard-map")] + [JsonPropertyName("keyboard-map")] KeyboardMap, /// /// local-fonts /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("local-fonts")] + [JsonPropertyName("local-fonts")] LocalFonts, /// /// magnetometer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("magnetometer")] + [JsonPropertyName("magnetometer")] Magnetometer, /// /// microphone /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("microphone")] + [JsonPropertyName("microphone")] Microphone, /// /// midi /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("midi")] + [JsonPropertyName("midi")] Midi, /// /// otp-credentials /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("otp-credentials")] + [JsonPropertyName("otp-credentials")] OtpCredentials, /// /// payment /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("payment")] + [JsonPropertyName("payment")] Payment, /// /// picture-in-picture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("picture-in-picture")] + [JsonPropertyName("picture-in-picture")] PictureInPicture, /// /// private-aggregation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("private-aggregation")] + [JsonPropertyName("private-aggregation")] PrivateAggregation, /// /// publickey-credentials-get /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("publickey-credentials-get")] + [JsonPropertyName("publickey-credentials-get")] PublickeyCredentialsGet, /// /// run-ad-auction /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("run-ad-auction")] + [JsonPropertyName("run-ad-auction")] RunAdAuction, /// /// screen-wake-lock /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("screen-wake-lock")] + [JsonPropertyName("screen-wake-lock")] ScreenWakeLock, /// /// serial /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("serial")] + [JsonPropertyName("serial")] Serial, /// /// shared-autofill /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-autofill")] + [JsonPropertyName("shared-autofill")] SharedAutofill, /// /// shared-storage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage")] + [JsonPropertyName("shared-storage")] SharedStorage, /// /// shared-storage-select-url /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared-storage-select-url")] + [JsonPropertyName("shared-storage-select-url")] SharedStorageSelectUrl, /// /// smart-card /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("smart-card")] + [JsonPropertyName("smart-card")] SmartCard, /// /// storage-access /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storage-access")] + [JsonPropertyName("storage-access")] StorageAccess, /// /// sync-xhr /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sync-xhr")] + [JsonPropertyName("sync-xhr")] SyncXhr, /// /// trust-token-redemption /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trust-token-redemption")] + [JsonPropertyName("trust-token-redemption")] TrustTokenRedemption, /// /// unload /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unload")] + [JsonPropertyName("unload")] Unload, /// /// usb /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("usb")] + [JsonPropertyName("usb")] Usb, /// /// vertical-scroll /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("vertical-scroll")] + [JsonPropertyName("vertical-scroll")] VerticalScroll, /// /// web-share /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("web-share")] + [JsonPropertyName("web-share")] WebShare, /// /// window-management /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("window-management")] + [JsonPropertyName("window-management")] WindowManagement, /// /// window-placement /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("window-placement")] + [JsonPropertyName("window-placement")] WindowPlacement, /// /// xr-spatial-tracking /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("xr-spatial-tracking")] + [JsonPropertyName("xr-spatial-tracking")] XrSpatialTracking } @@ -17442,22 +17178,22 @@ public enum PermissionsPolicyBlockReason /// /// Header /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Header")] + [JsonPropertyName("Header")] Header, /// /// IframeAttribute /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IframeAttribute")] + [JsonPropertyName("IframeAttribute")] IframeAttribute, /// /// InFencedFrameTree /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InFencedFrameTree")] + [JsonPropertyName("InFencedFrameTree")] InFencedFrameTree, /// /// InIsolatedApp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InIsolatedApp")] + [JsonPropertyName("InIsolatedApp")] InIsolatedApp } @@ -17469,7 +17205,7 @@ public partial class PermissionsPolicyBlockLocator : CefSharp.DevTools.DevToolsD /// /// FrameId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -17480,7 +17216,7 @@ public string FrameId /// /// BlockReason /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockReason")] + [JsonPropertyName("blockReason")] public CefSharp.DevTools.Page.PermissionsPolicyBlockReason BlockReason { get; @@ -17496,7 +17232,7 @@ public partial class PermissionsPolicyFeatureState : CefSharp.DevTools.DevToolsD /// /// Feature /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("feature")] + [JsonPropertyName("feature")] public CefSharp.DevTools.Page.PermissionsPolicyFeature Feature { get; @@ -17506,7 +17242,7 @@ public CefSharp.DevTools.Page.PermissionsPolicyFeature Feature /// /// Allowed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("allowed")] + [JsonPropertyName("allowed")] public bool Allowed { get; @@ -17516,7 +17252,7 @@ public bool Allowed /// /// Locator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("locator")] + [JsonPropertyName("locator")] public CefSharp.DevTools.Page.PermissionsPolicyBlockLocator Locator { get; @@ -17533,62 +17269,62 @@ public enum OriginTrialTokenStatus /// /// Success /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Success")] + [JsonPropertyName("Success")] Success, /// /// NotSupported /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotSupported")] + [JsonPropertyName("NotSupported")] NotSupported, /// /// Insecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Insecure")] + [JsonPropertyName("Insecure")] Insecure, /// /// Expired /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Expired")] + [JsonPropertyName("Expired")] Expired, /// /// WrongOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WrongOrigin")] + [JsonPropertyName("WrongOrigin")] WrongOrigin, /// /// InvalidSignature /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSignature")] + [JsonPropertyName("InvalidSignature")] InvalidSignature, /// /// Malformed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Malformed")] + [JsonPropertyName("Malformed")] Malformed, /// /// WrongVersion /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WrongVersion")] + [JsonPropertyName("WrongVersion")] WrongVersion, /// /// FeatureDisabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FeatureDisabled")] + [JsonPropertyName("FeatureDisabled")] FeatureDisabled, /// /// TokenDisabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TokenDisabled")] + [JsonPropertyName("TokenDisabled")] TokenDisabled, /// /// FeatureDisabledForUser /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FeatureDisabledForUser")] + [JsonPropertyName("FeatureDisabledForUser")] FeatureDisabledForUser, /// /// UnknownTrial /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnknownTrial")] + [JsonPropertyName("UnknownTrial")] UnknownTrial } @@ -17600,22 +17336,22 @@ public enum OriginTrialStatus /// /// Enabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Enabled")] + [JsonPropertyName("Enabled")] Enabled, /// /// ValidTokenNotProvided /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ValidTokenNotProvided")] + [JsonPropertyName("ValidTokenNotProvided")] ValidTokenNotProvided, /// /// OSNotSupported /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OSNotSupported")] + [JsonPropertyName("OSNotSupported")] OSNotSupported, /// /// TrialNotAllowed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TrialNotAllowed")] + [JsonPropertyName("TrialNotAllowed")] TrialNotAllowed } @@ -17627,12 +17363,12 @@ public enum OriginTrialUsageRestriction /// /// None /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("None")] + [JsonPropertyName("None")] None, /// /// Subset /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Subset")] + [JsonPropertyName("Subset")] Subset } @@ -17644,7 +17380,7 @@ public partial class OriginTrialToken : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -17655,7 +17391,7 @@ public string Origin /// /// MatchSubDomains /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("matchSubDomains")] + [JsonPropertyName("matchSubDomains")] public bool MatchSubDomains { get; @@ -17665,7 +17401,7 @@ public bool MatchSubDomains /// /// TrialName /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trialName")] + [JsonPropertyName("trialName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TrialName { @@ -17676,7 +17412,7 @@ public string TrialName /// /// ExpiryTime /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("expiryTime")] + [JsonPropertyName("expiryTime")] public double ExpiryTime { get; @@ -17686,7 +17422,7 @@ public double ExpiryTime /// /// IsThirdParty /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isThirdParty")] + [JsonPropertyName("isThirdParty")] public bool IsThirdParty { get; @@ -17696,7 +17432,7 @@ public bool IsThirdParty /// /// UsageRestriction /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("usageRestriction")] + [JsonPropertyName("usageRestriction")] public CefSharp.DevTools.Page.OriginTrialUsageRestriction UsageRestriction { get; @@ -17712,7 +17448,7 @@ public partial class OriginTrialTokenWithStatus : CefSharp.DevTools.DevToolsDoma /// /// RawTokenText /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rawTokenText")] + [JsonPropertyName("rawTokenText")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RawTokenText { @@ -17724,7 +17460,7 @@ public string RawTokenText /// `parsedToken` is present only when the token is extractable and /// parsable. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parsedToken")] + [JsonPropertyName("parsedToken")] public CefSharp.DevTools.Page.OriginTrialToken ParsedToken { get; @@ -17734,7 +17470,7 @@ public CefSharp.DevTools.Page.OriginTrialToken ParsedToken /// /// Status /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonPropertyName("status")] public CefSharp.DevTools.Page.OriginTrialTokenStatus Status { get; @@ -17750,7 +17486,7 @@ public partial class OriginTrial : CefSharp.DevTools.DevToolsDomainEntityBase /// /// TrialName /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trialName")] + [JsonPropertyName("trialName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TrialName { @@ -17761,7 +17497,7 @@ public string TrialName /// /// Status /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonPropertyName("status")] public CefSharp.DevTools.Page.OriginTrialStatus Status { get; @@ -17771,7 +17507,7 @@ public CefSharp.DevTools.Page.OriginTrialStatus Status /// /// TokensWithStatus /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tokensWithStatus")] + [JsonPropertyName("tokensWithStatus")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList TokensWithStatus { @@ -17788,7 +17524,7 @@ public partial class Frame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Frame unique identifier. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -17799,7 +17535,7 @@ public string Id /// /// Parent frame identifier. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + [JsonPropertyName("parentId")] public string ParentId { get; @@ -17809,7 +17545,7 @@ public string ParentId /// /// Identifier of the loader associated with this frame. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { @@ -17820,7 +17556,7 @@ public string LoaderId /// /// Frame's name as specified in the tag. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public string Name { get; @@ -17830,7 +17566,7 @@ public string Name /// /// Frame document's URL without fragment. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -17841,7 +17577,7 @@ public string Url /// /// Frame document's URL fragment including the '#'. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlFragment")] + [JsonPropertyName("urlFragment")] public string UrlFragment { get; @@ -17854,7 +17590,7 @@ public string UrlFragment /// Example URLs: http://www.google.com/file.html -> "google.com" /// http://a.b.co.uk/file.html -> "b.co.uk" /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("domainAndRegistry")] + [JsonPropertyName("domainAndRegistry")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DomainAndRegistry { @@ -17865,7 +17601,7 @@ public string DomainAndRegistry /// /// Frame document's security origin. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityOrigin")] + [JsonPropertyName("securityOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SecurityOrigin { @@ -17876,7 +17612,7 @@ public string SecurityOrigin /// /// Frame document's mimeType as determined by the browser. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")] + [JsonPropertyName("mimeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MimeType { @@ -17887,7 +17623,7 @@ public string MimeType /// /// If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unreachableUrl")] + [JsonPropertyName("unreachableUrl")] public string UnreachableUrl { get; @@ -17897,7 +17633,7 @@ public string UnreachableUrl /// /// Indicates whether this frame was tagged as an ad and why. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("adFrameStatus")] + [JsonPropertyName("adFrameStatus")] public CefSharp.DevTools.Page.AdFrameStatus AdFrameStatus { get; @@ -17907,7 +17643,7 @@ public CefSharp.DevTools.Page.AdFrameStatus AdFrameStatus /// /// Indicates whether the main document is a secure context and explains why that is the case. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("secureContextType")] + [JsonPropertyName("secureContextType")] public CefSharp.DevTools.Page.SecureContextType SecureContextType { get; @@ -17917,7 +17653,7 @@ public CefSharp.DevTools.Page.SecureContextType SecureContextType /// /// Indicates whether this is a cross origin isolated context. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("crossOriginIsolatedContextType")] + [JsonPropertyName("crossOriginIsolatedContextType")] public CefSharp.DevTools.Page.CrossOriginIsolatedContextType CrossOriginIsolatedContextType { get; @@ -17927,7 +17663,7 @@ public CefSharp.DevTools.Page.CrossOriginIsolatedContextType CrossOriginIsolated /// /// Indicated which gated APIs / features are available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gatedAPIFeatures")] + [JsonPropertyName("gatedAPIFeatures")] public CefSharp.DevTools.Page.GatedAPIFeatures[] GatedAPIFeatures { get; @@ -17943,7 +17679,7 @@ public partial class FrameResource : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Resource URL. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -17954,7 +17690,7 @@ public string Url /// /// Type of this resource. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Network.ResourceType Type { get; @@ -17964,7 +17700,7 @@ public CefSharp.DevTools.Network.ResourceType Type /// /// Resource mimeType as determined by the browser. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mimeType")] + [JsonPropertyName("mimeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MimeType { @@ -17975,7 +17711,7 @@ public string MimeType /// /// last-modified timestamp as reported by server. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lastModified")] + [JsonPropertyName("lastModified")] public double? LastModified { get; @@ -17985,7 +17721,7 @@ public double? LastModified /// /// Resource content size. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSize")] + [JsonPropertyName("contentSize")] public double? ContentSize { get; @@ -17995,7 +17731,7 @@ public double? ContentSize /// /// True if the resource failed to load. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("failed")] + [JsonPropertyName("failed")] public bool? Failed { get; @@ -18005,7 +17741,7 @@ public bool? Failed /// /// True if the resource was canceled during loading. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("canceled")] + [JsonPropertyName("canceled")] public bool? Canceled { get; @@ -18021,7 +17757,7 @@ public partial class FrameResourceTree : CefSharp.DevTools.DevToolsDomainEntityB /// /// Frame information for this tree item. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { @@ -18032,7 +17768,7 @@ public CefSharp.DevTools.Page.Frame Frame /// /// Child frames. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("childFrames")] + [JsonPropertyName("childFrames")] public System.Collections.Generic.IList ChildFrames { get; @@ -18042,7 +17778,7 @@ public System.Collections.Generic.IList /// Information about frame resources. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resources")] + [JsonPropertyName("resources")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Resources { @@ -18059,7 +17795,7 @@ public partial class FrameTree : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Frame information for this tree item. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { @@ -18070,7 +17806,7 @@ public CefSharp.DevTools.Page.Frame Frame /// /// Child frames. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("childFrames")] + [JsonPropertyName("childFrames")] public System.Collections.Generic.IList ChildFrames { get; @@ -18086,67 +17822,67 @@ public enum TransitionType /// /// link /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("link")] + [JsonPropertyName("link")] Link, /// /// typed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("typed")] + [JsonPropertyName("typed")] Typed, /// /// address_bar /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("address_bar")] + [JsonPropertyName("address_bar")] AddressBar, /// /// auto_bookmark /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("auto_bookmark")] + [JsonPropertyName("auto_bookmark")] AutoBookmark, /// /// auto_subframe /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("auto_subframe")] + [JsonPropertyName("auto_subframe")] AutoSubframe, /// /// manual_subframe /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("manual_subframe")] + [JsonPropertyName("manual_subframe")] ManualSubframe, /// /// generated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("generated")] + [JsonPropertyName("generated")] Generated, /// /// auto_toplevel /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("auto_toplevel")] + [JsonPropertyName("auto_toplevel")] AutoToplevel, /// /// form_submit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("form_submit")] + [JsonPropertyName("form_submit")] FormSubmit, /// /// reload /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reload")] + [JsonPropertyName("reload")] Reload, /// /// keyword /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyword")] + [JsonPropertyName("keyword")] Keyword, /// /// keyword_generated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyword_generated")] + [JsonPropertyName("keyword_generated")] KeywordGenerated, /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other } @@ -18158,7 +17894,7 @@ public partial class NavigationEntry : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Unique id of the navigation history entry. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] public int Id { get; @@ -18168,7 +17904,7 @@ public int Id /// /// URL of the navigation history entry. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -18179,7 +17915,7 @@ public string Url /// /// URL that the user typed in the url bar. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("userTypedURL")] + [JsonPropertyName("userTypedURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UserTypedURL { @@ -18190,7 +17926,7 @@ public string UserTypedURL /// /// Title of the navigation history entry. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { @@ -18201,7 +17937,7 @@ public string Title /// /// Transition type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transitionType")] + [JsonPropertyName("transitionType")] public CefSharp.DevTools.Page.TransitionType TransitionType { get; @@ -18217,7 +17953,7 @@ public partial class ScreencastFrameMetadata : CefSharp.DevTools.DevToolsDomainE /// /// Top offset in DIP. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetTop")] + [JsonPropertyName("offsetTop")] public double OffsetTop { get; @@ -18227,7 +17963,7 @@ public double OffsetTop /// /// Page scale factor. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageScaleFactor")] + [JsonPropertyName("pageScaleFactor")] public double PageScaleFactor { get; @@ -18237,7 +17973,7 @@ public double PageScaleFactor /// /// Device screen width in DIP. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceWidth")] + [JsonPropertyName("deviceWidth")] public double DeviceWidth { get; @@ -18247,7 +17983,7 @@ public double DeviceWidth /// /// Device screen height in DIP. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceHeight")] + [JsonPropertyName("deviceHeight")] public double DeviceHeight { get; @@ -18257,7 +17993,7 @@ public double DeviceHeight /// /// Position of horizontal scroll in CSS pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetX")] + [JsonPropertyName("scrollOffsetX")] public double ScrollOffsetX { get; @@ -18267,7 +18003,7 @@ public double ScrollOffsetX /// /// Position of vertical scroll in CSS pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scrollOffsetY")] + [JsonPropertyName("scrollOffsetY")] public double ScrollOffsetY { get; @@ -18277,7 +18013,7 @@ public double ScrollOffsetY /// /// Frame swap timestamp. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonPropertyName("timestamp")] public double? Timestamp { get; @@ -18293,22 +18029,22 @@ public enum DialogType /// /// alert /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("alert")] + [JsonPropertyName("alert")] Alert, /// /// confirm /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("confirm")] + [JsonPropertyName("confirm")] Confirm, /// /// prompt /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("prompt")] + [JsonPropertyName("prompt")] Prompt, /// /// beforeunload /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("beforeunload")] + [JsonPropertyName("beforeunload")] Beforeunload } @@ -18320,7 +18056,7 @@ public partial class AppManifestError : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Error message. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { @@ -18331,7 +18067,7 @@ public string Message /// /// If criticial, this is a non-recoverable parse error. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("critical")] + [JsonPropertyName("critical")] public int Critical { get; @@ -18341,7 +18077,7 @@ public int Critical /// /// Error line. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("line")] + [JsonPropertyName("line")] public int Line { get; @@ -18351,7 +18087,7 @@ public int Line /// /// Error column. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("column")] + [JsonPropertyName("column")] public int Column { get; @@ -18367,7 +18103,7 @@ public partial class AppManifestParsedProperties : CefSharp.DevTools.DevToolsDom /// /// Computed scope value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scope")] + [JsonPropertyName("scope")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Scope { @@ -18384,7 +18120,7 @@ public partial class LayoutViewport : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Horizontal offset relative to the document (CSS pixels). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageX")] + [JsonPropertyName("pageX")] public int PageX { get; @@ -18394,7 +18130,7 @@ public int PageX /// /// Vertical offset relative to the document (CSS pixels). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageY")] + [JsonPropertyName("pageY")] public int PageY { get; @@ -18404,7 +18140,7 @@ public int PageY /// /// Width (CSS pixels), excludes scrollbar if present. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientWidth")] + [JsonPropertyName("clientWidth")] public int ClientWidth { get; @@ -18414,7 +18150,7 @@ public int ClientWidth /// /// Height (CSS pixels), excludes scrollbar if present. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientHeight")] + [JsonPropertyName("clientHeight")] public int ClientHeight { get; @@ -18430,7 +18166,7 @@ public partial class VisualViewport : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Horizontal offset relative to the layout viewport (CSS pixels). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetX")] + [JsonPropertyName("offsetX")] public double OffsetX { get; @@ -18440,7 +18176,7 @@ public double OffsetX /// /// Vertical offset relative to the layout viewport (CSS pixels). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offsetY")] + [JsonPropertyName("offsetY")] public double OffsetY { get; @@ -18450,7 +18186,7 @@ public double OffsetY /// /// Horizontal offset relative to the document (CSS pixels). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageX")] + [JsonPropertyName("pageX")] public double PageX { get; @@ -18460,7 +18196,7 @@ public double PageX /// /// Vertical offset relative to the document (CSS pixels). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageY")] + [JsonPropertyName("pageY")] public double PageY { get; @@ -18470,7 +18206,7 @@ public double PageY /// /// Width (CSS pixels), excludes scrollbar if present. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientWidth")] + [JsonPropertyName("clientWidth")] public double ClientWidth { get; @@ -18480,7 +18216,7 @@ public double ClientWidth /// /// Height (CSS pixels), excludes scrollbar if present. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clientHeight")] + [JsonPropertyName("clientHeight")] public double ClientHeight { get; @@ -18490,7 +18226,7 @@ public double ClientHeight /// /// Scale relative to the ideal viewport (size at width=device-width). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scale")] + [JsonPropertyName("scale")] public double Scale { get; @@ -18500,7 +18236,7 @@ public double Scale /// /// Page zoom factor (CSS to device independent pixels ratio). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("zoom")] + [JsonPropertyName("zoom")] public double? Zoom { get; @@ -18516,7 +18252,7 @@ public partial class Viewport : CefSharp.DevTools.DevToolsDomainEntityBase /// /// X offset in device independent pixels (dip). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("x")] + [JsonPropertyName("x")] public double X { get; @@ -18526,7 +18262,7 @@ public double X /// /// Y offset in device independent pixels (dip). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("y")] + [JsonPropertyName("y")] public double Y { get; @@ -18536,7 +18272,7 @@ public double Y /// /// Rectangle width in device independent pixels (dip). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + [JsonPropertyName("width")] public double Width { get; @@ -18546,7 +18282,7 @@ public double Width /// /// Rectangle height in device independent pixels (dip). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + [JsonPropertyName("height")] public double Height { get; @@ -18556,7 +18292,7 @@ public double Height /// /// Page scale factor. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scale")] + [JsonPropertyName("scale")] public double Scale { get; @@ -18572,7 +18308,7 @@ public partial class FontFamilies : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The standard font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("standard")] + [JsonPropertyName("standard")] public string Standard { get; @@ -18582,7 +18318,7 @@ public string Standard /// /// The fixed font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fixed")] + [JsonPropertyName("fixed")] public string Fixed { get; @@ -18592,7 +18328,7 @@ public string Fixed /// /// The serif font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("serif")] + [JsonPropertyName("serif")] public string Serif { get; @@ -18602,7 +18338,7 @@ public string Serif /// /// The sansSerif font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sansSerif")] + [JsonPropertyName("sansSerif")] public string SansSerif { get; @@ -18612,7 +18348,7 @@ public string SansSerif /// /// The cursive font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cursive")] + [JsonPropertyName("cursive")] public string Cursive { get; @@ -18622,7 +18358,7 @@ public string Cursive /// /// The fantasy font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fantasy")] + [JsonPropertyName("fantasy")] public string Fantasy { get; @@ -18632,7 +18368,7 @@ public string Fantasy /// /// The math font-family. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("math")] + [JsonPropertyName("math")] public string Math { get; @@ -18648,7 +18384,7 @@ public partial class ScriptFontFamilies : CefSharp.DevTools.DevToolsDomainEntity /// /// Name of the script which these font families are defined for. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("script")] + [JsonPropertyName("script")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Script { @@ -18659,7 +18395,7 @@ public string Script /// /// Generic font families collection for the script. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fontFamilies")] + [JsonPropertyName("fontFamilies")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.FontFamilies FontFamilies { @@ -18676,7 +18412,7 @@ public partial class FontSizes : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Default standard font size. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("standard")] + [JsonPropertyName("standard")] public int? Standard { get; @@ -18686,7 +18422,7 @@ public int? Standard /// /// Default fixed font size. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fixed")] + [JsonPropertyName("fixed")] public int? Fixed { get; @@ -18702,42 +18438,42 @@ public enum ClientNavigationReason /// /// formSubmissionGet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("formSubmissionGet")] + [JsonPropertyName("formSubmissionGet")] FormSubmissionGet, /// /// formSubmissionPost /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("formSubmissionPost")] + [JsonPropertyName("formSubmissionPost")] FormSubmissionPost, /// /// httpHeaderRefresh /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("httpHeaderRefresh")] + [JsonPropertyName("httpHeaderRefresh")] HttpHeaderRefresh, /// /// scriptInitiated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptInitiated")] + [JsonPropertyName("scriptInitiated")] ScriptInitiated, /// /// metaTagRefresh /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("metaTagRefresh")] + [JsonPropertyName("metaTagRefresh")] MetaTagRefresh, /// /// pageBlockInterstitial /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pageBlockInterstitial")] + [JsonPropertyName("pageBlockInterstitial")] PageBlockInterstitial, /// /// reload /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reload")] + [JsonPropertyName("reload")] Reload, /// /// anchorClick /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("anchorClick")] + [JsonPropertyName("anchorClick")] AnchorClick } @@ -18749,22 +18485,22 @@ public enum ClientNavigationDisposition /// /// currentTab /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTab")] + [JsonPropertyName("currentTab")] CurrentTab, /// /// newTab /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("newTab")] + [JsonPropertyName("newTab")] NewTab, /// /// newWindow /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("newWindow")] + [JsonPropertyName("newWindow")] NewWindow, /// /// download /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("download")] + [JsonPropertyName("download")] Download } @@ -18776,7 +18512,7 @@ public partial class InstallabilityErrorArgument : CefSharp.DevTools.DevToolsDom /// /// Argument name (e.g. name:'minimum-icon-size-in-pixels'). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -18787,7 +18523,7 @@ public string Name /// /// Argument value (e.g. value:'64'). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -18804,7 +18540,7 @@ public partial class InstallabilityError : CefSharp.DevTools.DevToolsDomainEntit /// /// The error id (e.g. 'manifest-missing-suitable-icon'). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorId")] + [JsonPropertyName("errorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorId { @@ -18815,7 +18551,7 @@ public string ErrorId /// /// The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorArguments")] + [JsonPropertyName("errorArguments")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ErrorArguments { @@ -18832,42 +18568,42 @@ public enum ReferrerPolicy /// /// noReferrer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("noReferrer")] + [JsonPropertyName("noReferrer")] NoReferrer, /// /// noReferrerWhenDowngrade /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("noReferrerWhenDowngrade")] + [JsonPropertyName("noReferrerWhenDowngrade")] NoReferrerWhenDowngrade, /// /// origin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] Origin, /// /// originWhenCrossOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("originWhenCrossOrigin")] + [JsonPropertyName("originWhenCrossOrigin")] OriginWhenCrossOrigin, /// /// sameOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sameOrigin")] + [JsonPropertyName("sameOrigin")] SameOrigin, /// /// strictOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("strictOrigin")] + [JsonPropertyName("strictOrigin")] StrictOrigin, /// /// strictOriginWhenCrossOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("strictOriginWhenCrossOrigin")] + [JsonPropertyName("strictOriginWhenCrossOrigin")] StrictOriginWhenCrossOrigin, /// /// unsafeUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unsafeUrl")] + [JsonPropertyName("unsafeUrl")] UnsafeUrl } @@ -18879,7 +18615,7 @@ public partial class CompilationCacheParams : CefSharp.DevTools.DevToolsDomainEn /// /// The URL of the script to produce a compilation cache entry for. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -18891,7 +18627,7 @@ public string Url /// A hint to the backend whether eager compilation is recommended. /// (the actual compilation mode used is upon backend discretion). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eager")] + [JsonPropertyName("eager")] public bool? Eager { get; @@ -18899,6 +18635,33 @@ public bool? Eager } } + /// + /// Enum of possible auto-reponse for permisison / prompt dialogs. + /// + public enum AutoResponseMode + { + /// + /// none + /// + [JsonPropertyName("none")] + None, + /// + /// autoAccept + /// + [JsonPropertyName("autoAccept")] + AutoAccept, + /// + /// autoReject + /// + [JsonPropertyName("autoReject")] + AutoReject, + /// + /// autoOptOut + /// + [JsonPropertyName("autoOptOut")] + AutoOptOut + } + /// /// The type of a frameNavigated event. /// @@ -18907,12 +18670,12 @@ public enum NavigationType /// /// Navigation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Navigation")] + [JsonPropertyName("Navigation")] Navigation, /// /// BackForwardCacheRestore /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BackForwardCacheRestore")] + [JsonPropertyName("BackForwardCacheRestore")] BackForwardCacheRestore } @@ -18924,622 +18687,622 @@ public enum BackForwardCacheNotRestoredReason /// /// NotPrimaryMainFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotPrimaryMainFrame")] + [JsonPropertyName("NotPrimaryMainFrame")] NotPrimaryMainFrame, /// /// BackForwardCacheDisabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BackForwardCacheDisabled")] + [JsonPropertyName("BackForwardCacheDisabled")] BackForwardCacheDisabled, /// /// RelatedActiveContentsExist /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RelatedActiveContentsExist")] + [JsonPropertyName("RelatedActiveContentsExist")] RelatedActiveContentsExist, /// /// HTTPStatusNotOK /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HTTPStatusNotOK")] + [JsonPropertyName("HTTPStatusNotOK")] HTTPStatusNotOK, /// /// SchemeNotHTTPOrHTTPS /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchemeNotHTTPOrHTTPS")] + [JsonPropertyName("SchemeNotHTTPOrHTTPS")] SchemeNotHTTPOrHTTPS, /// /// Loading /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Loading")] + [JsonPropertyName("Loading")] Loading, /// /// WasGrantedMediaAccess /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WasGrantedMediaAccess")] + [JsonPropertyName("WasGrantedMediaAccess")] WasGrantedMediaAccess, /// /// DisableForRenderFrameHostCalled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DisableForRenderFrameHostCalled")] + [JsonPropertyName("DisableForRenderFrameHostCalled")] DisableForRenderFrameHostCalled, /// /// DomainNotAllowed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DomainNotAllowed")] + [JsonPropertyName("DomainNotAllowed")] DomainNotAllowed, /// /// HTTPMethodNotGET /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HTTPMethodNotGET")] + [JsonPropertyName("HTTPMethodNotGET")] HTTPMethodNotGET, /// /// SubframeIsNavigating /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SubframeIsNavigating")] + [JsonPropertyName("SubframeIsNavigating")] SubframeIsNavigating, /// /// Timeout /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Timeout")] + [JsonPropertyName("Timeout")] Timeout, /// /// CacheLimit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CacheLimit")] + [JsonPropertyName("CacheLimit")] CacheLimit, /// /// JavaScriptExecution /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("JavaScriptExecution")] + [JsonPropertyName("JavaScriptExecution")] JavaScriptExecution, /// /// RendererProcessKilled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RendererProcessKilled")] + [JsonPropertyName("RendererProcessKilled")] RendererProcessKilled, /// /// RendererProcessCrashed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RendererProcessCrashed")] + [JsonPropertyName("RendererProcessCrashed")] RendererProcessCrashed, /// /// SchedulerTrackedFeatureUsed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SchedulerTrackedFeatureUsed")] + [JsonPropertyName("SchedulerTrackedFeatureUsed")] SchedulerTrackedFeatureUsed, /// /// ConflictingBrowsingInstance /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ConflictingBrowsingInstance")] + [JsonPropertyName("ConflictingBrowsingInstance")] ConflictingBrowsingInstance, /// /// CacheFlushed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CacheFlushed")] + [JsonPropertyName("CacheFlushed")] CacheFlushed, /// /// ServiceWorkerVersionActivation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ServiceWorkerVersionActivation")] + [JsonPropertyName("ServiceWorkerVersionActivation")] ServiceWorkerVersionActivation, /// /// SessionRestored /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SessionRestored")] + [JsonPropertyName("SessionRestored")] SessionRestored, /// /// ServiceWorkerPostMessage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ServiceWorkerPostMessage")] + [JsonPropertyName("ServiceWorkerPostMessage")] ServiceWorkerPostMessage, /// /// EnteredBackForwardCacheBeforeServiceWorkerHostAdded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EnteredBackForwardCacheBeforeServiceWorkerHostAdded")] + [JsonPropertyName("EnteredBackForwardCacheBeforeServiceWorkerHostAdded")] EnteredBackForwardCacheBeforeServiceWorkerHostAdded, /// /// RenderFrameHostReused_SameSite /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RenderFrameHostReused_SameSite")] + [JsonPropertyName("RenderFrameHostReused_SameSite")] RenderFrameHostReusedSameSite, /// /// RenderFrameHostReused_CrossSite /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RenderFrameHostReused_CrossSite")] + [JsonPropertyName("RenderFrameHostReused_CrossSite")] RenderFrameHostReusedCrossSite, /// /// ServiceWorkerClaim /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ServiceWorkerClaim")] + [JsonPropertyName("ServiceWorkerClaim")] ServiceWorkerClaim, /// /// IgnoreEventAndEvict /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IgnoreEventAndEvict")] + [JsonPropertyName("IgnoreEventAndEvict")] IgnoreEventAndEvict, /// /// HaveInnerContents /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HaveInnerContents")] + [JsonPropertyName("HaveInnerContents")] HaveInnerContents, /// /// TimeoutPuttingInCache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TimeoutPuttingInCache")] + [JsonPropertyName("TimeoutPuttingInCache")] TimeoutPuttingInCache, /// /// BackForwardCacheDisabledByLowMemory /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BackForwardCacheDisabledByLowMemory")] + [JsonPropertyName("BackForwardCacheDisabledByLowMemory")] BackForwardCacheDisabledByLowMemory, /// /// BackForwardCacheDisabledByCommandLine /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BackForwardCacheDisabledByCommandLine")] + [JsonPropertyName("BackForwardCacheDisabledByCommandLine")] BackForwardCacheDisabledByCommandLine, /// /// NetworkRequestDatapipeDrainedAsBytesConsumer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NetworkRequestDatapipeDrainedAsBytesConsumer")] + [JsonPropertyName("NetworkRequestDatapipeDrainedAsBytesConsumer")] NetworkRequestDatapipeDrainedAsBytesConsumer, /// /// NetworkRequestRedirected /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NetworkRequestRedirected")] + [JsonPropertyName("NetworkRequestRedirected")] NetworkRequestRedirected, /// /// NetworkRequestTimeout /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NetworkRequestTimeout")] + [JsonPropertyName("NetworkRequestTimeout")] NetworkRequestTimeout, /// /// NetworkExceedsBufferLimit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NetworkExceedsBufferLimit")] + [JsonPropertyName("NetworkExceedsBufferLimit")] NetworkExceedsBufferLimit, /// /// NavigationCancelledWhileRestoring /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationCancelledWhileRestoring")] + [JsonPropertyName("NavigationCancelledWhileRestoring")] NavigationCancelledWhileRestoring, /// /// NotMostRecentNavigationEntry /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NotMostRecentNavigationEntry")] + [JsonPropertyName("NotMostRecentNavigationEntry")] NotMostRecentNavigationEntry, /// /// BackForwardCacheDisabledForPrerender /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BackForwardCacheDisabledForPrerender")] + [JsonPropertyName("BackForwardCacheDisabledForPrerender")] BackForwardCacheDisabledForPrerender, /// /// UserAgentOverrideDiffers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UserAgentOverrideDiffers")] + [JsonPropertyName("UserAgentOverrideDiffers")] UserAgentOverrideDiffers, /// /// ForegroundCacheLimit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ForegroundCacheLimit")] + [JsonPropertyName("ForegroundCacheLimit")] ForegroundCacheLimit, /// /// BrowsingInstanceNotSwapped /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BrowsingInstanceNotSwapped")] + [JsonPropertyName("BrowsingInstanceNotSwapped")] BrowsingInstanceNotSwapped, /// /// BackForwardCacheDisabledForDelegate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BackForwardCacheDisabledForDelegate")] + [JsonPropertyName("BackForwardCacheDisabledForDelegate")] BackForwardCacheDisabledForDelegate, /// /// UnloadHandlerExistsInMainFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnloadHandlerExistsInMainFrame")] + [JsonPropertyName("UnloadHandlerExistsInMainFrame")] UnloadHandlerExistsInMainFrame, /// /// UnloadHandlerExistsInSubFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UnloadHandlerExistsInSubFrame")] + [JsonPropertyName("UnloadHandlerExistsInSubFrame")] UnloadHandlerExistsInSubFrame, /// /// ServiceWorkerUnregistration /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ServiceWorkerUnregistration")] + [JsonPropertyName("ServiceWorkerUnregistration")] ServiceWorkerUnregistration, /// /// CacheControlNoStore /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CacheControlNoStore")] + [JsonPropertyName("CacheControlNoStore")] CacheControlNoStore, /// /// CacheControlNoStoreCookieModified /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CacheControlNoStoreCookieModified")] + [JsonPropertyName("CacheControlNoStoreCookieModified")] CacheControlNoStoreCookieModified, /// /// CacheControlNoStoreHTTPOnlyCookieModified /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CacheControlNoStoreHTTPOnlyCookieModified")] + [JsonPropertyName("CacheControlNoStoreHTTPOnlyCookieModified")] CacheControlNoStoreHTTPOnlyCookieModified, /// /// NoResponseHead /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NoResponseHead")] + [JsonPropertyName("NoResponseHead")] NoResponseHead, /// /// Unknown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Unknown")] + [JsonPropertyName("Unknown")] Unknown, /// /// ActivationNavigationsDisallowedForBug1234857 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationNavigationsDisallowedForBug1234857")] + [JsonPropertyName("ActivationNavigationsDisallowedForBug1234857")] ActivationNavigationsDisallowedForBug1234857, /// /// ErrorDocument /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ErrorDocument")] + [JsonPropertyName("ErrorDocument")] ErrorDocument, /// /// FencedFramesEmbedder /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FencedFramesEmbedder")] + [JsonPropertyName("FencedFramesEmbedder")] FencedFramesEmbedder, /// /// WebSocket /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebSocket")] + [JsonPropertyName("WebSocket")] WebSocket, /// /// WebTransport /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebTransport")] + [JsonPropertyName("WebTransport")] WebTransport, /// /// WebRTC /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebRTC")] + [JsonPropertyName("WebRTC")] WebRTC, /// /// MainResourceHasCacheControlNoStore /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MainResourceHasCacheControlNoStore")] + [JsonPropertyName("MainResourceHasCacheControlNoStore")] MainResourceHasCacheControlNoStore, /// /// MainResourceHasCacheControlNoCache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MainResourceHasCacheControlNoCache")] + [JsonPropertyName("MainResourceHasCacheControlNoCache")] MainResourceHasCacheControlNoCache, /// /// SubresourceHasCacheControlNoStore /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SubresourceHasCacheControlNoStore")] + [JsonPropertyName("SubresourceHasCacheControlNoStore")] SubresourceHasCacheControlNoStore, /// /// SubresourceHasCacheControlNoCache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SubresourceHasCacheControlNoCache")] + [JsonPropertyName("SubresourceHasCacheControlNoCache")] SubresourceHasCacheControlNoCache, /// /// ContainsPlugins /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContainsPlugins")] + [JsonPropertyName("ContainsPlugins")] ContainsPlugins, /// /// DocumentLoaded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DocumentLoaded")] + [JsonPropertyName("DocumentLoaded")] DocumentLoaded, /// /// DedicatedWorkerOrWorklet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DedicatedWorkerOrWorklet")] + [JsonPropertyName("DedicatedWorkerOrWorklet")] DedicatedWorkerOrWorklet, /// /// OutstandingNetworkRequestOthers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OutstandingNetworkRequestOthers")] + [JsonPropertyName("OutstandingNetworkRequestOthers")] OutstandingNetworkRequestOthers, /// /// OutstandingIndexedDBTransaction /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OutstandingIndexedDBTransaction")] + [JsonPropertyName("OutstandingIndexedDBTransaction")] OutstandingIndexedDBTransaction, /// /// RequestedMIDIPermission /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedMIDIPermission")] + [JsonPropertyName("RequestedMIDIPermission")] RequestedMIDIPermission, /// /// RequestedAudioCapturePermission /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedAudioCapturePermission")] + [JsonPropertyName("RequestedAudioCapturePermission")] RequestedAudioCapturePermission, /// /// RequestedVideoCapturePermission /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedVideoCapturePermission")] + [JsonPropertyName("RequestedVideoCapturePermission")] RequestedVideoCapturePermission, /// /// RequestedBackForwardCacheBlockedSensors /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedBackForwardCacheBlockedSensors")] + [JsonPropertyName("RequestedBackForwardCacheBlockedSensors")] RequestedBackForwardCacheBlockedSensors, /// /// RequestedBackgroundWorkPermission /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedBackgroundWorkPermission")] + [JsonPropertyName("RequestedBackgroundWorkPermission")] RequestedBackgroundWorkPermission, /// /// BroadcastChannel /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BroadcastChannel")] + [JsonPropertyName("BroadcastChannel")] BroadcastChannel, /// /// IndexedDBConnection /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IndexedDBConnection")] + [JsonPropertyName("IndexedDBConnection")] IndexedDBConnection, /// /// WebXR /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebXR")] + [JsonPropertyName("WebXR")] WebXR, /// /// SharedWorker /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SharedWorker")] + [JsonPropertyName("SharedWorker")] SharedWorker, /// /// WebLocks /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebLocks")] + [JsonPropertyName("WebLocks")] WebLocks, /// /// WebHID /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebHID")] + [JsonPropertyName("WebHID")] WebHID, /// /// WebShare /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebShare")] + [JsonPropertyName("WebShare")] WebShare, /// /// RequestedStorageAccessGrant /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RequestedStorageAccessGrant")] + [JsonPropertyName("RequestedStorageAccessGrant")] RequestedStorageAccessGrant, /// /// WebNfc /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebNfc")] + [JsonPropertyName("WebNfc")] WebNfc, /// /// OutstandingNetworkRequestFetch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OutstandingNetworkRequestFetch")] + [JsonPropertyName("OutstandingNetworkRequestFetch")] OutstandingNetworkRequestFetch, /// /// OutstandingNetworkRequestXHR /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OutstandingNetworkRequestXHR")] + [JsonPropertyName("OutstandingNetworkRequestXHR")] OutstandingNetworkRequestXHR, /// /// AppBanner /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AppBanner")] + [JsonPropertyName("AppBanner")] AppBanner, /// /// Printing /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Printing")] + [JsonPropertyName("Printing")] Printing, /// /// WebDatabase /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebDatabase")] + [JsonPropertyName("WebDatabase")] WebDatabase, /// /// PictureInPicture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PictureInPicture")] + [JsonPropertyName("PictureInPicture")] PictureInPicture, /// /// Portal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Portal")] + [JsonPropertyName("Portal")] Portal, /// /// SpeechRecognizer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SpeechRecognizer")] + [JsonPropertyName("SpeechRecognizer")] SpeechRecognizer, /// /// IdleManager /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IdleManager")] + [JsonPropertyName("IdleManager")] IdleManager, /// /// PaymentManager /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PaymentManager")] + [JsonPropertyName("PaymentManager")] PaymentManager, /// /// SpeechSynthesis /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SpeechSynthesis")] + [JsonPropertyName("SpeechSynthesis")] SpeechSynthesis, /// /// KeyboardLock /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("KeyboardLock")] + [JsonPropertyName("KeyboardLock")] KeyboardLock, /// /// WebOTPService /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebOTPService")] + [JsonPropertyName("WebOTPService")] WebOTPService, /// /// OutstandingNetworkRequestDirectSocket /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OutstandingNetworkRequestDirectSocket")] + [JsonPropertyName("OutstandingNetworkRequestDirectSocket")] OutstandingNetworkRequestDirectSocket, /// /// InjectedJavascript /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InjectedJavascript")] + [JsonPropertyName("InjectedJavascript")] InjectedJavascript, /// /// InjectedStyleSheet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InjectedStyleSheet")] + [JsonPropertyName("InjectedStyleSheet")] InjectedStyleSheet, /// /// KeepaliveRequest /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("KeepaliveRequest")] + [JsonPropertyName("KeepaliveRequest")] KeepaliveRequest, /// /// IndexedDBEvent /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("IndexedDBEvent")] + [JsonPropertyName("IndexedDBEvent")] IndexedDBEvent, /// /// Dummy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Dummy")] + [JsonPropertyName("Dummy")] Dummy, /// /// AuthorizationHeader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AuthorizationHeader")] + [JsonPropertyName("AuthorizationHeader")] AuthorizationHeader, /// /// ContentSecurityHandler /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentSecurityHandler")] + [JsonPropertyName("ContentSecurityHandler")] ContentSecurityHandler, /// /// ContentWebAuthenticationAPI /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentWebAuthenticationAPI")] + [JsonPropertyName("ContentWebAuthenticationAPI")] ContentWebAuthenticationAPI, /// /// ContentFileChooser /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentFileChooser")] + [JsonPropertyName("ContentFileChooser")] ContentFileChooser, /// /// ContentSerial /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentSerial")] + [JsonPropertyName("ContentSerial")] ContentSerial, /// /// ContentFileSystemAccess /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentFileSystemAccess")] + [JsonPropertyName("ContentFileSystemAccess")] ContentFileSystemAccess, /// /// ContentMediaDevicesDispatcherHost /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentMediaDevicesDispatcherHost")] + [JsonPropertyName("ContentMediaDevicesDispatcherHost")] ContentMediaDevicesDispatcherHost, /// /// ContentWebBluetooth /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentWebBluetooth")] + [JsonPropertyName("ContentWebBluetooth")] ContentWebBluetooth, /// /// ContentWebUSB /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentWebUSB")] + [JsonPropertyName("ContentWebUSB")] ContentWebUSB, /// /// ContentMediaSessionService /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentMediaSessionService")] + [JsonPropertyName("ContentMediaSessionService")] ContentMediaSessionService, /// /// ContentScreenReader /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ContentScreenReader")] + [JsonPropertyName("ContentScreenReader")] ContentScreenReader, /// /// EmbedderPopupBlockerTabHelper /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderPopupBlockerTabHelper")] + [JsonPropertyName("EmbedderPopupBlockerTabHelper")] EmbedderPopupBlockerTabHelper, /// /// EmbedderSafeBrowsingTriggeredPopupBlocker /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderSafeBrowsingTriggeredPopupBlocker")] + [JsonPropertyName("EmbedderSafeBrowsingTriggeredPopupBlocker")] EmbedderSafeBrowsingTriggeredPopupBlocker, /// /// EmbedderSafeBrowsingThreatDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderSafeBrowsingThreatDetails")] + [JsonPropertyName("EmbedderSafeBrowsingThreatDetails")] EmbedderSafeBrowsingThreatDetails, /// /// EmbedderAppBannerManager /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderAppBannerManager")] + [JsonPropertyName("EmbedderAppBannerManager")] EmbedderAppBannerManager, /// /// EmbedderDomDistillerViewerSource /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderDomDistillerViewerSource")] + [JsonPropertyName("EmbedderDomDistillerViewerSource")] EmbedderDomDistillerViewerSource, /// /// EmbedderDomDistillerSelfDeletingRequestDelegate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderDomDistillerSelfDeletingRequestDelegate")] + [JsonPropertyName("EmbedderDomDistillerSelfDeletingRequestDelegate")] EmbedderDomDistillerSelfDeletingRequestDelegate, /// /// EmbedderOomInterventionTabHelper /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderOomInterventionTabHelper")] + [JsonPropertyName("EmbedderOomInterventionTabHelper")] EmbedderOomInterventionTabHelper, /// /// EmbedderOfflinePage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderOfflinePage")] + [JsonPropertyName("EmbedderOfflinePage")] EmbedderOfflinePage, /// /// EmbedderChromePasswordManagerClientBindCredentialManager /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderChromePasswordManagerClientBindCredentialManager")] + [JsonPropertyName("EmbedderChromePasswordManagerClientBindCredentialManager")] EmbedderChromePasswordManagerClientBindCredentialManager, /// /// EmbedderPermissionRequestManager /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderPermissionRequestManager")] + [JsonPropertyName("EmbedderPermissionRequestManager")] EmbedderPermissionRequestManager, /// /// EmbedderModalDialog /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderModalDialog")] + [JsonPropertyName("EmbedderModalDialog")] EmbedderModalDialog, /// /// EmbedderExtensions /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderExtensions")] + [JsonPropertyName("EmbedderExtensions")] EmbedderExtensions, /// /// EmbedderExtensionMessaging /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderExtensionMessaging")] + [JsonPropertyName("EmbedderExtensionMessaging")] EmbedderExtensionMessaging, /// /// EmbedderExtensionMessagingForOpenPort /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderExtensionMessagingForOpenPort")] + [JsonPropertyName("EmbedderExtensionMessagingForOpenPort")] EmbedderExtensionMessagingForOpenPort, /// /// EmbedderExtensionSentMessageToCachedFrame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderExtensionSentMessageToCachedFrame")] + [JsonPropertyName("EmbedderExtensionSentMessageToCachedFrame")] EmbedderExtensionSentMessageToCachedFrame } @@ -19551,17 +19314,17 @@ public enum BackForwardCacheNotRestoredReasonType /// /// SupportPending /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SupportPending")] + [JsonPropertyName("SupportPending")] SupportPending, /// /// PageSupportNeeded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PageSupportNeeded")] + [JsonPropertyName("PageSupportNeeded")] PageSupportNeeded, /// /// Circumstantial /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Circumstantial")] + [JsonPropertyName("Circumstantial")] Circumstantial } @@ -19573,7 +19336,7 @@ public partial class BackForwardCacheNotRestoredExplanation : CefSharp.DevTools. /// /// Type of the reason /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReasonType Type { get; @@ -19583,7 +19346,7 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReasonType Type /// /// Not restored reason /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonPropertyName("reason")] public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReason Reason { get; @@ -19595,7 +19358,7 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredReason Reason /// dependent on the reason: /// - EmbedderExtensionSentMessageToCachedFrame: the extension ID. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("context")] + [JsonPropertyName("context")] public string Context { get; @@ -19611,7 +19374,7 @@ public partial class BackForwardCacheNotRestoredExplanationTree : CefSharp.DevTo /// /// URL of each frame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -19622,7 +19385,7 @@ public string Url /// /// Not restored reasons of each frame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("explanations")] + [JsonPropertyName("explanations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Explanations { @@ -19633,7 +19396,7 @@ public System.Collections.Generic.IList /// Array of children frame /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("children")] + [JsonPropertyName("children")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Children { @@ -19650,263 +19413,321 @@ public enum PrerenderFinalStatus /// /// Activated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Activated")] + [JsonPropertyName("Activated")] Activated, /// /// Destroyed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Destroyed")] + [JsonPropertyName("Destroyed")] Destroyed, /// /// LowEndDevice /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("LowEndDevice")] + [JsonPropertyName("LowEndDevice")] LowEndDevice, /// /// InvalidSchemeRedirect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSchemeRedirect")] + [JsonPropertyName("InvalidSchemeRedirect")] InvalidSchemeRedirect, /// /// InvalidSchemeNavigation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InvalidSchemeNavigation")] + [JsonPropertyName("InvalidSchemeNavigation")] InvalidSchemeNavigation, /// /// InProgressNavigation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InProgressNavigation")] + [JsonPropertyName("InProgressNavigation")] InProgressNavigation, /// /// NavigationRequestBlockedByCsp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationRequestBlockedByCsp")] + [JsonPropertyName("NavigationRequestBlockedByCsp")] NavigationRequestBlockedByCsp, /// /// MainFrameNavigation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MainFrameNavigation")] + [JsonPropertyName("MainFrameNavigation")] MainFrameNavigation, /// /// MojoBinderPolicy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MojoBinderPolicy")] + [JsonPropertyName("MojoBinderPolicy")] MojoBinderPolicy, /// /// RendererProcessCrashed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RendererProcessCrashed")] + [JsonPropertyName("RendererProcessCrashed")] RendererProcessCrashed, /// /// RendererProcessKilled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("RendererProcessKilled")] + [JsonPropertyName("RendererProcessKilled")] RendererProcessKilled, /// /// Download /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Download")] + [JsonPropertyName("Download")] Download, /// /// TriggerDestroyed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TriggerDestroyed")] + [JsonPropertyName("TriggerDestroyed")] TriggerDestroyed, /// /// NavigationNotCommitted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationNotCommitted")] + [JsonPropertyName("NavigationNotCommitted")] NavigationNotCommitted, /// /// NavigationBadHttpStatus /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationBadHttpStatus")] + [JsonPropertyName("NavigationBadHttpStatus")] NavigationBadHttpStatus, /// /// ClientCertRequested /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ClientCertRequested")] + [JsonPropertyName("ClientCertRequested")] ClientCertRequested, /// /// NavigationRequestNetworkError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("NavigationRequestNetworkError")] + [JsonPropertyName("NavigationRequestNetworkError")] NavigationRequestNetworkError, /// /// MaxNumOfRunningPrerendersExceeded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MaxNumOfRunningPrerendersExceeded")] + [JsonPropertyName("MaxNumOfRunningPrerendersExceeded")] MaxNumOfRunningPrerendersExceeded, /// /// CancelAllHostsForTesting /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CancelAllHostsForTesting")] + [JsonPropertyName("CancelAllHostsForTesting")] CancelAllHostsForTesting, /// /// DidFailLoad /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DidFailLoad")] + [JsonPropertyName("DidFailLoad")] DidFailLoad, /// /// Stop /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Stop")] + [JsonPropertyName("Stop")] Stop, /// /// SslCertificateError /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SslCertificateError")] + [JsonPropertyName("SslCertificateError")] SslCertificateError, /// /// LoginAuthRequested /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("LoginAuthRequested")] + [JsonPropertyName("LoginAuthRequested")] LoginAuthRequested, /// /// UaChangeRequiresReload /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("UaChangeRequiresReload")] + [JsonPropertyName("UaChangeRequiresReload")] UaChangeRequiresReload, /// /// BlockedByClient /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("BlockedByClient")] + [JsonPropertyName("BlockedByClient")] BlockedByClient, /// /// AudioOutputDeviceRequested /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("AudioOutputDeviceRequested")] + [JsonPropertyName("AudioOutputDeviceRequested")] AudioOutputDeviceRequested, /// /// MixedContent /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MixedContent")] + [JsonPropertyName("MixedContent")] MixedContent, /// /// TriggerBackgrounded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TriggerBackgrounded")] + [JsonPropertyName("TriggerBackgrounded")] TriggerBackgrounded, /// /// EmbedderTriggeredAndCrossOriginRedirected /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderTriggeredAndCrossOriginRedirected")] + [JsonPropertyName("EmbedderTriggeredAndCrossOriginRedirected")] EmbedderTriggeredAndCrossOriginRedirected, /// /// MemoryLimitExceeded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("MemoryLimitExceeded")] + [JsonPropertyName("MemoryLimitExceeded")] MemoryLimitExceeded, /// /// FailToGetMemoryUsage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("FailToGetMemoryUsage")] + [JsonPropertyName("FailToGetMemoryUsage")] FailToGetMemoryUsage, /// /// DataSaverEnabled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DataSaverEnabled")] + [JsonPropertyName("DataSaverEnabled")] DataSaverEnabled, /// /// HasEffectiveUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("HasEffectiveUrl")] + [JsonPropertyName("HasEffectiveUrl")] HasEffectiveUrl, /// /// ActivatedBeforeStarted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivatedBeforeStarted")] + [JsonPropertyName("ActivatedBeforeStarted")] ActivatedBeforeStarted, /// /// InactivePageRestriction /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("InactivePageRestriction")] + [JsonPropertyName("InactivePageRestriction")] InactivePageRestriction, /// /// StartFailed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("StartFailed")] + [JsonPropertyName("StartFailed")] StartFailed, /// /// TimeoutBackgrounded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TimeoutBackgrounded")] + [JsonPropertyName("TimeoutBackgrounded")] TimeoutBackgrounded, /// /// CrossSiteRedirect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossSiteRedirect")] + [JsonPropertyName("CrossSiteRedirect")] CrossSiteRedirect, /// /// CrossSiteNavigation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CrossSiteNavigation")] + [JsonPropertyName("CrossSiteNavigation")] CrossSiteNavigation, /// /// SameSiteCrossOriginRedirect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginRedirect")] + [JsonPropertyName("SameSiteCrossOriginRedirect")] SameSiteCrossOriginRedirect, /// /// SameSiteCrossOriginNavigation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginNavigation")] + [JsonPropertyName("SameSiteCrossOriginNavigation")] SameSiteCrossOriginNavigation, /// /// SameSiteCrossOriginRedirectNotOptIn /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginRedirectNotOptIn")] + [JsonPropertyName("SameSiteCrossOriginRedirectNotOptIn")] SameSiteCrossOriginRedirectNotOptIn, /// /// SameSiteCrossOriginNavigationNotOptIn /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SameSiteCrossOriginNavigationNotOptIn")] + [JsonPropertyName("SameSiteCrossOriginNavigationNotOptIn")] SameSiteCrossOriginNavigationNotOptIn, /// /// ActivationNavigationParameterMismatch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationNavigationParameterMismatch")] + [JsonPropertyName("ActivationNavigationParameterMismatch")] ActivationNavigationParameterMismatch, /// /// ActivatedInBackground /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivatedInBackground")] + [JsonPropertyName("ActivatedInBackground")] ActivatedInBackground, /// /// EmbedderHostDisallowed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbedderHostDisallowed")] + [JsonPropertyName("EmbedderHostDisallowed")] EmbedderHostDisallowed, /// /// ActivationNavigationDestroyedBeforeSuccess /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationNavigationDestroyedBeforeSuccess")] + [JsonPropertyName("ActivationNavigationDestroyedBeforeSuccess")] ActivationNavigationDestroyedBeforeSuccess, /// /// TabClosedByUserGesture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TabClosedByUserGesture")] + [JsonPropertyName("TabClosedByUserGesture")] TabClosedByUserGesture, /// /// TabClosedWithoutUserGesture /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("TabClosedWithoutUserGesture")] + [JsonPropertyName("TabClosedWithoutUserGesture")] TabClosedWithoutUserGesture, /// /// PrimaryMainFrameRendererProcessCrashed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrimaryMainFrameRendererProcessCrashed")] + [JsonPropertyName("PrimaryMainFrameRendererProcessCrashed")] PrimaryMainFrameRendererProcessCrashed, /// /// PrimaryMainFrameRendererProcessKilled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("PrimaryMainFrameRendererProcessKilled")] + [JsonPropertyName("PrimaryMainFrameRendererProcessKilled")] PrimaryMainFrameRendererProcessKilled, /// /// ActivationFramePolicyNotCompatible /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ActivationFramePolicyNotCompatible")] - ActivationFramePolicyNotCompatible + [JsonPropertyName("ActivationFramePolicyNotCompatible")] + ActivationFramePolicyNotCompatible, + /// + /// PreloadingDisabled + /// + [JsonPropertyName("PreloadingDisabled")] + PreloadingDisabled, + /// + /// BatterySaverEnabled + /// + [JsonPropertyName("BatterySaverEnabled")] + BatterySaverEnabled, + /// + /// ActivatedDuringMainFrameNavigation + /// + [JsonPropertyName("ActivatedDuringMainFrameNavigation")] + ActivatedDuringMainFrameNavigation, + /// + /// PreloadingUnsupportedByWebContents + /// + [JsonPropertyName("PreloadingUnsupportedByWebContents")] + PreloadingUnsupportedByWebContents + } + + /// + /// Preloading status values, see also PreloadingTriggeringOutcome. This + /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. + /// + public enum PreloadingStatus + { + /// + /// Pending + /// + [JsonPropertyName("Pending")] + Pending, + /// + /// Running + /// + [JsonPropertyName("Running")] + Running, + /// + /// Ready + /// + [JsonPropertyName("Ready")] + Ready, + /// + /// Success + /// + [JsonPropertyName("Success")] + Success, + /// + /// Failure + /// + [JsonPropertyName("Failure")] + Failure, + /// + /// NotSupported + /// + [JsonPropertyName("NotSupported")] + NotSupported } /// @@ -19917,8 +19738,8 @@ public class DomContentEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Timestamp /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -19934,12 +19755,12 @@ public enum FileChooserOpenedMode /// /// selectSingle /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectSingle")] + [JsonPropertyName("selectSingle")] SelectSingle, /// /// selectMultiple /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectMultiple")] + [JsonPropertyName("selectMultiple")] SelectMultiple } @@ -19951,8 +19772,8 @@ public class FileChooserOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the frame containing input node. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -19963,8 +19784,8 @@ public string FrameId /// /// Input mode. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mode")] + [JsonInclude] + [JsonPropertyName("mode")] public CefSharp.DevTools.Page.FileChooserOpenedMode Mode { get; @@ -19974,8 +19795,8 @@ public CefSharp.DevTools.Page.FileChooserOpenedMode Mode /// /// Input node id. Only present for file choosers opened via an <input type="file" > element. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonInclude] + [JsonPropertyName("backendNodeId")] public int? BackendNodeId { get; @@ -19991,8 +19812,8 @@ public class FrameAttachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Id of the frame that has been attached. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20003,8 +19824,8 @@ public string FrameId /// /// Parent frame identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentFrameId")] + [JsonInclude] + [JsonPropertyName("parentFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParentFrameId { @@ -20015,8 +19836,8 @@ public string ParentFrameId /// /// JavaScript stack trace of when frame was attached, only set if frame initiated from script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stack")] + [JsonInclude] + [JsonPropertyName("stack")] public CefSharp.DevTools.Runtime.StackTrace Stack { get; @@ -20032,8 +19853,8 @@ public class FrameClearedScheduledNavigationEventArgs : CefSharp.DevTools.DevToo /// /// Id of the frame that has cleared its scheduled navigation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20050,12 +19871,12 @@ public enum FrameDetachedReason /// /// remove /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("remove")] + [JsonPropertyName("remove")] Remove, /// /// swap /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("swap")] + [JsonPropertyName("swap")] Swap } @@ -20067,8 +19888,8 @@ public class FrameDetachedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Id of the frame that has been detached. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20079,8 +19900,8 @@ public string FrameId /// /// Reason /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonInclude] + [JsonPropertyName("reason")] public CefSharp.DevTools.Page.FrameDetachedReason Reason { get; @@ -20096,8 +19917,8 @@ public class FrameNavigatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Frame object. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [JsonInclude] + [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { @@ -20108,8 +19929,8 @@ public CefSharp.DevTools.Page.Frame Frame /// /// Type /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Page.NavigationType Type { get; @@ -20125,8 +19946,8 @@ public class DocumentOpenedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Frame object. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frame")] + [JsonInclude] + [JsonPropertyName("frame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.Frame Frame { @@ -20144,8 +19965,8 @@ public class FrameRequestedNavigationEventArgs : CefSharp.DevTools.DevToolsDomai /// /// Id of the frame that is being navigated. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20156,8 +19977,8 @@ public string FrameId /// /// The reason for the navigation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonInclude] + [JsonPropertyName("reason")] public CefSharp.DevTools.Page.ClientNavigationReason Reason { get; @@ -20167,8 +19988,8 @@ public CefSharp.DevTools.Page.ClientNavigationReason Reason /// /// The destination URL for the requested navigation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -20179,8 +20000,8 @@ public string Url /// /// The disposition for the navigation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("disposition")] + [JsonInclude] + [JsonPropertyName("disposition")] public CefSharp.DevTools.Page.ClientNavigationDisposition Disposition { get; @@ -20196,8 +20017,8 @@ public class FrameScheduledNavigationEventArgs : CefSharp.DevTools.DevToolsDomai /// /// Id of the frame that has scheduled a navigation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20209,8 +20030,8 @@ public string FrameId /// Delay (in seconds) until the navigation is scheduled to begin. The navigation is not /// guaranteed to start. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("delay")] + [JsonInclude] + [JsonPropertyName("delay")] public double Delay { get; @@ -20220,8 +20041,8 @@ public double Delay /// /// The reason for the navigation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonInclude] + [JsonPropertyName("reason")] public CefSharp.DevTools.Page.ClientNavigationReason Reason { get; @@ -20231,8 +20052,8 @@ public CefSharp.DevTools.Page.ClientNavigationReason Reason /// /// The destination URL for the scheduled navigation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -20249,8 +20070,8 @@ public class FrameStartedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Id of the frame that has started loading. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20267,8 +20088,8 @@ public class FrameStoppedLoadingEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Id of the frame that has stopped loading. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20286,8 +20107,8 @@ public class DownloadWillBeginEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Id of the frame that caused download to begin. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20298,8 +20119,8 @@ public string FrameId /// /// Global unique identifier of the download. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [JsonInclude] + [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { @@ -20310,8 +20131,8 @@ public string Guid /// /// URL of the resource being downloaded. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -20322,8 +20143,8 @@ public string Url /// /// Suggested file name of the resource (the actual name of the file saved on disk may differ). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("suggestedFilename")] + [JsonInclude] + [JsonPropertyName("suggestedFilename")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SuggestedFilename { @@ -20340,17 +20161,17 @@ public enum DownloadProgressState /// /// inProgress /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inProgress")] + [JsonPropertyName("inProgress")] InProgress, /// /// completed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("completed")] + [JsonPropertyName("completed")] Completed, /// /// canceled /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("canceled")] + [JsonPropertyName("canceled")] Canceled } @@ -20363,8 +20184,8 @@ public class DownloadProgressEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Global unique identifier of the download. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("guid")] + [JsonInclude] + [JsonPropertyName("guid")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Guid { @@ -20375,8 +20196,8 @@ public string Guid /// /// Total expected bytes to download. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalBytes")] + [JsonInclude] + [JsonPropertyName("totalBytes")] public double TotalBytes { get; @@ -20386,8 +20207,8 @@ public double TotalBytes /// /// Total bytes received. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("receivedBytes")] + [JsonInclude] + [JsonPropertyName("receivedBytes")] public double ReceivedBytes { get; @@ -20397,8 +20218,8 @@ public double ReceivedBytes /// /// Download status. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("state")] + [JsonInclude] + [JsonPropertyName("state")] public CefSharp.DevTools.Page.DownloadProgressState State { get; @@ -20415,8 +20236,8 @@ public class JavascriptDialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Whether dialog was confirmed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public bool Result { get; @@ -20426,8 +20247,8 @@ public bool Result /// /// User input in case of prompt. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("userInput")] + [JsonInclude] + [JsonPropertyName("userInput")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UserInput { @@ -20445,8 +20266,8 @@ public class JavascriptDialogOpeningEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Frame url. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -20457,8 +20278,8 @@ public string Url /// /// Message that will be displayed by the dialog. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [JsonInclude] + [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { @@ -20469,8 +20290,8 @@ public string Message /// /// Dialog type. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Page.DialogType Type { get; @@ -20482,8 +20303,8 @@ public CefSharp.DevTools.Page.DialogType Type /// dialog handler for given target, calling alert while Page domain is engaged will stall /// the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasBrowserHandler")] + [JsonInclude] + [JsonPropertyName("hasBrowserHandler")] public bool HasBrowserHandler { get; @@ -20493,8 +20314,8 @@ public bool HasBrowserHandler /// /// Default dialog prompt. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultPrompt")] + [JsonInclude] + [JsonPropertyName("defaultPrompt")] public string DefaultPrompt { get; @@ -20510,8 +20331,8 @@ public class LifecycleEventEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Id of the frame. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20522,8 +20343,8 @@ public string FrameId /// /// Loader identifier. Empty string if the request is fetched from worker. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [JsonInclude] + [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { @@ -20534,8 +20355,8 @@ public string LoaderId /// /// Name /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonInclude] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -20546,8 +20367,8 @@ public string Name /// /// Timestamp /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -20566,8 +20387,8 @@ public class BackForwardCacheNotUsedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// The loader id for the associated navgation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [JsonInclude] + [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LoaderId { @@ -20578,8 +20399,8 @@ public string LoaderId /// /// The frame id of the associated frame. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20590,8 +20411,8 @@ public string FrameId /// /// Array of reasons why the page could not be cached. This must not be empty. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("notRestoredExplanations")] + [JsonInclude] + [JsonPropertyName("notRestoredExplanations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList NotRestoredExplanations { @@ -20602,8 +20423,8 @@ public System.Collections.Generic.IList /// Tree structure of reasons why the page could not be cached for each frame. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("notRestoredExplanationsTree")] + [JsonInclude] + [JsonPropertyName("notRestoredExplanationsTree")] public CefSharp.DevTools.Page.BackForwardCacheNotRestoredExplanationTree NotRestoredExplanationsTree { get; @@ -20619,8 +20440,8 @@ public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// The frame id of the frame initiating prerendering. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("initiatingFrameId")] + [JsonInclude] + [JsonPropertyName("initiatingFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string InitiatingFrameId { @@ -20631,8 +20452,8 @@ public string InitiatingFrameId /// /// PrerenderingUrl /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("prerenderingUrl")] + [JsonInclude] + [JsonPropertyName("prerenderingUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PrerenderingUrl { @@ -20643,8 +20464,8 @@ public string PrerenderingUrl /// /// FinalStatus /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("finalStatus")] + [JsonInclude] + [JsonPropertyName("finalStatus")] public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus { get; @@ -20655,8 +20476,8 @@ public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus /// This is used to give users more information about the name of the API call /// that is incompatible with prerender and has caused the cancellation of the attempt /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("disallowedApiMethod")] + [JsonInclude] + [JsonPropertyName("disallowedApiMethod")] public string DisallowedApiMethod { get; @@ -20664,6 +20485,90 @@ public string DisallowedApiMethod } } + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prefetch attempt is updated. + /// + public class PrefetchStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The frame id of the frame initiating prefetch. + /// + [JsonInclude] + [JsonPropertyName("initiatingFrameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrefetchUrl + /// + [JsonInclude] + [JsonPropertyName("prefetchUrl")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PrefetchUrl + { + get; + private set; + } + + /// + /// Status + /// + [JsonInclude] + [JsonPropertyName("status")] + public CefSharp.DevTools.Page.PreloadingStatus Status + { + get; + private set; + } + } + + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prerender attempt is updated. + /// + public class PrerenderStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// The frame id of the frame initiating prerender. + /// + [JsonInclude] + [JsonPropertyName("initiatingFrameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrerenderingUrl + /// + [JsonInclude] + [JsonPropertyName("prerenderingUrl")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PrerenderingUrl + { + get; + private set; + } + + /// + /// Status + /// + [JsonInclude] + [JsonPropertyName("status")] + public CefSharp.DevTools.Page.PreloadingStatus Status + { + get; + private set; + } + } + /// /// loadEventFired /// @@ -20672,8 +20577,8 @@ public class LoadEventFiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Timestamp /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -20689,8 +20594,8 @@ public class NavigatedWithinDocumentEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Id of the frame. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -20701,8 +20606,8 @@ public string FrameId /// /// Frame's new url. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -20719,8 +20624,8 @@ public class ScreencastFrameEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Base64-encoded compressed image. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { @@ -20731,8 +20636,8 @@ public byte[] Data /// /// Screencast frame metadata. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("metadata")] + [JsonInclude] + [JsonPropertyName("metadata")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Page.ScreencastFrameMetadata Metadata { @@ -20743,8 +20648,8 @@ public CefSharp.DevTools.Page.ScreencastFrameMetadata Metadata /// /// Frame number. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [JsonInclude] + [JsonPropertyName("sessionId")] public int SessionId { get; @@ -20760,8 +20665,8 @@ public class ScreencastVisibilityChangedEventArgs : CefSharp.DevTools.DevToolsDo /// /// True if the page is visible. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("visible")] + [JsonInclude] + [JsonPropertyName("visible")] public bool Visible { get; @@ -20778,8 +20683,8 @@ public class WindowOpenEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// The URL for the new window. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -20790,8 +20695,8 @@ public string Url /// /// Window name. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowName")] + [JsonInclude] + [JsonPropertyName("windowName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string WindowName { @@ -20802,8 +20707,8 @@ public string WindowName /// /// An array of enabled window features. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowFeatures")] + [JsonInclude] + [JsonPropertyName("windowFeatures")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] WindowFeatures { @@ -20814,8 +20719,8 @@ public string[] WindowFeatures /// /// Whether or not it was triggered by user gesture. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("userGesture")] + [JsonInclude] + [JsonPropertyName("userGesture")] public bool UserGesture { get; @@ -20832,8 +20737,8 @@ public class CompilationCacheProducedEventArgs : CefSharp.DevTools.DevToolsDomai /// /// Url /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -20844,8 +20749,8 @@ public string Url /// /// Base64-encoded data /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] Data { @@ -20865,7 +20770,7 @@ public partial class Metric : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Metric name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -20876,7 +20781,7 @@ public string Name /// /// Metric value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public double Value { get; @@ -20892,8 +20797,8 @@ public class MetricsEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Current values of the metrics. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("metrics")] + [JsonInclude] + [JsonPropertyName("metrics")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Metrics { @@ -20904,8 +20809,8 @@ public System.Collections.Generic.IList Me /// /// Timestamp title. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonInclude] + [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { @@ -20925,7 +20830,7 @@ public partial class LargestContentfulPaint : CefSharp.DevTools.DevToolsDomainEn /// /// RenderTime /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("renderTime")] + [JsonPropertyName("renderTime")] public double RenderTime { get; @@ -20935,7 +20840,7 @@ public double RenderTime /// /// LoadTime /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loadTime")] + [JsonPropertyName("loadTime")] public double LoadTime { get; @@ -20945,7 +20850,7 @@ public double LoadTime /// /// The number of pixels being painted. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + [JsonPropertyName("size")] public double Size { get; @@ -20955,7 +20860,7 @@ public double Size /// /// The id attribute of the element, if available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("elementId")] + [JsonPropertyName("elementId")] public string ElementId { get; @@ -20965,7 +20870,7 @@ public string ElementId /// /// The URL of the image (may be trimmed). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] public string Url { get; @@ -20975,7 +20880,7 @@ public string Url /// /// NodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int? NodeId { get; @@ -20991,7 +20896,7 @@ public partial class LayoutShiftAttribution : CefSharp.DevTools.DevToolsDomainEn /// /// PreviousRect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("previousRect")] + [JsonPropertyName("previousRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect PreviousRect { @@ -21002,7 +20907,7 @@ public CefSharp.DevTools.DOM.Rect PreviousRect /// /// CurrentRect /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentRect")] + [JsonPropertyName("currentRect")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.DOM.Rect CurrentRect { @@ -21013,7 +20918,7 @@ public CefSharp.DevTools.DOM.Rect CurrentRect /// /// NodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int? NodeId { get; @@ -21029,7 +20934,7 @@ public partial class LayoutShift : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Score increment produced by this event. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public double Value { get; @@ -21039,7 +20944,7 @@ public double Value /// /// HadRecentInput /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hadRecentInput")] + [JsonPropertyName("hadRecentInput")] public bool HadRecentInput { get; @@ -21049,7 +20954,7 @@ public bool HadRecentInput /// /// LastInputTime /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lastInputTime")] + [JsonPropertyName("lastInputTime")] public double LastInputTime { get; @@ -21059,7 +20964,7 @@ public double LastInputTime /// /// Sources /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sources")] + [JsonPropertyName("sources")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Sources { @@ -21076,7 +20981,7 @@ public partial class TimelineEvent : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Identifies the frame that this event is related to. Empty for non-frame targets. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -21088,7 +20993,7 @@ public string FrameId /// The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype /// This determines which of the optional "details" fiedls is present. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { @@ -21099,7 +21004,7 @@ public string Type /// /// Name may be empty depending on the type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -21110,7 +21015,7 @@ public string Name /// /// Time in seconds since Epoch, monotonically increasing within document lifetime. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("time")] + [JsonPropertyName("time")] public double Time { get; @@ -21120,7 +21025,7 @@ public double Time /// /// Event duration, if applicable. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("duration")] + [JsonPropertyName("duration")] public double? Duration { get; @@ -21130,7 +21035,7 @@ public double? Duration /// /// LcpDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lcpDetails")] + [JsonPropertyName("lcpDetails")] public CefSharp.DevTools.PerformanceTimeline.LargestContentfulPaint LcpDetails { get; @@ -21140,7 +21045,7 @@ public CefSharp.DevTools.PerformanceTimeline.LargestContentfulPaint LcpDetails /// /// LayoutShiftDetails /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutShiftDetails")] + [JsonPropertyName("layoutShiftDetails")] public CefSharp.DevTools.PerformanceTimeline.LayoutShift LayoutShiftDetails { get; @@ -21156,8 +21061,8 @@ public class TimelineEventAddedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Event /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("event")] + [JsonInclude] + [JsonPropertyName("event")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.PerformanceTimeline.TimelineEvent Event { @@ -21178,17 +21083,17 @@ public enum MixedContentType /// /// blockable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blockable")] + [JsonPropertyName("blockable")] Blockable, /// /// optionally-blockable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("optionally-blockable")] + [JsonPropertyName("optionally-blockable")] OptionallyBlockable, /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None } @@ -21200,32 +21105,32 @@ public enum SecurityState /// /// unknown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unknown")] + [JsonPropertyName("unknown")] Unknown, /// /// neutral /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("neutral")] + [JsonPropertyName("neutral")] Neutral, /// /// insecure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecure")] + [JsonPropertyName("insecure")] Insecure, /// /// secure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("secure")] + [JsonPropertyName("secure")] Secure, /// /// info /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("info")] + [JsonPropertyName("info")] Info, /// /// insecure-broken /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecure-broken")] + [JsonPropertyName("insecure-broken")] InsecureBroken } @@ -21237,7 +21142,7 @@ public partial class CertificateSecurityState : CefSharp.DevTools.DevToolsDomain /// /// Protocol name (e.g. "TLS 1.2" or "QUIC"). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + [JsonPropertyName("protocol")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Protocol { @@ -21248,7 +21153,7 @@ public string Protocol /// /// Key Exchange used by the connection, or the empty string if not applicable. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchange")] + [JsonPropertyName("keyExchange")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string KeyExchange { @@ -21259,7 +21164,7 @@ public string KeyExchange /// /// (EC)DH group used by the connection, if applicable. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyExchangeGroup")] + [JsonPropertyName("keyExchangeGroup")] public string KeyExchangeGroup { get; @@ -21269,7 +21174,7 @@ public string KeyExchangeGroup /// /// Cipher name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cipher")] + [JsonPropertyName("cipher")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Cipher { @@ -21280,7 +21185,7 @@ public string Cipher /// /// TLS MAC. Note that AEAD ciphers do not have separate MACs. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mac")] + [JsonPropertyName("mac")] public string Mac { get; @@ -21290,7 +21195,7 @@ public string Mac /// /// Page certificate. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificate")] + [JsonPropertyName("certificate")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Certificate { @@ -21301,7 +21206,7 @@ public string[] Certificate /// /// Certificate subject name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subjectName")] + [JsonPropertyName("subjectName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SubjectName { @@ -21312,7 +21217,7 @@ public string SubjectName /// /// Name of the issuing CA. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuer")] + [JsonPropertyName("issuer")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Issuer { @@ -21323,7 +21228,7 @@ public string Issuer /// /// Certificate valid from date. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("validFrom")] + [JsonPropertyName("validFrom")] public double ValidFrom { get; @@ -21333,7 +21238,7 @@ public double ValidFrom /// /// Certificate valid to (expiration) date /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("validTo")] + [JsonPropertyName("validTo")] public double ValidTo { get; @@ -21343,7 +21248,7 @@ public double ValidTo /// /// The highest priority network error code, if the certificate has an error. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateNetworkError")] + [JsonPropertyName("certificateNetworkError")] public string CertificateNetworkError { get; @@ -21353,7 +21258,7 @@ public string CertificateNetworkError /// /// True if the certificate uses a weak signature aglorithm. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateHasWeakSignature")] + [JsonPropertyName("certificateHasWeakSignature")] public bool CertificateHasWeakSignature { get; @@ -21363,7 +21268,7 @@ public bool CertificateHasWeakSignature /// /// True if the certificate has a SHA1 signature in the chain. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateHasSha1Signature")] + [JsonPropertyName("certificateHasSha1Signature")] public bool CertificateHasSha1Signature { get; @@ -21373,7 +21278,7 @@ public bool CertificateHasSha1Signature /// /// True if modern SSL /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("modernSSL")] + [JsonPropertyName("modernSSL")] public bool ModernSSL { get; @@ -21383,7 +21288,7 @@ public bool ModernSSL /// /// True if the connection is using an obsolete SSL protocol. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslProtocol")] + [JsonPropertyName("obsoleteSslProtocol")] public bool ObsoleteSslProtocol { get; @@ -21393,7 +21298,7 @@ public bool ObsoleteSslProtocol /// /// True if the connection is using an obsolete SSL key exchange. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslKeyExchange")] + [JsonPropertyName("obsoleteSslKeyExchange")] public bool ObsoleteSslKeyExchange { get; @@ -21403,7 +21308,7 @@ public bool ObsoleteSslKeyExchange /// /// True if the connection is using an obsolete SSL cipher. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslCipher")] + [JsonPropertyName("obsoleteSslCipher")] public bool ObsoleteSslCipher { get; @@ -21413,7 +21318,7 @@ public bool ObsoleteSslCipher /// /// True if the connection is using an obsolete SSL signature. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("obsoleteSslSignature")] + [JsonPropertyName("obsoleteSslSignature")] public bool ObsoleteSslSignature { get; @@ -21429,12 +21334,12 @@ public enum SafetyTipStatus /// /// badReputation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("badReputation")] + [JsonPropertyName("badReputation")] BadReputation, /// /// lookalike /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lookalike")] + [JsonPropertyName("lookalike")] Lookalike } @@ -21446,7 +21351,7 @@ public partial class SafetyTipInfo : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Describes whether the page triggers any safety tips or reputation warnings. Default is unknown. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("safetyTipStatus")] + [JsonPropertyName("safetyTipStatus")] public CefSharp.DevTools.Security.SafetyTipStatus SafetyTipStatus { get; @@ -21456,7 +21361,7 @@ public CefSharp.DevTools.Security.SafetyTipStatus SafetyTipStatus /// /// The URL the safety tip suggested ("Did you mean?"). Only filled in for lookalike matches. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("safeUrl")] + [JsonPropertyName("safeUrl")] public string SafeUrl { get; @@ -21472,7 +21377,7 @@ public partial class VisibleSecurityState : CefSharp.DevTools.DevToolsDomainEnti /// /// The security level of the page. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; @@ -21482,7 +21387,7 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// Security state details about the page certificate. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificateSecurityState")] + [JsonPropertyName("certificateSecurityState")] public CefSharp.DevTools.Security.CertificateSecurityState CertificateSecurityState { get; @@ -21492,7 +21397,7 @@ public CefSharp.DevTools.Security.CertificateSecurityState CertificateSecuritySt /// /// The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("safetyTipInfo")] + [JsonPropertyName("safetyTipInfo")] public CefSharp.DevTools.Security.SafetyTipInfo SafetyTipInfo { get; @@ -21502,7 +21407,7 @@ public CefSharp.DevTools.Security.SafetyTipInfo SafetyTipInfo /// /// Array of security state issues ids. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityStateIssueIds")] + [JsonPropertyName("securityStateIssueIds")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] SecurityStateIssueIds { @@ -21519,7 +21424,7 @@ public partial class SecurityStateExplanation : CefSharp.DevTools.DevToolsDomain /// /// Security state representing the severity of the factor being explained. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; @@ -21529,7 +21434,7 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// Title describing the type of factor. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { @@ -21540,7 +21445,7 @@ public string Title /// /// Short phrase describing the type of factor. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("summary")] + [JsonPropertyName("summary")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Summary { @@ -21551,7 +21456,7 @@ public string Summary /// /// Full text explanation of the factor. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + [JsonPropertyName("description")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Description { @@ -21562,7 +21467,7 @@ public string Description /// /// The type of mixed content described by the explanation. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mixedContentType")] + [JsonPropertyName("mixedContentType")] public CefSharp.DevTools.Security.MixedContentType MixedContentType { get; @@ -21572,7 +21477,7 @@ public CefSharp.DevTools.Security.MixedContentType MixedContentType /// /// Page certificate. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("certificate")] + [JsonPropertyName("certificate")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Certificate { @@ -21583,7 +21488,7 @@ public string[] Certificate /// /// Recommendations to fix any issues. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recommendations")] + [JsonPropertyName("recommendations")] public string[] Recommendations { get; @@ -21599,7 +21504,7 @@ public partial class InsecureContentStatus : CefSharp.DevTools.DevToolsDomainEnt /// /// Always false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranMixedContent")] + [JsonPropertyName("ranMixedContent")] public bool RanMixedContent { get; @@ -21609,7 +21514,7 @@ public bool RanMixedContent /// /// Always false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("displayedMixedContent")] + [JsonPropertyName("displayedMixedContent")] public bool DisplayedMixedContent { get; @@ -21619,7 +21524,7 @@ public bool DisplayedMixedContent /// /// Always false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containedMixedForm")] + [JsonPropertyName("containedMixedForm")] public bool ContainedMixedForm { get; @@ -21629,7 +21534,7 @@ public bool ContainedMixedForm /// /// Always false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranContentWithCertErrors")] + [JsonPropertyName("ranContentWithCertErrors")] public bool RanContentWithCertErrors { get; @@ -21639,7 +21544,7 @@ public bool RanContentWithCertErrors /// /// Always false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("displayedContentWithCertErrors")] + [JsonPropertyName("displayedContentWithCertErrors")] public bool DisplayedContentWithCertErrors { get; @@ -21649,7 +21554,7 @@ public bool DisplayedContentWithCertErrors /// /// Always set to unknown. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranInsecureContentStyle")] + [JsonPropertyName("ranInsecureContentStyle")] public CefSharp.DevTools.Security.SecurityState RanInsecureContentStyle { get; @@ -21659,7 +21564,7 @@ public CefSharp.DevTools.Security.SecurityState RanInsecureContentStyle /// /// Always set to unknown. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("displayedInsecureContentStyle")] + [JsonPropertyName("displayedInsecureContentStyle")] public CefSharp.DevTools.Security.SecurityState DisplayedInsecureContentStyle { get; @@ -21676,12 +21581,12 @@ public enum CertificateErrorAction /// /// continue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("continue")] + [JsonPropertyName("continue")] Continue, /// /// cancel /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cancel")] + [JsonPropertyName("cancel")] Cancel } @@ -21696,8 +21601,8 @@ public class CertificateErrorEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// The ID of the event. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventId")] + [JsonInclude] + [JsonPropertyName("eventId")] public int EventId { get; @@ -21707,8 +21612,8 @@ public int EventId /// /// The type of the error. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorType")] + [JsonInclude] + [JsonPropertyName("errorType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorType { @@ -21719,8 +21624,8 @@ public string ErrorType /// /// The url that was requested. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestURL")] + [JsonInclude] + [JsonPropertyName("requestURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestURL { @@ -21737,8 +21642,8 @@ public class VisibleSecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDo /// /// Security state information about the page. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("visibleSecurityState")] + [JsonInclude] + [JsonPropertyName("visibleSecurityState")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Security.VisibleSecurityState VisibleSecurityState { @@ -21755,8 +21660,8 @@ public class SecurityStateChangedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Security state. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("securityState")] + [JsonInclude] + [JsonPropertyName("securityState")] public CefSharp.DevTools.Security.SecurityState SecurityState { get; @@ -21766,8 +21671,8 @@ public CefSharp.DevTools.Security.SecurityState SecurityState /// /// True if the page was loaded over cryptographic transport such as HTTPS. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("schemeIsCryptographic")] + [JsonInclude] + [JsonPropertyName("schemeIsCryptographic")] public bool SchemeIsCryptographic { get; @@ -21778,8 +21683,8 @@ public bool SchemeIsCryptographic /// Previously a list of explanations for the security state. Now always /// empty. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("explanations")] + [JsonInclude] + [JsonPropertyName("explanations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Explanations { @@ -21790,8 +21695,8 @@ public System.Collections.Generic.IList /// Information about insecure content on the page. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("insecureContentStatus")] + [JsonInclude] + [JsonPropertyName("insecureContentStatus")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Security.InsecureContentStatus InsecureContentStatus { @@ -21802,8 +21707,8 @@ public CefSharp.DevTools.Security.InsecureContentStatus InsecureContentStatus /// /// Overrides user-visible description of the state. Always omitted. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("summary")] + [JsonInclude] + [JsonPropertyName("summary")] public string Summary { get; @@ -21822,7 +21727,7 @@ public partial class ServiceWorkerRegistration : CefSharp.DevTools.DevToolsDomai /// /// RegistrationId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrationId")] + [JsonPropertyName("registrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RegistrationId { @@ -21833,7 +21738,7 @@ public string RegistrationId /// /// ScopeURL /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scopeURL")] + [JsonPropertyName("scopeURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScopeURL { @@ -21844,7 +21749,7 @@ public string ScopeURL /// /// IsDeleted /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isDeleted")] + [JsonPropertyName("isDeleted")] public bool IsDeleted { get; @@ -21860,22 +21765,22 @@ public enum ServiceWorkerVersionRunningStatus /// /// stopped /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stopped")] + [JsonPropertyName("stopped")] Stopped, /// /// starting /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("starting")] + [JsonPropertyName("starting")] Starting, /// /// running /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("running")] + [JsonPropertyName("running")] Running, /// /// stopping /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stopping")] + [JsonPropertyName("stopping")] Stopping } @@ -21887,32 +21792,32 @@ public enum ServiceWorkerVersionStatus /// /// new /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("new")] + [JsonPropertyName("new")] New, /// /// installing /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("installing")] + [JsonPropertyName("installing")] Installing, /// /// installed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("installed")] + [JsonPropertyName("installed")] Installed, /// /// activating /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("activating")] + [JsonPropertyName("activating")] Activating, /// /// activated /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("activated")] + [JsonPropertyName("activated")] Activated, /// /// redundant /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("redundant")] + [JsonPropertyName("redundant")] Redundant } @@ -21924,7 +21829,7 @@ public partial class ServiceWorkerVersion : CefSharp.DevTools.DevToolsDomainEnti /// /// VersionId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("versionId")] + [JsonPropertyName("versionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string VersionId { @@ -21935,7 +21840,7 @@ public string VersionId /// /// RegistrationId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrationId")] + [JsonPropertyName("registrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RegistrationId { @@ -21946,7 +21851,7 @@ public string RegistrationId /// /// ScriptURL /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptURL")] + [JsonPropertyName("scriptURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptURL { @@ -21957,7 +21862,7 @@ public string ScriptURL /// /// RunningStatus /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("runningStatus")] + [JsonPropertyName("runningStatus")] public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionRunningStatus RunningStatus { get; @@ -21967,7 +21872,7 @@ public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionRunningStatus Running /// /// Status /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonPropertyName("status")] public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionStatus Status { get; @@ -21977,7 +21882,7 @@ public CefSharp.DevTools.ServiceWorker.ServiceWorkerVersionStatus Status /// /// The Last-Modified header value of the main script. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptLastModified")] + [JsonPropertyName("scriptLastModified")] public double? ScriptLastModified { get; @@ -21988,7 +21893,7 @@ public double? ScriptLastModified /// The time at which the response headers of the main script were received from the server. /// For cached script it is the last time the cache entry was validated. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptResponseTime")] + [JsonPropertyName("scriptResponseTime")] public double? ScriptResponseTime { get; @@ -21998,7 +21903,7 @@ public double? ScriptResponseTime /// /// ControlledClients /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("controlledClients")] + [JsonPropertyName("controlledClients")] public string[] ControlledClients { get; @@ -22008,7 +21913,7 @@ public string[] ControlledClients /// /// TargetId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [JsonPropertyName("targetId")] public string TargetId { get; @@ -22024,7 +21929,7 @@ public partial class ServiceWorkerErrorMessage : CefSharp.DevTools.DevToolsDomai /// /// ErrorMessage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorMessage")] + [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorMessage { @@ -22035,7 +21940,7 @@ public string ErrorMessage /// /// RegistrationId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrationId")] + [JsonPropertyName("registrationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RegistrationId { @@ -22046,7 +21951,7 @@ public string RegistrationId /// /// VersionId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("versionId")] + [JsonPropertyName("versionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string VersionId { @@ -22057,7 +21962,7 @@ public string VersionId /// /// SourceURL /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceURL")] + [JsonPropertyName("sourceURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceURL { @@ -22068,7 +21973,7 @@ public string SourceURL /// /// LineNumber /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -22078,7 +21983,7 @@ public int LineNumber /// /// ColumnNumber /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int ColumnNumber { get; @@ -22094,8 +21999,8 @@ public class WorkerErrorReportedEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// ErrorMessage /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorMessage")] + [JsonInclude] + [JsonPropertyName("errorMessage")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.ServiceWorker.ServiceWorkerErrorMessage ErrorMessage { @@ -22112,8 +22017,8 @@ public class WorkerRegistrationUpdatedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Registrations /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("registrations")] + [JsonInclude] + [JsonPropertyName("registrations")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Registrations { @@ -22130,8 +22035,8 @@ public class WorkerVersionUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Versions /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("versions")] + [JsonInclude] + [JsonPropertyName("versions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Versions { @@ -22151,67 +22056,67 @@ public enum StorageType /// /// appcache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("appcache")] + [JsonPropertyName("appcache")] Appcache, /// /// cookies /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] + [JsonPropertyName("cookies")] Cookies, /// /// file_systems /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("file_systems")] + [JsonPropertyName("file_systems")] FileSystems, /// /// indexeddb /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("indexeddb")] + [JsonPropertyName("indexeddb")] Indexeddb, /// /// local_storage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("local_storage")] + [JsonPropertyName("local_storage")] LocalStorage, /// /// shader_cache /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shader_cache")] + [JsonPropertyName("shader_cache")] ShaderCache, /// /// websql /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("websql")] + [JsonPropertyName("websql")] Websql, /// /// service_workers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("service_workers")] + [JsonPropertyName("service_workers")] ServiceWorkers, /// /// cache_storage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cache_storage")] + [JsonPropertyName("cache_storage")] CacheStorage, /// /// interest_groups /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("interest_groups")] + [JsonPropertyName("interest_groups")] InterestGroups, /// /// shared_storage /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("shared_storage")] + [JsonPropertyName("shared_storage")] SharedStorage, /// /// all /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("all")] + [JsonPropertyName("all")] All, /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other } @@ -22223,7 +22128,7 @@ public partial class UsageForType : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name of storage type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageType")] + [JsonPropertyName("storageType")] public CefSharp.DevTools.Storage.StorageType StorageType { get; @@ -22233,7 +22138,7 @@ public CefSharp.DevTools.Storage.StorageType StorageType /// /// Storage usage (bytes). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("usage")] + [JsonPropertyName("usage")] public double Usage { get; @@ -22250,7 +22155,7 @@ public partial class TrustTokens : CefSharp.DevTools.DevToolsDomainEntityBase /// /// IssuerOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("issuerOrigin")] + [JsonPropertyName("issuerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string IssuerOrigin { @@ -22261,7 +22166,7 @@ public string IssuerOrigin /// /// Count /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + [JsonPropertyName("count")] public double Count { get; @@ -22277,32 +22182,32 @@ public enum InterestGroupAccessType /// /// join /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("join")] + [JsonPropertyName("join")] Join, /// /// leave /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("leave")] + [JsonPropertyName("leave")] Leave, /// /// update /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("update")] + [JsonPropertyName("update")] Update, /// /// loaded /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaded")] + [JsonPropertyName("loaded")] Loaded, /// /// bid /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bid")] + [JsonPropertyName("bid")] Bid, /// /// win /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("win")] + [JsonPropertyName("win")] Win } @@ -22314,7 +22219,7 @@ public partial class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBas /// /// RenderUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("renderUrl")] + [JsonPropertyName("renderUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RenderUrl { @@ -22325,7 +22230,7 @@ public string RenderUrl /// /// Metadata /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("metadata")] + [JsonPropertyName("metadata")] public string Metadata { get; @@ -22341,7 +22246,7 @@ public partial class InterestGroupDetails : CefSharp.DevTools.DevToolsDomainEnti /// /// OwnerOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ownerOrigin")] + [JsonPropertyName("ownerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OwnerOrigin { @@ -22352,7 +22257,7 @@ public string OwnerOrigin /// /// Name /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -22363,7 +22268,7 @@ public string Name /// /// ExpirationTime /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("expirationTime")] + [JsonPropertyName("expirationTime")] public double ExpirationTime { get; @@ -22373,7 +22278,7 @@ public double ExpirationTime /// /// JoiningOrigin /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("joiningOrigin")] + [JsonPropertyName("joiningOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string JoiningOrigin { @@ -22384,7 +22289,7 @@ public string JoiningOrigin /// /// BiddingUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("biddingUrl")] + [JsonPropertyName("biddingUrl")] public string BiddingUrl { get; @@ -22394,7 +22299,7 @@ public string BiddingUrl /// /// BiddingWasmHelperUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("biddingWasmHelperUrl")] + [JsonPropertyName("biddingWasmHelperUrl")] public string BiddingWasmHelperUrl { get; @@ -22404,7 +22309,7 @@ public string BiddingWasmHelperUrl /// /// UpdateUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("updateUrl")] + [JsonPropertyName("updateUrl")] public string UpdateUrl { get; @@ -22414,7 +22319,7 @@ public string UpdateUrl /// /// TrustedBiddingSignalsUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trustedBiddingSignalsUrl")] + [JsonPropertyName("trustedBiddingSignalsUrl")] public string TrustedBiddingSignalsUrl { get; @@ -22424,7 +22329,7 @@ public string TrustedBiddingSignalsUrl /// /// TrustedBiddingSignalsKeys /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trustedBiddingSignalsKeys")] + [JsonPropertyName("trustedBiddingSignalsKeys")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] TrustedBiddingSignalsKeys { @@ -22435,7 +22340,7 @@ public string[] TrustedBiddingSignalsKeys /// /// UserBiddingSignals /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("userBiddingSignals")] + [JsonPropertyName("userBiddingSignals")] public string UserBiddingSignals { get; @@ -22445,7 +22350,7 @@ public string UserBiddingSignals /// /// Ads /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ads")] + [JsonPropertyName("ads")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Ads { @@ -22456,7 +22361,7 @@ public System.Collections.Generic.IList /// AdComponents /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("adComponents")] + [JsonPropertyName("adComponents")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList AdComponents { @@ -22473,82 +22378,82 @@ public enum SharedStorageAccessType /// /// documentAddModule /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentAddModule")] + [JsonPropertyName("documentAddModule")] DocumentAddModule, /// /// documentSelectURL /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentSelectURL")] + [JsonPropertyName("documentSelectURL")] DocumentSelectURL, /// /// documentRun /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentRun")] + [JsonPropertyName("documentRun")] DocumentRun, /// /// documentSet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentSet")] + [JsonPropertyName("documentSet")] DocumentSet, /// /// documentAppend /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentAppend")] + [JsonPropertyName("documentAppend")] DocumentAppend, /// /// documentDelete /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentDelete")] + [JsonPropertyName("documentDelete")] DocumentDelete, /// /// documentClear /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documentClear")] + [JsonPropertyName("documentClear")] DocumentClear, /// /// workletSet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletSet")] + [JsonPropertyName("workletSet")] WorkletSet, /// /// workletAppend /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletAppend")] + [JsonPropertyName("workletAppend")] WorkletAppend, /// /// workletDelete /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletDelete")] + [JsonPropertyName("workletDelete")] WorkletDelete, /// /// workletClear /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletClear")] + [JsonPropertyName("workletClear")] WorkletClear, /// /// workletGet /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletGet")] + [JsonPropertyName("workletGet")] WorkletGet, /// /// workletKeys /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletKeys")] + [JsonPropertyName("workletKeys")] WorkletKeys, /// /// workletEntries /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletEntries")] + [JsonPropertyName("workletEntries")] WorkletEntries, /// /// workletLength /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletLength")] + [JsonPropertyName("workletLength")] WorkletLength, /// /// workletRemainingBudget /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("workletRemainingBudget")] + [JsonPropertyName("workletRemainingBudget")] WorkletRemainingBudget } @@ -22560,7 +22465,7 @@ public partial class SharedStorageEntry : CefSharp.DevTools.DevToolsDomainEntity /// /// Key /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Key { @@ -22571,7 +22476,7 @@ public string Key /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -22588,7 +22493,7 @@ public partial class SharedStorageMetadata : CefSharp.DevTools.DevToolsDomainEnt /// /// CreationTime /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("creationTime")] + [JsonPropertyName("creationTime")] public double CreationTime { get; @@ -22598,7 +22503,7 @@ public double CreationTime /// /// Length /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + [JsonPropertyName("length")] public int Length { get; @@ -22608,7 +22513,7 @@ public int Length /// /// RemainingBudget /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("remainingBudget")] + [JsonPropertyName("remainingBudget")] public double RemainingBudget { get; @@ -22624,7 +22529,7 @@ public partial class SharedStorageReportingMetadata : CefSharp.DevTools.DevTools /// /// EventType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventType")] + [JsonPropertyName("eventType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string EventType { @@ -22635,7 +22540,7 @@ public string EventType /// /// ReportingUrl /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingUrl")] + [JsonPropertyName("reportingUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ReportingUrl { @@ -22652,7 +22557,7 @@ public partial class SharedStorageUrlWithMetadata : CefSharp.DevTools.DevToolsDo /// /// Spec of candidate URL. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -22663,7 +22568,7 @@ public string Url /// /// Any associated reporting metadata. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reportingMetadata")] + [JsonPropertyName("reportingMetadata")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ReportingMetadata { @@ -22682,7 +22587,7 @@ public partial class SharedStorageAccessParams : CefSharp.DevTools.DevToolsDomai /// Spec of the module script URL. /// Present only for SharedStorageAccessType.documentAddModule. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptSourceUrl")] + [JsonPropertyName("scriptSourceUrl")] public string ScriptSourceUrl { get; @@ -22694,7 +22599,7 @@ public string ScriptSourceUrl /// Present only for SharedStorageAccessType.documentRun and /// SharedStorageAccessType.documentSelectURL. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("operationName")] + [JsonPropertyName("operationName")] public string OperationName { get; @@ -22706,7 +22611,7 @@ public string OperationName /// Present only for SharedStorageAccessType.documentRun and /// SharedStorageAccessType.documentSelectURL. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("serializedData")] + [JsonPropertyName("serializedData")] public string SerializedData { get; @@ -22717,7 +22622,7 @@ public string SerializedData /// Array of candidate URLs' specs, along with any associated metadata. /// Present only for SharedStorageAccessType.documentSelectURL. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlsWithMetadata")] + [JsonPropertyName("urlsWithMetadata")] public System.Collections.Generic.IList UrlsWithMetadata { get; @@ -22734,7 +22639,7 @@ public System.Collections.Generic.IList - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonPropertyName("key")] public string Key { get; @@ -22748,7 +22653,7 @@ public string Key /// SharedStorageAccessType.workletSet, and /// SharedStorageAccessType.workletAppend. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public string Value { get; @@ -22760,7 +22665,7 @@ public string Value /// Present only for SharedStorageAccessType.documentSet and /// SharedStorageAccessType.workletSet. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ignoreIfPresent")] + [JsonPropertyName("ignoreIfPresent")] public bool? IgnoreIfPresent { get; @@ -22776,8 +22681,8 @@ public class CacheStorageContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDom /// /// Origin to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonInclude] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -22788,8 +22693,8 @@ public string Origin /// /// Storage key to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonInclude] + [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { @@ -22800,8 +22705,8 @@ public string StorageKey /// /// Name of cache in origin. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheName")] + [JsonInclude] + [JsonPropertyName("cacheName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CacheName { @@ -22818,8 +22723,8 @@ public class CacheStorageListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Origin to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonInclude] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -22830,8 +22735,8 @@ public string Origin /// /// Storage key to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonInclude] + [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { @@ -22848,8 +22753,8 @@ public class IndexedDBContentUpdatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// Origin to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonInclude] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -22860,8 +22765,8 @@ public string Origin /// /// Storage key to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonInclude] + [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { @@ -22872,8 +22777,8 @@ public string StorageKey /// /// Database to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("databaseName")] + [JsonInclude] + [JsonPropertyName("databaseName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DatabaseName { @@ -22884,8 +22789,8 @@ public string DatabaseName /// /// ObjectStore to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectStoreName")] + [JsonInclude] + [JsonPropertyName("objectStoreName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ObjectStoreName { @@ -22902,8 +22807,8 @@ public class IndexedDBListUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Origin to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonInclude] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -22914,8 +22819,8 @@ public string Origin /// /// Storage key to update. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonInclude] + [JsonPropertyName("storageKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string StorageKey { @@ -22932,8 +22837,8 @@ public class InterestGroupAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// AccessTime /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("accessTime")] + [JsonInclude] + [JsonPropertyName("accessTime")] public double AccessTime { get; @@ -22943,8 +22848,8 @@ public double AccessTime /// /// Type /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Storage.InterestGroupAccessType Type { get; @@ -22954,8 +22859,8 @@ public CefSharp.DevTools.Storage.InterestGroupAccessType Type /// /// OwnerOrigin /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ownerOrigin")] + [JsonInclude] + [JsonPropertyName("ownerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OwnerOrigin { @@ -22966,8 +22871,8 @@ public string OwnerOrigin /// /// Name /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonInclude] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -22985,8 +22890,8 @@ public class SharedStorageAccessedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Time of the access. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("accessTime")] + [JsonInclude] + [JsonPropertyName("accessTime")] public double AccessTime { get; @@ -22996,8 +22901,8 @@ public double AccessTime /// /// Enum value indicating the Shared Storage API method invoked. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Storage.SharedStorageAccessType Type { get; @@ -23007,8 +22912,8 @@ public CefSharp.DevTools.Storage.SharedStorageAccessType Type /// /// DevTools Frame Token for the primary frame tree's root. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mainFrameId")] + [JsonInclude] + [JsonPropertyName("mainFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string MainFrameId { @@ -23019,8 +22924,8 @@ public string MainFrameId /// /// Serialized origin for the context that invoked the Shared Storage API. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ownerOrigin")] + [JsonInclude] + [JsonPropertyName("ownerOrigin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string OwnerOrigin { @@ -23032,8 +22937,8 @@ public string OwnerOrigin /// The sub-parameters warapped by `params` are all optional and their /// presence/absence depends on `type`. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("params")] + [JsonInclude] + [JsonPropertyName("params")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.SharedStorageAccessParams Params { @@ -23053,7 +22958,7 @@ public partial class GPUDevice : CefSharp.DevTools.DevToolsDomainEntityBase /// /// PCI ID of the GPU vendor, if available; 0 otherwise. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("vendorId")] + [JsonPropertyName("vendorId")] public double VendorId { get; @@ -23063,7 +22968,7 @@ public double VendorId /// /// PCI ID of the GPU device, if available; 0 otherwise. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceId")] + [JsonPropertyName("deviceId")] public double DeviceId { get; @@ -23073,7 +22978,7 @@ public double DeviceId /// /// Sub sys ID of the GPU, only available on Windows. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subSysId")] + [JsonPropertyName("subSysId")] public double? SubSysId { get; @@ -23083,7 +22988,7 @@ public double? SubSysId /// /// Revision of the GPU, only available on Windows. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("revision")] + [JsonPropertyName("revision")] public double? Revision { get; @@ -23093,7 +22998,7 @@ public double? Revision /// /// String description of the GPU vendor, if the PCI ID is not available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("vendorString")] + [JsonPropertyName("vendorString")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string VendorString { @@ -23104,7 +23009,7 @@ public string VendorString /// /// String description of the GPU device, if the PCI ID is not available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deviceString")] + [JsonPropertyName("deviceString")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DeviceString { @@ -23115,7 +23020,7 @@ public string DeviceString /// /// String description of the GPU driver vendor. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("driverVendor")] + [JsonPropertyName("driverVendor")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DriverVendor { @@ -23126,7 +23031,7 @@ public string DriverVendor /// /// String description of the GPU driver version. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("driverVersion")] + [JsonPropertyName("driverVersion")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DriverVersion { @@ -23143,7 +23048,7 @@ public partial class Size : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Width in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("width")] + [JsonPropertyName("width")] public int Width { get; @@ -23153,7 +23058,7 @@ public int Width /// /// Height in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("height")] + [JsonPropertyName("height")] public int Height { get; @@ -23170,7 +23075,7 @@ public partial class VideoDecodeAcceleratorCapability : CefSharp.DevTools.DevToo /// /// Video codec profile that is supported, e.g. VP9 Profile 2. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonPropertyName("profile")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Profile { @@ -23181,7 +23086,7 @@ public string Profile /// /// Maximum video dimensions in pixels supported for this |profile|. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxResolution")] + [JsonPropertyName("maxResolution")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.SystemInfo.Size MaxResolution { @@ -23192,7 +23097,7 @@ public CefSharp.DevTools.SystemInfo.Size MaxResolution /// /// Minimum video dimensions in pixels supported for this |profile|. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("minResolution")] + [JsonPropertyName("minResolution")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.SystemInfo.Size MinResolution { @@ -23210,7 +23115,7 @@ public partial class VideoEncodeAcceleratorCapability : CefSharp.DevTools.DevToo /// /// Video codec profile that is supported, e.g H264 Main. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonPropertyName("profile")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Profile { @@ -23221,7 +23126,7 @@ public string Profile /// /// Maximum video dimensions in pixels supported for this |profile|. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxResolution")] + [JsonPropertyName("maxResolution")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.SystemInfo.Size MaxResolution { @@ -23234,7 +23139,7 @@ public CefSharp.DevTools.SystemInfo.Size MaxResolution /// |profile|, as fraction's numerator and denominator, e.g. 24/1 fps, /// 24000/1001 fps, etc. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxFramerateNumerator")] + [JsonPropertyName("maxFramerateNumerator")] public int MaxFramerateNumerator { get; @@ -23244,7 +23149,7 @@ public int MaxFramerateNumerator /// /// MaxFramerateDenominator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxFramerateDenominator")] + [JsonPropertyName("maxFramerateDenominator")] public int MaxFramerateDenominator { get; @@ -23260,17 +23165,17 @@ public enum SubsamplingFormat /// /// yuv420 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("yuv420")] + [JsonPropertyName("yuv420")] Yuv420, /// /// yuv422 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("yuv422")] + [JsonPropertyName("yuv422")] Yuv422, /// /// yuv444 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("yuv444")] + [JsonPropertyName("yuv444")] Yuv444 } @@ -23282,17 +23187,17 @@ public enum ImageType /// /// jpeg /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jpeg")] + [JsonPropertyName("jpeg")] Jpeg, /// /// webp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] + [JsonPropertyName("webp")] Webp, /// /// unknown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unknown")] + [JsonPropertyName("unknown")] Unknown } @@ -23305,7 +23210,7 @@ public partial class ImageDecodeAcceleratorCapability : CefSharp.DevTools.DevToo /// /// Image coded, e.g. Jpeg. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("imageType")] + [JsonPropertyName("imageType")] public CefSharp.DevTools.SystemInfo.ImageType ImageType { get; @@ -23315,7 +23220,7 @@ public CefSharp.DevTools.SystemInfo.ImageType ImageType /// /// Maximum supported dimensions of the image in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxDimensions")] + [JsonPropertyName("maxDimensions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.SystemInfo.Size MaxDimensions { @@ -23326,7 +23231,7 @@ public CefSharp.DevTools.SystemInfo.Size MaxDimensions /// /// Minimum supported dimensions of the image in pixels. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("minDimensions")] + [JsonPropertyName("minDimensions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.SystemInfo.Size MinDimensions { @@ -23337,7 +23242,7 @@ public CefSharp.DevTools.SystemInfo.Size MinDimensions /// /// Optional array of supported subsampling formats, e.g. 4:2:0, if known. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subsamplings")] + [JsonPropertyName("subsamplings")] public CefSharp.DevTools.SystemInfo.SubsamplingFormat[] Subsamplings { get; @@ -23353,7 +23258,7 @@ public partial class GPUInfo : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The graphics devices on the system. Element 0 is the primary GPU. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("devices")] + [JsonPropertyName("devices")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Devices { @@ -23364,7 +23269,7 @@ public System.Collections.Generic.IList /// /// An optional dictionary of additional GPU related attributes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("auxAttributes")] + [JsonPropertyName("auxAttributes")] public object AuxAttributes { get; @@ -23374,7 +23279,7 @@ public object AuxAttributes /// /// An optional dictionary of graphics features and their status. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("featureStatus")] + [JsonPropertyName("featureStatus")] public object FeatureStatus { get; @@ -23384,7 +23289,7 @@ public object FeatureStatus /// /// An optional array of GPU driver bug workarounds. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("driverBugWorkarounds")] + [JsonPropertyName("driverBugWorkarounds")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] DriverBugWorkarounds { @@ -23395,7 +23300,7 @@ public string[] DriverBugWorkarounds /// /// Supported accelerated video decoding capabilities. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoDecoding")] + [JsonPropertyName("videoDecoding")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList VideoDecoding { @@ -23406,7 +23311,7 @@ public System.Collections.Generic.IList /// Supported accelerated video encoding capabilities. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("videoEncoding")] + [JsonPropertyName("videoEncoding")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList VideoEncoding { @@ -23417,7 +23322,7 @@ public System.Collections.Generic.IList /// Supported accelerated image decoding capabilities. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("imageDecoding")] + [JsonPropertyName("imageDecoding")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ImageDecoding { @@ -23434,7 +23339,7 @@ public partial class ProcessInfo : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Specifies process type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { @@ -23445,7 +23350,7 @@ public string Type /// /// Specifies process id. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] public int Id { get; @@ -23456,7 +23361,7 @@ public int Id /// Specifies cumulative CPU usage in seconds across all threads of the /// process since the process start. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cpuTime")] + [JsonPropertyName("cpuTime")] public double CpuTime { get; @@ -23475,7 +23380,7 @@ public partial class TargetInfo : CefSharp.DevTools.DevToolsDomainEntityBase /// /// TargetId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [JsonPropertyName("targetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TargetId { @@ -23486,7 +23391,7 @@ public string TargetId /// /// Type /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Type { @@ -23497,7 +23402,7 @@ public string Type /// /// Title /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonPropertyName("title")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Title { @@ -23508,7 +23413,7 @@ public string Title /// /// Url /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -23519,7 +23424,7 @@ public string Url /// /// Whether the target has an attached client. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attached")] + [JsonPropertyName("attached")] public bool Attached { get; @@ -23529,7 +23434,7 @@ public bool Attached /// /// Opener target Id /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("openerId")] + [JsonPropertyName("openerId")] public string OpenerId { get; @@ -23539,7 +23444,7 @@ public string OpenerId /// /// Whether the target has access to the originating window. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("canAccessOpener")] + [JsonPropertyName("canAccessOpener")] public bool CanAccessOpener { get; @@ -23549,7 +23454,7 @@ public bool CanAccessOpener /// /// Frame id of originating window (is only set if target has an opener). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("openerFrameId")] + [JsonPropertyName("openerFrameId")] public string OpenerFrameId { get; @@ -23559,7 +23464,7 @@ public string OpenerFrameId /// /// BrowserContextId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("browserContextId")] + [JsonPropertyName("browserContextId")] public string BrowserContextId { get; @@ -23570,7 +23475,7 @@ public string BrowserContextId /// Provides additional details for specific target types. For example, for /// the type of "page", this may be set to "portal" or "prerender". /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + [JsonPropertyName("subtype")] public string Subtype { get; @@ -23586,7 +23491,7 @@ public partial class FilterEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// If set, causes exclusion of mathcing targets from the list. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exclude")] + [JsonPropertyName("exclude")] public bool? Exclude { get; @@ -23596,7 +23501,7 @@ public bool? Exclude /// /// If not present, matches any type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public string Type { get; @@ -23612,7 +23517,7 @@ public partial class RemoteLocation : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Host /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("host")] + [JsonPropertyName("host")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Host { @@ -23623,7 +23528,7 @@ public string Host /// /// Port /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("port")] + [JsonPropertyName("port")] public int Port { get; @@ -23639,8 +23544,8 @@ public class AttachedToTargetEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Identifier assigned to the session used to send/receive messages. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [JsonInclude] + [JsonPropertyName("sessionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SessionId { @@ -23651,8 +23556,8 @@ public string SessionId /// /// TargetInfo /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfo")] + [JsonInclude] + [JsonPropertyName("targetInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Target.TargetInfo TargetInfo { @@ -23663,8 +23568,8 @@ public CefSharp.DevTools.Target.TargetInfo TargetInfo /// /// WaitingForDebugger /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("waitingForDebugger")] + [JsonInclude] + [JsonPropertyName("waitingForDebugger")] public bool WaitingForDebugger { get; @@ -23681,8 +23586,8 @@ public class DetachedFromTargetEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Detached session identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [JsonInclude] + [JsonPropertyName("sessionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SessionId { @@ -23693,8 +23598,8 @@ public string SessionId /// /// Deprecated. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [JsonInclude] + [JsonPropertyName("targetId")] public string TargetId { get; @@ -23711,8 +23616,8 @@ public class ReceivedMessageFromTargetEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Identifier of a session which sends a message. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [JsonInclude] + [JsonPropertyName("sessionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SessionId { @@ -23723,8 +23628,8 @@ public string SessionId /// /// Message /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [JsonInclude] + [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { @@ -23735,8 +23640,8 @@ public string Message /// /// Deprecated. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [JsonInclude] + [JsonPropertyName("targetId")] public string TargetId { get; @@ -23752,8 +23657,8 @@ public class TargetCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// TargetInfo /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfo")] + [JsonInclude] + [JsonPropertyName("targetInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Target.TargetInfo TargetInfo { @@ -23770,8 +23675,8 @@ public class TargetDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// TargetId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [JsonInclude] + [JsonPropertyName("targetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TargetId { @@ -23788,8 +23693,8 @@ public class TargetCrashedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// TargetId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [JsonInclude] + [JsonPropertyName("targetId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string TargetId { @@ -23800,8 +23705,8 @@ public string TargetId /// /// Termination status type. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonInclude] + [JsonPropertyName("status")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Status { @@ -23812,8 +23717,8 @@ public string Status /// /// Termination error code. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorCode")] + [JsonInclude] + [JsonPropertyName("errorCode")] public int ErrorCode { get; @@ -23830,8 +23735,8 @@ public class TargetInfoChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// TargetInfo /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfo")] + [JsonInclude] + [JsonPropertyName("targetInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Target.TargetInfo TargetInfo { @@ -23851,8 +23756,8 @@ public class AcceptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Port number that was successfully bound. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("port")] + [JsonInclude] + [JsonPropertyName("port")] public int Port { get; @@ -23862,8 +23767,8 @@ public int Port /// /// Connection id to be used. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("connectionId")] + [JsonInclude] + [JsonPropertyName("connectionId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ConnectionId { @@ -23883,22 +23788,22 @@ public enum TraceConfigRecordMode /// /// recordUntilFull /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recordUntilFull")] + [JsonPropertyName("recordUntilFull")] RecordUntilFull, /// /// recordContinuously /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recordContinuously")] + [JsonPropertyName("recordContinuously")] RecordContinuously, /// /// recordAsMuchAsPossible /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recordAsMuchAsPossible")] + [JsonPropertyName("recordAsMuchAsPossible")] RecordAsMuchAsPossible, /// /// echoToConsole /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("echoToConsole")] + [JsonPropertyName("echoToConsole")] EchoToConsole } @@ -23910,7 +23815,7 @@ public partial class TraceConfig : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Controls how the trace buffer stores data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recordMode")] + [JsonPropertyName("recordMode")] public CefSharp.DevTools.Tracing.TraceConfigRecordMode? RecordMode { get; @@ -23921,7 +23826,7 @@ public CefSharp.DevTools.Tracing.TraceConfigRecordMode? RecordMode /// Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value /// of 200 MB would be used. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("traceBufferSizeInKb")] + [JsonPropertyName("traceBufferSizeInKb")] public double? TraceBufferSizeInKb { get; @@ -23931,7 +23836,7 @@ public double? TraceBufferSizeInKb /// /// Turns on JavaScript stack sampling. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("enableSampling")] + [JsonPropertyName("enableSampling")] public bool? EnableSampling { get; @@ -23941,7 +23846,7 @@ public bool? EnableSampling /// /// Turns on system tracing. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("enableSystrace")] + [JsonPropertyName("enableSystrace")] public bool? EnableSystrace { get; @@ -23951,7 +23856,7 @@ public bool? EnableSystrace /// /// Turns on argument filter. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("enableArgumentFilter")] + [JsonPropertyName("enableArgumentFilter")] public bool? EnableArgumentFilter { get; @@ -23961,7 +23866,7 @@ public bool? EnableArgumentFilter /// /// Included category filters. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("includedCategories")] + [JsonPropertyName("includedCategories")] public string[] IncludedCategories { get; @@ -23971,7 +23876,7 @@ public string[] IncludedCategories /// /// Excluded category filters. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("excludedCategories")] + [JsonPropertyName("excludedCategories")] public string[] ExcludedCategories { get; @@ -23981,7 +23886,7 @@ public string[] ExcludedCategories /// /// Configuration to synthesize the delays in tracing. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("syntheticDelays")] + [JsonPropertyName("syntheticDelays")] public string[] SyntheticDelays { get; @@ -23991,7 +23896,7 @@ public string[] SyntheticDelays /// /// Configuration for memory dump triggers. Used only when "memory-infra" category is enabled. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("memoryDumpConfig")] + [JsonPropertyName("memoryDumpConfig")] public CefSharp.DevTools.Tracing.MemoryDumpConfig MemoryDumpConfig { get; @@ -24008,12 +23913,12 @@ public enum StreamFormat /// /// json /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("json")] + [JsonPropertyName("json")] Json, /// /// proto /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("proto")] + [JsonPropertyName("proto")] Proto } @@ -24025,12 +23930,12 @@ public enum StreamCompression /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None, /// /// gzip /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gzip")] + [JsonPropertyName("gzip")] Gzip } @@ -24044,17 +23949,17 @@ public enum MemoryDumpLevelOfDetail /// /// background /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("background")] + [JsonPropertyName("background")] Background, /// /// light /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("light")] + [JsonPropertyName("light")] Light, /// /// detailed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("detailed")] + [JsonPropertyName("detailed")] Detailed } @@ -24070,17 +23975,17 @@ public enum TracingBackend /// /// auto /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("auto")] + [JsonPropertyName("auto")] Auto, /// /// chrome /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("chrome")] + [JsonPropertyName("chrome")] Chrome, /// /// system /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("system")] + [JsonPropertyName("system")] System } @@ -24093,8 +23998,8 @@ public class BufferUsageEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBas /// A number in range [0..1] that indicates the used size of event buffer as a fraction of its /// total size. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("percentFull")] + [JsonInclude] + [JsonPropertyName("percentFull")] public double? PercentFull { get; @@ -24104,8 +24009,8 @@ public double? PercentFull /// /// An approximate number of events in the trace log. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eventCount")] + [JsonInclude] + [JsonPropertyName("eventCount")] public double? EventCount { get; @@ -24116,8 +24021,8 @@ public double? EventCount /// A number in range [0..1] that indicates the used size of event buffer as a fraction of its /// total size. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonInclude] + [JsonPropertyName("value")] public double? Value { get; @@ -24134,8 +24039,8 @@ public class DataCollectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Value /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonInclude] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Value { @@ -24154,8 +24059,8 @@ public class TracingCompleteEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// Indicates whether some trace data is known to have been lost, e.g. because the trace ring /// buffer wrapped around. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataLossOccurred")] + [JsonInclude] + [JsonPropertyName("dataLossOccurred")] public bool DataLossOccurred { get; @@ -24165,8 +24070,8 @@ public bool DataLossOccurred /// /// A handle of the stream that holds resulting trace data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + [JsonInclude] + [JsonPropertyName("stream")] public string Stream { get; @@ -24176,8 +24081,8 @@ public string Stream /// /// Trace data format of returned stream. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("traceFormat")] + [JsonInclude] + [JsonPropertyName("traceFormat")] public CefSharp.DevTools.Tracing.StreamFormat? TraceFormat { get; @@ -24187,8 +24092,8 @@ public CefSharp.DevTools.Tracing.StreamFormat? TraceFormat /// /// Compression format of returned stream. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("streamCompression")] + [JsonInclude] + [JsonPropertyName("streamCompression")] public CefSharp.DevTools.Tracing.StreamCompression? StreamCompression { get; @@ -24209,12 +24114,12 @@ public enum RequestStage /// /// Request /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Request")] + [JsonPropertyName("Request")] Request, /// /// Response /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Response")] + [JsonPropertyName("Response")] Response } @@ -24227,7 +24132,7 @@ public partial class RequestPattern : CefSharp.DevTools.DevToolsDomainEntityBase /// Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is /// backslash. Omitting is equivalent to `"*"`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("urlPattern")] + [JsonPropertyName("urlPattern")] public string UrlPattern { get; @@ -24237,7 +24142,7 @@ public string UrlPattern /// /// If set, only requests for matching resource types will be intercepted. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType? ResourceType { get; @@ -24247,7 +24152,7 @@ public CefSharp.DevTools.Network.ResourceType? ResourceType /// /// Stage at which to begin intercepting requests. Default is Request. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestStage")] + [JsonPropertyName("requestStage")] public CefSharp.DevTools.Fetch.RequestStage? RequestStage { get; @@ -24263,7 +24168,7 @@ public partial class HeaderEntry : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -24274,7 +24179,7 @@ public string Name /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -24291,12 +24196,12 @@ public enum AuthChallengeSource /// /// Server /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Server")] + [JsonPropertyName("Server")] Server, /// /// Proxy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Proxy")] + [JsonPropertyName("Proxy")] Proxy } @@ -24308,7 +24213,7 @@ public partial class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Source of the authentication challenge. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("source")] + [JsonPropertyName("source")] public CefSharp.DevTools.Fetch.AuthChallengeSource? Source { get; @@ -24318,7 +24223,7 @@ public CefSharp.DevTools.Fetch.AuthChallengeSource? Source /// /// Origin of the challenger. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -24329,7 +24234,7 @@ public string Origin /// /// The authentication scheme used, such as basic or digest /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scheme")] + [JsonPropertyName("scheme")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Scheme { @@ -24340,7 +24245,7 @@ public string Scheme /// /// The realm of the challenge. May be empty. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("realm")] + [JsonPropertyName("realm")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Realm { @@ -24359,17 +24264,17 @@ public enum AuthChallengeResponseResponse /// /// Default /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("Default")] + [JsonPropertyName("Default")] Default, /// /// CancelAuth /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CancelAuth")] + [JsonPropertyName("CancelAuth")] CancelAuth, /// /// ProvideCredentials /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ProvideCredentials")] + [JsonPropertyName("ProvideCredentials")] ProvideCredentials } @@ -24383,7 +24288,7 @@ public partial class AuthChallengeResponse : CefSharp.DevTools.DevToolsDomainEnt /// deferring to the default behavior of the net stack, which will likely either the Cancel /// authentication or display a popup dialog box. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonPropertyName("response")] public CefSharp.DevTools.Fetch.AuthChallengeResponseResponse Response { get; @@ -24394,7 +24299,7 @@ public CefSharp.DevTools.Fetch.AuthChallengeResponseResponse Response /// The username to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("username")] + [JsonPropertyName("username")] public string Username { get; @@ -24405,7 +24310,7 @@ public string Username /// The password to provide, possibly empty. Should only be set if response is /// ProvideCredentials. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("password")] + [JsonPropertyName("password")] public string Password { get; @@ -24426,8 +24331,8 @@ public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Each request the page makes will have a unique id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -24438,8 +24343,8 @@ public string RequestId /// /// The details of the request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonInclude] + [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { @@ -24450,8 +24355,8 @@ public CefSharp.DevTools.Network.Request Request /// /// The id of the frame that initiated the request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -24462,8 +24367,8 @@ public string FrameId /// /// How the requested resource will be used. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + [JsonInclude] + [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType ResourceType { get; @@ -24473,8 +24378,8 @@ public CefSharp.DevTools.Network.ResourceType ResourceType /// /// Response error if intercepted at response stage. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseErrorReason")] + [JsonInclude] + [JsonPropertyName("responseErrorReason")] public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason { get; @@ -24484,8 +24389,8 @@ public CefSharp.DevTools.Network.ErrorReason? ResponseErrorReason /// /// Response code if intercepted at response stage. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatusCode")] + [JsonInclude] + [JsonPropertyName("responseStatusCode")] public int? ResponseStatusCode { get; @@ -24495,8 +24400,8 @@ public int? ResponseStatusCode /// /// Response status text if intercepted at response stage. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseStatusText")] + [JsonInclude] + [JsonPropertyName("responseStatusText")] public string ResponseStatusText { get; @@ -24506,8 +24411,8 @@ public string ResponseStatusText /// /// Response headers if intercepted at the response stage. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("responseHeaders")] + [JsonInclude] + [JsonPropertyName("responseHeaders")] public System.Collections.Generic.IList ResponseHeaders { get; @@ -24518,8 +24423,8 @@ public System.Collections.Generic.IList Res /// If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, /// then this networkId will be the same as the requestId present in the requestWillBeSent event. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("networkId")] + [JsonInclude] + [JsonPropertyName("networkId")] public string NetworkId { get; @@ -24530,8 +24435,8 @@ public string NetworkId /// If the request is due to a redirect response from the server, the id of the request that /// has caused the redirect. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("redirectedRequestId")] + [JsonInclude] + [JsonPropertyName("redirectedRequestId")] public string RedirectedRequestId { get; @@ -24548,8 +24453,8 @@ public class AuthRequiredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Each request the page makes will have a unique id. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("requestId")] + [JsonInclude] + [JsonPropertyName("requestId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string RequestId { @@ -24560,8 +24465,8 @@ public string RequestId /// /// The details of the request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("request")] + [JsonInclude] + [JsonPropertyName("request")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Network.Request Request { @@ -24572,8 +24477,8 @@ public CefSharp.DevTools.Network.Request Request /// /// The id of the frame that initiated the request. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FrameId { @@ -24584,8 +24489,8 @@ public string FrameId /// /// How the requested resource will be used. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resourceType")] + [JsonInclude] + [JsonPropertyName("resourceType")] public CefSharp.DevTools.Network.ResourceType ResourceType { get; @@ -24597,8 +24502,8 @@ public CefSharp.DevTools.Network.ResourceType ResourceType /// If this is set, client should respond with continueRequest that /// contains AuthChallengeResponse. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("authChallenge")] + [JsonInclude] + [JsonPropertyName("authChallenge")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Fetch.AuthChallenge AuthChallenge { @@ -24618,12 +24523,12 @@ public enum ContextType /// /// realtime /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("realtime")] + [JsonPropertyName("realtime")] Realtime, /// /// offline /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("offline")] + [JsonPropertyName("offline")] Offline } @@ -24635,17 +24540,17 @@ public enum ContextState /// /// suspended /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("suspended")] + [JsonPropertyName("suspended")] Suspended, /// /// running /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("running")] + [JsonPropertyName("running")] Running, /// /// closed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("closed")] + [JsonPropertyName("closed")] Closed } @@ -24657,17 +24562,17 @@ public enum ChannelCountMode /// /// clamped-max /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clamped-max")] + [JsonPropertyName("clamped-max")] ClampedMax, /// /// explicit /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("explicit")] + [JsonPropertyName("explicit")] Explicit, /// /// max /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("max")] + [JsonPropertyName("max")] Max } @@ -24679,12 +24584,12 @@ public enum ChannelInterpretation /// /// discrete /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("discrete")] + [JsonPropertyName("discrete")] Discrete, /// /// speakers /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("speakers")] + [JsonPropertyName("speakers")] Speakers } @@ -24696,12 +24601,12 @@ public enum AutomationRate /// /// a-rate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("a-rate")] + [JsonPropertyName("a-rate")] ARate, /// /// k-rate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("k-rate")] + [JsonPropertyName("k-rate")] KRate } @@ -24713,7 +24618,7 @@ public partial class ContextRealtimeData : CefSharp.DevTools.DevToolsDomainEntit /// /// The current context time in second in BaseAudioContext. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] + [JsonPropertyName("currentTime")] public double CurrentTime { get; @@ -24725,7 +24630,7 @@ public double CurrentTime /// and multiplied by 100. 100 means the audio renderer reached the full /// capacity and glitch may occur. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("renderCapacity")] + [JsonPropertyName("renderCapacity")] public double RenderCapacity { get; @@ -24735,7 +24640,7 @@ public double RenderCapacity /// /// A running mean of callback interval. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackIntervalMean")] + [JsonPropertyName("callbackIntervalMean")] public double CallbackIntervalMean { get; @@ -24745,7 +24650,7 @@ public double CallbackIntervalMean /// /// A running variance of callback interval. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackIntervalVariance")] + [JsonPropertyName("callbackIntervalVariance")] public double CallbackIntervalVariance { get; @@ -24761,7 +24666,7 @@ public partial class BaseAudioContext : CefSharp.DevTools.DevToolsDomainEntityBa /// /// ContextId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -24772,7 +24677,7 @@ public string ContextId /// /// ContextType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextType")] + [JsonPropertyName("contextType")] public CefSharp.DevTools.WebAudio.ContextType ContextType { get; @@ -24782,7 +24687,7 @@ public CefSharp.DevTools.WebAudio.ContextType ContextType /// /// ContextState /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextState")] + [JsonPropertyName("contextState")] public CefSharp.DevTools.WebAudio.ContextState ContextState { get; @@ -24792,7 +24697,7 @@ public CefSharp.DevTools.WebAudio.ContextState ContextState /// /// RealtimeData /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("realtimeData")] + [JsonPropertyName("realtimeData")] public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData { get; @@ -24802,7 +24707,7 @@ public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData /// /// Platform-dependent callback buffer size. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callbackBufferSize")] + [JsonPropertyName("callbackBufferSize")] public double CallbackBufferSize { get; @@ -24812,7 +24717,7 @@ public double CallbackBufferSize /// /// Number of output channels supported by audio hardware in use. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxOutputChannelCount")] + [JsonPropertyName("maxOutputChannelCount")] public double MaxOutputChannelCount { get; @@ -24822,7 +24727,7 @@ public double MaxOutputChannelCount /// /// Context sample rate. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sampleRate")] + [JsonPropertyName("sampleRate")] public double SampleRate { get; @@ -24838,7 +24743,7 @@ public partial class AudioListener : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ListenerId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("listenerId")] + [JsonPropertyName("listenerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ListenerId { @@ -24849,7 +24754,7 @@ public string ListenerId /// /// ContextId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -24866,7 +24771,7 @@ public partial class AudioNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// NodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { @@ -24877,7 +24782,7 @@ public string NodeId /// /// ContextId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -24888,7 +24793,7 @@ public string ContextId /// /// NodeType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeType")] + [JsonPropertyName("nodeType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeType { @@ -24899,7 +24804,7 @@ public string NodeType /// /// NumberOfInputs /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("numberOfInputs")] + [JsonPropertyName("numberOfInputs")] public double NumberOfInputs { get; @@ -24909,7 +24814,7 @@ public double NumberOfInputs /// /// NumberOfOutputs /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("numberOfOutputs")] + [JsonPropertyName("numberOfOutputs")] public double NumberOfOutputs { get; @@ -24919,7 +24824,7 @@ public double NumberOfOutputs /// /// ChannelCount /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("channelCount")] + [JsonPropertyName("channelCount")] public double ChannelCount { get; @@ -24929,7 +24834,7 @@ public double ChannelCount /// /// ChannelCountMode /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("channelCountMode")] + [JsonPropertyName("channelCountMode")] public CefSharp.DevTools.WebAudio.ChannelCountMode ChannelCountMode { get; @@ -24939,7 +24844,7 @@ public CefSharp.DevTools.WebAudio.ChannelCountMode ChannelCountMode /// /// ChannelInterpretation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("channelInterpretation")] + [JsonPropertyName("channelInterpretation")] public CefSharp.DevTools.WebAudio.ChannelInterpretation ChannelInterpretation { get; @@ -24955,7 +24860,7 @@ public partial class AudioParam : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ParamId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paramId")] + [JsonPropertyName("paramId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParamId { @@ -24966,7 +24871,7 @@ public string ParamId /// /// NodeId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { @@ -24977,7 +24882,7 @@ public string NodeId /// /// ContextId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -24988,7 +24893,7 @@ public string ContextId /// /// ParamType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paramType")] + [JsonPropertyName("paramType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParamType { @@ -24999,7 +24904,7 @@ public string ParamType /// /// Rate /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rate")] + [JsonPropertyName("rate")] public CefSharp.DevTools.WebAudio.AutomationRate Rate { get; @@ -25009,7 +24914,7 @@ public CefSharp.DevTools.WebAudio.AutomationRate Rate /// /// DefaultValue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("defaultValue")] + [JsonPropertyName("defaultValue")] public double DefaultValue { get; @@ -25019,7 +24924,7 @@ public double DefaultValue /// /// MinValue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("minValue")] + [JsonPropertyName("minValue")] public double MinValue { get; @@ -25029,7 +24934,7 @@ public double MinValue /// /// MaxValue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("maxValue")] + [JsonPropertyName("maxValue")] public double MaxValue { get; @@ -25045,8 +24950,8 @@ public class ContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Context /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("context")] + [JsonInclude] + [JsonPropertyName("context")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.BaseAudioContext Context { @@ -25063,8 +24968,8 @@ public class ContextWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25081,8 +24986,8 @@ public class ContextChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Context /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("context")] + [JsonInclude] + [JsonPropertyName("context")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.BaseAudioContext Context { @@ -25099,8 +25004,8 @@ public class AudioListenerCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Listener /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("listener")] + [JsonInclude] + [JsonPropertyName("listener")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.AudioListener Listener { @@ -25117,8 +25022,8 @@ public class AudioListenerWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsD /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25129,8 +25034,8 @@ public string ContextId /// /// ListenerId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("listenerId")] + [JsonInclude] + [JsonPropertyName("listenerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ListenerId { @@ -25147,8 +25052,8 @@ public class AudioNodeCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Node /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonInclude] + [JsonPropertyName("node")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.AudioNode Node { @@ -25165,8 +25070,8 @@ public class AudioNodeWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDomai /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25177,8 +25082,8 @@ public string ContextId /// /// NodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { @@ -25195,8 +25100,8 @@ public class AudioParamCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// Param /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("param")] + [JsonInclude] + [JsonPropertyName("param")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAudio.AudioParam Param { @@ -25213,8 +25118,8 @@ public class AudioParamWillBeDestroyedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25225,8 +25130,8 @@ public string ContextId /// /// NodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string NodeId { @@ -25237,8 +25142,8 @@ public string NodeId /// /// ParamId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("paramId")] + [JsonInclude] + [JsonPropertyName("paramId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ParamId { @@ -25255,8 +25160,8 @@ public class NodesConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25267,8 +25172,8 @@ public string ContextId /// /// SourceId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [JsonInclude] + [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { @@ -25279,8 +25184,8 @@ public string SourceId /// /// DestinationId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [JsonInclude] + [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { @@ -25291,8 +25196,8 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + [JsonInclude] + [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; @@ -25302,8 +25207,8 @@ public double? SourceOutputIndex /// /// DestinationInputIndex /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationInputIndex")] + [JsonInclude] + [JsonPropertyName("destinationInputIndex")] public double? DestinationInputIndex { get; @@ -25319,8 +25224,8 @@ public class NodesDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25331,8 +25236,8 @@ public string ContextId /// /// SourceId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [JsonInclude] + [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { @@ -25343,8 +25248,8 @@ public string SourceId /// /// DestinationId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [JsonInclude] + [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { @@ -25355,8 +25260,8 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + [JsonInclude] + [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; @@ -25366,8 +25271,8 @@ public double? SourceOutputIndex /// /// DestinationInputIndex /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationInputIndex")] + [JsonInclude] + [JsonPropertyName("destinationInputIndex")] public double? DestinationInputIndex { get; @@ -25383,8 +25288,8 @@ public class NodeParamConnectedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25395,8 +25300,8 @@ public string ContextId /// /// SourceId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [JsonInclude] + [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { @@ -25407,8 +25312,8 @@ public string SourceId /// /// DestinationId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [JsonInclude] + [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { @@ -25419,8 +25324,8 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + [JsonInclude] + [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; @@ -25436,8 +25341,8 @@ public class NodeParamDisconnectedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// ContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contextId")] + [JsonInclude] + [JsonPropertyName("contextId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ContextId { @@ -25448,8 +25353,8 @@ public string ContextId /// /// SourceId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceId")] + [JsonInclude] + [JsonPropertyName("sourceId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string SourceId { @@ -25460,8 +25365,8 @@ public string SourceId /// /// DestinationId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("destinationId")] + [JsonInclude] + [JsonPropertyName("destinationId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string DestinationId { @@ -25472,8 +25377,8 @@ public string DestinationId /// /// SourceOutputIndex /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceOutputIndex")] + [JsonInclude] + [JsonPropertyName("sourceOutputIndex")] public double? SourceOutputIndex { get; @@ -25492,12 +25397,12 @@ public enum AuthenticatorProtocol /// /// u2f /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("u2f")] + [JsonPropertyName("u2f")] U2f, /// /// ctap2 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ctap2")] + [JsonPropertyName("ctap2")] Ctap2 } @@ -25509,12 +25414,12 @@ public enum Ctap2Version /// /// ctap2_0 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ctap2_0")] + [JsonPropertyName("ctap2_0")] Ctap20, /// /// ctap2_1 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ctap2_1")] + [JsonPropertyName("ctap2_1")] Ctap21 } @@ -25526,27 +25431,27 @@ public enum AuthenticatorTransport /// /// usb /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("usb")] + [JsonPropertyName("usb")] Usb, /// /// nfc /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nfc")] + [JsonPropertyName("nfc")] Nfc, /// /// ble /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ble")] + [JsonPropertyName("ble")] Ble, /// /// cable /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cable")] + [JsonPropertyName("cable")] Cable, /// /// internal /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("internal")] + [JsonPropertyName("internal")] Internal } @@ -25558,7 +25463,7 @@ public partial class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDom /// /// Protocol /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocol")] + [JsonPropertyName("protocol")] public CefSharp.DevTools.WebAuthn.AuthenticatorProtocol Protocol { get; @@ -25568,7 +25473,7 @@ public CefSharp.DevTools.WebAuthn.AuthenticatorProtocol Protocol /// /// Defaults to ctap2_0. Ignored if |protocol| == u2f. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ctap2Version")] + [JsonPropertyName("ctap2Version")] public CefSharp.DevTools.WebAuthn.Ctap2Version? Ctap2Version { get; @@ -25578,7 +25483,7 @@ public CefSharp.DevTools.WebAuthn.Ctap2Version? Ctap2Version /// /// Transport /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("transport")] + [JsonPropertyName("transport")] public CefSharp.DevTools.WebAuthn.AuthenticatorTransport Transport { get; @@ -25588,7 +25493,7 @@ public CefSharp.DevTools.WebAuthn.AuthenticatorTransport Transport /// /// Defaults to false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasResidentKey")] + [JsonPropertyName("hasResidentKey")] public bool? HasResidentKey { get; @@ -25598,7 +25503,7 @@ public bool? HasResidentKey /// /// Defaults to false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasUserVerification")] + [JsonPropertyName("hasUserVerification")] public bool? HasUserVerification { get; @@ -25610,7 +25515,7 @@ public bool? HasUserVerification /// https://w3c.github.io/webauthn#largeBlob /// Defaults to false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasLargeBlob")] + [JsonPropertyName("hasLargeBlob")] public bool? HasLargeBlob { get; @@ -25622,7 +25527,7 @@ public bool? HasLargeBlob /// https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension /// Defaults to false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasCredBlob")] + [JsonPropertyName("hasCredBlob")] public bool? HasCredBlob { get; @@ -25634,7 +25539,7 @@ public bool? HasCredBlob /// https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension /// Defaults to false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasMinPinLength")] + [JsonPropertyName("hasMinPinLength")] public bool? HasMinPinLength { get; @@ -25646,7 +25551,7 @@ public bool? HasMinPinLength /// https://w3c.github.io/webauthn/#prf-extension /// Defaults to false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasPrf")] + [JsonPropertyName("hasPrf")] public bool? HasPrf { get; @@ -25657,7 +25562,7 @@ public bool? HasPrf /// If set to true, tests of user presence will succeed immediately. /// Otherwise, they will not be resolved. Defaults to true. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("automaticPresenceSimulation")] + [JsonPropertyName("automaticPresenceSimulation")] public bool? AutomaticPresenceSimulation { get; @@ -25668,7 +25573,7 @@ public bool? AutomaticPresenceSimulation /// Sets whether User Verification succeeds or fails for an authenticator. /// Defaults to false. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isUserVerified")] + [JsonPropertyName("isUserVerified")] public bool? IsUserVerified { get; @@ -25684,7 +25589,7 @@ public partial class Credential : CefSharp.DevTools.DevToolsDomainEntityBase /// /// CredentialId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("credentialId")] + [JsonPropertyName("credentialId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] CredentialId { @@ -25695,7 +25600,7 @@ public byte[] CredentialId /// /// IsResidentCredential /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isResidentCredential")] + [JsonPropertyName("isResidentCredential")] public bool IsResidentCredential { get; @@ -25706,7 +25611,7 @@ public bool IsResidentCredential /// Relying Party ID the credential is scoped to. Must be set when adding a /// credential. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rpId")] + [JsonPropertyName("rpId")] public string RpId { get; @@ -25716,7 +25621,7 @@ public string RpId /// /// The ECDSA P-256 private key in PKCS#8 format. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("privateKey")] + [JsonPropertyName("privateKey")] [System.Diagnostics.CodeAnalysis.DisallowNull] public byte[] PrivateKey { @@ -25728,7 +25633,7 @@ public byte[] PrivateKey /// An opaque byte sequence with a maximum size of 64 bytes mapping the /// credential to a specific user. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("userHandle")] + [JsonPropertyName("userHandle")] public byte[] UserHandle { get; @@ -25740,7 +25645,7 @@ public byte[] UserHandle /// assertion. /// See https://w3c.github.io/webauthn/#signature-counter /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("signCount")] + [JsonPropertyName("signCount")] public int SignCount { get; @@ -25751,7 +25656,7 @@ public int SignCount /// The large blob associated with the credential. /// See https://w3c.github.io/webauthn/#sctn-large-blob-extension /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("largeBlob")] + [JsonPropertyName("largeBlob")] public byte[] LargeBlob { get; @@ -25767,8 +25672,8 @@ public class CredentialAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// AuthenticatorId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("authenticatorId")] + [JsonInclude] + [JsonPropertyName("authenticatorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AuthenticatorId { @@ -25779,8 +25684,8 @@ public string AuthenticatorId /// /// Credential /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("credential")] + [JsonInclude] + [JsonPropertyName("credential")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAuthn.Credential Credential { @@ -25797,8 +25702,8 @@ public class CredentialAssertedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// AuthenticatorId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("authenticatorId")] + [JsonInclude] + [JsonPropertyName("authenticatorId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string AuthenticatorId { @@ -25809,8 +25714,8 @@ public string AuthenticatorId /// /// Credential /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("credential")] + [JsonInclude] + [JsonPropertyName("credential")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.WebAuthn.Credential Credential { @@ -25838,22 +25743,22 @@ public enum PlayerMessageLevel /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error, /// /// warning /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("warning")] + [JsonPropertyName("warning")] Warning, /// /// info /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("info")] + [JsonPropertyName("info")] Info, /// /// debug /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debug")] + [JsonPropertyName("debug")] Debug } @@ -25874,7 +25779,7 @@ public partial class PlayerMessage : CefSharp.DevTools.DevToolsDomainEntityBase /// introducing a new error type which should hopefully let us integrate /// the error log level into the PlayerError type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("level")] + [JsonPropertyName("level")] public CefSharp.DevTools.Media.PlayerMessageLevel Level { get; @@ -25884,7 +25789,7 @@ public CefSharp.DevTools.Media.PlayerMessageLevel Level /// /// Message /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("message")] + [JsonPropertyName("message")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Message { @@ -25901,7 +25806,7 @@ public partial class PlayerProperty : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Name /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -25912,7 +25817,7 @@ public string Name /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -25929,7 +25834,7 @@ public partial class PlayerEvent : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Timestamp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -25939,7 +25844,7 @@ public double Timestamp /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Value { @@ -25957,7 +25862,7 @@ public partial class PlayerErrorSourceLocation : CefSharp.DevTools.DevToolsDomai /// /// File /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("file")] + [JsonPropertyName("file")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string File { @@ -25968,7 +25873,7 @@ public string File /// /// Line /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("line")] + [JsonPropertyName("line")] public int Line { get; @@ -25984,7 +25889,7 @@ public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ErrorType /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorType")] + [JsonPropertyName("errorType")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ErrorType { @@ -25996,7 +25901,7 @@ public string ErrorType /// Code is the numeric enum entry for a specific set of error codes, such /// as PipelineStatusCodes in media/base/pipeline_status.h /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("code")] + [JsonPropertyName("code")] public int Code { get; @@ -26006,7 +25911,7 @@ public int Code /// /// A trace of where this error was caused / where it passed through. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stack")] + [JsonPropertyName("stack")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Stack { @@ -26018,7 +25923,7 @@ public System.Collections.Generic.IList - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cause")] + [JsonPropertyName("cause")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Cause { @@ -26029,7 +25934,7 @@ public System.Collections.Generic.IList Cau /// /// Extra data attached to an error, such as an HRESULT, Video Codec, etc. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonPropertyName("data")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object Data { @@ -26047,8 +25952,8 @@ public class PlayerPropertiesChangedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// PlayerId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [JsonInclude] + [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { @@ -26059,8 +25964,8 @@ public string PlayerId /// /// Properties /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("properties")] + [JsonInclude] + [JsonPropertyName("properties")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Properties { @@ -26078,8 +25983,8 @@ public class PlayerEventsAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventA /// /// PlayerId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [JsonInclude] + [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { @@ -26090,8 +25995,8 @@ public string PlayerId /// /// Events /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("events")] + [JsonInclude] + [JsonPropertyName("events")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Events { @@ -26108,8 +26013,8 @@ public class PlayerMessagesLoggedEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// PlayerId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [JsonInclude] + [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { @@ -26120,8 +26025,8 @@ public string PlayerId /// /// Messages /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("messages")] + [JsonInclude] + [JsonPropertyName("messages")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Messages { @@ -26138,8 +26043,8 @@ public class PlayerErrorsRaisedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// PlayerId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("playerId")] + [JsonInclude] + [JsonPropertyName("playerId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string PlayerId { @@ -26150,8 +26055,8 @@ public string PlayerId /// /// Errors /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errors")] + [JsonInclude] + [JsonPropertyName("errors")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Errors { @@ -26170,8 +26075,8 @@ public class PlayersCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgs /// /// Players /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("players")] + [JsonInclude] + [JsonPropertyName("players")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Players { @@ -26181,6 +26086,152 @@ public string[] Players } } +namespace CefSharp.DevTools.DeviceAccess +{ + /// + /// Device information displayed in a user prompt to select a device. + /// + public partial class PromptDevice : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Id + /// + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Display name as it appears in a device request user prompt. + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + } + + /// + /// A device request opened a user prompt to select a device. Respond with the + /// selectPrompt or cancelPrompt command. + /// + public class DeviceRequestPromptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [JsonInclude] + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + private set; + } + + /// + /// Devices + /// + [JsonInclude] + [JsonPropertyName("devices")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Devices + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Preload +{ + /// + /// Corresponds to SpeculationRuleSet + /// + public partial class RuleSet : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Id + /// + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Identifies a document which the rule set is associated with. + /// + [JsonPropertyName("loaderId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LoaderId + { + get; + set; + } + + /// + /// Source text of JSON representing the rule set. If it comes from + /// <script> tag, it is the textContent of the node. Note that it is + /// a JSON for valid case. + /// + /// See also: + /// - https://wicg.github.io/nav-speculation/speculation-rules.html + /// - https://github.com/WICG/nav-speculation/blob/main/triggers.md + /// + [JsonPropertyName("sourceText")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceText + { + get; + set; + } + } + + /// + /// Upsert. Currently, it is only emitted when a rule set added. + /// + public class RuleSetUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// RuleSet + /// + [JsonInclude] + [JsonPropertyName("ruleSet")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Preload.RuleSet RuleSet + { + get; + private set; + } + } + + /// + /// ruleSetRemoved + /// + public class RuleSetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [JsonInclude] + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -26191,7 +26242,7 @@ public partial class Location : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Script identifier as reported in the `Debugger.scriptParsed`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -26202,7 +26253,7 @@ public string ScriptId /// /// Line number in the script (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -26212,7 +26263,7 @@ public int LineNumber /// /// Column number in the script (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int? ColumnNumber { get; @@ -26228,7 +26279,7 @@ public partial class ScriptPosition : CefSharp.DevTools.DevToolsDomainEntityBase /// /// LineNumber /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -26238,7 +26289,7 @@ public int LineNumber /// /// ColumnNumber /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int ColumnNumber { get; @@ -26254,7 +26305,7 @@ public partial class LocationRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// ScriptId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -26265,7 +26316,7 @@ public string ScriptId /// /// Start /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("start")] + [JsonPropertyName("start")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.ScriptPosition Start { @@ -26276,7 +26327,7 @@ public CefSharp.DevTools.Debugger.ScriptPosition Start /// /// End /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("end")] + [JsonPropertyName("end")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.ScriptPosition End { @@ -26293,7 +26344,7 @@ public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Call frame identifier. This identifier is only valid while the virtual machine is paused. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrameId")] + [JsonPropertyName("callFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string CallFrameId { @@ -26304,7 +26355,7 @@ public string CallFrameId /// /// Name of the JavaScript function called on this call frame. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionName")] + [JsonPropertyName("functionName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FunctionName { @@ -26315,7 +26366,7 @@ public string FunctionName /// /// Location in the source code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionLocation")] + [JsonPropertyName("functionLocation")] public CefSharp.DevTools.Debugger.Location FunctionLocation { get; @@ -26325,7 +26376,7 @@ public CefSharp.DevTools.Debugger.Location FunctionLocation /// /// Location in the source code. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { @@ -26338,7 +26389,7 @@ public CefSharp.DevTools.Debugger.Location Location /// Deprecated in favor of using the `location.scriptId` to resolve the URL via a previously /// sent `Debugger.scriptParsed` event. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -26349,7 +26400,7 @@ public string Url /// /// Scope chain for this call frame. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scopeChain")] + [JsonPropertyName("scopeChain")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList ScopeChain { @@ -26360,7 +26411,7 @@ public System.Collections.Generic.IList ScopeC /// /// `this` object for this call frame. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("this")] + [JsonPropertyName("this")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject This { @@ -26371,7 +26422,7 @@ public CefSharp.DevTools.Runtime.RemoteObject This /// /// The value being returned, if the function is at return point. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("returnValue")] + [JsonPropertyName("returnValue")] public CefSharp.DevTools.Runtime.RemoteObject ReturnValue { get; @@ -26384,7 +26435,7 @@ public CefSharp.DevTools.Runtime.RemoteObject ReturnValue /// guarantee that Debugger#restartFrame with this CallFrameId will be /// successful, but it is very likely. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("canBeRestarted")] + [JsonPropertyName("canBeRestarted")] public bool? CanBeRestarted { get; @@ -26400,52 +26451,52 @@ public enum ScopeType /// /// global /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("global")] + [JsonPropertyName("global")] Global, /// /// local /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("local")] + [JsonPropertyName("local")] Local, /// /// with /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("with")] + [JsonPropertyName("with")] With, /// /// closure /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("closure")] + [JsonPropertyName("closure")] Closure, /// /// catch /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("catch")] + [JsonPropertyName("catch")] Catch, /// /// block /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("block")] + [JsonPropertyName("block")] Block, /// /// script /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("script")] + [JsonPropertyName("script")] Script, /// /// eval /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eval")] + [JsonPropertyName("eval")] Eval, /// /// module /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("module")] + [JsonPropertyName("module")] Module, /// /// wasm-expression-stack /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasm-expression-stack")] + [JsonPropertyName("wasm-expression-stack")] WasmExpressionStack } @@ -26457,7 +26508,7 @@ public partial class Scope : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Scope type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Debugger.ScopeType Type { get; @@ -26469,7 +26520,7 @@ public CefSharp.DevTools.Debugger.ScopeType Type /// object; for the rest of the scopes, it is artificial transient object enumerating scope /// variables as its properties. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [JsonPropertyName("object")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Object { @@ -26480,7 +26531,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Object /// /// Name /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] public string Name { get; @@ -26490,7 +26541,7 @@ public string Name /// /// Location in the source code where scope starts /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLocation")] + [JsonPropertyName("startLocation")] public CefSharp.DevTools.Debugger.Location StartLocation { get; @@ -26500,7 +26551,7 @@ public CefSharp.DevTools.Debugger.Location StartLocation /// /// Location in the source code where scope ends /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLocation")] + [JsonPropertyName("endLocation")] public CefSharp.DevTools.Debugger.Location EndLocation { get; @@ -26516,7 +26567,7 @@ public partial class SearchMatch : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Line number in resource content. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public double LineNumber { get; @@ -26526,7 +26577,7 @@ public double LineNumber /// /// Line with match content. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineContent")] + [JsonPropertyName("lineContent")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string LineContent { @@ -26543,17 +26594,17 @@ public enum BreakLocationType /// /// debuggerStatement /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debuggerStatement")] + [JsonPropertyName("debuggerStatement")] DebuggerStatement, /// /// call /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("call")] + [JsonPropertyName("call")] Call, /// /// return /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("return")] + [JsonPropertyName("return")] Return } @@ -26565,7 +26616,7 @@ public partial class BreakLocation : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Script identifier as reported in the `Debugger.scriptParsed`. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -26576,7 +26627,7 @@ public string ScriptId /// /// Line number in the script (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -26586,7 +26637,7 @@ public int LineNumber /// /// Column number in the script (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int? ColumnNumber { get; @@ -26596,7 +26647,7 @@ public int? ColumnNumber /// /// Type /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Debugger.BreakLocationType? Type { get; @@ -26612,7 +26663,7 @@ public partial class WasmDisassemblyChunk : CefSharp.DevTools.DevToolsDomainEnti /// /// The next chunk of disassembled lines. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lines")] + [JsonPropertyName("lines")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string[] Lines { @@ -26623,7 +26674,7 @@ public string[] Lines /// /// The bytecode offsets describing the start of each line. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bytecodeOffsets")] + [JsonPropertyName("bytecodeOffsets")] public int[] BytecodeOffsets { get; @@ -26639,12 +26690,12 @@ public enum ScriptLanguage /// /// JavaScript /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("JavaScript")] + [JsonPropertyName("JavaScript")] JavaScript, /// /// WebAssembly /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("WebAssembly")] + [JsonPropertyName("WebAssembly")] WebAssembly } @@ -26656,22 +26707,22 @@ public enum DebugSymbolsType /// /// None /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("None")] + [JsonPropertyName("None")] None, /// /// SourceMap /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("SourceMap")] + [JsonPropertyName("SourceMap")] SourceMap, /// /// EmbeddedDWARF /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EmbeddedDWARF")] + [JsonPropertyName("EmbeddedDWARF")] EmbeddedDWARF, /// /// ExternalDWARF /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ExternalDWARF")] + [JsonPropertyName("ExternalDWARF")] ExternalDWARF } @@ -26683,7 +26734,7 @@ public partial class DebugSymbols : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Type of the debug symbols. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Debugger.DebugSymbolsType Type { get; @@ -26693,7 +26744,7 @@ public CefSharp.DevTools.Debugger.DebugSymbolsType Type /// /// URL of the external symbol source. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("externalURL")] + [JsonPropertyName("externalURL")] public string ExternalURL { get; @@ -26709,8 +26760,8 @@ public class BreakpointResolvedEventArgs : CefSharp.DevTools.DevToolsDomainEvent /// /// Breakpoint unique identifier. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + [JsonInclude] + [JsonPropertyName("breakpointId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string BreakpointId { @@ -26721,8 +26772,8 @@ public string BreakpointId /// /// Actual breakpoint location. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [JsonInclude] + [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { @@ -26739,62 +26790,62 @@ public enum PausedReason /// /// ambiguous /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ambiguous")] + [JsonPropertyName("ambiguous")] Ambiguous, /// /// assert /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("assert")] + [JsonPropertyName("assert")] Assert, /// /// CSPViolation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("CSPViolation")] + [JsonPropertyName("CSPViolation")] CSPViolation, /// /// debugCommand /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debugCommand")] + [JsonPropertyName("debugCommand")] DebugCommand, /// /// DOM /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("DOM")] + [JsonPropertyName("DOM")] DOM, /// /// EventListener /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("EventListener")] + [JsonPropertyName("EventListener")] EventListener, /// /// exception /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exception")] + [JsonPropertyName("exception")] Exception, /// /// instrumentation /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("instrumentation")] + [JsonPropertyName("instrumentation")] Instrumentation, /// /// OOM /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("OOM")] + [JsonPropertyName("OOM")] OOM, /// /// other /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("other")] + [JsonPropertyName("other")] Other, /// /// promiseRejection /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("promiseRejection")] + [JsonPropertyName("promiseRejection")] PromiseRejection, /// /// XHR /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("XHR")] + [JsonPropertyName("XHR")] XHR } @@ -26806,8 +26857,8 @@ public class PausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase /// /// Call stack the virtual machine stopped on. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + [JsonInclude] + [JsonPropertyName("callFrames")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList CallFrames { @@ -26818,8 +26869,8 @@ public System.Collections.Generic.IList Ca /// /// Pause reason. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonInclude] + [JsonPropertyName("reason")] public CefSharp.DevTools.Debugger.PausedReason Reason { get; @@ -26829,8 +26880,8 @@ public CefSharp.DevTools.Debugger.PausedReason Reason /// /// Object containing break-specific auxiliary properties. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] public object Data { get; @@ -26840,8 +26891,8 @@ public object Data /// /// Hit breakpoints IDs /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hitBreakpoints")] + [JsonInclude] + [JsonPropertyName("hitBreakpoints")] public string[] HitBreakpoints { get; @@ -26851,8 +26902,8 @@ public string[] HitBreakpoints /// /// Async stack trace, if any. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTrace")] + [JsonInclude] + [JsonPropertyName("asyncStackTrace")] public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace { get; @@ -26862,8 +26913,8 @@ public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace /// /// Async stack trace, if any. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTraceId")] + [JsonInclude] + [JsonPropertyName("asyncStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId { get; @@ -26873,8 +26924,8 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId /// /// Never present, will be removed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncCallStackTraceId")] + [JsonInclude] + [JsonPropertyName("asyncCallStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncCallStackTraceId { get; @@ -26890,8 +26941,8 @@ public class ScriptFailedToParseEventArgs : CefSharp.DevTools.DevToolsDomainEven /// /// Identifier of the script parsed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonInclude] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -26902,8 +26953,8 @@ public string ScriptId /// /// URL or name of the script parsed (if any). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -26914,8 +26965,8 @@ public string Url /// /// Line offset of the script within the resource with given URL (for script tags). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + [JsonInclude] + [JsonPropertyName("startLine")] public int StartLine { get; @@ -26925,8 +26976,8 @@ public int StartLine /// /// Column offset of the script within the resource with given URL. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + [JsonInclude] + [JsonPropertyName("startColumn")] public int StartColumn { get; @@ -26936,8 +26987,8 @@ public int StartColumn /// /// Last line of the script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + [JsonInclude] + [JsonPropertyName("endLine")] public int EndLine { get; @@ -26947,8 +26998,8 @@ public int EndLine /// /// Length of the last line of the script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + [JsonInclude] + [JsonPropertyName("endColumn")] public int EndColumn { get; @@ -26958,8 +27009,8 @@ public int EndColumn /// /// Specifies script creation context. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonInclude] + [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; @@ -26969,8 +27020,8 @@ public int ExecutionContextId /// /// Content hash of the script, SHA-256. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hash")] + [JsonInclude] + [JsonPropertyName("hash")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Hash { @@ -26981,8 +27032,8 @@ public string Hash /// /// Embedder-specific auxiliary data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextAuxData")] + [JsonInclude] + [JsonPropertyName("executionContextAuxData")] public object ExecutionContextAuxData { get; @@ -26992,8 +27043,8 @@ public object ExecutionContextAuxData /// /// URL of source map associated with script (if any). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + [JsonInclude] + [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; @@ -27003,8 +27054,8 @@ public string SourceMapURL /// /// True, if this script has sourceURL. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasSourceURL")] + [JsonInclude] + [JsonPropertyName("hasSourceURL")] public bool? HasSourceURL { get; @@ -27014,8 +27065,8 @@ public bool? HasSourceURL /// /// True, if this script is ES6 module. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isModule")] + [JsonInclude] + [JsonPropertyName("isModule")] public bool? IsModule { get; @@ -27025,8 +27076,8 @@ public bool? IsModule /// /// This script length. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + [JsonInclude] + [JsonPropertyName("length")] public int? Length { get; @@ -27036,8 +27087,8 @@ public int? Length /// /// JavaScript top stack frame of where the script parsed event was triggered if available. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + [JsonInclude] + [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -27047,8 +27098,8 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// If the scriptLanguage is WebAssembly, the code section offset in the module. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("codeOffset")] + [JsonInclude] + [JsonPropertyName("codeOffset")] public int? CodeOffset { get; @@ -27058,8 +27109,8 @@ public int? CodeOffset /// /// The language of the script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptLanguage")] + [JsonInclude] + [JsonPropertyName("scriptLanguage")] public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage { get; @@ -27069,8 +27120,8 @@ public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage /// /// The name the embedder supplied for this script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("embedderName")] + [JsonInclude] + [JsonPropertyName("embedderName")] public string EmbedderName { get; @@ -27087,8 +27138,8 @@ public class ScriptParsedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBa /// /// Identifier of the script parsed. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonInclude] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -27099,8 +27150,8 @@ public string ScriptId /// /// URL or name of the script parsed (if any). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -27111,8 +27162,8 @@ public string Url /// /// Line offset of the script within the resource with given URL (for script tags). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startLine")] + [JsonInclude] + [JsonPropertyName("startLine")] public int StartLine { get; @@ -27122,8 +27173,8 @@ public int StartLine /// /// Column offset of the script within the resource with given URL. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startColumn")] + [JsonInclude] + [JsonPropertyName("startColumn")] public int StartColumn { get; @@ -27133,8 +27184,8 @@ public int StartColumn /// /// Last line of the script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endLine")] + [JsonInclude] + [JsonPropertyName("endLine")] public int EndLine { get; @@ -27144,8 +27195,8 @@ public int EndLine /// /// Length of the last line of the script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endColumn")] + [JsonInclude] + [JsonPropertyName("endColumn")] public int EndColumn { get; @@ -27155,8 +27206,8 @@ public int EndColumn /// /// Specifies script creation context. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonInclude] + [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; @@ -27166,8 +27217,8 @@ public int ExecutionContextId /// /// Content hash of the script, SHA-256. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hash")] + [JsonInclude] + [JsonPropertyName("hash")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Hash { @@ -27178,8 +27229,8 @@ public string Hash /// /// Embedder-specific auxiliary data. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextAuxData")] + [JsonInclude] + [JsonPropertyName("executionContextAuxData")] public object ExecutionContextAuxData { get; @@ -27189,8 +27240,8 @@ public object ExecutionContextAuxData /// /// True, if this script is generated as a result of the live edit operation. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isLiveEdit")] + [JsonInclude] + [JsonPropertyName("isLiveEdit")] public bool? IsLiveEdit { get; @@ -27200,8 +27251,8 @@ public bool? IsLiveEdit /// /// URL of source map associated with script (if any). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + [JsonInclude] + [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; @@ -27211,8 +27262,8 @@ public string SourceMapURL /// /// True, if this script has sourceURL. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasSourceURL")] + [JsonInclude] + [JsonPropertyName("hasSourceURL")] public bool? HasSourceURL { get; @@ -27222,8 +27273,8 @@ public bool? HasSourceURL /// /// True, if this script is ES6 module. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isModule")] + [JsonInclude] + [JsonPropertyName("isModule")] public bool? IsModule { get; @@ -27233,8 +27284,8 @@ public bool? IsModule /// /// This script length. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("length")] + [JsonInclude] + [JsonPropertyName("length")] public int? Length { get; @@ -27244,8 +27295,8 @@ public int? Length /// /// JavaScript top stack frame of where the script parsed event was triggered if available. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + [JsonInclude] + [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -27255,8 +27306,8 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// If the scriptLanguage is WebAssembly, the code section offset in the module. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("codeOffset")] + [JsonInclude] + [JsonPropertyName("codeOffset")] public int? CodeOffset { get; @@ -27266,8 +27317,8 @@ public int? CodeOffset /// /// The language of the script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptLanguage")] + [JsonInclude] + [JsonPropertyName("scriptLanguage")] public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage { get; @@ -27277,8 +27328,8 @@ public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage /// /// If the scriptLanguage is WebASsembly, the source of debug symbols for the module. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debugSymbols")] + [JsonInclude] + [JsonPropertyName("debugSymbols")] public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols { get; @@ -27288,8 +27339,8 @@ public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols /// /// The name the embedder supplied for this script. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("embedderName")] + [JsonInclude] + [JsonPropertyName("embedderName")] public string EmbedderName { get; @@ -27308,7 +27359,7 @@ public partial class SamplingHeapProfileNode : CefSharp.DevTools.DevToolsDomainE /// /// Function location. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrame")] + [JsonPropertyName("callFrame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.CallFrame CallFrame { @@ -27319,7 +27370,7 @@ public CefSharp.DevTools.Runtime.CallFrame CallFrame /// /// Allocations size in bytes for the node excluding children. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selfSize")] + [JsonPropertyName("selfSize")] public double SelfSize { get; @@ -27329,7 +27380,7 @@ public double SelfSize /// /// Node id. Ids are unique across all profiles collected between startSampling and stopSampling. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] public int Id { get; @@ -27339,7 +27390,7 @@ public int Id /// /// Child nodes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("children")] + [JsonPropertyName("children")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Children { @@ -27356,7 +27407,7 @@ public partial class SamplingHeapProfileSample : CefSharp.DevTools.DevToolsDomai /// /// Allocation size in bytes attributed to the sample. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("size")] + [JsonPropertyName("size")] public double Size { get; @@ -27366,7 +27417,7 @@ public double Size /// /// Id of the corresponding profile tree node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -27377,7 +27428,7 @@ public int NodeId /// Time-ordered sample ordinal number. It is unique across all profiles retrieved /// between startSampling and stopSampling. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ordinal")] + [JsonPropertyName("ordinal")] public double Ordinal { get; @@ -27393,7 +27444,7 @@ public partial class SamplingHeapProfile : CefSharp.DevTools.DevToolsDomainEntit /// /// Head /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("head")] + [JsonPropertyName("head")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.HeapProfiler.SamplingHeapProfileNode Head { @@ -27404,7 +27455,7 @@ public CefSharp.DevTools.HeapProfiler.SamplingHeapProfileNode Head /// /// Samples /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("samples")] + [JsonPropertyName("samples")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Samples { @@ -27421,8 +27472,8 @@ public class AddHeapSnapshotChunkEventArgs : CefSharp.DevTools.DevToolsDomainEve /// /// Chunk /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("chunk")] + [JsonInclude] + [JsonPropertyName("chunk")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Chunk { @@ -27441,8 +27492,8 @@ public class HeapStatsUpdateEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// index, the second integer is a total count of objects for the fragment, the third integer is /// a total size of the objects for the fragment. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("statsUpdate")] + [JsonInclude] + [JsonPropertyName("statsUpdate")] public int[] StatsUpdate { get; @@ -27460,8 +27511,8 @@ public class LastSeenObjectIdEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// LastSeenObjectId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lastSeenObjectId")] + [JsonInclude] + [JsonPropertyName("lastSeenObjectId")] public int LastSeenObjectId { get; @@ -27471,8 +27522,8 @@ public int LastSeenObjectId /// /// Timestamp /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -27488,8 +27539,8 @@ public class ReportHeapSnapshotProgressEventArgs : CefSharp.DevTools.DevToolsDom /// /// Done /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("done")] + [JsonInclude] + [JsonPropertyName("done")] public int Done { get; @@ -27499,8 +27550,8 @@ public int Done /// /// Total /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("total")] + [JsonInclude] + [JsonPropertyName("total")] public int Total { get; @@ -27510,8 +27561,8 @@ public int Total /// /// Finished /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("finished")] + [JsonInclude] + [JsonPropertyName("finished")] public bool? Finished { get; @@ -27530,7 +27581,7 @@ public partial class ProfileNode : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Unique id of the node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] public int Id { get; @@ -27540,7 +27591,7 @@ public int Id /// /// Function location. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrame")] + [JsonPropertyName("callFrame")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.CallFrame CallFrame { @@ -27551,7 +27602,7 @@ public CefSharp.DevTools.Runtime.CallFrame CallFrame /// /// Number of samples where this node was on top of the call stack. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hitCount")] + [JsonPropertyName("hitCount")] public int? HitCount { get; @@ -27561,7 +27612,7 @@ public int? HitCount /// /// Child node ids. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("children")] + [JsonPropertyName("children")] public int[] Children { get; @@ -27572,7 +27623,7 @@ public int[] Children /// The reason of being not optimized. The function may be deoptimized or marked as don't /// optimize. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deoptReason")] + [JsonPropertyName("deoptReason")] public string DeoptReason { get; @@ -27582,7 +27633,7 @@ public string DeoptReason /// /// An array of source position ticks. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("positionTicks")] + [JsonPropertyName("positionTicks")] public System.Collections.Generic.IList PositionTicks { get; @@ -27598,7 +27649,7 @@ public partial class Profile : CefSharp.DevTools.DevToolsDomainEntityBase /// /// The list of profile nodes. First item is the root node. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonPropertyName("nodes")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Nodes { @@ -27609,7 +27660,7 @@ public System.Collections.Generic.IList /// /// Profiling start timestamp in microseconds. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startTime")] + [JsonPropertyName("startTime")] public double StartTime { get; @@ -27619,7 +27670,7 @@ public double StartTime /// /// Profiling end timestamp in microseconds. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endTime")] + [JsonPropertyName("endTime")] public double EndTime { get; @@ -27629,7 +27680,7 @@ public double EndTime /// /// Ids of samples top nodes. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("samples")] + [JsonPropertyName("samples")] public int[] Samples { get; @@ -27640,7 +27691,7 @@ public int[] Samples /// Time intervals between adjacent samples in microseconds. The first delta is relative to the /// profile startTime. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timeDeltas")] + [JsonPropertyName("timeDeltas")] public int[] TimeDeltas { get; @@ -27656,7 +27707,7 @@ public partial class PositionTickInfo : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Source line number (1-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("line")] + [JsonPropertyName("line")] public int Line { get; @@ -27666,7 +27717,7 @@ public int Line /// /// Number of samples attributed to the source line. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ticks")] + [JsonPropertyName("ticks")] public int Ticks { get; @@ -27682,7 +27733,7 @@ public partial class CoverageRange : CefSharp.DevTools.DevToolsDomainEntityBase /// /// JavaScript script source offset for the range start. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startOffset")] + [JsonPropertyName("startOffset")] public int StartOffset { get; @@ -27692,7 +27743,7 @@ public int StartOffset /// /// JavaScript script source offset for the range end. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endOffset")] + [JsonPropertyName("endOffset")] public int EndOffset { get; @@ -27702,7 +27753,7 @@ public int EndOffset /// /// Collected execution count of the source range. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + [JsonPropertyName("count")] public int Count { get; @@ -27718,7 +27769,7 @@ public partial class FunctionCoverage : CefSharp.DevTools.DevToolsDomainEntityBa /// /// JavaScript function name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionName")] + [JsonPropertyName("functionName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FunctionName { @@ -27729,7 +27780,7 @@ public string FunctionName /// /// Source ranges inside the function with coverage data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ranges")] + [JsonPropertyName("ranges")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Ranges { @@ -27740,7 +27791,7 @@ public System.Collections.Generic.IList /// Whether coverage data for this function has block granularity. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isBlockCoverage")] + [JsonPropertyName("isBlockCoverage")] public bool IsBlockCoverage { get; @@ -27756,7 +27807,7 @@ public partial class ScriptCoverage : CefSharp.DevTools.DevToolsDomainEntityBase /// /// JavaScript script id. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -27767,7 +27818,7 @@ public string ScriptId /// /// JavaScript script name or url. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -27778,7 +27829,7 @@ public string Url /// /// Functions contained in the script that has coverage data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("functions")] + [JsonPropertyName("functions")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Functions { @@ -27795,8 +27846,8 @@ public class ConsoleProfileFinishedEventArgs : CefSharp.DevTools.DevToolsDomainE /// /// Id /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonInclude] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -27807,8 +27858,8 @@ public string Id /// /// Location of console.profileEnd(). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [JsonInclude] + [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { @@ -27819,8 +27870,8 @@ public CefSharp.DevTools.Debugger.Location Location /// /// Profile /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonInclude] + [JsonPropertyName("profile")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Profiler.Profile Profile { @@ -27831,8 +27882,8 @@ public CefSharp.DevTools.Profiler.Profile Profile /// /// Profile title passed as an argument to console.profile(). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonInclude] + [JsonPropertyName("title")] public string Title { get; @@ -27848,8 +27899,8 @@ public class ConsoleProfileStartedEventArgs : CefSharp.DevTools.DevToolsDomainEv /// /// Id /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonInclude] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -27860,8 +27911,8 @@ public string Id /// /// Location of console.profile(). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("location")] + [JsonInclude] + [JsonPropertyName("location")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Debugger.Location Location { @@ -27872,8 +27923,8 @@ public CefSharp.DevTools.Debugger.Location Location /// /// Profile title passed as an argument to console.profile(). /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("title")] + [JsonInclude] + [JsonPropertyName("title")] public string Title { get; @@ -27892,8 +27943,8 @@ public class PreciseCoverageDeltaUpdateEventArgs : CefSharp.DevTools.DevToolsDom /// /// Monotonically increasing time (in seconds) when the coverage update was taken in the backend. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -27903,8 +27954,8 @@ public double Timestamp /// /// Identifier for distinguishing coverage events. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("occasion")] + [JsonInclude] + [JsonPropertyName("occasion")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Occasion { @@ -27915,8 +27966,8 @@ public string Occasion /// /// Coverage data for the current isolate. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Result { @@ -27936,117 +27987,117 @@ public enum WebDriverValueType /// /// undefined /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("undefined")] + [JsonPropertyName("undefined")] Undefined, /// /// null /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("null")] + [JsonPropertyName("null")] Null, /// /// string /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] String, /// /// number /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + [JsonPropertyName("number")] Number, /// /// boolean /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("boolean")] + [JsonPropertyName("boolean")] Boolean, /// /// bigint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bigint")] + [JsonPropertyName("bigint")] Bigint, /// /// regexp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("regexp")] + [JsonPropertyName("regexp")] Regexp, /// /// date /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + [JsonPropertyName("date")] Date, /// /// symbol /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("symbol")] + [JsonPropertyName("symbol")] Symbol, /// /// array /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] Array, /// /// object /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [JsonPropertyName("object")] Object, /// /// function /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("function")] + [JsonPropertyName("function")] Function, /// /// map /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("map")] + [JsonPropertyName("map")] Map, /// /// set /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + [JsonPropertyName("set")] Set, /// /// weakmap /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakmap")] + [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakset")] + [JsonPropertyName("weakset")] Weakset, /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error, /// /// proxy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxy")] + [JsonPropertyName("proxy")] Proxy, /// /// promise /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("promise")] + [JsonPropertyName("promise")] Promise, /// /// typedarray /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("typedarray")] + [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("arraybuffer")] + [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// node /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonPropertyName("node")] Node, /// /// window /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("window")] + [JsonPropertyName("window")] Window } @@ -28059,7 +28110,7 @@ public partial class WebDriverValue : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Type /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.WebDriverValueType Type { get; @@ -28069,7 +28120,7 @@ public CefSharp.DevTools.Runtime.WebDriverValueType Type /// /// Value /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public object Value { get; @@ -28079,7 +28130,7 @@ public object Value /// /// ObjectId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectId")] + [JsonPropertyName("objectId")] public string ObjectId { get; @@ -28095,42 +28146,42 @@ public enum RemoteObjectType /// /// object /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [JsonPropertyName("object")] Object, /// /// function /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("function")] + [JsonPropertyName("function")] Function, /// /// undefined /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("undefined")] + [JsonPropertyName("undefined")] Undefined, /// /// string /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] String, /// /// number /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + [JsonPropertyName("number")] Number, /// /// boolean /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("boolean")] + [JsonPropertyName("boolean")] Boolean, /// /// symbol /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("symbol")] + [JsonPropertyName("symbol")] Symbol, /// /// bigint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bigint")] + [JsonPropertyName("bigint")] Bigint } @@ -28144,97 +28195,97 @@ public enum RemoteObjectSubtype /// /// array /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] Array, /// /// null /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("null")] + [JsonPropertyName("null")] Null, /// /// node /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonPropertyName("node")] Node, /// /// regexp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("regexp")] + [JsonPropertyName("regexp")] Regexp, /// /// date /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + [JsonPropertyName("date")] Date, /// /// map /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("map")] + [JsonPropertyName("map")] Map, /// /// set /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + [JsonPropertyName("set")] Set, /// /// weakmap /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakmap")] + [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakset")] + [JsonPropertyName("weakset")] Weakset, /// /// iterator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterator")] + [JsonPropertyName("iterator")] Iterator, /// /// generator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("generator")] + [JsonPropertyName("generator")] Generator, /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error, /// /// proxy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxy")] + [JsonPropertyName("proxy")] Proxy, /// /// promise /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("promise")] + [JsonPropertyName("promise")] Promise, /// /// typedarray /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("typedarray")] + [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("arraybuffer")] + [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// dataview /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataview")] + [JsonPropertyName("dataview")] Dataview, /// /// webassemblymemory /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webassemblymemory")] + [JsonPropertyName("webassemblymemory")] Webassemblymemory, /// /// wasmvalue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasmvalue")] + [JsonPropertyName("wasmvalue")] Wasmvalue } @@ -28246,7 +28297,7 @@ public partial class RemoteObject : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Object type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.RemoteObjectType Type { get; @@ -28258,7 +28309,7 @@ public CefSharp.DevTools.Runtime.RemoteObjectType Type /// NOTE: If you change anything here, make sure to also update /// `subtype` in `ObjectPreview` and `PropertyPreview` below. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + [JsonPropertyName("subtype")] public CefSharp.DevTools.Runtime.RemoteObjectSubtype? Subtype { get; @@ -28268,7 +28319,7 @@ public CefSharp.DevTools.Runtime.RemoteObjectSubtype? Subtype /// /// Object class (constructor) name. Specified for `object` type values only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("className")] + [JsonPropertyName("className")] public string ClassName { get; @@ -28278,7 +28329,7 @@ public string ClassName /// /// Remote object value in case of primitive values or JSON values (if it was requested). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public object Value { get; @@ -28289,7 +28340,7 @@ public object Value /// Primitive value which can not be JSON-stringified does not have `value`, but gets this /// property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unserializableValue")] + [JsonPropertyName("unserializableValue")] public string UnserializableValue { get; @@ -28299,7 +28350,7 @@ public string UnserializableValue /// /// String representation of the object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + [JsonPropertyName("description")] public string Description { get; @@ -28309,7 +28360,7 @@ public string Description /// /// WebDriver BiDi representation of the value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webDriverValue")] + [JsonPropertyName("webDriverValue")] public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue { get; @@ -28319,7 +28370,7 @@ public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue /// /// Unique object identifier (for non-primitive values). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectId")] + [JsonPropertyName("objectId")] public string ObjectId { get; @@ -28329,7 +28380,7 @@ public string ObjectId /// /// Preview containing abbreviated property values. Specified for `object` type values only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("preview")] + [JsonPropertyName("preview")] public CefSharp.DevTools.Runtime.ObjectPreview Preview { get; @@ -28339,7 +28390,7 @@ public CefSharp.DevTools.Runtime.ObjectPreview Preview /// /// CustomPreview /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("customPreview")] + [JsonPropertyName("customPreview")] public CefSharp.DevTools.Runtime.CustomPreview CustomPreview { get; @@ -28356,7 +28407,7 @@ public partial class CustomPreview : CefSharp.DevTools.DevToolsDomainEntityBase /// The JSON-stringified result of formatter.header(object, config) call. /// It contains json ML array that represents RemoteObject. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("header")] + [JsonPropertyName("header")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Header { @@ -28369,7 +28420,7 @@ public string Header /// contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. /// The result value is json ML array. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bodyGetterId")] + [JsonPropertyName("bodyGetterId")] public string BodyGetterId { get; @@ -28385,42 +28436,42 @@ public enum ObjectPreviewType /// /// object /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [JsonPropertyName("object")] Object, /// /// function /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("function")] + [JsonPropertyName("function")] Function, /// /// undefined /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("undefined")] + [JsonPropertyName("undefined")] Undefined, /// /// string /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] String, /// /// number /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + [JsonPropertyName("number")] Number, /// /// boolean /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("boolean")] + [JsonPropertyName("boolean")] Boolean, /// /// symbol /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("symbol")] + [JsonPropertyName("symbol")] Symbol, /// /// bigint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bigint")] + [JsonPropertyName("bigint")] Bigint } @@ -28432,97 +28483,97 @@ public enum ObjectPreviewSubtype /// /// array /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] Array, /// /// null /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("null")] + [JsonPropertyName("null")] Null, /// /// node /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonPropertyName("node")] Node, /// /// regexp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("regexp")] + [JsonPropertyName("regexp")] Regexp, /// /// date /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + [JsonPropertyName("date")] Date, /// /// map /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("map")] + [JsonPropertyName("map")] Map, /// /// set /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + [JsonPropertyName("set")] Set, /// /// weakmap /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakmap")] + [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakset")] + [JsonPropertyName("weakset")] Weakset, /// /// iterator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterator")] + [JsonPropertyName("iterator")] Iterator, /// /// generator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("generator")] + [JsonPropertyName("generator")] Generator, /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error, /// /// proxy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxy")] + [JsonPropertyName("proxy")] Proxy, /// /// promise /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("promise")] + [JsonPropertyName("promise")] Promise, /// /// typedarray /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("typedarray")] + [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("arraybuffer")] + [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// dataview /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataview")] + [JsonPropertyName("dataview")] Dataview, /// /// webassemblymemory /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webassemblymemory")] + [JsonPropertyName("webassemblymemory")] Webassemblymemory, /// /// wasmvalue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasmvalue")] + [JsonPropertyName("wasmvalue")] Wasmvalue } @@ -28534,7 +28585,7 @@ public partial class ObjectPreview : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Object type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.ObjectPreviewType Type { get; @@ -28544,7 +28595,7 @@ public CefSharp.DevTools.Runtime.ObjectPreviewType Type /// /// Object subtype hint. Specified for `object` type values only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + [JsonPropertyName("subtype")] public CefSharp.DevTools.Runtime.ObjectPreviewSubtype? Subtype { get; @@ -28554,7 +28605,7 @@ public CefSharp.DevTools.Runtime.ObjectPreviewSubtype? Subtype /// /// String representation of the object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + [JsonPropertyName("description")] public string Description { get; @@ -28564,7 +28615,7 @@ public string Description /// /// True iff some of the properties or entries of the original object did not fit. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("overflow")] + [JsonPropertyName("overflow")] public bool Overflow { get; @@ -28574,7 +28625,7 @@ public bool Overflow /// /// List of the properties. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("properties")] + [JsonPropertyName("properties")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Properties { @@ -28585,7 +28636,7 @@ public System.Collections.Generic.IList /// List of the entries. Specified for `map` and `set` subtype values only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + [JsonPropertyName("entries")] public System.Collections.Generic.IList Entries { get; @@ -28601,47 +28652,47 @@ public enum PropertyPreviewType /// /// object /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [JsonPropertyName("object")] Object, /// /// function /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("function")] + [JsonPropertyName("function")] Function, /// /// undefined /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("undefined")] + [JsonPropertyName("undefined")] Undefined, /// /// string /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("string")] + [JsonPropertyName("string")] String, /// /// number /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("number")] + [JsonPropertyName("number")] Number, /// /// boolean /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("boolean")] + [JsonPropertyName("boolean")] Boolean, /// /// symbol /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("symbol")] + [JsonPropertyName("symbol")] Symbol, /// /// accessor /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("accessor")] + [JsonPropertyName("accessor")] Accessor, /// /// bigint /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bigint")] + [JsonPropertyName("bigint")] Bigint } @@ -28653,97 +28704,97 @@ public enum PropertyPreviewSubtype /// /// array /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("array")] + [JsonPropertyName("array")] Array, /// /// null /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("null")] + [JsonPropertyName("null")] Null, /// /// node /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonPropertyName("node")] Node, /// /// regexp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("regexp")] + [JsonPropertyName("regexp")] Regexp, /// /// date /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("date")] + [JsonPropertyName("date")] Date, /// /// map /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("map")] + [JsonPropertyName("map")] Map, /// /// set /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + [JsonPropertyName("set")] Set, /// /// weakmap /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakmap")] + [JsonPropertyName("weakmap")] Weakmap, /// /// weakset /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("weakset")] + [JsonPropertyName("weakset")] Weakset, /// /// iterator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("iterator")] + [JsonPropertyName("iterator")] Iterator, /// /// generator /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("generator")] + [JsonPropertyName("generator")] Generator, /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error, /// /// proxy /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("proxy")] + [JsonPropertyName("proxy")] Proxy, /// /// promise /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("promise")] + [JsonPropertyName("promise")] Promise, /// /// typedarray /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("typedarray")] + [JsonPropertyName("typedarray")] Typedarray, /// /// arraybuffer /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("arraybuffer")] + [JsonPropertyName("arraybuffer")] Arraybuffer, /// /// dataview /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataview")] + [JsonPropertyName("dataview")] Dataview, /// /// webassemblymemory /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webassemblymemory")] + [JsonPropertyName("webassemblymemory")] Webassemblymemory, /// /// wasmvalue /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasmvalue")] + [JsonPropertyName("wasmvalue")] Wasmvalue } @@ -28755,7 +28806,7 @@ public partial class PropertyPreview : CefSharp.DevTools.DevToolsDomainEntityBas /// /// Property name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -28766,7 +28817,7 @@ public string Name /// /// Object type. Accessor means that the property itself is an accessor property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.PropertyPreviewType Type { get; @@ -28776,7 +28827,7 @@ public CefSharp.DevTools.Runtime.PropertyPreviewType Type /// /// User-friendly property value string. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public string Value { get; @@ -28786,7 +28837,7 @@ public string Value /// /// Nested value preview. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("valuePreview")] + [JsonPropertyName("valuePreview")] public CefSharp.DevTools.Runtime.ObjectPreview ValuePreview { get; @@ -28796,7 +28847,7 @@ public CefSharp.DevTools.Runtime.ObjectPreview ValuePreview /// /// Object subtype hint. Specified for `object` type values only. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("subtype")] + [JsonPropertyName("subtype")] public CefSharp.DevTools.Runtime.PropertyPreviewSubtype? Subtype { get; @@ -28812,7 +28863,7 @@ public partial class EntryPreview : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Preview of the key. Specified for map-like collection entries. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("key")] + [JsonPropertyName("key")] public CefSharp.DevTools.Runtime.ObjectPreview Key { get; @@ -28822,7 +28873,7 @@ public CefSharp.DevTools.Runtime.ObjectPreview Key /// /// Preview of the value. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.ObjectPreview Value { @@ -28839,7 +28890,7 @@ public partial class PropertyDescriptor : CefSharp.DevTools.DevToolsDomainEntity /// /// Property name or symbol description. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -28850,7 +28901,7 @@ public string Name /// /// The value associated with the property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public CefSharp.DevTools.Runtime.RemoteObject Value { get; @@ -28860,7 +28911,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Value /// /// True if the value associated with the property may be changed (data descriptors only). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("writable")] + [JsonPropertyName("writable")] public bool? Writable { get; @@ -28871,7 +28922,7 @@ public bool? Writable /// A function which serves as a getter for the property, or `undefined` if there is no getter /// (accessor descriptors only). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("get")] + [JsonPropertyName("get")] public CefSharp.DevTools.Runtime.RemoteObject Get { get; @@ -28882,7 +28933,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Get /// A function which serves as a setter for the property, or `undefined` if there is no setter /// (accessor descriptors only). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + [JsonPropertyName("set")] public CefSharp.DevTools.Runtime.RemoteObject Set { get; @@ -28893,7 +28944,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Set /// True if the type of this property descriptor may be changed and if the property may be /// deleted from the corresponding object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("configurable")] + [JsonPropertyName("configurable")] public bool Configurable { get; @@ -28904,7 +28955,7 @@ public bool Configurable /// True if this property shows up during enumeration of the properties on the corresponding /// object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("enumerable")] + [JsonPropertyName("enumerable")] public bool Enumerable { get; @@ -28914,7 +28965,7 @@ public bool Enumerable /// /// True if the result was thrown during the evaluation. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("wasThrown")] + [JsonPropertyName("wasThrown")] public bool? WasThrown { get; @@ -28924,7 +28975,7 @@ public bool? WasThrown /// /// True if the property is owned for the object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("isOwn")] + [JsonPropertyName("isOwn")] public bool? IsOwn { get; @@ -28934,7 +28985,7 @@ public bool? IsOwn /// /// Property symbol object, if the property is of the `symbol` type. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("symbol")] + [JsonPropertyName("symbol")] public CefSharp.DevTools.Runtime.RemoteObject Symbol { get; @@ -28950,7 +29001,7 @@ public partial class InternalPropertyDescriptor : CefSharp.DevTools.DevToolsDoma /// /// Conventional property name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -28961,7 +29012,7 @@ public string Name /// /// The value associated with the property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public CefSharp.DevTools.Runtime.RemoteObject Value { get; @@ -28977,7 +29028,7 @@ public partial class PrivatePropertyDescriptor : CefSharp.DevTools.DevToolsDomai /// /// Private property name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -28988,7 +29039,7 @@ public string Name /// /// The value associated with the private property. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public CefSharp.DevTools.Runtime.RemoteObject Value { get; @@ -28999,7 +29050,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Value /// A function which serves as a getter for the private property, /// or `undefined` if there is no getter (accessor descriptors only). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("get")] + [JsonPropertyName("get")] public CefSharp.DevTools.Runtime.RemoteObject Get { get; @@ -29010,7 +29061,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Get /// A function which serves as a setter for the private property, /// or `undefined` if there is no setter (accessor descriptors only). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("set")] + [JsonPropertyName("set")] public CefSharp.DevTools.Runtime.RemoteObject Set { get; @@ -29027,7 +29078,7 @@ public partial class CallArgument : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Primitive value or serializable javascript object. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("value")] + [JsonPropertyName("value")] public object Value { get; @@ -29037,7 +29088,7 @@ public object Value /// /// Primitive value which can not be JSON-stringified. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("unserializableValue")] + [JsonPropertyName("unserializableValue")] public string UnserializableValue { get; @@ -29047,7 +29098,7 @@ public string UnserializableValue /// /// Remote object handle. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectId")] + [JsonPropertyName("objectId")] public string ObjectId { get; @@ -29064,7 +29115,7 @@ public partial class ExecutionContextDescription : CefSharp.DevTools.DevToolsDom /// Unique id of the execution context. It can be used to specify in which execution context /// script evaluation should be performed. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] public int Id { get; @@ -29074,7 +29125,7 @@ public int Id /// /// Execution context origin. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("origin")] + [JsonPropertyName("origin")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Origin { @@ -29085,7 +29136,7 @@ public string Origin /// /// Human readable name describing given context. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -29098,7 +29149,7 @@ public string Name /// multiple processes, so can be reliably used to identify specific context while backend /// performs a cross-process navigation. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("uniqueId")] + [JsonPropertyName("uniqueId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string UniqueId { @@ -29109,7 +29160,7 @@ public string UniqueId /// /// Embedder-specific auxiliary data. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("auxData")] + [JsonPropertyName("auxData")] public object AuxData { get; @@ -29126,7 +29177,7 @@ public partial class ExceptionDetails : CefSharp.DevTools.DevToolsDomainEntityBa /// /// Exception id. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionId")] + [JsonPropertyName("exceptionId")] public int ExceptionId { get; @@ -29136,7 +29187,7 @@ public int ExceptionId /// /// Exception text, which should be used together with exception object when available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonPropertyName("text")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Text { @@ -29147,7 +29198,7 @@ public string Text /// /// Line number of the exception location (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -29157,7 +29208,7 @@ public int LineNumber /// /// Column number of the exception location (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int ColumnNumber { get; @@ -29167,7 +29218,7 @@ public int ColumnNumber /// /// Script ID of the exception location. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] public string ScriptId { get; @@ -29177,7 +29228,7 @@ public string ScriptId /// /// URL of the exception location, to be used when the script was not reported. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] public string Url { get; @@ -29187,7 +29238,7 @@ public string Url /// /// JavaScript stack trace if available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -29197,7 +29248,7 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// /// Exception object if available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exception")] + [JsonPropertyName("exception")] public CefSharp.DevTools.Runtime.RemoteObject Exception { get; @@ -29207,7 +29258,7 @@ public CefSharp.DevTools.Runtime.RemoteObject Exception /// /// Identifier of the context where exception happened. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonPropertyName("executionContextId")] public int? ExecutionContextId { get; @@ -29219,7 +29270,7 @@ public int? ExecutionContextId /// with this exception, such as information about associated network /// requests, etc. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionMetaData")] + [JsonPropertyName("exceptionMetaData")] public object ExceptionMetaData { get; @@ -29235,7 +29286,7 @@ public partial class CallFrame : CefSharp.DevTools.DevToolsDomainEntityBase /// /// JavaScript function name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionName")] + [JsonPropertyName("functionName")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string FunctionName { @@ -29246,7 +29297,7 @@ public string FunctionName /// /// JavaScript script id. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonPropertyName("scriptId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ScriptId { @@ -29257,7 +29308,7 @@ public string ScriptId /// /// JavaScript script name or url. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonPropertyName("url")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Url { @@ -29268,7 +29319,7 @@ public string Url /// /// JavaScript script line number (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("lineNumber")] + [JsonPropertyName("lineNumber")] public int LineNumber { get; @@ -29278,7 +29329,7 @@ public int LineNumber /// /// JavaScript script column number (0-based). /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNumber")] + [JsonPropertyName("columnNumber")] public int ColumnNumber { get; @@ -29295,7 +29346,7 @@ public partial class StackTrace : CefSharp.DevTools.DevToolsDomainEntityBase /// String label of this stack trace. For async traces this may be a name of the function that /// initiated the async call. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("description")] + [JsonPropertyName("description")] public string Description { get; @@ -29305,7 +29356,7 @@ public string Description /// /// JavaScript function name. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + [JsonPropertyName("callFrames")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList CallFrames { @@ -29316,7 +29367,7 @@ public System.Collections.Generic.IList Cal /// /// Asynchronous JavaScript stack trace that preceded this stack, if available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parent")] + [JsonPropertyName("parent")] public CefSharp.DevTools.Runtime.StackTrace Parent { get; @@ -29326,7 +29377,7 @@ public CefSharp.DevTools.Runtime.StackTrace Parent /// /// Asynchronous JavaScript stack trace that preceded this stack, if available. /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentId")] + [JsonPropertyName("parentId")] public CefSharp.DevTools.Runtime.StackTraceId ParentId { get; @@ -29343,7 +29394,7 @@ public partial class StackTraceId : CefSharp.DevTools.DevToolsDomainEntityBase /// /// Id /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonPropertyName("id")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Id { @@ -29354,7 +29405,7 @@ public string Id /// /// DebuggerId /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debuggerId")] + [JsonPropertyName("debuggerId")] public string DebuggerId { get; @@ -29370,8 +29421,8 @@ public class BindingCalledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsB /// /// Name /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("name")] + [JsonInclude] + [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Name { @@ -29382,8 +29433,8 @@ public string Name /// /// Payload /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("payload")] + [JsonInclude] + [JsonPropertyName("payload")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Payload { @@ -29394,8 +29445,8 @@ public string Payload /// /// Identifier of the context where the call was made. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonInclude] + [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; @@ -29411,92 +29462,92 @@ public enum ConsoleAPICalledType /// /// log /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("log")] + [JsonPropertyName("log")] Log, /// /// debug /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debug")] + [JsonPropertyName("debug")] Debug, /// /// info /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("info")] + [JsonPropertyName("info")] Info, /// /// error /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("error")] + [JsonPropertyName("error")] Error, /// /// warning /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("warning")] + [JsonPropertyName("warning")] Warning, /// /// dir /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dir")] + [JsonPropertyName("dir")] Dir, /// /// dirxml /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dirxml")] + [JsonPropertyName("dirxml")] Dirxml, /// /// table /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("table")] + [JsonPropertyName("table")] Table, /// /// trace /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("trace")] + [JsonPropertyName("trace")] Trace, /// /// clear /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("clear")] + [JsonPropertyName("clear")] Clear, /// /// startGroup /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startGroup")] + [JsonPropertyName("startGroup")] StartGroup, /// /// startGroupCollapsed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("startGroupCollapsed")] + [JsonPropertyName("startGroupCollapsed")] StartGroupCollapsed, /// /// endGroup /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("endGroup")] + [JsonPropertyName("endGroup")] EndGroup, /// /// assert /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("assert")] + [JsonPropertyName("assert")] Assert, /// /// profile /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonPropertyName("profile")] Profile, /// /// profileEnd /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profileEnd")] + [JsonPropertyName("profileEnd")] ProfileEnd, /// /// count /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("count")] + [JsonPropertyName("count")] Count, /// /// timeEnd /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timeEnd")] + [JsonPropertyName("timeEnd")] TimeEnd } @@ -29508,8 +29559,8 @@ public class ConsoleAPICalledEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Type of the call. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("type")] + [JsonInclude] + [JsonPropertyName("type")] public CefSharp.DevTools.Runtime.ConsoleAPICalledType Type { get; @@ -29519,8 +29570,8 @@ public CefSharp.DevTools.Runtime.ConsoleAPICalledType Type /// /// Call arguments. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("args")] + [JsonInclude] + [JsonPropertyName("args")] [System.Diagnostics.CodeAnalysis.DisallowNull] public System.Collections.Generic.IList Args { @@ -29531,8 +29582,8 @@ public System.Collections.Generic.IList /// /// Identifier of the context where the call was made. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonInclude] + [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; @@ -29542,8 +29593,8 @@ public int ExecutionContextId /// /// Call timestamp. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -29555,8 +29606,8 @@ public double Timestamp /// the following call types: `assert`, `error`, `trace`, `warning`. For other types the async call /// chain can be retrieved using `Debugger.getStackTrace` and `stackTrace.parentId` field. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + [JsonInclude] + [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -29568,8 +29619,8 @@ public CefSharp.DevTools.Runtime.StackTrace StackTrace /// 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call /// on named context. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("context")] + [JsonInclude] + [JsonPropertyName("context")] public string Context { get; @@ -29585,8 +29636,8 @@ public class ExceptionRevokedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Reason describing why exception was revoked. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("reason")] + [JsonInclude] + [JsonPropertyName("reason")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string Reason { @@ -29597,8 +29648,8 @@ public string Reason /// /// The id of revoked exception, as reported in `exceptionThrown`. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionId")] + [JsonInclude] + [JsonPropertyName("exceptionId")] public int ExceptionId { get; @@ -29614,8 +29665,8 @@ public class ExceptionThrownEventArgs : CefSharp.DevTools.DevToolsDomainEventArg /// /// Timestamp of the exception. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -29625,8 +29676,8 @@ public double Timestamp /// /// ExceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { @@ -29643,8 +29694,8 @@ public class ExecutionContextCreatedEventArgs : CefSharp.DevTools.DevToolsDomain /// /// A newly created execution context. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("context")] + [JsonInclude] + [JsonPropertyName("context")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.ExecutionContextDescription Context { @@ -29661,8 +29712,8 @@ public class ExecutionContextDestroyedEventArgs : CefSharp.DevTools.DevToolsDoma /// /// Id of the destroyed context /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonInclude] + [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; @@ -29672,8 +29723,8 @@ public int ExecutionContextId /// /// Unique Id of the destroyed context /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextUniqueId")] + [JsonInclude] + [JsonPropertyName("executionContextUniqueId")] [System.Diagnostics.CodeAnalysis.DisallowNull] public string ExecutionContextUniqueId { @@ -29691,8 +29742,8 @@ public class InspectRequestedEventArgs : CefSharp.DevTools.DevToolsDomainEventAr /// /// Object /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [JsonInclude] + [JsonPropertyName("object")] [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Runtime.RemoteObject Object { @@ -29703,8 +29754,8 @@ public CefSharp.DevTools.Runtime.RemoteObject Object /// /// Hints /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hints")] + [JsonInclude] + [JsonPropertyName("hints")] [System.Diagnostics.CodeAnalysis.DisallowNull] public object Hints { @@ -29715,8 +29766,8 @@ public object Hints /// /// Identifier of the context where the call was made. /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonInclude] + [JsonPropertyName("executionContextId")] public int? ExecutionContextId { get; @@ -29730,13 +29781,13 @@ namespace CefSharp.DevTools.Accessibility /// /// GetPartialAXTreeResponse /// - public class GetPartialAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetPartialAXTreeResponse : DevToolsDomainResponseBase { /// /// nodes /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; @@ -29750,13 +29801,13 @@ namespace CefSharp.DevTools.Accessibility /// /// GetFullAXTreeResponse /// - public class GetFullAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetFullAXTreeResponse : DevToolsDomainResponseBase { /// /// nodes /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; @@ -29770,13 +29821,13 @@ namespace CefSharp.DevTools.Accessibility /// /// GetRootAXNodeResponse /// - public class GetRootAXNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetRootAXNodeResponse : DevToolsDomainResponseBase { /// /// node /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonInclude] + [JsonPropertyName("node")] public CefSharp.DevTools.Accessibility.AXNode Node { get; @@ -29790,13 +29841,13 @@ namespace CefSharp.DevTools.Accessibility /// /// GetAXNodeAndAncestorsResponse /// - public class GetAXNodeAndAncestorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetAXNodeAndAncestorsResponse : DevToolsDomainResponseBase { /// /// nodes /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; @@ -29810,13 +29861,13 @@ namespace CefSharp.DevTools.Accessibility /// /// GetChildAXNodesResponse /// - public class GetChildAXNodesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetChildAXNodesResponse : DevToolsDomainResponseBase { /// /// nodes /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; @@ -29830,13 +29881,13 @@ namespace CefSharp.DevTools.Accessibility /// /// QueryAXTreeResponse /// - public class QueryAXTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class QueryAXTreeResponse : DevToolsDomainResponseBase { /// /// nodes /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] public System.Collections.Generic.IList Nodes { get; @@ -29925,7 +29976,7 @@ public System.Threading.Tasks.Task EnableAsync() /// Identifier of the node to get the partial accessibility tree for. /// Identifier of the backend node to get the partial accessibility tree for. /// JavaScript object id of the node wrapper to get the partial accessibility tree for. - /// Whether to fetch this nodes ancestors, siblings and children. Defaults to true. + /// Whether to fetch this node's ancestors, siblings and children. Defaults to true. /// returns System.Threading.Tasks.Task<GetPartialAXTreeResponse> public System.Threading.Tasks.Task GetPartialAXTreeAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? fetchRelatives = null) { @@ -30102,13 +30153,13 @@ namespace CefSharp.DevTools.Animation /// /// GetCurrentTimeResponse /// - public class GetCurrentTimeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCurrentTimeResponse : DevToolsDomainResponseBase { /// /// currentTime /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentTime")] + [JsonInclude] + [JsonPropertyName("currentTime")] public double CurrentTime { get; @@ -30122,13 +30173,13 @@ namespace CefSharp.DevTools.Animation /// /// GetPlaybackRateResponse /// - public class GetPlaybackRateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetPlaybackRateResponse : DevToolsDomainResponseBase { /// /// playbackRate /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("playbackRate")] + [JsonInclude] + [JsonPropertyName("playbackRate")] public double PlaybackRate { get; @@ -30142,13 +30193,13 @@ namespace CefSharp.DevTools.Animation /// /// ResolveAnimationResponse /// - public class ResolveAnimationResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ResolveAnimationResponse : DevToolsDomainResponseBase { /// /// remoteObject /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("remoteObject")] + [JsonInclude] + [JsonPropertyName("remoteObject")] public CefSharp.DevTools.Runtime.RemoteObject RemoteObject { get; @@ -30367,13 +30418,13 @@ namespace CefSharp.DevTools.Audits /// /// GetEncodedResponseResponse /// - public class GetEncodedResponseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetEncodedResponseResponse : DevToolsDomainResponseBase { /// /// body /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + [JsonInclude] + [JsonPropertyName("body")] public byte[] Body { get; @@ -30383,8 +30434,8 @@ public byte[] Body /// /// originalSize /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("originalSize")] + [JsonInclude] + [JsonPropertyName("originalSize")] public int OriginalSize { get; @@ -30394,8 +30445,8 @@ public int OriginalSize /// /// encodedSize /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("encodedSize")] + [JsonInclude] + [JsonPropertyName("encodedSize")] public int EncodedSize { get; @@ -30416,17 +30467,17 @@ public enum GetEncodedResponseEncoding /// /// webp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] + [JsonPropertyName("webp")] Webp, /// /// jpeg /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jpeg")] + [JsonPropertyName("jpeg")] Jpeg, /// /// png /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("png")] + [JsonPropertyName("png")] Png } @@ -30649,13 +30700,13 @@ namespace CefSharp.DevTools.Browser /// /// GetVersionResponse /// - public class GetVersionResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetVersionResponse : DevToolsDomainResponseBase { /// /// protocolVersion /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("protocolVersion")] + [JsonInclude] + [JsonPropertyName("protocolVersion")] public string ProtocolVersion { get; @@ -30665,8 +30716,8 @@ public string ProtocolVersion /// /// product /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("product")] + [JsonInclude] + [JsonPropertyName("product")] public string Product { get; @@ -30676,8 +30727,8 @@ public string Product /// /// revision /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("revision")] + [JsonInclude] + [JsonPropertyName("revision")] public string Revision { get; @@ -30687,8 +30738,8 @@ public string Revision /// /// userAgent /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("userAgent")] + [JsonInclude] + [JsonPropertyName("userAgent")] public string UserAgent { get; @@ -30698,8 +30749,8 @@ public string UserAgent /// /// jsVersion /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jsVersion")] + [JsonInclude] + [JsonPropertyName("jsVersion")] public string JsVersion { get; @@ -30713,13 +30764,13 @@ namespace CefSharp.DevTools.Browser /// /// GetBrowserCommandLineResponse /// - public class GetBrowserCommandLineResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetBrowserCommandLineResponse : DevToolsDomainResponseBase { /// /// arguments /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("arguments")] + [JsonInclude] + [JsonPropertyName("arguments")] public string[] Arguments { get; @@ -30733,13 +30784,13 @@ namespace CefSharp.DevTools.Browser /// /// GetHistogramsResponse /// - public class GetHistogramsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetHistogramsResponse : DevToolsDomainResponseBase { /// /// histograms /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("histograms")] + [JsonInclude] + [JsonPropertyName("histograms")] public System.Collections.Generic.IList Histograms { get; @@ -30753,13 +30804,13 @@ namespace CefSharp.DevTools.Browser /// /// GetHistogramResponse /// - public class GetHistogramResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetHistogramResponse : DevToolsDomainResponseBase { /// /// histogram /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("histogram")] + [JsonInclude] + [JsonPropertyName("histogram")] public CefSharp.DevTools.Browser.Histogram Histogram { get; @@ -30773,13 +30824,13 @@ namespace CefSharp.DevTools.Browser /// /// GetWindowBoundsResponse /// - public class GetWindowBoundsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetWindowBoundsResponse : DevToolsDomainResponseBase { /// /// bounds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + [JsonInclude] + [JsonPropertyName("bounds")] public CefSharp.DevTools.Browser.Bounds Bounds { get; @@ -30793,13 +30844,13 @@ namespace CefSharp.DevTools.Browser /// /// GetWindowForTargetResponse /// - public class GetWindowForTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetWindowForTargetResponse : DevToolsDomainResponseBase { /// /// windowId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("windowId")] + [JsonInclude] + [JsonPropertyName("windowId")] public int WindowId { get; @@ -30809,8 +30860,8 @@ public int WindowId /// /// bounds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bounds")] + [JsonInclude] + [JsonPropertyName("bounds")] public CefSharp.DevTools.Browser.Bounds Bounds { get; @@ -30833,22 +30884,22 @@ public enum SetDownloadBehaviorBehavior /// /// deny /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deny")] + [JsonPropertyName("deny")] Deny, /// /// allow /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("allow")] + [JsonPropertyName("allow")] Allow, /// /// allowAndName /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("allowAndName")] + [JsonPropertyName("allowAndName")] AllowAndName, /// /// default /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("default")] + [JsonPropertyName("default")] Default } @@ -31211,13 +31262,13 @@ namespace CefSharp.DevTools.CSS /// /// AddRuleResponse /// - public class AddRuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class AddRuleResponse : DevToolsDomainResponseBase { /// /// rule /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rule")] + [JsonInclude] + [JsonPropertyName("rule")] public CefSharp.DevTools.CSS.CSSRule Rule { get; @@ -31231,13 +31282,13 @@ namespace CefSharp.DevTools.CSS /// /// CollectClassNamesResponse /// - public class CollectClassNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CollectClassNamesResponse : DevToolsDomainResponseBase { /// /// classNames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("classNames")] + [JsonInclude] + [JsonPropertyName("classNames")] public string[] ClassNames { get; @@ -31251,13 +31302,13 @@ namespace CefSharp.DevTools.CSS /// /// CreateStyleSheetResponse /// - public class CreateStyleSheetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CreateStyleSheetResponse : DevToolsDomainResponseBase { /// /// styleSheetId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styleSheetId")] + [JsonInclude] + [JsonPropertyName("styleSheetId")] public string StyleSheetId { get; @@ -31271,13 +31322,13 @@ namespace CefSharp.DevTools.CSS /// /// GetBackgroundColorsResponse /// - public class GetBackgroundColorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetBackgroundColorsResponse : DevToolsDomainResponseBase { /// /// backgroundColors /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backgroundColors")] + [JsonInclude] + [JsonPropertyName("backgroundColors")] public string[] BackgroundColors { get; @@ -31287,8 +31338,8 @@ public string[] BackgroundColors /// /// computedFontSize /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedFontSize")] + [JsonInclude] + [JsonPropertyName("computedFontSize")] public string ComputedFontSize { get; @@ -31298,8 +31349,8 @@ public string ComputedFontSize /// /// computedFontWeight /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedFontWeight")] + [JsonInclude] + [JsonPropertyName("computedFontWeight")] public string ComputedFontWeight { get; @@ -31313,13 +31364,13 @@ namespace CefSharp.DevTools.CSS /// /// GetComputedStyleForNodeResponse /// - public class GetComputedStyleForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetComputedStyleForNodeResponse : DevToolsDomainResponseBase { /// /// computedStyle /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("computedStyle")] + [JsonInclude] + [JsonPropertyName("computedStyle")] public System.Collections.Generic.IList ComputedStyle { get; @@ -31333,13 +31384,13 @@ namespace CefSharp.DevTools.CSS /// /// GetInlineStylesForNodeResponse /// - public class GetInlineStylesForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetInlineStylesForNodeResponse : DevToolsDomainResponseBase { /// /// inlineStyle /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineStyle")] + [JsonInclude] + [JsonPropertyName("inlineStyle")] public CefSharp.DevTools.CSS.CSSStyle InlineStyle { get; @@ -31349,8 +31400,8 @@ public CefSharp.DevTools.CSS.CSSStyle InlineStyle /// /// attributesStyle /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributesStyle")] + [JsonInclude] + [JsonPropertyName("attributesStyle")] public CefSharp.DevTools.CSS.CSSStyle AttributesStyle { get; @@ -31364,13 +31415,13 @@ namespace CefSharp.DevTools.CSS /// /// GetMatchedStylesForNodeResponse /// - public class GetMatchedStylesForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetMatchedStylesForNodeResponse : DevToolsDomainResponseBase { /// /// inlineStyle /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inlineStyle")] + [JsonInclude] + [JsonPropertyName("inlineStyle")] public CefSharp.DevTools.CSS.CSSStyle InlineStyle { get; @@ -31380,8 +31431,8 @@ public CefSharp.DevTools.CSS.CSSStyle InlineStyle /// /// attributesStyle /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributesStyle")] + [JsonInclude] + [JsonPropertyName("attributesStyle")] public CefSharp.DevTools.CSS.CSSStyle AttributesStyle { get; @@ -31391,8 +31442,8 @@ public CefSharp.DevTools.CSS.CSSStyle AttributesStyle /// /// matchedCSSRules /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("matchedCSSRules")] + [JsonInclude] + [JsonPropertyName("matchedCSSRules")] public System.Collections.Generic.IList MatchedCSSRules { get; @@ -31402,8 +31453,8 @@ public System.Collections.Generic.IList Matched /// /// pseudoElements /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pseudoElements")] + [JsonInclude] + [JsonPropertyName("pseudoElements")] public System.Collections.Generic.IList PseudoElements { get; @@ -31413,8 +31464,8 @@ public System.Collections.Generic.IList /// inherited /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inherited")] + [JsonInclude] + [JsonPropertyName("inherited")] public System.Collections.Generic.IList Inherited { get; @@ -31424,8 +31475,8 @@ public System.Collections.Generic.IList /// inheritedPseudoElements /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("inheritedPseudoElements")] + [JsonInclude] + [JsonPropertyName("inheritedPseudoElements")] public System.Collections.Generic.IList InheritedPseudoElements { get; @@ -31435,8 +31486,8 @@ public System.Collections.Generic.IList /// cssKeyframesRules /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssKeyframesRules")] + [JsonInclude] + [JsonPropertyName("cssKeyframesRules")] public System.Collections.Generic.IList CssKeyframesRules { get; @@ -31446,8 +31497,8 @@ public System.Collections.Generic.IList /// /// parentLayoutNodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parentLayoutNodeId")] + [JsonInclude] + [JsonPropertyName("parentLayoutNodeId")] public int? ParentLayoutNodeId { get; @@ -31461,13 +31512,13 @@ namespace CefSharp.DevTools.CSS /// /// GetMediaQueriesResponse /// - public class GetMediaQueriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetMediaQueriesResponse : DevToolsDomainResponseBase { /// /// medias /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("medias")] + [JsonInclude] + [JsonPropertyName("medias")] public System.Collections.Generic.IList Medias { get; @@ -31481,13 +31532,13 @@ namespace CefSharp.DevTools.CSS /// /// GetPlatformFontsForNodeResponse /// - public class GetPlatformFontsForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetPlatformFontsForNodeResponse : DevToolsDomainResponseBase { /// /// fonts /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("fonts")] + [JsonInclude] + [JsonPropertyName("fonts")] public System.Collections.Generic.IList Fonts { get; @@ -31501,13 +31552,13 @@ namespace CefSharp.DevTools.CSS /// /// GetStyleSheetTextResponse /// - public class GetStyleSheetTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetStyleSheetTextResponse : DevToolsDomainResponseBase { /// /// text /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("text")] + [JsonInclude] + [JsonPropertyName("text")] public string Text { get; @@ -31521,13 +31572,13 @@ namespace CefSharp.DevTools.CSS /// /// GetLayersForNodeResponse /// - public class GetLayersForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetLayersForNodeResponse : DevToolsDomainResponseBase { /// /// rootLayer /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rootLayer")] + [JsonInclude] + [JsonPropertyName("rootLayer")] public CefSharp.DevTools.CSS.CSSLayerData RootLayer { get; @@ -31541,13 +31592,13 @@ namespace CefSharp.DevTools.CSS /// /// TakeComputedStyleUpdatesResponse /// - public class TakeComputedStyleUpdatesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class TakeComputedStyleUpdatesResponse : DevToolsDomainResponseBase { /// /// nodeIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -31561,13 +31612,13 @@ namespace CefSharp.DevTools.CSS /// /// SetKeyframeKeyResponse /// - public class SetKeyframeKeyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetKeyframeKeyResponse : DevToolsDomainResponseBase { /// /// keyText /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyText")] + [JsonInclude] + [JsonPropertyName("keyText")] public CefSharp.DevTools.CSS.Value KeyText { get; @@ -31581,13 +31632,13 @@ namespace CefSharp.DevTools.CSS /// /// SetMediaTextResponse /// - public class SetMediaTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetMediaTextResponse : DevToolsDomainResponseBase { /// /// media /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("media")] + [JsonInclude] + [JsonPropertyName("media")] public CefSharp.DevTools.CSS.CSSMedia Media { get; @@ -31601,13 +31652,13 @@ namespace CefSharp.DevTools.CSS /// /// SetContainerQueryTextResponse /// - public class SetContainerQueryTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetContainerQueryTextResponse : DevToolsDomainResponseBase { /// /// containerQuery /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("containerQuery")] + [JsonInclude] + [JsonPropertyName("containerQuery")] public CefSharp.DevTools.CSS.CSSContainerQuery ContainerQuery { get; @@ -31621,13 +31672,13 @@ namespace CefSharp.DevTools.CSS /// /// SetSupportsTextResponse /// - public class SetSupportsTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetSupportsTextResponse : DevToolsDomainResponseBase { /// /// supports /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("supports")] + [JsonInclude] + [JsonPropertyName("supports")] public CefSharp.DevTools.CSS.CSSSupports Supports { get; @@ -31641,13 +31692,13 @@ namespace CefSharp.DevTools.CSS /// /// SetScopeTextResponse /// - public class SetScopeTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetScopeTextResponse : DevToolsDomainResponseBase { /// /// scope /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scope")] + [JsonInclude] + [JsonPropertyName("scope")] public CefSharp.DevTools.CSS.CSSScope Scope { get; @@ -31661,13 +31712,13 @@ namespace CefSharp.DevTools.CSS /// /// SetRuleSelectorResponse /// - public class SetRuleSelectorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetRuleSelectorResponse : DevToolsDomainResponseBase { /// /// selectorList /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("selectorList")] + [JsonInclude] + [JsonPropertyName("selectorList")] public CefSharp.DevTools.CSS.SelectorList SelectorList { get; @@ -31681,13 +31732,13 @@ namespace CefSharp.DevTools.CSS /// /// SetStyleSheetTextResponse /// - public class SetStyleSheetTextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetStyleSheetTextResponse : DevToolsDomainResponseBase { /// /// sourceMapURL /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sourceMapURL")] + [JsonInclude] + [JsonPropertyName("sourceMapURL")] public string SourceMapURL { get; @@ -31701,13 +31752,13 @@ namespace CefSharp.DevTools.CSS /// /// SetStyleTextsResponse /// - public class SetStyleTextsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetStyleTextsResponse : DevToolsDomainResponseBase { /// /// styles /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("styles")] + [JsonInclude] + [JsonPropertyName("styles")] public System.Collections.Generic.IList Styles { get; @@ -31721,13 +31772,13 @@ namespace CefSharp.DevTools.CSS /// /// StopRuleUsageTrackingResponse /// - public class StopRuleUsageTrackingResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class StopRuleUsageTrackingResponse : DevToolsDomainResponseBase { /// /// ruleUsage /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ruleUsage")] + [JsonInclude] + [JsonPropertyName("ruleUsage")] public System.Collections.Generic.IList RuleUsage { get; @@ -31741,13 +31792,13 @@ namespace CefSharp.DevTools.CSS /// /// TakeCoverageDeltaResponse /// - public class TakeCoverageDeltaResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class TakeCoverageDeltaResponse : DevToolsDomainResponseBase { /// /// coverage /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("coverage")] + [JsonInclude] + [JsonPropertyName("coverage")] public System.Collections.Generic.IList Coverage { get; @@ -31757,8 +31808,8 @@ public System.Collections.Generic.IList Coverag /// /// timestamp /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -31793,7 +31844,7 @@ public CSSClient(CefSharp.DevTools.IDevToolsClient client) /// /// Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded - /// web font + /// web font. /// public event System.EventHandler FontsUpdated { @@ -32269,7 +32320,7 @@ public System.Threading.Tasks.Task StartRuleUsageTrackin /// /// Stop tracking rule usage and return the list of rules that were used since last call to - /// `takeCoverageDelta` (or since start of coverage instrumentation) + /// `takeCoverageDelta` (or since start of coverage instrumentation). /// /// returns System.Threading.Tasks.Task<StopRuleUsageTrackingResponse> public System.Threading.Tasks.Task StopRuleUsageTrackingAsync() @@ -32280,7 +32331,7 @@ public System.Threading.Tasks.Task StopRuleUsageT /// /// Obtain list of rules that became used since last call to this method (or since start of coverage - /// instrumentation) + /// instrumentation). /// /// returns System.Threading.Tasks.Task<TakeCoverageDeltaResponse> public System.Threading.Tasks.Task TakeCoverageDeltaAsync() @@ -32310,13 +32361,13 @@ namespace CefSharp.DevTools.CacheStorage /// /// RequestCacheNamesResponse /// - public class RequestCacheNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestCacheNamesResponse : DevToolsDomainResponseBase { /// /// caches /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("caches")] + [JsonInclude] + [JsonPropertyName("caches")] public System.Collections.Generic.IList Caches { get; @@ -32330,13 +32381,13 @@ namespace CefSharp.DevTools.CacheStorage /// /// RequestCachedResponseResponse /// - public class RequestCachedResponseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestCachedResponseResponse : DevToolsDomainResponseBase { /// /// response /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("response")] + [JsonInclude] + [JsonPropertyName("response")] public CefSharp.DevTools.CacheStorage.CachedResponse Response { get; @@ -32350,13 +32401,13 @@ namespace CefSharp.DevTools.CacheStorage /// /// RequestEntriesResponse /// - public class RequestEntriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestEntriesResponse : DevToolsDomainResponseBase { /// /// cacheDataEntries /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cacheDataEntries")] + [JsonInclude] + [JsonPropertyName("cacheDataEntries")] public System.Collections.Generic.IList CacheDataEntries { get; @@ -32366,8 +32417,8 @@ public System.Collections.Generic.IList /// returnCount /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("returnCount")] + [JsonInclude] + [JsonPropertyName("returnCount")] public double ReturnCount { get; @@ -32651,13 +32702,13 @@ namespace CefSharp.DevTools.DOM /// /// CollectClassNamesFromSubtreeResponse /// - public class CollectClassNamesFromSubtreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CollectClassNamesFromSubtreeResponse : DevToolsDomainResponseBase { /// /// classNames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("classNames")] + [JsonInclude] + [JsonPropertyName("classNames")] public string[] ClassNames { get; @@ -32671,13 +32722,13 @@ namespace CefSharp.DevTools.DOM /// /// CopyToResponse /// - public class CopyToResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CopyToResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -32691,13 +32742,13 @@ namespace CefSharp.DevTools.DOM /// /// DescribeNodeResponse /// - public class DescribeNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class DescribeNodeResponse : DevToolsDomainResponseBase { /// /// node /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("node")] + [JsonInclude] + [JsonPropertyName("node")] public CefSharp.DevTools.DOM.Node Node { get; @@ -32711,13 +32762,13 @@ namespace CefSharp.DevTools.DOM /// /// GetAttributesResponse /// - public class GetAttributesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetAttributesResponse : DevToolsDomainResponseBase { /// /// attributes /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("attributes")] + [JsonInclude] + [JsonPropertyName("attributes")] public string[] Attributes { get; @@ -32731,13 +32782,13 @@ namespace CefSharp.DevTools.DOM /// /// GetBoxModelResponse /// - public class GetBoxModelResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetBoxModelResponse : DevToolsDomainResponseBase { /// /// model /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("model")] + [JsonInclude] + [JsonPropertyName("model")] public CefSharp.DevTools.DOM.BoxModel Model { get; @@ -32751,13 +32802,13 @@ namespace CefSharp.DevTools.DOM /// /// GetContentQuadsResponse /// - public class GetContentQuadsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetContentQuadsResponse : DevToolsDomainResponseBase { /// /// quads /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("quads")] + [JsonInclude] + [JsonPropertyName("quads")] public double[] Quads { get; @@ -32771,13 +32822,13 @@ namespace CefSharp.DevTools.DOM /// /// GetDocumentResponse /// - public class GetDocumentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetDocumentResponse : DevToolsDomainResponseBase { /// /// root /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("root")] + [JsonInclude] + [JsonPropertyName("root")] public CefSharp.DevTools.DOM.Node Root { get; @@ -32791,13 +32842,13 @@ namespace CefSharp.DevTools.DOM /// /// GetNodesForSubtreeByStyleResponse /// - public class GetNodesForSubtreeByStyleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetNodesForSubtreeByStyleResponse : DevToolsDomainResponseBase { /// /// nodeIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -32811,13 +32862,13 @@ namespace CefSharp.DevTools.DOM /// /// GetNodeForLocationResponse /// - public class GetNodeForLocationResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetNodeForLocationResponse : DevToolsDomainResponseBase { /// /// backendNodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonInclude] + [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; @@ -32827,8 +32878,8 @@ public int BackendNodeId /// /// frameId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -32838,8 +32889,8 @@ public string FrameId /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int? NodeId { get; @@ -32853,13 +32904,13 @@ namespace CefSharp.DevTools.DOM /// /// GetOuterHTMLResponse /// - public class GetOuterHTMLResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetOuterHTMLResponse : DevToolsDomainResponseBase { /// /// outerHTML /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("outerHTML")] + [JsonInclude] + [JsonPropertyName("outerHTML")] public string OuterHTML { get; @@ -32873,13 +32924,13 @@ namespace CefSharp.DevTools.DOM /// /// GetRelayoutBoundaryResponse /// - public class GetRelayoutBoundaryResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetRelayoutBoundaryResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -32893,13 +32944,13 @@ namespace CefSharp.DevTools.DOM /// /// GetSearchResultsResponse /// - public class GetSearchResultsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetSearchResultsResponse : DevToolsDomainResponseBase { /// /// nodeIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -32913,13 +32964,13 @@ namespace CefSharp.DevTools.DOM /// /// MoveToResponse /// - public class MoveToResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class MoveToResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -32933,13 +32984,13 @@ namespace CefSharp.DevTools.DOM /// /// PerformSearchResponse /// - public class PerformSearchResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class PerformSearchResponse : DevToolsDomainResponseBase { /// /// searchId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("searchId")] + [JsonInclude] + [JsonPropertyName("searchId")] public string SearchId { get; @@ -32949,8 +33000,8 @@ public string SearchId /// /// resultCount /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resultCount")] + [JsonInclude] + [JsonPropertyName("resultCount")] public int ResultCount { get; @@ -32964,13 +33015,13 @@ namespace CefSharp.DevTools.DOM /// /// PushNodeByPathToFrontendResponse /// - public class PushNodeByPathToFrontendResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class PushNodeByPathToFrontendResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -32984,13 +33035,13 @@ namespace CefSharp.DevTools.DOM /// /// PushNodesByBackendIdsToFrontendResponse /// - public class PushNodesByBackendIdsToFrontendResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class PushNodesByBackendIdsToFrontendResponse : DevToolsDomainResponseBase { /// /// nodeIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -33004,13 +33055,13 @@ namespace CefSharp.DevTools.DOM /// /// QuerySelectorResponse /// - public class QuerySelectorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class QuerySelectorResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -33024,13 +33075,13 @@ namespace CefSharp.DevTools.DOM /// /// QuerySelectorAllResponse /// - public class QuerySelectorAllResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class QuerySelectorAllResponse : DevToolsDomainResponseBase { /// /// nodeIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -33044,13 +33095,13 @@ namespace CefSharp.DevTools.DOM /// /// GetTopLayerElementsResponse /// - public class GetTopLayerElementsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetTopLayerElementsResponse : DevToolsDomainResponseBase { /// /// nodeIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -33064,13 +33115,13 @@ namespace CefSharp.DevTools.DOM /// /// RequestNodeResponse /// - public class RequestNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestNodeResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -33084,13 +33135,13 @@ namespace CefSharp.DevTools.DOM /// /// ResolveNodeResponse /// - public class ResolveNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ResolveNodeResponse : DevToolsDomainResponseBase { /// /// object /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("object")] + [JsonInclude] + [JsonPropertyName("object")] public CefSharp.DevTools.Runtime.RemoteObject Object { get; @@ -33104,13 +33155,13 @@ namespace CefSharp.DevTools.DOM /// /// GetNodeStackTracesResponse /// - public class GetNodeStackTracesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetNodeStackTracesResponse : DevToolsDomainResponseBase { /// /// creation /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("creation")] + [JsonInclude] + [JsonPropertyName("creation")] public CefSharp.DevTools.Runtime.StackTrace Creation { get; @@ -33124,13 +33175,13 @@ namespace CefSharp.DevTools.DOM /// /// GetFileInfoResponse /// - public class GetFileInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetFileInfoResponse : DevToolsDomainResponseBase { /// /// path /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("path")] + [JsonInclude] + [JsonPropertyName("path")] public string Path { get; @@ -33144,13 +33195,13 @@ namespace CefSharp.DevTools.DOM /// /// SetNodeNameResponse /// - public class SetNodeNameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetNodeNameResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int NodeId { get; @@ -33164,13 +33215,13 @@ namespace CefSharp.DevTools.DOM /// /// GetFrameOwnerResponse /// - public class GetFrameOwnerResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetFrameOwnerResponse : DevToolsDomainResponseBase { /// /// backendNodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("backendNodeId")] + [JsonInclude] + [JsonPropertyName("backendNodeId")] public int BackendNodeId { get; @@ -33180,8 +33231,8 @@ public int BackendNodeId /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int? NodeId { get; @@ -33195,13 +33246,13 @@ namespace CefSharp.DevTools.DOM /// /// GetContainerForNodeResponse /// - public class GetContainerForNodeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetContainerForNodeResponse : DevToolsDomainResponseBase { /// /// nodeId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeId")] + [JsonInclude] + [JsonPropertyName("nodeId")] public int? NodeId { get; @@ -33215,13 +33266,13 @@ namespace CefSharp.DevTools.DOM /// /// GetQueryingDescendantsForContainerResponse /// - public class GetQueryingDescendantsForContainerResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetQueryingDescendantsForContainerResponse : DevToolsDomainResponseBase { /// /// nodeIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodeIds")] + [JsonInclude] + [JsonPropertyName("nodeIds")] public int[] NodeIds { get; @@ -33242,12 +33293,12 @@ public enum EnableIncludeWhitespace /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None, /// /// all /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("all")] + [JsonPropertyName("all")] All } @@ -33782,6 +33833,7 @@ public System.Threading.Tasks.Task GetContentQuadsAsync partial void ValidateGetDocument(int? depth = null, bool? pierce = null); /// /// Returns the root DOM node (and optionally the subtree) to the caller. + /// Implicitly enables the DOM domain events for the current target. /// /// The maximum depth at which children should be retrieved, defaults to 1. Use -1 for theentire subtree or provide an integer larger than 0. /// Whether or not iframes and shadow roots should be traversed when returning the subtree(default is false). @@ -34452,13 +34504,13 @@ namespace CefSharp.DevTools.DOMDebugger /// /// GetEventListenersResponse /// - public class GetEventListenersResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetEventListenersResponse : DevToolsDomainResponseBase { /// /// listeners /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("listeners")] + [JsonInclude] + [JsonPropertyName("listeners")] public System.Collections.Generic.IList Listeners { get; @@ -34714,13 +34766,13 @@ namespace CefSharp.DevTools.DOMSnapshot /// /// CaptureSnapshotResponse /// - public class CaptureSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CaptureSnapshotResponse : DevToolsDomainResponseBase { /// /// documents /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documents")] + [JsonInclude] + [JsonPropertyName("documents")] public System.Collections.Generic.IList Documents { get; @@ -34730,8 +34782,8 @@ public System.Collections.Generic.IList /// strings /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("strings")] + [JsonInclude] + [JsonPropertyName("strings")] public string[] Strings { get; @@ -34827,13 +34879,13 @@ namespace CefSharp.DevTools.DOMStorage /// /// GetDOMStorageItemsResponse /// - public class GetDOMStorageItemsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetDOMStorageItemsResponse : DevToolsDomainResponseBase { /// /// entries /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + [JsonInclude] + [JsonPropertyName("entries")] public string[] Entries { get; @@ -35014,13 +35066,13 @@ namespace CefSharp.DevTools.Database /// /// ExecuteSQLResponse /// - public class ExecuteSQLResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ExecuteSQLResponse : DevToolsDomainResponseBase { /// /// columnNames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("columnNames")] + [JsonInclude] + [JsonPropertyName("columnNames")] public string[] ColumnNames { get; @@ -35030,8 +35082,8 @@ public string[] ColumnNames /// /// values /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("values")] + [JsonInclude] + [JsonPropertyName("values")] public object[] Values { get; @@ -35041,8 +35093,8 @@ public object[] Values /// /// sqlError /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sqlError")] + [JsonInclude] + [JsonPropertyName("sqlError")] public CefSharp.DevTools.Database.Error SqlError { get; @@ -35056,13 +35108,13 @@ namespace CefSharp.DevTools.Database /// /// GetDatabaseTableNamesResponse /// - public class GetDatabaseTableNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetDatabaseTableNamesResponse : DevToolsDomainResponseBase { /// /// tableNames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tableNames")] + [JsonInclude] + [JsonPropertyName("tableNames")] public string[] TableNames { get; @@ -35212,13 +35264,13 @@ namespace CefSharp.DevTools.Emulation /// /// CanEmulateResponse /// - public class CanEmulateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CanEmulateResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public bool Result { get; @@ -35232,13 +35284,13 @@ namespace CefSharp.DevTools.Emulation /// /// SetVirtualTimePolicyResponse /// - public class SetVirtualTimePolicyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetVirtualTimePolicyResponse : DevToolsDomainResponseBase { /// /// virtualTimeTicksBase /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("virtualTimeTicksBase")] + [JsonInclude] + [JsonPropertyName("virtualTimeTicksBase")] public double VirtualTimeTicksBase { get; @@ -35259,49 +35311,55 @@ public enum SetEmitTouchEventsForMouseConfiguration /// /// mobile /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mobile")] + [JsonPropertyName("mobile")] Mobile, /// /// desktop /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("desktop")] + [JsonPropertyName("desktop")] Desktop } /// - /// Vision deficiency to emulate. + /// Vision deficiency to emulate. Order: best-effort emulations come first, followed by any + /// physiologically accurate emulations for medically recognized color vision deficiencies. /// public enum SetEmulatedVisionDeficiencyType { /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None, /// - /// achromatopsia - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("achromatopsia")] - Achromatopsia, - /// /// blurredVision /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("blurredVision")] + [JsonPropertyName("blurredVision")] BlurredVision, /// + /// reducedContrast + /// + [JsonPropertyName("reducedContrast")] + ReducedContrast, + /// + /// achromatopsia + /// + [JsonPropertyName("achromatopsia")] + Achromatopsia, + /// /// deuteranopia /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("deuteranopia")] + [JsonPropertyName("deuteranopia")] Deuteranopia, /// /// protanopia /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("protanopia")] + [JsonPropertyName("protanopia")] Protanopia, /// /// tritanopia /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tritanopia")] + [JsonPropertyName("tritanopia")] Tritanopia } @@ -35593,7 +35651,7 @@ public System.Threading.Tasks.Task SetEmulatedMediaAsync /// /// Emulates the given vision deficiency. /// - /// Vision deficiency to emulate. + /// Vision deficiency to emulate. Order: best-effort emulations come first, followed by anyphysiologically accurate emulations for medically recognized color vision deficiencies. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> public System.Threading.Tasks.Task SetEmulatedVisionDeficiencyAsync(CefSharp.DevTools.Emulation.SetEmulatedVisionDeficiencyType type) { @@ -35854,13 +35912,13 @@ namespace CefSharp.DevTools.HeadlessExperimental /// /// BeginFrameResponse /// - public class BeginFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class BeginFrameResponse : DevToolsDomainResponseBase { /// /// hasDamage /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasDamage")] + [JsonInclude] + [JsonPropertyName("hasDamage")] public bool HasDamage { get; @@ -35870,8 +35928,8 @@ public bool HasDamage /// /// screenshotData /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("screenshotData")] + [JsonInclude] + [JsonPropertyName("screenshotData")] public byte[] ScreenshotData { get; @@ -35945,13 +36003,13 @@ namespace CefSharp.DevTools.IO /// /// ReadResponse /// - public class ReadResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ReadResponse : DevToolsDomainResponseBase { /// /// base64Encoded /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + [JsonInclude] + [JsonPropertyName("base64Encoded")] public bool? Base64Encoded { get; @@ -35961,8 +36019,8 @@ public bool? Base64Encoded /// /// data /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] public string Data { get; @@ -35972,8 +36030,8 @@ public string Data /// /// eof /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("eof")] + [JsonInclude] + [JsonPropertyName("eof")] public bool Eof { get; @@ -35987,13 +36045,13 @@ namespace CefSharp.DevTools.IO /// /// ResolveBlobResponse /// - public class ResolveBlobResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ResolveBlobResponse : DevToolsDomainResponseBase { /// /// uuid /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("uuid")] + [JsonInclude] + [JsonPropertyName("uuid")] public string Uuid { get; @@ -36082,13 +36140,13 @@ namespace CefSharp.DevTools.IndexedDB /// /// RequestDataResponse /// - public class RequestDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestDataResponse : DevToolsDomainResponseBase { /// /// objectStoreDataEntries /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("objectStoreDataEntries")] + [JsonInclude] + [JsonPropertyName("objectStoreDataEntries")] public System.Collections.Generic.IList ObjectStoreDataEntries { get; @@ -36098,8 +36156,8 @@ public System.Collections.Generic.IList O /// /// hasMore /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("hasMore")] + [JsonInclude] + [JsonPropertyName("hasMore")] public bool HasMore { get; @@ -36113,13 +36171,13 @@ namespace CefSharp.DevTools.IndexedDB /// /// GetMetadataResponse /// - public class GetMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetMetadataResponse : DevToolsDomainResponseBase { /// /// entriesCount /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("entriesCount")] + [JsonInclude] + [JsonPropertyName("entriesCount")] public double EntriesCount { get; @@ -36129,8 +36187,8 @@ public double EntriesCount /// /// keyGeneratorValue /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyGeneratorValue")] + [JsonInclude] + [JsonPropertyName("keyGeneratorValue")] public double KeyGeneratorValue { get; @@ -36144,13 +36202,13 @@ namespace CefSharp.DevTools.IndexedDB /// /// RequestDatabaseResponse /// - public class RequestDatabaseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestDatabaseResponse : DevToolsDomainResponseBase { /// /// databaseWithObjectStores /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("databaseWithObjectStores")] + [JsonInclude] + [JsonPropertyName("databaseWithObjectStores")] public CefSharp.DevTools.IndexedDB.DatabaseWithObjectStores DatabaseWithObjectStores { get; @@ -36164,13 +36222,13 @@ namespace CefSharp.DevTools.IndexedDB /// /// RequestDatabaseNamesResponse /// - public class RequestDatabaseNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestDatabaseNamesResponse : DevToolsDomainResponseBase { /// /// databaseNames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("databaseNames")] + [JsonInclude] + [JsonPropertyName("databaseNames")] public string[] DatabaseNames { get; @@ -36344,7 +36402,7 @@ public System.Threading.Tasks.Task RequestDataAsync(string partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); /// - /// Gets metadata of an object store + /// Gets metadata of an object store. /// /// Database name. /// Object store name. @@ -36434,22 +36492,22 @@ public enum DispatchDragEventType /// /// dragEnter /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dragEnter")] + [JsonPropertyName("dragEnter")] DragEnter, /// /// dragOver /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dragOver")] + [JsonPropertyName("dragOver")] DragOver, /// /// drop /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("drop")] + [JsonPropertyName("drop")] Drop, /// /// dragCancel /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dragCancel")] + [JsonPropertyName("dragCancel")] DragCancel } @@ -36461,22 +36519,22 @@ public enum DispatchKeyEventType /// /// keyDown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyDown")] + [JsonPropertyName("keyDown")] KeyDown, /// /// keyUp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("keyUp")] + [JsonPropertyName("keyUp")] KeyUp, /// /// rawKeyDown /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("rawKeyDown")] + [JsonPropertyName("rawKeyDown")] RawKeyDown, /// /// char /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("char")] + [JsonPropertyName("char")] Char } @@ -36488,22 +36546,22 @@ public enum DispatchMouseEventType /// /// mousePressed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mousePressed")] + [JsonPropertyName("mousePressed")] MousePressed, /// /// mouseReleased /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouseReleased")] + [JsonPropertyName("mouseReleased")] MouseReleased, /// /// mouseMoved /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouseMoved")] + [JsonPropertyName("mouseMoved")] MouseMoved, /// /// mouseWheel /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouseWheel")] + [JsonPropertyName("mouseWheel")] MouseWheel } @@ -36515,12 +36573,12 @@ public enum DispatchMouseEventPointerType /// /// mouse /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouse")] + [JsonPropertyName("mouse")] Mouse, /// /// pen /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("pen")] + [JsonPropertyName("pen")] Pen } @@ -36533,22 +36591,22 @@ public enum DispatchTouchEventType /// /// touchStart /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("touchStart")] + [JsonPropertyName("touchStart")] TouchStart, /// /// touchEnd /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("touchEnd")] + [JsonPropertyName("touchEnd")] TouchEnd, /// /// touchMove /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("touchMove")] + [JsonPropertyName("touchMove")] TouchMove, /// /// touchCancel /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("touchCancel")] + [JsonPropertyName("touchCancel")] TouchCancel } @@ -36560,22 +36618,22 @@ public enum EmulateTouchFromMouseEventType /// /// mousePressed /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mousePressed")] + [JsonPropertyName("mousePressed")] MousePressed, /// /// mouseReleased /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouseReleased")] + [JsonPropertyName("mouseReleased")] MouseReleased, /// /// mouseMoved /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouseMoved")] + [JsonPropertyName("mouseMoved")] MouseMoved, /// /// mouseWheel /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mouseWheel")] + [JsonPropertyName("mouseWheel")] MouseWheel } @@ -37221,13 +37279,13 @@ namespace CefSharp.DevTools.LayerTree /// /// CompositingReasonsResponse /// - public class CompositingReasonsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CompositingReasonsResponse : DevToolsDomainResponseBase { /// /// compositingReasons /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("compositingReasons")] + [JsonInclude] + [JsonPropertyName("compositingReasons")] public string[] CompositingReasons { get; @@ -37237,8 +37295,8 @@ public string[] CompositingReasons /// /// compositingReasonIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("compositingReasonIds")] + [JsonInclude] + [JsonPropertyName("compositingReasonIds")] public string[] CompositingReasonIds { get; @@ -37252,13 +37310,13 @@ namespace CefSharp.DevTools.LayerTree /// /// LoadSnapshotResponse /// - public class LoadSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class LoadSnapshotResponse : DevToolsDomainResponseBase { /// /// snapshotId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("snapshotId")] + [JsonInclude] + [JsonPropertyName("snapshotId")] public string SnapshotId { get; @@ -37272,13 +37330,13 @@ namespace CefSharp.DevTools.LayerTree /// /// MakeSnapshotResponse /// - public class MakeSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class MakeSnapshotResponse : DevToolsDomainResponseBase { /// /// snapshotId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("snapshotId")] + [JsonInclude] + [JsonPropertyName("snapshotId")] public string SnapshotId { get; @@ -37292,13 +37350,13 @@ namespace CefSharp.DevTools.LayerTree /// /// ProfileSnapshotResponse /// - public class ProfileSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ProfileSnapshotResponse : DevToolsDomainResponseBase { /// /// timings /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timings")] + [JsonInclude] + [JsonPropertyName("timings")] public double[] Timings { get; @@ -37312,13 +37370,13 @@ namespace CefSharp.DevTools.LayerTree /// /// ReplaySnapshotResponse /// - public class ReplaySnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ReplaySnapshotResponse : DevToolsDomainResponseBase { /// /// dataURL /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dataURL")] + [JsonInclude] + [JsonPropertyName("dataURL")] public string DataURL { get; @@ -37332,13 +37390,13 @@ namespace CefSharp.DevTools.LayerTree /// /// SnapshotCommandLogResponse /// - public class SnapshotCommandLogResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SnapshotCommandLogResponse : DevToolsDomainResponseBase { /// /// commandLog /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("commandLog")] + [JsonInclude] + [JsonPropertyName("commandLog")] public System.Collections.Generic.IList CommandLog { get; @@ -37651,13 +37709,13 @@ namespace CefSharp.DevTools.Memory /// /// GetDOMCountersResponse /// - public class GetDOMCountersResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetDOMCountersResponse : DevToolsDomainResponseBase { /// /// documents /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("documents")] + [JsonInclude] + [JsonPropertyName("documents")] public int Documents { get; @@ -37667,8 +37725,8 @@ public int Documents /// /// nodes /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("nodes")] + [JsonInclude] + [JsonPropertyName("nodes")] public int Nodes { get; @@ -37678,8 +37736,8 @@ public int Nodes /// /// jsEventListeners /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jsEventListeners")] + [JsonInclude] + [JsonPropertyName("jsEventListeners")] public int JsEventListeners { get; @@ -37693,13 +37751,13 @@ namespace CefSharp.DevTools.Memory /// /// GetAllTimeSamplingProfileResponse /// - public class GetAllTimeSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetAllTimeSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonInclude] + [JsonPropertyName("profile")] public CefSharp.DevTools.Memory.SamplingProfile Profile { get; @@ -37713,13 +37771,13 @@ namespace CefSharp.DevTools.Memory /// /// GetBrowserSamplingProfileResponse /// - public class GetBrowserSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetBrowserSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonInclude] + [JsonPropertyName("profile")] public CefSharp.DevTools.Memory.SamplingProfile Profile { get; @@ -37733,13 +37791,13 @@ namespace CefSharp.DevTools.Memory /// /// GetSamplingProfileResponse /// - public class GetSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonInclude] + [JsonPropertyName("profile")] public CefSharp.DevTools.Memory.SamplingProfile Profile { get; @@ -37899,13 +37957,13 @@ namespace CefSharp.DevTools.Network /// /// GetCertificateResponse /// - public class GetCertificateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCertificateResponse : DevToolsDomainResponseBase { /// /// tableNames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tableNames")] + [JsonInclude] + [JsonPropertyName("tableNames")] public string[] TableNames { get; @@ -37919,13 +37977,13 @@ namespace CefSharp.DevTools.Network /// /// GetCookiesResponse /// - public class GetCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCookiesResponse : DevToolsDomainResponseBase { /// /// cookies /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] + [JsonInclude] + [JsonPropertyName("cookies")] public System.Collections.Generic.IList Cookies { get; @@ -37939,13 +37997,13 @@ namespace CefSharp.DevTools.Network /// /// GetResponseBodyResponse /// - public class GetResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetResponseBodyResponse : DevToolsDomainResponseBase { /// /// body /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + [JsonInclude] + [JsonPropertyName("body")] public string Body { get; @@ -37955,8 +38013,8 @@ public string Body /// /// base64Encoded /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + [JsonInclude] + [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; @@ -37970,13 +38028,13 @@ namespace CefSharp.DevTools.Network /// /// GetRequestPostDataResponse /// - public class GetRequestPostDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetRequestPostDataResponse : DevToolsDomainResponseBase { /// /// postData /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("postData")] + [JsonInclude] + [JsonPropertyName("postData")] public string PostData { get; @@ -37990,13 +38048,13 @@ namespace CefSharp.DevTools.Network /// /// GetResponseBodyForInterceptionResponse /// - public class GetResponseBodyForInterceptionResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetResponseBodyForInterceptionResponse : DevToolsDomainResponseBase { /// /// body /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + [JsonInclude] + [JsonPropertyName("body")] public string Body { get; @@ -38006,8 +38064,8 @@ public string Body /// /// base64Encoded /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + [JsonInclude] + [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; @@ -38021,13 +38079,13 @@ namespace CefSharp.DevTools.Network /// /// TakeResponseBodyForInterceptionAsStreamResponse /// - public class TakeResponseBodyForInterceptionAsStreamResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class TakeResponseBodyForInterceptionAsStreamResponse : DevToolsDomainResponseBase { /// /// stream /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + [JsonInclude] + [JsonPropertyName("stream")] public string Stream { get; @@ -38041,13 +38099,13 @@ namespace CefSharp.DevTools.Network /// /// SearchInResponseBodyResponse /// - public class SearchInResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SearchInResponseBodyResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; @@ -38061,13 +38119,13 @@ namespace CefSharp.DevTools.Network /// /// SetCookieResponse /// - public class SetCookieResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetCookieResponse : DevToolsDomainResponseBase { /// /// success /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + [JsonInclude] + [JsonPropertyName("success")] public bool Success { get; @@ -38081,13 +38139,13 @@ namespace CefSharp.DevTools.Network /// /// GetSecurityIsolationStatusResponse /// - public class GetSecurityIsolationStatusResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetSecurityIsolationStatusResponse : DevToolsDomainResponseBase { /// /// status /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonInclude] + [JsonPropertyName("status")] public CefSharp.DevTools.Network.SecurityIsolationStatus Status { get; @@ -38101,13 +38159,13 @@ namespace CefSharp.DevTools.Network /// /// LoadNetworkResourceResponse /// - public class LoadNetworkResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class LoadNetworkResourceResponse : DevToolsDomainResponseBase { /// /// resource /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("resource")] + [JsonInclude] + [JsonPropertyName("resource")] public CefSharp.DevTools.Network.LoadNetworkResourcePageResult Resource { get; @@ -39155,13 +39213,13 @@ namespace CefSharp.DevTools.Overlay /// /// GetHighlightObjectForTestResponse /// - public class GetHighlightObjectForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetHighlightObjectForTestResponse : DevToolsDomainResponseBase { /// /// highlight /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("highlight")] + [JsonInclude] + [JsonPropertyName("highlight")] public object Highlight { get; @@ -39175,13 +39233,13 @@ namespace CefSharp.DevTools.Overlay /// /// GetGridHighlightObjectsForTestResponse /// - public class GetGridHighlightObjectsForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetGridHighlightObjectsForTestResponse : DevToolsDomainResponseBase { /// /// highlights /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("highlights")] + [JsonInclude] + [JsonPropertyName("highlights")] public object Highlights { get; @@ -39195,13 +39253,13 @@ namespace CefSharp.DevTools.Overlay /// /// GetSourceOrderHighlightObjectForTestResponse /// - public class GetSourceOrderHighlightObjectForTestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetSourceOrderHighlightObjectForTestResponse : DevToolsDomainResponseBase { /// /// highlight /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("highlight")] + [JsonInclude] + [JsonPropertyName("highlight")] public object Highlight { get; @@ -39766,13 +39824,13 @@ namespace CefSharp.DevTools.Page /// /// AddScriptToEvaluateOnNewDocumentResponse /// - public class AddScriptToEvaluateOnNewDocumentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class AddScriptToEvaluateOnNewDocumentResponse : DevToolsDomainResponseBase { /// /// identifier /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("identifier")] + [JsonInclude] + [JsonPropertyName("identifier")] public string Identifier { get; @@ -39786,13 +39844,13 @@ namespace CefSharp.DevTools.Page /// /// CaptureScreenshotResponse /// - public class CaptureScreenshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CaptureScreenshotResponse : DevToolsDomainResponseBase { /// /// data /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] public byte[] Data { get; @@ -39806,13 +39864,13 @@ namespace CefSharp.DevTools.Page /// /// CaptureSnapshotResponse /// - public class CaptureSnapshotResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CaptureSnapshotResponse : DevToolsDomainResponseBase { /// /// data /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] public string Data { get; @@ -39826,13 +39884,13 @@ namespace CefSharp.DevTools.Page /// /// CreateIsolatedWorldResponse /// - public class CreateIsolatedWorldResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CreateIsolatedWorldResponse : DevToolsDomainResponseBase { /// /// executionContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("executionContextId")] + [JsonInclude] + [JsonPropertyName("executionContextId")] public int ExecutionContextId { get; @@ -39846,13 +39904,13 @@ namespace CefSharp.DevTools.Page /// /// GetAppManifestResponse /// - public class GetAppManifestResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetAppManifestResponse : DevToolsDomainResponseBase { /// /// url /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("url")] + [JsonInclude] + [JsonPropertyName("url")] public string Url { get; @@ -39862,8 +39920,8 @@ public string Url /// /// errors /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errors")] + [JsonInclude] + [JsonPropertyName("errors")] public System.Collections.Generic.IList Errors { get; @@ -39873,8 +39931,8 @@ public System.Collections.Generic.IList /// /// data /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] public string Data { get; @@ -39884,8 +39942,8 @@ public string Data /// /// parsed /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("parsed")] + [JsonInclude] + [JsonPropertyName("parsed")] public CefSharp.DevTools.Page.AppManifestParsedProperties Parsed { get; @@ -39899,13 +39957,13 @@ namespace CefSharp.DevTools.Page /// /// GetInstallabilityErrorsResponse /// - public class GetInstallabilityErrorsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetInstallabilityErrorsResponse : DevToolsDomainResponseBase { /// /// installabilityErrors /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("installabilityErrors")] + [JsonInclude] + [JsonPropertyName("installabilityErrors")] public System.Collections.Generic.IList InstallabilityErrors { get; @@ -39914,38 +39972,18 @@ public System.Collections.Generic.IList - /// GetManifestIconsResponse - /// - public class GetManifestIconsResponse : CefSharp.DevTools.DevToolsDomainResponseBase - { - /// - /// primaryIcon - /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("primaryIcon")] - public byte[] PrimaryIcon - { - get; - private set; - } - } -} - namespace CefSharp.DevTools.Page { /// /// GetAppIdResponse /// - public class GetAppIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetAppIdResponse : DevToolsDomainResponseBase { /// /// appId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("appId")] + [JsonInclude] + [JsonPropertyName("appId")] public string AppId { get; @@ -39955,8 +39993,8 @@ public string AppId /// /// recommendedId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("recommendedId")] + [JsonInclude] + [JsonPropertyName("recommendedId")] public string RecommendedId { get; @@ -39970,13 +40008,13 @@ namespace CefSharp.DevTools.Page /// /// GetAdScriptIdResponse /// - public class GetAdScriptIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetAdScriptIdResponse : DevToolsDomainResponseBase { /// /// adScriptId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("adScriptId")] + [JsonInclude] + [JsonPropertyName("adScriptId")] public CefSharp.DevTools.Page.AdScriptId AdScriptId { get; @@ -39990,13 +40028,13 @@ namespace CefSharp.DevTools.Page /// /// GetFrameTreeResponse /// - public class GetFrameTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetFrameTreeResponse : DevToolsDomainResponseBase { /// /// frameTree /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameTree")] + [JsonInclude] + [JsonPropertyName("frameTree")] public CefSharp.DevTools.Page.FrameTree FrameTree { get; @@ -40010,13 +40048,13 @@ namespace CefSharp.DevTools.Page /// /// GetLayoutMetricsResponse /// - public class GetLayoutMetricsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetLayoutMetricsResponse : DevToolsDomainResponseBase { /// /// layoutViewport /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("layoutViewport")] + [JsonInclude] + [JsonPropertyName("layoutViewport")] public CefSharp.DevTools.Page.LayoutViewport LayoutViewport { get; @@ -40026,8 +40064,8 @@ public CefSharp.DevTools.Page.LayoutViewport LayoutViewport /// /// visualViewport /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("visualViewport")] + [JsonInclude] + [JsonPropertyName("visualViewport")] public CefSharp.DevTools.Page.VisualViewport VisualViewport { get; @@ -40037,8 +40075,8 @@ public CefSharp.DevTools.Page.VisualViewport VisualViewport /// /// contentSize /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("contentSize")] + [JsonInclude] + [JsonPropertyName("contentSize")] public CefSharp.DevTools.DOM.Rect ContentSize { get; @@ -40048,8 +40086,8 @@ public CefSharp.DevTools.DOM.Rect ContentSize /// /// cssLayoutViewport /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssLayoutViewport")] + [JsonInclude] + [JsonPropertyName("cssLayoutViewport")] public CefSharp.DevTools.Page.LayoutViewport CssLayoutViewport { get; @@ -40059,8 +40097,8 @@ public CefSharp.DevTools.Page.LayoutViewport CssLayoutViewport /// /// cssVisualViewport /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssVisualViewport")] + [JsonInclude] + [JsonPropertyName("cssVisualViewport")] public CefSharp.DevTools.Page.VisualViewport CssVisualViewport { get; @@ -40070,8 +40108,8 @@ public CefSharp.DevTools.Page.VisualViewport CssVisualViewport /// /// cssContentSize /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cssContentSize")] + [JsonInclude] + [JsonPropertyName("cssContentSize")] public CefSharp.DevTools.DOM.Rect CssContentSize { get; @@ -40085,13 +40123,13 @@ namespace CefSharp.DevTools.Page /// /// GetNavigationHistoryResponse /// - public class GetNavigationHistoryResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetNavigationHistoryResponse : DevToolsDomainResponseBase { /// /// currentIndex /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("currentIndex")] + [JsonInclude] + [JsonPropertyName("currentIndex")] public int CurrentIndex { get; @@ -40101,8 +40139,8 @@ public int CurrentIndex /// /// entries /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + [JsonInclude] + [JsonPropertyName("entries")] public System.Collections.Generic.IList Entries { get; @@ -40116,13 +40154,13 @@ namespace CefSharp.DevTools.Page /// /// GetResourceContentResponse /// - public class GetResourceContentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetResourceContentResponse : DevToolsDomainResponseBase { /// /// content /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("content")] + [JsonInclude] + [JsonPropertyName("content")] public string Content { get; @@ -40132,8 +40170,8 @@ public string Content /// /// base64Encoded /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + [JsonInclude] + [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; @@ -40147,13 +40185,13 @@ namespace CefSharp.DevTools.Page /// /// GetResourceTreeResponse /// - public class GetResourceTreeResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetResourceTreeResponse : DevToolsDomainResponseBase { /// /// frameTree /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameTree")] + [JsonInclude] + [JsonPropertyName("frameTree")] public CefSharp.DevTools.Page.FrameResourceTree FrameTree { get; @@ -40167,13 +40205,13 @@ namespace CefSharp.DevTools.Page /// /// NavigateResponse /// - public class NavigateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class NavigateResponse : DevToolsDomainResponseBase { /// /// frameId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frameId")] + [JsonInclude] + [JsonPropertyName("frameId")] public string FrameId { get; @@ -40183,8 +40221,8 @@ public string FrameId /// /// loaderId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("loaderId")] + [JsonInclude] + [JsonPropertyName("loaderId")] public string LoaderId { get; @@ -40194,8 +40232,8 @@ public string LoaderId /// /// errorText /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("errorText")] + [JsonInclude] + [JsonPropertyName("errorText")] public string ErrorText { get; @@ -40209,13 +40247,13 @@ namespace CefSharp.DevTools.Page /// /// PrintToPDFResponse /// - public class PrintToPDFResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class PrintToPDFResponse : DevToolsDomainResponseBase { /// /// data /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("data")] + [JsonInclude] + [JsonPropertyName("data")] public byte[] Data { get; @@ -40225,8 +40263,8 @@ public byte[] Data /// /// stream /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + [JsonInclude] + [JsonPropertyName("stream")] public string Stream { get; @@ -40240,13 +40278,13 @@ namespace CefSharp.DevTools.Page /// /// SearchInResourceResponse /// - public class SearchInResourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SearchInResourceResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; @@ -40260,13 +40298,13 @@ namespace CefSharp.DevTools.Page /// /// GetPermissionsPolicyStateResponse /// - public class GetPermissionsPolicyStateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetPermissionsPolicyStateResponse : DevToolsDomainResponseBase { /// /// states /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("states")] + [JsonInclude] + [JsonPropertyName("states")] public System.Collections.Generic.IList States { get; @@ -40280,13 +40318,13 @@ namespace CefSharp.DevTools.Page /// /// GetOriginTrialsResponse /// - public class GetOriginTrialsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetOriginTrialsResponse : DevToolsDomainResponseBase { /// /// originTrials /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("originTrials")] + [JsonInclude] + [JsonPropertyName("originTrials")] public System.Collections.Generic.IList OriginTrials { get; @@ -40307,17 +40345,17 @@ public enum CaptureScreenshotFormat /// /// jpeg /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jpeg")] + [JsonPropertyName("jpeg")] Jpeg, /// /// png /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("png")] + [JsonPropertyName("png")] Png, /// /// webp /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("webp")] + [JsonPropertyName("webp")] Webp } @@ -40329,7 +40367,7 @@ public enum CaptureSnapshotFormat /// /// mhtml /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("mhtml")] + [JsonPropertyName("mhtml")] Mhtml } @@ -40341,12 +40379,12 @@ public enum PrintToPDFTransferMode /// /// ReturnAsBase64 /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ReturnAsBase64")] + [JsonPropertyName("ReturnAsBase64")] ReturnAsBase64, /// /// ReturnAsStream /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ReturnAsStream")] + [JsonPropertyName("ReturnAsStream")] ReturnAsStream } @@ -40358,12 +40396,12 @@ public enum StartScreencastFormat /// /// jpeg /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("jpeg")] + [JsonPropertyName("jpeg")] Jpeg, /// /// png /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("png")] + [JsonPropertyName("png")] Png } @@ -40375,42 +40413,15 @@ public enum SetWebLifecycleStateState /// /// frozen /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("frozen")] + [JsonPropertyName("frozen")] Frozen, /// /// active /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("active")] + [JsonPropertyName("active")] Active } - /// - /// SetSPCTransactionModeMode - /// - public enum SetSPCTransactionModeMode - { - /// - /// none - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] - None, - /// - /// autoAccept - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoAccept")] - AutoAccept, - /// - /// autoReject - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoReject")] - AutoReject, - /// - /// autoOptOut - /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("autoOptOut")] - AutoOptOut - } - /// /// Actions and events related to the inspected page belong to the page domain. /// @@ -40704,6 +40715,40 @@ public event System.EventHandler PrerenderAt } } + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prefetch attempt is updated. + /// + public event System.EventHandler PrefetchStatusUpdated + { + add + { + _client.AddEventHandler("Page.prefetchStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Page.prefetchStatusUpdated", value); + } + } + + /// + /// TODO(crbug/1384419): Create a dedicated domain for preloading. + /// Fired when a prerender attempt is updated. + /// + public event System.EventHandler PrerenderStatusUpdated + { + add + { + _client.AddEventHandler("Page.prerenderStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Page.prerenderStatusUpdated", value); + } + } + /// /// LoadEventFired /// @@ -40971,16 +41016,6 @@ public System.Threading.Tasks.Task GetInstallab return _client.ExecuteDevToolsMethodAsync("Page.getInstallabilityErrors", dict); } - /// - /// GetManifestIcons - /// - /// returns System.Threading.Tasks.Task<GetManifestIconsResponse> - public System.Threading.Tasks.Task GetManifestIconsAsync() - { - System.Collections.Generic.Dictionary dict = null; - return _client.ExecuteDevToolsMethodAsync("Page.getManifestIcons", dict); - } - /// /// Returns the unique (PWA) app id. /// Only returns values if the feature flag 'WebAppEnableManifestId' is enabled @@ -41592,14 +41627,14 @@ public System.Threading.Tasks.Task ClearCompilationCache return _client.ExecuteDevToolsMethodAsync("Page.clearCompilationCache", dict); } - partial void ValidateSetSPCTransactionMode(CefSharp.DevTools.Page.SetSPCTransactionModeMode mode); + partial void ValidateSetSPCTransactionMode(CefSharp.DevTools.Page.AutoResponseMode mode); /// /// Sets the Secure Payment Confirmation transaction mode. /// https://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode /// /// mode /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetSPCTransactionModeAsync(CefSharp.DevTools.Page.SetSPCTransactionModeMode mode) + public System.Threading.Tasks.Task SetSPCTransactionModeAsync(CefSharp.DevTools.Page.AutoResponseMode mode) { ValidateSetSPCTransactionMode(mode); var dict = new System.Collections.Generic.Dictionary(); @@ -41607,6 +41642,21 @@ public System.Threading.Tasks.Task SetSPCTransactionMode return _client.ExecuteDevToolsMethodAsync("Page.setSPCTransactionMode", dict); } + partial void ValidateSetRPHRegistrationMode(CefSharp.DevTools.Page.AutoResponseMode mode); + /// + /// Extensions for Custom Handlers API: + /// https://html.spec.whatwg.org/multipage/system-state.html#rph-automation + /// + /// mode + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetRPHRegistrationModeAsync(CefSharp.DevTools.Page.AutoResponseMode mode) + { + ValidateSetRPHRegistrationMode(mode); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("mode", EnumToString(mode)); + return _client.ExecuteDevToolsMethodAsync("Page.setRPHRegistrationMode", dict); + } + partial void ValidateGenerateTestReport(string message, string group = null); /// /// Generates a report for testing. @@ -41660,13 +41710,13 @@ namespace CefSharp.DevTools.Performance /// /// GetMetricsResponse /// - public class GetMetricsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetMetricsResponse : DevToolsDomainResponseBase { /// /// metrics /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("metrics")] + [JsonInclude] + [JsonPropertyName("metrics")] public System.Collections.Generic.IList Metrics { get; @@ -41687,12 +41737,12 @@ public enum EnableTimeDomain /// /// timeTicks /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timeTicks")] + [JsonPropertyName("timeTicks")] TimeTicks, /// /// threadTicks /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("threadTicks")] + [JsonPropertyName("threadTicks")] ThreadTicks } @@ -42149,13 +42199,13 @@ namespace CefSharp.DevTools.Storage /// /// GetStorageKeyForFrameResponse /// - public class GetStorageKeyForFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetStorageKeyForFrameResponse : DevToolsDomainResponseBase { /// /// storageKey /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("storageKey")] + [JsonInclude] + [JsonPropertyName("storageKey")] public string StorageKey { get; @@ -42169,13 +42219,13 @@ namespace CefSharp.DevTools.Storage /// /// GetCookiesResponse /// - public class GetCookiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCookiesResponse : DevToolsDomainResponseBase { /// /// cookies /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("cookies")] + [JsonInclude] + [JsonPropertyName("cookies")] public System.Collections.Generic.IList Cookies { get; @@ -42189,13 +42239,13 @@ namespace CefSharp.DevTools.Storage /// /// GetUsageAndQuotaResponse /// - public class GetUsageAndQuotaResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetUsageAndQuotaResponse : DevToolsDomainResponseBase { /// /// usage /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("usage")] + [JsonInclude] + [JsonPropertyName("usage")] public double Usage { get; @@ -42205,8 +42255,8 @@ public double Usage /// /// quota /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("quota")] + [JsonInclude] + [JsonPropertyName("quota")] public double Quota { get; @@ -42216,8 +42266,8 @@ public double Quota /// /// overrideActive /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("overrideActive")] + [JsonInclude] + [JsonPropertyName("overrideActive")] public bool OverrideActive { get; @@ -42227,8 +42277,8 @@ public bool OverrideActive /// /// usageBreakdown /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("usageBreakdown")] + [JsonInclude] + [JsonPropertyName("usageBreakdown")] public System.Collections.Generic.IList UsageBreakdown { get; @@ -42242,13 +42292,13 @@ namespace CefSharp.DevTools.Storage /// /// GetTrustTokensResponse /// - public class GetTrustTokensResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetTrustTokensResponse : DevToolsDomainResponseBase { /// /// tokens /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("tokens")] + [JsonInclude] + [JsonPropertyName("tokens")] public System.Collections.Generic.IList Tokens { get; @@ -42262,13 +42312,13 @@ namespace CefSharp.DevTools.Storage /// /// ClearTrustTokensResponse /// - public class ClearTrustTokensResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class ClearTrustTokensResponse : DevToolsDomainResponseBase { /// /// didDeleteTokens /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("didDeleteTokens")] + [JsonInclude] + [JsonPropertyName("didDeleteTokens")] public bool DidDeleteTokens { get; @@ -42282,13 +42332,13 @@ namespace CefSharp.DevTools.Storage /// /// GetInterestGroupDetailsResponse /// - public class GetInterestGroupDetailsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetInterestGroupDetailsResponse : DevToolsDomainResponseBase { /// /// details /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("details")] + [JsonInclude] + [JsonPropertyName("details")] public CefSharp.DevTools.Storage.InterestGroupDetails Details { get; @@ -42302,13 +42352,13 @@ namespace CefSharp.DevTools.Storage /// /// GetSharedStorageMetadataResponse /// - public class GetSharedStorageMetadataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetSharedStorageMetadataResponse : DevToolsDomainResponseBase { /// /// metadata /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("metadata")] + [JsonInclude] + [JsonPropertyName("metadata")] public CefSharp.DevTools.Storage.SharedStorageMetadata Metadata { get; @@ -42322,13 +42372,13 @@ namespace CefSharp.DevTools.Storage /// /// GetSharedStorageEntriesResponse /// - public class GetSharedStorageEntriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetSharedStorageEntriesResponse : DevToolsDomainResponseBase { /// /// entries /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("entries")] + [JsonInclude] + [JsonPropertyName("entries")] public System.Collections.Generic.IList Entries { get; @@ -42874,13 +42924,13 @@ namespace CefSharp.DevTools.SystemInfo /// /// GetInfoResponse /// - public class GetInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetInfoResponse : DevToolsDomainResponseBase { /// /// gpu /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("gpu")] + [JsonInclude] + [JsonPropertyName("gpu")] public CefSharp.DevTools.SystemInfo.GPUInfo Gpu { get; @@ -42890,8 +42940,8 @@ public CefSharp.DevTools.SystemInfo.GPUInfo Gpu /// /// modelName /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("modelName")] + [JsonInclude] + [JsonPropertyName("modelName")] public string ModelName { get; @@ -42901,8 +42951,8 @@ public string ModelName /// /// modelVersion /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("modelVersion")] + [JsonInclude] + [JsonPropertyName("modelVersion")] public string ModelVersion { get; @@ -42912,8 +42962,8 @@ public string ModelVersion /// /// commandLine /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("commandLine")] + [JsonInclude] + [JsonPropertyName("commandLine")] public string CommandLine { get; @@ -42927,13 +42977,13 @@ namespace CefSharp.DevTools.SystemInfo /// /// GetFeatureStateResponse /// - public class GetFeatureStateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetFeatureStateResponse : DevToolsDomainResponseBase { /// /// featureEnabled /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("featureEnabled")] + [JsonInclude] + [JsonPropertyName("featureEnabled")] public bool FeatureEnabled { get; @@ -42947,13 +42997,13 @@ namespace CefSharp.DevTools.SystemInfo /// /// GetProcessInfoResponse /// - public class GetProcessInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetProcessInfoResponse : DevToolsDomainResponseBase { /// /// processInfo /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("processInfo")] + [JsonInclude] + [JsonPropertyName("processInfo")] public System.Collections.Generic.IList ProcessInfo { get; @@ -43022,13 +43072,13 @@ namespace CefSharp.DevTools.Target /// /// AttachToTargetResponse /// - public class AttachToTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class AttachToTargetResponse : DevToolsDomainResponseBase { /// /// sessionId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [JsonInclude] + [JsonPropertyName("sessionId")] public string SessionId { get; @@ -43042,13 +43092,13 @@ namespace CefSharp.DevTools.Target /// /// AttachToBrowserTargetResponse /// - public class AttachToBrowserTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class AttachToBrowserTargetResponse : DevToolsDomainResponseBase { /// /// sessionId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("sessionId")] + [JsonInclude] + [JsonPropertyName("sessionId")] public string SessionId { get; @@ -43062,13 +43112,13 @@ namespace CefSharp.DevTools.Target /// /// CloseTargetResponse /// - public class CloseTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CloseTargetResponse : DevToolsDomainResponseBase { /// /// success /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + [JsonInclude] + [JsonPropertyName("success")] public bool Success { get; @@ -43082,13 +43132,13 @@ namespace CefSharp.DevTools.Target /// /// CreateBrowserContextResponse /// - public class CreateBrowserContextResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CreateBrowserContextResponse : DevToolsDomainResponseBase { /// /// browserContextId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("browserContextId")] + [JsonInclude] + [JsonPropertyName("browserContextId")] public string BrowserContextId { get; @@ -43102,13 +43152,13 @@ namespace CefSharp.DevTools.Target /// /// GetBrowserContextsResponse /// - public class GetBrowserContextsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetBrowserContextsResponse : DevToolsDomainResponseBase { /// /// browserContextIds /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("browserContextIds")] + [JsonInclude] + [JsonPropertyName("browserContextIds")] public string[] BrowserContextIds { get; @@ -43122,13 +43172,13 @@ namespace CefSharp.DevTools.Target /// /// CreateTargetResponse /// - public class CreateTargetResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CreateTargetResponse : DevToolsDomainResponseBase { /// /// targetId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetId")] + [JsonInclude] + [JsonPropertyName("targetId")] public string TargetId { get; @@ -43142,13 +43192,13 @@ namespace CefSharp.DevTools.Target /// /// GetTargetInfoResponse /// - public class GetTargetInfoResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetTargetInfoResponse : DevToolsDomainResponseBase { /// /// targetInfo /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfo")] + [JsonInclude] + [JsonPropertyName("targetInfo")] public CefSharp.DevTools.Target.TargetInfo TargetInfo { get; @@ -43162,13 +43212,13 @@ namespace CefSharp.DevTools.Target /// /// GetTargetsResponse /// - public class GetTargetsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetTargetsResponse : DevToolsDomainResponseBase { /// /// targetInfos /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("targetInfos")] + [JsonInclude] + [JsonPropertyName("targetInfos")] public System.Collections.Generic.IList TargetInfos { get; @@ -43740,13 +43790,13 @@ namespace CefSharp.DevTools.Tracing /// /// GetCategoriesResponse /// - public class GetCategoriesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCategoriesResponse : DevToolsDomainResponseBase { /// /// categories /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("categories")] + [JsonInclude] + [JsonPropertyName("categories")] public string[] Categories { get; @@ -43760,13 +43810,13 @@ namespace CefSharp.DevTools.Tracing /// /// RequestMemoryDumpResponse /// - public class RequestMemoryDumpResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RequestMemoryDumpResponse : DevToolsDomainResponseBase { /// /// dumpGuid /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("dumpGuid")] + [JsonInclude] + [JsonPropertyName("dumpGuid")] public string DumpGuid { get; @@ -43776,8 +43826,8 @@ public string DumpGuid /// /// success /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("success")] + [JsonInclude] + [JsonPropertyName("success")] public bool Success { get; @@ -43799,12 +43849,12 @@ public enum StartTransferMode /// /// ReportEvents /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ReportEvents")] + [JsonPropertyName("ReportEvents")] ReportEvents, /// /// ReturnAsStream /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("ReturnAsStream")] + [JsonPropertyName("ReturnAsStream")] ReturnAsStream } @@ -44004,13 +44054,13 @@ namespace CefSharp.DevTools.Fetch /// /// GetResponseBodyResponse /// - public class GetResponseBodyResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetResponseBodyResponse : DevToolsDomainResponseBase { /// /// body /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("body")] + [JsonInclude] + [JsonPropertyName("body")] public string Body { get; @@ -44020,8 +44070,8 @@ public string Body /// /// base64Encoded /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("base64Encoded")] + [JsonInclude] + [JsonPropertyName("base64Encoded")] public bool Base64Encoded { get; @@ -44035,13 +44085,13 @@ namespace CefSharp.DevTools.Fetch /// /// TakeResponseBodyAsStreamResponse /// - public class TakeResponseBodyAsStreamResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class TakeResponseBodyAsStreamResponse : DevToolsDomainResponseBase { /// /// stream /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stream")] + [JsonInclude] + [JsonPropertyName("stream")] public string Stream { get; @@ -44347,13 +44397,13 @@ namespace CefSharp.DevTools.WebAudio /// /// GetRealtimeDataResponse /// - public class GetRealtimeDataResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetRealtimeDataResponse : DevToolsDomainResponseBase { /// /// realtimeData /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("realtimeData")] + [JsonInclude] + [JsonPropertyName("realtimeData")] public CefSharp.DevTools.WebAudio.ContextRealtimeData RealtimeData { get; @@ -44631,13 +44681,13 @@ namespace CefSharp.DevTools.WebAuthn /// /// AddVirtualAuthenticatorResponse /// - public class AddVirtualAuthenticatorResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class AddVirtualAuthenticatorResponse : DevToolsDomainResponseBase { /// /// authenticatorId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("authenticatorId")] + [JsonInclude] + [JsonPropertyName("authenticatorId")] public string AuthenticatorId { get; @@ -44651,13 +44701,13 @@ namespace CefSharp.DevTools.WebAuthn /// /// GetCredentialResponse /// - public class GetCredentialResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCredentialResponse : DevToolsDomainResponseBase { /// /// credential /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("credential")] + [JsonInclude] + [JsonPropertyName("credential")] public CefSharp.DevTools.WebAuthn.Credential Credential { get; @@ -44671,13 +44721,13 @@ namespace CefSharp.DevTools.WebAuthn /// /// GetCredentialsResponse /// - public class GetCredentialsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetCredentialsResponse : DevToolsDomainResponseBase { /// /// credentials /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("credentials")] + [JsonInclude] + [JsonPropertyName("credentials")] public System.Collections.Generic.IList Credentials { get; @@ -45065,18 +45115,179 @@ public System.Threading.Tasks.Task DisableAsync() } } +namespace CefSharp.DevTools.DeviceAccess +{ + using System.Linq; + + /// + /// DeviceAccess + /// + public partial class DeviceAccessClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// DeviceAccess + /// + /// DevToolsClient + public DeviceAccessClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// A device request opened a user prompt to select a device. Respond with the + /// selectPrompt or cancelPrompt command. + /// + public event System.EventHandler DeviceRequestPrompted + { + add + { + _client.AddEventHandler("DeviceAccess.deviceRequestPrompted", value); + } + + remove + { + _client.RemoveEventHandler("DeviceAccess.deviceRequestPrompted", value); + } + } + + /// + /// Enable events in this domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.enable", dict); + } + + /// + /// Disable events in this domain. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.disable", dict); + } + + partial void ValidateSelectPrompt(string id, string deviceId); + /// + /// Select a device in response to a DeviceAccess.deviceRequestPrompted event. + /// + /// id + /// deviceId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SelectPromptAsync(string id, string deviceId) + { + ValidateSelectPrompt(id, deviceId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("id", id); + dict.Add("deviceId", deviceId); + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.selectPrompt", dict); + } + + partial void ValidateCancelPrompt(string id); + /// + /// Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event. + /// + /// id + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task CancelPromptAsync(string id) + { + ValidateCancelPrompt(id); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("id", id); + return _client.ExecuteDevToolsMethodAsync("DeviceAccess.cancelPrompt", dict); + } + } +} + +namespace CefSharp.DevTools.Preload +{ + using System.Linq; + + /// + /// Preload + /// + public partial class PreloadClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// Preload + /// + /// DevToolsClient + public PreloadClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// Upsert. Currently, it is only emitted when a rule set added. + /// + public event System.EventHandler RuleSetUpdated + { + add + { + _client.AddEventHandler("Preload.ruleSetUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.ruleSetUpdated", value); + } + } + + /// + /// RuleSetRemoved + /// + public event System.EventHandler RuleSetRemoved + { + add + { + _client.AddEventHandler("Preload.ruleSetRemoved", value); + } + + remove + { + _client.RemoveEventHandler("Preload.ruleSetRemoved", value); + } + } + + /// + /// Enable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Preload.enable", dict); + } + + /// + /// Disable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Preload.disable", dict); + } + } +} + namespace CefSharp.DevTools.Debugger { /// /// EnableResponse /// - public class EnableResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class EnableResponse : DevToolsDomainResponseBase { /// /// debuggerId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("debuggerId")] + [JsonInclude] + [JsonPropertyName("debuggerId")] public string DebuggerId { get; @@ -45090,13 +45301,13 @@ namespace CefSharp.DevTools.Debugger /// /// EvaluateOnCallFrameResponse /// - public class EvaluateOnCallFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class EvaluateOnCallFrameResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; @@ -45106,8 +45317,8 @@ public CefSharp.DevTools.Runtime.RemoteObject Result /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -45121,13 +45332,13 @@ namespace CefSharp.DevTools.Debugger /// /// GetPossibleBreakpointsResponse /// - public class GetPossibleBreakpointsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetPossibleBreakpointsResponse : DevToolsDomainResponseBase { /// /// locations /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("locations")] + [JsonInclude] + [JsonPropertyName("locations")] public System.Collections.Generic.IList Locations { get; @@ -45141,13 +45352,13 @@ namespace CefSharp.DevTools.Debugger /// /// GetScriptSourceResponse /// - public class GetScriptSourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetScriptSourceResponse : DevToolsDomainResponseBase { /// /// scriptSource /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptSource")] + [JsonInclude] + [JsonPropertyName("scriptSource")] public string ScriptSource { get; @@ -45157,8 +45368,8 @@ public string ScriptSource /// /// bytecode /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("bytecode")] + [JsonInclude] + [JsonPropertyName("bytecode")] public byte[] Bytecode { get; @@ -45172,13 +45383,13 @@ namespace CefSharp.DevTools.Debugger /// /// DisassembleWasmModuleResponse /// - public class DisassembleWasmModuleResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class DisassembleWasmModuleResponse : DevToolsDomainResponseBase { /// /// streamId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("streamId")] + [JsonInclude] + [JsonPropertyName("streamId")] public string StreamId { get; @@ -45188,8 +45399,8 @@ public string StreamId /// /// totalNumberOfLines /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalNumberOfLines")] + [JsonInclude] + [JsonPropertyName("totalNumberOfLines")] public int TotalNumberOfLines { get; @@ -45199,8 +45410,8 @@ public int TotalNumberOfLines /// /// functionBodyOffsets /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("functionBodyOffsets")] + [JsonInclude] + [JsonPropertyName("functionBodyOffsets")] public int[] FunctionBodyOffsets { get; @@ -45210,8 +45421,8 @@ public int[] FunctionBodyOffsets /// /// chunk /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("chunk")] + [JsonInclude] + [JsonPropertyName("chunk")] public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk { get; @@ -45225,13 +45436,13 @@ namespace CefSharp.DevTools.Debugger /// /// NextWasmDisassemblyChunkResponse /// - public class NextWasmDisassemblyChunkResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class NextWasmDisassemblyChunkResponse : DevToolsDomainResponseBase { /// /// chunk /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("chunk")] + [JsonInclude] + [JsonPropertyName("chunk")] public CefSharp.DevTools.Debugger.WasmDisassemblyChunk Chunk { get; @@ -45245,13 +45456,13 @@ namespace CefSharp.DevTools.Debugger /// /// GetStackTraceResponse /// - public class GetStackTraceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetStackTraceResponse : DevToolsDomainResponseBase { /// /// stackTrace /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackTrace")] + [JsonInclude] + [JsonPropertyName("stackTrace")] public CefSharp.DevTools.Runtime.StackTrace StackTrace { get; @@ -45265,13 +45476,13 @@ namespace CefSharp.DevTools.Debugger /// /// RestartFrameResponse /// - public class RestartFrameResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RestartFrameResponse : DevToolsDomainResponseBase { /// /// callFrames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + [JsonInclude] + [JsonPropertyName("callFrames")] public System.Collections.Generic.IList CallFrames { get; @@ -45281,8 +45492,8 @@ public System.Collections.Generic.IList Ca /// /// asyncStackTrace /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTrace")] + [JsonInclude] + [JsonPropertyName("asyncStackTrace")] public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace { get; @@ -45292,8 +45503,8 @@ public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace /// /// asyncStackTraceId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTraceId")] + [JsonInclude] + [JsonPropertyName("asyncStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId { get; @@ -45307,13 +45518,13 @@ namespace CefSharp.DevTools.Debugger /// /// SearchInContentResponse /// - public class SearchInContentResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SearchInContentResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; @@ -45327,13 +45538,13 @@ namespace CefSharp.DevTools.Debugger /// /// SetBreakpointResponse /// - public class SetBreakpointResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetBreakpointResponse : DevToolsDomainResponseBase { /// /// breakpointId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + [JsonInclude] + [JsonPropertyName("breakpointId")] public string BreakpointId { get; @@ -45343,8 +45554,8 @@ public string BreakpointId /// /// actualLocation /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("actualLocation")] + [JsonInclude] + [JsonPropertyName("actualLocation")] public CefSharp.DevTools.Debugger.Location ActualLocation { get; @@ -45358,13 +45569,13 @@ namespace CefSharp.DevTools.Debugger /// /// SetInstrumentationBreakpointResponse /// - public class SetInstrumentationBreakpointResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetInstrumentationBreakpointResponse : DevToolsDomainResponseBase { /// /// breakpointId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + [JsonInclude] + [JsonPropertyName("breakpointId")] public string BreakpointId { get; @@ -45378,13 +45589,13 @@ namespace CefSharp.DevTools.Debugger /// /// SetBreakpointByUrlResponse /// - public class SetBreakpointByUrlResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetBreakpointByUrlResponse : DevToolsDomainResponseBase { /// /// breakpointId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + [JsonInclude] + [JsonPropertyName("breakpointId")] public string BreakpointId { get; @@ -45394,8 +45605,8 @@ public string BreakpointId /// /// locations /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("locations")] + [JsonInclude] + [JsonPropertyName("locations")] public System.Collections.Generic.IList Locations { get; @@ -45409,13 +45620,13 @@ namespace CefSharp.DevTools.Debugger /// /// SetBreakpointOnFunctionCallResponse /// - public class SetBreakpointOnFunctionCallResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetBreakpointOnFunctionCallResponse : DevToolsDomainResponseBase { /// /// breakpointId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("breakpointId")] + [JsonInclude] + [JsonPropertyName("breakpointId")] public string BreakpointId { get; @@ -45429,13 +45640,13 @@ namespace CefSharp.DevTools.Debugger /// /// SetScriptSourceResponse /// - public class SetScriptSourceResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class SetScriptSourceResponse : DevToolsDomainResponseBase { /// /// callFrames /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("callFrames")] + [JsonInclude] + [JsonPropertyName("callFrames")] public System.Collections.Generic.IList CallFrames { get; @@ -45445,8 +45656,8 @@ public System.Collections.Generic.IList Ca /// /// stackChanged /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("stackChanged")] + [JsonInclude] + [JsonPropertyName("stackChanged")] public bool? StackChanged { get; @@ -45456,8 +45667,8 @@ public bool? StackChanged /// /// asyncStackTrace /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTrace")] + [JsonInclude] + [JsonPropertyName("asyncStackTrace")] public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace { get; @@ -45467,8 +45678,8 @@ public CefSharp.DevTools.Runtime.StackTrace AsyncStackTrace /// /// asyncStackTraceId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("asyncStackTraceId")] + [JsonInclude] + [JsonPropertyName("asyncStackTraceId")] public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId { get; @@ -45478,8 +45689,8 @@ public CefSharp.DevTools.Runtime.StackTraceId AsyncStackTraceId /// /// status /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("status")] + [JsonInclude] + [JsonPropertyName("status")] public string Status { get; @@ -45489,8 +45700,8 @@ public string Status /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -45511,12 +45722,12 @@ public enum ContinueToLocationTargetCallFrames /// /// any /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("any")] + [JsonPropertyName("any")] Any, /// /// current /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("current")] + [JsonPropertyName("current")] Current } @@ -45529,7 +45740,7 @@ public enum RestartFrameMode /// /// StepInto /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("StepInto")] + [JsonPropertyName("StepInto")] StepInto } @@ -45541,12 +45752,12 @@ public enum SetInstrumentationBreakpointInstrumentation /// /// beforeScriptExecution /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("beforeScriptExecution")] + [JsonPropertyName("beforeScriptExecution")] BeforeScriptExecution, /// /// beforeScriptWithSourceMapExecution /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("beforeScriptWithSourceMapExecution")] + [JsonPropertyName("beforeScriptWithSourceMapExecution")] BeforeScriptWithSourceMapExecution } @@ -45558,22 +45769,22 @@ public enum SetPauseOnExceptionsState /// /// none /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("none")] + [JsonPropertyName("none")] None, /// /// caught /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("caught")] + [JsonPropertyName("caught")] Caught, /// /// uncaught /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("uncaught")] + [JsonPropertyName("uncaught")] Uncaught, /// /// all /// - [System.Text.Json.Serialization.JsonPropertyNameAttribute("all")] + [JsonPropertyName("all")] All } @@ -46292,13 +46503,13 @@ namespace CefSharp.DevTools.HeapProfiler /// /// GetHeapObjectIdResponse /// - public class GetHeapObjectIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetHeapObjectIdResponse : DevToolsDomainResponseBase { /// /// heapSnapshotObjectId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("heapSnapshotObjectId")] + [JsonInclude] + [JsonPropertyName("heapSnapshotObjectId")] public string HeapSnapshotObjectId { get; @@ -46312,13 +46523,13 @@ namespace CefSharp.DevTools.HeapProfiler /// /// GetObjectByHeapObjectIdResponse /// - public class GetObjectByHeapObjectIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetObjectByHeapObjectIdResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; @@ -46332,13 +46543,13 @@ namespace CefSharp.DevTools.HeapProfiler /// /// GetSamplingProfileResponse /// - public class GetSamplingProfileResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetSamplingProfileResponse : DevToolsDomainResponseBase { /// /// profile /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonInclude] + [JsonPropertyName("profile")] public CefSharp.DevTools.HeapProfiler.SamplingHeapProfile Profile { get; @@ -46352,13 +46563,13 @@ namespace CefSharp.DevTools.HeapProfiler /// /// StopSamplingResponse /// - public class StopSamplingResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class StopSamplingResponse : DevToolsDomainResponseBase { /// /// profile /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonInclude] + [JsonPropertyName("profile")] public CefSharp.DevTools.HeapProfiler.SamplingHeapProfile Profile { get; @@ -46694,13 +46905,13 @@ namespace CefSharp.DevTools.Profiler /// /// GetBestEffortCoverageResponse /// - public class GetBestEffortCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetBestEffortCoverageResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; @@ -46714,13 +46925,13 @@ namespace CefSharp.DevTools.Profiler /// /// StartPreciseCoverageResponse /// - public class StartPreciseCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class StartPreciseCoverageResponse : DevToolsDomainResponseBase { /// /// timestamp /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -46734,13 +46945,13 @@ namespace CefSharp.DevTools.Profiler /// /// StopResponse /// - public class StopResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class StopResponse : DevToolsDomainResponseBase { /// /// profile /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("profile")] + [JsonInclude] + [JsonPropertyName("profile")] public CefSharp.DevTools.Profiler.Profile Profile { get; @@ -46754,13 +46965,13 @@ namespace CefSharp.DevTools.Profiler /// /// TakePreciseCoverageResponse /// - public class TakePreciseCoverageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class TakePreciseCoverageResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; @@ -46770,8 +46981,8 @@ public System.Collections.Generic.IList /// timestamp /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("timestamp")] + [JsonInclude] + [JsonPropertyName("timestamp")] public double Timestamp { get; @@ -46976,13 +47187,13 @@ namespace CefSharp.DevTools.Runtime /// /// AwaitPromiseResponse /// - public class AwaitPromiseResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class AwaitPromiseResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; @@ -46992,8 +47203,8 @@ public CefSharp.DevTools.Runtime.RemoteObject Result /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -47007,13 +47218,13 @@ namespace CefSharp.DevTools.Runtime /// /// CallFunctionOnResponse /// - public class CallFunctionOnResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CallFunctionOnResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; @@ -47023,8 +47234,8 @@ public CefSharp.DevTools.Runtime.RemoteObject Result /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -47038,13 +47249,13 @@ namespace CefSharp.DevTools.Runtime /// /// CompileScriptResponse /// - public class CompileScriptResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class CompileScriptResponse : DevToolsDomainResponseBase { /// /// scriptId /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("scriptId")] + [JsonInclude] + [JsonPropertyName("scriptId")] public string ScriptId { get; @@ -47054,8 +47265,8 @@ public string ScriptId /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -47069,13 +47280,13 @@ namespace CefSharp.DevTools.Runtime /// /// EvaluateResponse /// - public class EvaluateResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class EvaluateResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; @@ -47085,8 +47296,8 @@ public CefSharp.DevTools.Runtime.RemoteObject Result /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -47100,13 +47311,13 @@ namespace CefSharp.DevTools.Runtime /// /// GetIsolateIdResponse /// - public class GetIsolateIdResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetIsolateIdResponse : DevToolsDomainResponseBase { /// /// id /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + [JsonInclude] + [JsonPropertyName("id")] public string Id { get; @@ -47120,13 +47331,13 @@ namespace CefSharp.DevTools.Runtime /// /// GetHeapUsageResponse /// - public class GetHeapUsageResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetHeapUsageResponse : DevToolsDomainResponseBase { /// /// usedSize /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("usedSize")] + [JsonInclude] + [JsonPropertyName("usedSize")] public double UsedSize { get; @@ -47136,8 +47347,8 @@ public double UsedSize /// /// totalSize /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("totalSize")] + [JsonInclude] + [JsonPropertyName("totalSize")] public double TotalSize { get; @@ -47151,13 +47362,13 @@ namespace CefSharp.DevTools.Runtime /// /// GetPropertiesResponse /// - public class GetPropertiesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetPropertiesResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public System.Collections.Generic.IList Result { get; @@ -47167,8 +47378,8 @@ public System.Collections.Generic.IList /// internalProperties /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("internalProperties")] + [JsonInclude] + [JsonPropertyName("internalProperties")] public System.Collections.Generic.IList InternalProperties { get; @@ -47178,8 +47389,8 @@ public System.Collections.Generic.IList /// privateProperties /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("privateProperties")] + [JsonInclude] + [JsonPropertyName("privateProperties")] public System.Collections.Generic.IList PrivateProperties { get; @@ -47189,8 +47400,8 @@ public System.Collections.Generic.IList /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -47204,13 +47415,13 @@ namespace CefSharp.DevTools.Runtime /// /// GlobalLexicalScopeNamesResponse /// - public class GlobalLexicalScopeNamesResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GlobalLexicalScopeNamesResponse : DevToolsDomainResponseBase { /// /// names /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("names")] + [JsonInclude] + [JsonPropertyName("names")] public string[] Names { get; @@ -47224,13 +47435,13 @@ namespace CefSharp.DevTools.Runtime /// /// QueryObjectsResponse /// - public class QueryObjectsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class QueryObjectsResponse : DevToolsDomainResponseBase { /// /// objects /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("objects")] + [JsonInclude] + [JsonPropertyName("objects")] public CefSharp.DevTools.Runtime.RemoteObject Objects { get; @@ -47244,13 +47455,13 @@ namespace CefSharp.DevTools.Runtime /// /// RunScriptResponse /// - public class RunScriptResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class RunScriptResponse : DevToolsDomainResponseBase { /// /// result /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("result")] + [JsonInclude] + [JsonPropertyName("result")] public CefSharp.DevTools.Runtime.RemoteObject Result { get; @@ -47260,8 +47471,8 @@ public CefSharp.DevTools.Runtime.RemoteObject Result /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -47275,13 +47486,13 @@ namespace CefSharp.DevTools.Runtime /// /// GetExceptionDetailsResponse /// - public class GetExceptionDetailsResponse : CefSharp.DevTools.DevToolsDomainResponseBase + public class GetExceptionDetailsResponse : DevToolsDomainResponseBase { /// /// exceptionDetails /// - [System.Text.Json.Serialization.JsonIncludeAttribute] - [System.Text.Json.Serialization.JsonPropertyNameAttribute("exceptionDetails")] + [JsonInclude] + [JsonPropertyName("exceptionDetails")] public CefSharp.DevTools.Runtime.ExceptionDetails ExceptionDetails { get; @@ -48733,6 +48944,40 @@ public CefSharp.DevTools.Media.MediaClient Media } } + private CefSharp.DevTools.DeviceAccess.DeviceAccessClient _DeviceAccess; + /// + /// DeviceAccess + /// + public CefSharp.DevTools.DeviceAccess.DeviceAccessClient DeviceAccess + { + get + { + if ((_DeviceAccess) == (null)) + { + _DeviceAccess = (new CefSharp.DevTools.DeviceAccess.DeviceAccessClient(this)); + } + + return _DeviceAccess; + } + } + + private CefSharp.DevTools.Preload.PreloadClient _Preload; + /// + /// Preload + /// + public CefSharp.DevTools.Preload.PreloadClient Preload + { + get + { + if ((_Preload) == (null)) + { + _Preload = (new CefSharp.DevTools.Preload.PreloadClient(this)); + } + + return _Preload; + } + } + private CefSharp.DevTools.Debugger.DebuggerClient _Debugger; /// /// Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing From 7cc02bec600101cc45837120d006f7cf020cd9e2 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 15 Apr 2023 16:42:46 +1000 Subject: [PATCH 245/543] Upgrade to 112.2.9+g3303e87+chromium-112.0.5615.87 / Chromium 112.0.5615.87 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index f7b9738d1..94d0fd19d 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 3265b991e..3ad98ddcb 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 2a7b33ab0..f66f7afd1 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 112,2,70 - PRODUCTVERSION 112,2,70 + FILEVERSION 112,2,90 + PRODUCTVERSION 112,2,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "112.2.70" + VALUE "FileVersion", "112.2.90" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "112.2.70" + VALUE "ProductVersion", "112.2.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 1d1b32b92..af6bc93bf 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 47225491e..460a29d45 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 00cbc2a4e..208195a61 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 600321580..3a2f98a31 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index fa9e9ce53..060c9d735 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index a32985946..da445fe37 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 112,2,70 - PRODUCTVERSION 112,2,70 + FILEVERSION 112,2,90 + PRODUCTVERSION 112,2,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "112.2.70" + VALUE "FileVersion", "112.2.90" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "112.2.70" + VALUE "ProductVersion", "112.2.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 1d1b32b92..af6bc93bf 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 47225491e..460a29d45 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 062bc09c7..900053b74 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index d78da425e..d43c98ceb 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 8ac800ae8..0e3164888 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 732876972..19e04d856 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 60078b3b3..5a3a91993 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 9127f0a71..4533eee0f 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 1452fb86c..9d67b2f77 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index dd4f2c167..56702f7d4 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 255186de1..5b91c9690 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 1f0ea42c9..88e7cf7ce 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index e000b5492..ce2fa5261 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 09e59d30f..a02ea16ce 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 112.2.70 + 112.2.90 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 112.2.70 + Version 112.2.90 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 14d2c792e..936e12bdb 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "112.2.70"; - public const string AssemblyFileVersion = "112.2.70.0"; + public const string AssemblyVersion = "112.2.90"; + public const string AssemblyFileVersion = "112.2.90.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 83455a1ab..1e2782ff6 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index bbc4cae52..ad1928623 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 09ca9f1f1..9b16abda7 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 5318ccb2a..981144e0b 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "112.2.7", + [string] $CefVersion = "112.2.9", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 36a7f006a..3d88c4b20 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 112.2.70-CI{build} +version: 112.2.90-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 3377fa6fd..26c6ef1b2 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "112.2.70", + [string] $Version = "112.2.90", [Parameter(Position = 2)] - [string] $AssemblyVersion = "112.2.70", + [string] $AssemblyVersion = "112.2.90", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From a93f6f307e315b4541323bc7f1c0c41912cf55aa Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 19 Apr 2023 18:09:24 +1000 Subject: [PATCH 246/543] Upgrade to 112.2.10+gd000e45+chromium-112.0.5615.121 / Chromium 112.0.5615.121 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 94d0fd19d..d6050c877 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 3ad98ddcb..5a53a950d 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index f66f7afd1..1289a5711 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 112,2,90 - PRODUCTVERSION 112,2,90 + FILEVERSION 112,2,100 + PRODUCTVERSION 112,2,100 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "112.2.90" + VALUE "FileVersion", "112.2.100" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "112.2.90" + VALUE "ProductVersion", "112.2.100" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index af6bc93bf..26b8801a9 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 460a29d45..6f77100f1 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 208195a61..2239004f0 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 3a2f98a31..267ce469e 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 060c9d735..a26afaee7 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index da445fe37..6222914b9 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 112,2,90 - PRODUCTVERSION 112,2,90 + FILEVERSION 112,2,100 + PRODUCTVERSION 112,2,100 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "112.2.90" + VALUE "FileVersion", "112.2.100" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "112.2.90" + VALUE "ProductVersion", "112.2.100" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index af6bc93bf..26b8801a9 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 460a29d45..6f77100f1 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 900053b74..d9c9a36df 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index d43c98ceb..5b8eae24e 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 0e3164888..0fbb1bbf9 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 19e04d856..ce0f91c4d 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 5a3a91993..3286319e6 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 4533eee0f..979101ffa 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 9d67b2f77..12c6e4fcd 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 56702f7d4..44a8300a6 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 5b91c9690..6d26d396b 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 88e7cf7ce..c37462a93 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index ce2fa5261..a7d12058c 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index a02ea16ce..4e1a34f9b 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 112.2.90 + 112.2.100 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 112.2.90 + Version 112.2.100 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 936e12bdb..9daaac445 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "112.2.90"; - public const string AssemblyFileVersion = "112.2.90.0"; + public const string AssemblyVersion = "112.2.100"; + public const string AssemblyFileVersion = "112.2.100.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 1e2782ff6..44911ef78 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index ad1928623..a6d2957a0 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 9b16abda7..107fca832 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 981144e0b..a2adfb14f 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "112.2.9", + [string] $CefVersion = "112.2.10", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 3d88c4b20..308e1ee0a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 112.2.90-CI{build} +version: 112.2.100-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 26c6ef1b2..40039ab55 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "112.2.90", + [string] $Version = "112.2.100", [Parameter(Position = 2)] - [string] $AssemblyVersion = "112.2.90", + [string] $AssemblyVersion = "112.2.100", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 54b494796b2d5970afd9c9cbd7bbbc16a22b3a24 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 15:34:11 +1000 Subject: [PATCH 247/543] CEF Issue Tracker moved to GitHub Issue #4430 --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 38d1f246d..db9c14559 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -81,4 +81,4 @@ Delete this line and everything above, and then fill in the details below. cefclient.exe --multi-threaded-message-loop --no-sandbox ``` - **MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED ABOVE** - - If you can reproduce the problem with `cefclient` then please report the issue on https://bitbucket.org/chromiumembedded/cef/overview (Make sure you search before opening an issue). If you open an issue here it will most likely be closed as `upstream` as the bug needs to be fixed in `CEF`. + - If you can reproduce the problem with `cefclient` then please report the issue on https://github.com/chromiumembedded/cef/issues (Make sure you search before opening an issue). If you open an issue here it will most likely be closed as `upstream` as the bug needs to be fixed in `CEF`. From 1a752dcf08ef54371c824dfa76b69978137879d7 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 16:09:41 +1000 Subject: [PATCH 248/543] GitHub - Test using new Bug Report Form https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms --- .github/ISSUE_TEMPLATE/01_bug_report.yml | 147 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/bug_report.md | 84 ------------- 2 files changed, 147 insertions(+), 84 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/01_bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md diff --git a/.github/ISSUE_TEMPLATE/01_bug_report.yml b/.github/ISSUE_TEMPLATE/01_bug_report.yml new file mode 100644 index 000000000..84e71d405 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/01_bug_report.yml @@ -0,0 +1,147 @@ +name: Bug Report +description: Create a report for a reproducible bug +labels: [] +body: + - type: markdown + attributes: + value: | + Please only open an issue if you have a BUG to report, if you simply have a question or require some assistance then please use [Discussions](https://github.com/cefsharp/CefSharp/discussions). + If you are new to the project then please review the following: + - Start by reading the General Usage guide, it answers all the common questions https://github.com/cefsharp/CefSharp/wiki/General-Usage + - Check out the FAQ, lots of useful information there, specially if your having trouble deploying to a different machine : https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions + - GitHub proves a fantastic search feature, it'll search through past issues and code. So check that out (Search box at the top of this page) : https://github.com/cefsharp/CefSharp + - You can see all the `CefSharp` tagged issues on `Stackoverflow`, some useful stuff there : http://stackoverflow.com/questions/tagged/cefsharp + - type: textarea + id: cefsharp-version + attributes: + label: CefSharp Version + description: What version are you using? Please only open an issue if you can reproduce the problem with version 112.2.70 or later. + placeholder: 112.2.70 + validations: + required: true + - type: dropdown + id: operating-system + attributes: + label: Operating System + multiple: false + options: + - Windows 10 + - Windows 11 + - Windows Server 2016 + - Windows Server 2019 + - Windows Server 2022 + - AnyCPU + validations: + required: true + - type: dropdown + id: architecture + attributes: + label: Architecture + multiple: false + options: + - x64 + - x86 + - arm64 + - AnyCPU + validations: + required: true + - type: textarea + id: dotnet-version + attributes: + label: .Net Version + description: | + What .Net version are you using? + placeholder: e.g. .Net 4.8 or .Net 6.0 + validations: + required: true + - type: dropdown + id: cefsharp-implementation + attributes: + label: Implementation + multiple: false + options: + - WinForms + - WPF + - OffScreen + validations: + required: true + - type: textarea + id: repro-steps + attributes: + label: Reproduction Steps + description: | + Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small example project here on GitHub, with steps to run it. If possible include text as text rather than screenshots (so it shows up in searches). + placeholder: Minimal Reproduction + validations: + required: true + - type: textarea + id: expected-behavior + attributes: + label: Expected behavior + description: | + Provide a description of the expected behavior. + placeholder: Expected behavior + validations: + required: true + - type: textarea + id: actual-behavior + attributes: + label: Actual behavior + description: | + Provide a description of the actual behavior observed. If applicable please include any error messages, exception or stacktraces. + placeholder: Actual behavior + validations: + required: true + - type: textarea + id: regression + attributes: + label: Regression? + description: | + Did this work in a previous build or release of CefSharp? If you can try a previous release or build to find out, that can help us narrow down the problem. If you don't know, that's OK. + placeholder: Regression? + validations: + required: false + - type: textarea + id: known-workarounds + attributes: + label: Known Workarounds + description: | + Please provide a description of any known workarounds. + placeholder: Known Workarounds + validations: + required: false + - type: dropdown + id: cefclient-testing + attributes: + label: Does this problem also occur in the `CEF` Sample Application + multiple: false + options: + - Yes + - No + - Not Tested + description: | + To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. [cefclient x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [cefclient x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2). [cefclient arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). + If you can reproduce the problem with `cefclient` then please report the issue on [CEF Issue Tracker](https://github.com/chromiumembedded/cef/issues) (Make sure you search before opening an issue). If you open an issue here it will most likely be closed as `upstream` as the bug needs to be fixed in `CEF`. + - Extract and run cefclient.exe + - **MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED BELOW** + - If you are using WPF/OffScreen run + ``` + cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu + ``` + - If you are using WinForms run + ``` + cefclient.exe --multi-threaded-message-loop --no-sandbox + ``` + validations: + required: true + - type: textarea + id: other-info + attributes: + label: Other information + description: | + If you are seeing a crash in `libcef.dll` then please download `libcef.dll.pdb` and place it next to `libcef.dll` to obtain a detailed stack trace, see https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#loading-native-symbols-for-easier-diagnosis for details. + Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory) + Any other background information that's relevant? Are you doing something out of the ordinary? 3rd party controls? + placeholder: Other information + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index db9c14559..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -name: Bug report -about: Create a report for a reproducible bug -title: '' -labels: '' -assignees: '' - ---- - -### Please only open an issue if you have a BUG to report, if you simply have a question or require some assistance keep reading for info. If you do have a BUG to report, please use the Bug Report template below. - -So you have a question to ask, where can you look for answers? Read on. Think you've found a bug? Please take the time to fill out the bug report below, provide as much information as you can, make sure you provide information for every heading. Thank you! We'd like to keep issues exclusively for **bug reports**, so please ask your questions in the `Discussions` section (https://github.com/cefsharp/CefSharp/discussions) - -- Start by reading the General Usage guide, it answers all the common questions https://github.com/cefsharp/CefSharp/wiki/General-Usage -- Check out the FAQ, lots of useful information there, specially if your having trouble deploying to a different machine : https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions -- GitHub proves a fantastic search feature, it'll search through past issues and code. So check that out (Search box at the top of this page) : https://github.com/cefsharp/CefSharp -- You can see all the `CefSharp` tagged issues on `Stackoverflow`, some useful stuff there : http://stackoverflow.com/questions/tagged/cefsharp - -Still have a question? Great, ask it on [Discussions](https://github.com/cefsharp/CefSharp/discussions) or [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp). Larger complex questions should be asked on `Discussions` - -**Note: CefSharp is just a wrapper around the Chromium Embedded Project, it's worth searching http://magpcss.org/ceforum/index.php if your problem involves a low level Chromium error message** - -We ask that you put in a reasonable amount of effort in searching through the resources listed above. The developers have full time jobs, they have lives, families, the time they have available to contribute this project is a precious resource, make sure you use it wisely! Remember the more time we spend answering the same questions over and over again, less time goes into writing code, adding new features, actually fixing bugs! - -Still have a question to ask or unsure where to go next? Start with : https://github.com/cefsharp/CefSharp/discussions - -Before posting a bug report please take the time to read https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/ - ---- -### Bug Report -Delete this line and everything above, and then fill in the details below. - -- **What version of the product are you using?** - - Please only create an issue if you can reproduce the problem with version 110.0.280 or greater. - - What version are you using? Nuget? CI Nuget? build from a branch? If so please link to the relevant commit. - - Please include the exact version number you are using e.g. 110.0.280 (no ambiguous statements like `Latest from Nuget`) - -- **What architecture x86 or x64?** - - -- **What version of .Net?** - <.Net 4.x/.Net Core 3.1/.Net 5.0/6.0/7.0> - -- **On what operating system?** - - -- **Are you using `WinForms`, `WPF` or `OffScreen`?** - - -- **What steps will reproduce the problem?** - - Please provide detailed information here, enough for someone else to reproduce your problem. - - Does the problem reproduce using the [MinimalExample](https://github.com/cefsharp/CefSharp.MinimalExample)? - - If code is required to reproduce your problem then please provide one of the following - - Fork the [MinimalExample](https://github.com/cefsharp/CefSharp.MinimalExample) and push your changes to `GitHub` (this is the preferred option). - - Use a code sharing service list `Gist` or `Pastebin` - - Paste your **formatted code as part of this issue** (only do this for small amounts of code and make sure you **format the code so it's readable**) - - Please no binary attachments (zip, 7z, etc), code needs to be easily reviewed in a web browser. - -- **What is the expected output? What do you see instead?** - -- **Please provide any additional information below.** - - A stack trace if available, any Exception information. - - If you are seeing a crash in `libcef.dll` then please download `libcef.dll.pdb` and place it next to `libcef.dll` to obtain a detailed stack trace, see https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#loading-native-symbols-for-easier-diagnosis for details. - - - Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory) - - - Any other background information that's relevant? Are you doing something out of the ordinary? 3rd party controls? - -- **Does this problem also occur in the `CEF` Sample Application** - - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2 - - Extract and run cefclient.exe - - If you are using WPF/OffScreen run - ``` - cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu - ``` - - If you are using WinForms run - ``` - cefclient.exe --multi-threaded-message-loop --no-sandbox - ``` - - **MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED ABOVE** - - If you can reproduce the problem with `cefclient` then please report the issue on https://github.com/chromiumembedded/cef/issues (Make sure you search before opening an issue). If you open an issue here it will most likely be closed as `upstream` as the bug needs to be fixed in `CEF`. From 91fdddd0e5223abac5621d9095a6b786be6effc8 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 16:13:48 +1000 Subject: [PATCH 249/543] GitHub - Rename bug report --- .github/ISSUE_TEMPLATE/{01_bug_report.yml => bug_report.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/ISSUE_TEMPLATE/{01_bug_report.yml => bug_report.yml} (100%) diff --git a/.github/ISSUE_TEMPLATE/01_bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/01_bug_report.yml rename to .github/ISSUE_TEMPLATE/bug_report.yml From 457ef18793a3ebfdee6a95b7487a60aaef626eab Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 16:17:24 +1000 Subject: [PATCH 250/543] GitHub - Issue Template body[11]: options must not include booleans. Please wrap values such as 'yes', and 'true' in quotes. Learn more about this error. --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 84e71d405..42a7bd931 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -116,7 +116,7 @@ body: label: Does this problem also occur in the `CEF` Sample Application multiple: false options: - - Yes + - 'Yes' - No - Not Tested description: | From ce8bd2ce962721cf1e6ef86996b64cee6a4010de Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 17:13:05 +1000 Subject: [PATCH 251/543] GitHub - Issue Template tweaks --- .github/ISSUE_TEMPLATE/bug_report.yml | 33 ++++++++++++++------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 42a7bd931..0db7cfc43 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -6,11 +6,9 @@ body: attributes: value: | Please only open an issue if you have a BUG to report, if you simply have a question or require some assistance then please use [Discussions](https://github.com/cefsharp/CefSharp/discussions). - If you are new to the project then please review the following: - - Start by reading the General Usage guide, it answers all the common questions https://github.com/cefsharp/CefSharp/wiki/General-Usage - - Check out the FAQ, lots of useful information there, specially if your having trouble deploying to a different machine : https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions - - GitHub proves a fantastic search feature, it'll search through past issues and code. So check that out (Search box at the top of this page) : https://github.com/cefsharp/CefSharp - - You can see all the `CefSharp` tagged issues on `Stackoverflow`, some useful stuff there : http://stackoverflow.com/questions/tagged/cefsharp + If you are new to the project then please review the following [General Usage guide](https://github.com/cefsharp/CefSharp/wiki/General-Usage), it answers all the common questions. + [Frequently Asked Questions](https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions), lots of useful information there, specially if your having trouble deploying to a different machine. GitHub proves a fantastic search feature, it'll search through past issues and code. So check that out (Search box at the top of this page). + You can see all the `CefSharp` tagged issues on [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp), some useful stuff there - type: textarea id: cefsharp-version attributes: @@ -110,18 +108,10 @@ body: placeholder: Known Workarounds validations: required: false - - type: dropdown - id: cefclient-testing + - type: markdown attributes: - label: Does this problem also occur in the `CEF` Sample Application - multiple: false - options: - - 'Yes' - - No - - Not Tested - description: | + value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. [cefclient x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [cefclient x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2). [cefclient arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). - If you can reproduce the problem with `cefclient` then please report the issue on [CEF Issue Tracker](https://github.com/chromiumembedded/cef/issues) (Make sure you search before opening an issue). If you open an issue here it will most likely be closed as `upstream` as the bug needs to be fixed in `CEF`. - Extract and run cefclient.exe - **MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED BELOW** - If you are using WPF/OffScreen run @@ -132,6 +122,17 @@ body: ``` cefclient.exe --multi-threaded-message-loop --no-sandbox ``` + - type: dropdown + id: cefclient-testing + attributes: + label: Does this problem also occur in the `CEF` Sample Application + multiple: false + options: + - 'Yes' + - No + - Not Tested + description: | + If you can reproduce the problem with `cefclient` then please report the issue on [CEF Issue Tracker](https://github.com/chromiumembedded/cef/issues) (Make sure you search before opening an issue). If you open an issue here it will most likely be closed as `upstream` as the bug needs to be fixed in `CEF`. validations: required: true - type: textarea @@ -139,7 +140,7 @@ body: attributes: label: Other information description: | - If you are seeing a crash in `libcef.dll` then please download `libcef.dll.pdb` and place it next to `libcef.dll` to obtain a detailed stack trace, see https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#loading-native-symbols-for-easier-diagnosis for details. + If you are seeing a crash in `libcef.dll` then please download `libcef.dll.pdb` and place it next to `libcef.dll` to obtain a detailed stack trace, the [FAQ](https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#loading-native-symbols-for-easier-diagnosis) for details. Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory) Any other background information that's relevant? Are you doing something out of the ordinary? 3rd party controls? placeholder: Other information From d490d5ff226873355447699eb8fa43773d05f557 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 17:30:00 +1000 Subject: [PATCH 252/543] GitHub - Issue Template tweaks --- .github/ISSUE_TEMPLATE/bug_report.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 0db7cfc43..ee8798f46 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -5,10 +5,18 @@ body: - type: markdown attributes: value: | - Please only open an issue if you have a BUG to report, if you simply have a question or require some assistance then please use [Discussions](https://github.com/cefsharp/CefSharp/discussions). + Please only open an issue if you have a **BUG** to report. for questions/assistance use [Discussions](https://github.com/cefsharp/CefSharp/discussions). If you are new to the project then please review the following [General Usage guide](https://github.com/cefsharp/CefSharp/wiki/General-Usage), it answers all the common questions. - [Frequently Asked Questions](https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions), lots of useful information there, specially if your having trouble deploying to a different machine. GitHub proves a fantastic search feature, it'll search through past issues and code. So check that out (Search box at the top of this page). + [Frequently Asked Questions](https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions), lots of useful information there, specially if your having trouble deploying to a different machine. + GitHub has a fantastic search feature, it'll search through past issues/code. Use the Search box at the top of this page). You can see all the `CefSharp` tagged issues on [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp), some useful stuff there + - type: checkboxes + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched for existing issues + required: true - type: textarea id: cefsharp-version attributes: @@ -70,6 +78,7 @@ body: description: | Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small example project here on GitHub, with steps to run it. If possible include text as text rather than screenshots (so it shows up in searches). placeholder: Minimal Reproduction + render: markdown validations: required: true - type: textarea @@ -111,7 +120,8 @@ body: - type: markdown attributes: value: | - To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. [cefclient x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [cefclient x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2). [cefclient arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). + To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. + 1. Download [x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). - Extract and run cefclient.exe - **MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED BELOW** - If you are using WPF/OffScreen run @@ -125,11 +135,11 @@ body: - type: dropdown id: cefclient-testing attributes: - label: Does this problem also occur in the `CEF` Sample Application + label: Does this problem also occur in the **CEF** Sample Application multiple: false options: - 'Yes' - - No + - 'No' - Not Tested description: | If you can reproduce the problem with `cefclient` then please report the issue on [CEF Issue Tracker](https://github.com/chromiumembedded/cef/issues) (Make sure you search before opening an issue). If you open an issue here it will most likely be closed as `upstream` as the bug needs to be fixed in `CEF`. From db36c54542fcc02ba12a469d7d1fdf45e784974e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 17:31:40 +1000 Subject: [PATCH 253/543] GitHub - Issue Template tweaks - Change some textareas to input --- .github/ISSUE_TEMPLATE/bug_report.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index ee8798f46..eb9bf6b71 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -17,7 +17,7 @@ body: options: - label: I have searched for existing issues required: true - - type: textarea + - type: input id: cefsharp-version attributes: label: CefSharp Version @@ -51,7 +51,7 @@ body: - AnyCPU validations: required: true - - type: textarea + - type: input id: dotnet-version attributes: label: .Net Version From e124ab087f2b675e03c59c26339d7e1042e34eef Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 17:35:07 +1000 Subject: [PATCH 254/543] GitHub - Issue Template fixes --- .github/ISSUE_TEMPLATE/bug_report.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index eb9bf6b71..fef3ad831 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -15,8 +15,8 @@ body: label: Is there an existing issue for this? description: Please search to see if an issue already exists for the bug you encountered. options: - - label: I have searched for existing issues - required: true + - label: I have searched for existing issues + required: true - type: input id: cefsharp-version attributes: From f1a500cf279d5a164a4b927183a56f9a8b70b158 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 17:37:51 +1000 Subject: [PATCH 255/543] GitHub - Issue Template fix --- .github/ISSUE_TEMPLATE/bug_report.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index fef3ad831..e1ac28bbf 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -11,12 +11,13 @@ body: GitHub has a fantastic search feature, it'll search through past issues/code. Use the Search box at the top of this page). You can see all the `CefSharp` tagged issues on [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp), some useful stuff there - type: checkboxes + id: new-issue attributes: - label: Is there an existing issue for this? - description: Please search to see if an issue already exists for the bug you encountered. - options: - - label: I have searched for existing issues - required: true + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched for existing issues + required: true - type: input id: cefsharp-version attributes: From 2d457bbde1ac04a42570d49fe692fff72e1471ca Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 17:42:08 +1000 Subject: [PATCH 256/543] GitHub - Issue Template fix --- .github/ISSUE_TEMPLATE/bug_report.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index e1ac28bbf..8880b7bf8 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -13,11 +13,11 @@ body: - type: checkboxes id: new-issue attributes: - label: Is there an existing issue for this? - description: Please search to see if an issue already exists for the bug you encountered. - options: - - label: I have searched for existing issues - required: true + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched the existing issues + required: true - type: input id: cefsharp-version attributes: From ef0f30d4c0fa336dbf0354573d7c125c4d2c750b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 17:42:57 +1000 Subject: [PATCH 257/543] GitHub - Issue Template remove checkbox --- .github/ISSUE_TEMPLATE/bug_report.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 8880b7bf8..40640f855 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -10,14 +10,6 @@ body: [Frequently Asked Questions](https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions), lots of useful information there, specially if your having trouble deploying to a different machine. GitHub has a fantastic search feature, it'll search through past issues/code. Use the Search box at the top of this page). You can see all the `CefSharp` tagged issues on [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp), some useful stuff there - - type: checkboxes - id: new-issue - attributes: - label: Is there an existing issue for this? - description: Please search to see if an issue already exists for the bug you encountered. - options: - - label: I have searched the existing issues - required: true - type: input id: cefsharp-version attributes: From efd907657cd8df4fbdf70fb4ced0e75a5178bc51 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 18:08:18 +1000 Subject: [PATCH 258/543] GitHub - Issue Template formatting fixes --- .github/ISSUE_TEMPLATE/bug_report.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 40640f855..71bb1004b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -114,21 +114,14 @@ body: attributes: value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. - 1. Download [x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). - - Extract and run cefclient.exe - - **MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED BELOW** - - If you are using WPF/OffScreen run - ``` - cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu - ``` - - If you are using WinForms run - ``` - cefclient.exe --multi-threaded-message-loop --no-sandbox - ``` + 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). + 2. Extract tar.bz2 file + 3a. For WPF/OffScreen `cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu` Execute cefclient.exe using the command line args:MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED BELOW** + 3b. For WinForms `cefclient.exe --multi-threaded-message-loop --no-sandbox - type: dropdown id: cefclient-testing attributes: - label: Does this problem also occur in the **CEF** Sample Application + label: Does this problem also occur in the CEF Sample Application multiple: false options: - 'Yes' From 32b00d1eb6e960c83ab6fff06049ce2892bd578a Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 18:12:49 +1000 Subject: [PATCH 259/543] GitHub - Issue Template formatting fixes --- .github/ISSUE_TEMPLATE/bug_report.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 71bb1004b..480abfa90 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -114,17 +114,20 @@ body: attributes: value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. - 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). - 2. Extract tar.bz2 file - 3a. For WPF/OffScreen `cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu` Execute cefclient.exe using the command line args:MAKE SURE TO TEST WITH THE COMMAND LINE ARGS LISTED BELOW** - 3b. For WinForms `cefclient.exe --multi-threaded-message-loop --no-sandbox + 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). + 2. Extract tar.bz2 file + 3. Execute cefclient.exe using the **command line args below**: + + For WPF/OffScreen `cefclient.exe --multi-threaded-message-loop --no-sandbox --off-screen-rendering-enabled --enable-gpu` + For WinForms `cefclient.exe --multi-threaded-message-loop --no-sandbox` - type: dropdown id: cefclient-testing attributes: label: Does this problem also occur in the CEF Sample Application multiple: false options: - - 'Yes' + - 'Yes using WPF/OffScreen args' + - 'Yes using WinForms args' - 'No' - Not Tested description: | From 7ef2598548c15c5ec14a7543ea6019f19cd01e30 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 18:19:51 +1000 Subject: [PATCH 260/543] GitHub - Issue Template tweaks --- .github/ISSUE_TEMPLATE/bug_report.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 480abfa90..b09e68900 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -29,7 +29,6 @@ body: - Windows Server 2016 - Windows Server 2019 - Windows Server 2022 - - AnyCPU validations: required: true - type: dropdown @@ -69,7 +68,7 @@ body: attributes: label: Reproduction Steps description: | - Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small example project here on GitHub, with steps to run it. If possible include text as text rather than screenshots (so it shows up in searches). + Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small example project here on GitHub, with steps to run it. If possible include text/code as text rather than screenshots (so it shows up in searches and can copy/paste). placeholder: Minimal Reproduction render: markdown validations: @@ -126,8 +125,8 @@ body: label: Does this problem also occur in the CEF Sample Application multiple: false options: - - 'Yes using WPF/OffScreen args' - - 'Yes using WinForms args' + - 'Yes using WPF/OffScreen command line args' + - 'Yes using WinForms command line args' - 'No' - Not Tested description: | @@ -139,7 +138,7 @@ body: attributes: label: Other information description: | - If you are seeing a crash in `libcef.dll` then please download `libcef.dll.pdb` and place it next to `libcef.dll` to obtain a detailed stack trace, the [FAQ](https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#loading-native-symbols-for-easier-diagnosis) for details. + If you are seeing a crash in `libcef.dll` then please download `libcef.dll.pdb` and place it next to `libcef.dll` to obtain a detailed stack trace, see [FAQ](https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#loading-native-symbols-for-easier-diagnosis) for details. Does the cef log provide any relevant information? (By default there should be a debug.log file in your bin directory) Any other background information that's relevant? Are you doing something out of the ordinary? 3rd party controls? placeholder: Other information From eceff84025160b429555e898efff643d3ca30cac Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 18:37:21 +1000 Subject: [PATCH 261/543] GitHub - Issue Template tweaks --- .github/ISSUE_TEMPLATE/bug_report.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b09e68900..85783951d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -5,11 +5,11 @@ body: - type: markdown attributes: value: | - Please only open an issue if you have a **BUG** to report. for questions/assistance use [Discussions](https://github.com/cefsharp/CefSharp/discussions). - If you are new to the project then please review the following [General Usage guide](https://github.com/cefsharp/CefSharp/wiki/General-Usage), it answers all the common questions. - [Frequently Asked Questions](https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions), lots of useful information there, specially if your having trouble deploying to a different machine. - GitHub has a fantastic search feature, it'll search through past issues/code. Use the Search box at the top of this page). - You can see all the `CefSharp` tagged issues on [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp), some useful stuff there + Please only open an issue if you have a **BUG** to report. for questions/assistance use [Discussions](https://github.com/cefsharp/CefSharp/discussions). If you are new to the project then please review the following: + 1. [General Usage guide](https://github.com/cefsharp/CefSharp/wiki/General-Usage) includes examples and details of many common questions. + 2. [Frequently Asked Questions](https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions), lots of useful information there, specially if your having trouble deploying to a different machine. + 3. GitHub has a fantastic search feature, it'll search through past issues/code. Use the Search box at the top of this page). + 4. You can see all the `CefSharp` tagged issues on [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp), lots of questions/answers. - type: input id: cefsharp-version attributes: From 49753c4b28c5553db0896a5813999955ce336231 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 20 Apr 2023 18:44:45 +1000 Subject: [PATCH 262/543] GitHub - Issue Template existing issues --- .github/ISSUE_TEMPLATE/bug_report.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 85783951d..949db3435 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -10,6 +10,13 @@ body: 2. [Frequently Asked Questions](https://github.com/cefsharp/CefSharp/wiki/Frequently-asked-questions), lots of useful information there, specially if your having trouble deploying to a different machine. 3. GitHub has a fantastic search feature, it'll search through past issues/code. Use the Search box at the top of this page). 4. You can see all the `CefSharp` tagged issues on [Stackoverflow](http://stackoverflow.com/questions/tagged/cefsharp), lots of questions/answers. + - type: checkboxes + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched both open and closed issues + required: true - type: input id: cefsharp-version attributes: From 52816cafa21f5ca92cdf397a5950ec69c7086faf Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 21 Apr 2023 05:43:38 +1000 Subject: [PATCH 263/543] GitHub - Issue Template fix - Remove markdown formatting from repo steps --- .github/ISSUE_TEMPLATE/bug_report.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 949db3435..1013dae93 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -77,7 +77,6 @@ body: description: | Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small example project here on GitHub, with steps to run it. If possible include text/code as text rather than screenshots (so it shows up in searches and can copy/paste). placeholder: Minimal Reproduction - render: markdown validations: required: true - type: textarea From 6d33757a169a0af196df8580e9808ad3da0aee6e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 21 Apr 2023 06:19:39 +1000 Subject: [PATCH 264/543] GitHub - Issue Template tweaks - Add MinimalExample reference --- .github/ISSUE_TEMPLATE/bug_report.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 1013dae93..d87f3037e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -15,7 +15,7 @@ body: label: Is there an existing issue for this? description: Please search to see if an issue already exists for the bug you encountered. options: - - label: I have searched both open and closed issues + - label: I have searched both open/closed issues, no issue already exists. required: true - type: input id: cefsharp-version @@ -75,7 +75,8 @@ body: attributes: label: Reproduction Steps description: | - Please include minimal steps to reproduce the problem if possible. E.g.: the smallest possible code snippet; or a small example project here on GitHub, with steps to run it. If possible include text/code as text rather than screenshots (so it shows up in searches and can copy/paste). + Please include minimal steps to reproduce the problem. E.g.: the smallest possible code snippet; or a small example project here on GitHub, with steps to run it. Include text/code as text rather than screenshots (so it shows up in searches and can copy/paste). + Does the problem reproduce using the [MinimalExample](https://github.com/cefsharp/CefSharp.MinimalExample)? You can fork the MinimalExample and use this as a base for your example. placeholder: Minimal Reproduction validations: required: true From eadeec8a59b612f8b5b232861a83499d9693215b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 27 Apr 2023 05:37:41 +1000 Subject: [PATCH 265/543] README.md - Update to M112 --- .github/ISSUE_TEMPLATE/bug_report.yml | 6 +++--- CONTRIBUTING.md | 6 +++--- README.md | 3 ++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d87f3037e..1ce6e7a01 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -21,8 +21,8 @@ body: id: cefsharp-version attributes: label: CefSharp Version - description: What version are you using? Please only open an issue if you can reproduce the problem with version 112.2.70 or later. - placeholder: 112.2.70 + description: What version are you using? Please only open an issue if you can reproduce the problem with version 112.3.0 or later. + placeholder: 112.3.0 validations: required: true - type: dropdown @@ -120,7 +120,7 @@ body: attributes: value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. - 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2). + 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windowsarm64_client.tar.bz2). 2. Extract tar.bz2 file 3. Execute cefclient.exe using the **command line args below**: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8293fe648..5c427fe07 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_111.2.7%2Bgebf5d6a%2Bchromium-111.0.5563.148_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 752511f0a..46a081f39 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,8 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| | [master](https://github.com/cefsharp/CefSharp/) | 5615 | 2019* | 4.5.2** | Development | -| [cefsharp/111](https://github.com/cefsharp/CefSharp/tree/cefsharp/111)| 5563 | 2019* | 4.5.2** | **Release** | +| [cefsharp/112](https://github.com/cefsharp/CefSharp/tree/cefsharp/112)| 5615 | 2019* | 4.5.2** | **Release** | +| [cefsharp/111](https://github.com/cefsharp/CefSharp/tree/cefsharp/111)| 5563 | 2019* | 4.5.2** | Unsupported | | [cefsharp/110](https://github.com/cefsharp/CefSharp/tree/cefsharp/110)| 5481 | 2019* | 4.5.2** | Unsupported | | [cefsharp/109](https://github.com/cefsharp/CefSharp/tree/cefsharp/109)| 5414 | 2019* | 4.5.2** | Unsupported | | [cefsharp/108](https://github.com/cefsharp/CefSharp/tree/cefsharp/108)| 5359 | 2019* | 4.5.2** | Unsupported | From 3bd71bbc894fe5cbac2baee2fed1dc95bac61466 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 29 Apr 2023 12:03:31 +1000 Subject: [PATCH 266/543] Upgrade to 113.1.1+gfef20aa+chromium-113.0.5672.63 / Chromium 113.0.5672.63 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index d6050c877..8abc572df 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 5a53a950d..b39248db1 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 1289a5711..29ee7f750 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 112,2,100 - PRODUCTVERSION 112,2,100 + FILEVERSION 113,1,10 + PRODUCTVERSION 113,1,10 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "112.2.100" + VALUE "FileVersion", "113.1.10" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "112.2.100" + VALUE "ProductVersion", "113.1.10" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 26b8801a9..2d1c7c9bb 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 6f77100f1..884266935 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 2239004f0..dd5adc364 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 267ce469e..8bab14e41 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index a26afaee7..b3d98c264 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 6222914b9..19178d3ca 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 112,2,100 - PRODUCTVERSION 112,2,100 + FILEVERSION 113,1,10 + PRODUCTVERSION 113,1,10 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "112.2.100" + VALUE "FileVersion", "113.1.10" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "112.2.100" + VALUE "ProductVersion", "113.1.10" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 26b8801a9..2d1c7c9bb 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 6f77100f1..884266935 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index d9c9a36df..baff362d3 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 5b8eae24e..d46252b41 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 0fbb1bbf9..d41c5cc25 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index ce0f91c4d..a9552e18f 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 3286319e6..f148f07a8 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 979101ffa..90358e947 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 12c6e4fcd..03fc0f1a1 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 44a8300a6..787b81a62 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 6d26d396b..b68d42b9e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index c37462a93..265500b8c 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index a7d12058c..920ea2a93 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 4e1a34f9b..230c83b75 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 112.2.100 + 113.1.10 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 112.2.100 + Version 113.1.10 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 9daaac445..23772ce3b 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "112.2.100"; - public const string AssemblyFileVersion = "112.2.100.0"; + public const string AssemblyVersion = "113.1.10"; + public const string AssemblyFileVersion = "113.1.10.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 44911ef78..a49f8f748 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index a6d2957a0..30f740ac3 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 107fca832..127ac4859 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index a2adfb14f..aaadb39a0 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "112.2.10", + [string] $CefVersion = "113.1.1", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 308e1ee0a..19288301c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 112.2.100-CI{build} +version: 113.1.10-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 40039ab55..5899c2d03 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "112.2.100", + [string] $Version = "113.1.10", [Parameter(Position = 2)] - [string] $AssemblyVersion = "112.2.100", + [string] $AssemblyVersion = "113.1.10", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 4699eb5e0e6ba71c4f06442c5abfce5e20012c72 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 30 Apr 2023 10:29:39 +1000 Subject: [PATCH 267/543] DevTools Client - Update to 113.0.5672.63 --- .../DevTools/DevToolsClient.Generated.cs | 1984 ++++++++++----- .../DevToolsClient.Generated.netcore.cs | 2162 ++++++++++++----- 2 files changed, 2916 insertions(+), 1230 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 574be1655..05fbf8505 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 112.0.5615.49 +// CHROMIUM VERSION 113.0.5672.63 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2556,11 +2556,6 @@ public enum AttributionReportingIssueType [EnumMember(Value = ("PermissionPolicyDisabled"))] PermissionPolicyDisabled, /// - /// PermissionPolicyNotDelegated - /// - [EnumMember(Value = ("PermissionPolicyNotDelegated"))] - PermissionPolicyNotDelegated, - /// /// UntrustworthyReportingOrigin /// [EnumMember(Value = ("UntrustworthyReportingOrigin"))] @@ -2604,7 +2599,32 @@ public enum AttributionReportingIssueType /// TriggerIgnored /// [EnumMember(Value = ("TriggerIgnored"))] - TriggerIgnored + TriggerIgnored, + /// + /// OsSourceIgnored + /// + [EnumMember(Value = ("OsSourceIgnored"))] + OsSourceIgnored, + /// + /// OsTriggerIgnored + /// + [EnumMember(Value = ("OsTriggerIgnored"))] + OsTriggerIgnored, + /// + /// InvalidRegisterOsSourceHeader + /// + [EnumMember(Value = ("InvalidRegisterOsSourceHeader"))] + InvalidRegisterOsSourceHeader, + /// + /// InvalidRegisterOsTriggerHeader + /// + [EnumMember(Value = ("InvalidRegisterOsTriggerHeader"))] + InvalidRegisterOsTriggerHeader, + /// + /// WebAndOsHeaders + /// + [EnumMember(Value = ("WebAndOsHeaders"))] + WebAndOsHeaders } /// @@ -2813,10 +2833,10 @@ public enum GenericIssueErrorType [EnumMember(Value = ("FormLabelForMatchesNonExistingIdError"))] FormLabelForMatchesNonExistingIdError, /// - /// FormHasPasswordFieldWithoutUsernameFieldError + /// FormInputHasWrongButWellIntendedAutocompleteValueError /// - [EnumMember(Value = ("FormHasPasswordFieldWithoutUsernameFieldError"))] - FormHasPasswordFieldWithoutUsernameFieldError + [EnumMember(Value = ("FormInputHasWrongButWellIntendedAutocompleteValueError"))] + FormInputHasWrongButWellIntendedAutocompleteValueError } /// @@ -4713,6 +4733,16 @@ public CefSharp.DevTools.CSS.SelectorList SelectorList set; } + /// + /// Array of selectors from ancestor style rules, sorted by distance from the current rule. + /// + [DataMember(Name = ("nestingSelectors"), IsRequired = (false))] + public string[] NestingSelectors + { + get; + set; + } + /// /// Parent stylesheet's origin. /// @@ -20850,331 +20880,6 @@ public System.Collections.Generic.IList - /// List of FinalStatus reasons for Prerender2. - /// - public enum PrerenderFinalStatus - { - /// - /// Activated - /// - [EnumMember(Value = ("Activated"))] - Activated, - /// - /// Destroyed - /// - [EnumMember(Value = ("Destroyed"))] - Destroyed, - /// - /// LowEndDevice - /// - [EnumMember(Value = ("LowEndDevice"))] - LowEndDevice, - /// - /// InvalidSchemeRedirect - /// - [EnumMember(Value = ("InvalidSchemeRedirect"))] - InvalidSchemeRedirect, - /// - /// InvalidSchemeNavigation - /// - [EnumMember(Value = ("InvalidSchemeNavigation"))] - InvalidSchemeNavigation, - /// - /// InProgressNavigation - /// - [EnumMember(Value = ("InProgressNavigation"))] - InProgressNavigation, - /// - /// NavigationRequestBlockedByCsp - /// - [EnumMember(Value = ("NavigationRequestBlockedByCsp"))] - NavigationRequestBlockedByCsp, - /// - /// MainFrameNavigation - /// - [EnumMember(Value = ("MainFrameNavigation"))] - MainFrameNavigation, - /// - /// MojoBinderPolicy - /// - [EnumMember(Value = ("MojoBinderPolicy"))] - MojoBinderPolicy, - /// - /// RendererProcessCrashed - /// - [EnumMember(Value = ("RendererProcessCrashed"))] - RendererProcessCrashed, - /// - /// RendererProcessKilled - /// - [EnumMember(Value = ("RendererProcessKilled"))] - RendererProcessKilled, - /// - /// Download - /// - [EnumMember(Value = ("Download"))] - Download, - /// - /// TriggerDestroyed - /// - [EnumMember(Value = ("TriggerDestroyed"))] - TriggerDestroyed, - /// - /// NavigationNotCommitted - /// - [EnumMember(Value = ("NavigationNotCommitted"))] - NavigationNotCommitted, - /// - /// NavigationBadHttpStatus - /// - [EnumMember(Value = ("NavigationBadHttpStatus"))] - NavigationBadHttpStatus, - /// - /// ClientCertRequested - /// - [EnumMember(Value = ("ClientCertRequested"))] - ClientCertRequested, - /// - /// NavigationRequestNetworkError - /// - [EnumMember(Value = ("NavigationRequestNetworkError"))] - NavigationRequestNetworkError, - /// - /// MaxNumOfRunningPrerendersExceeded - /// - [EnumMember(Value = ("MaxNumOfRunningPrerendersExceeded"))] - MaxNumOfRunningPrerendersExceeded, - /// - /// CancelAllHostsForTesting - /// - [EnumMember(Value = ("CancelAllHostsForTesting"))] - CancelAllHostsForTesting, - /// - /// DidFailLoad - /// - [EnumMember(Value = ("DidFailLoad"))] - DidFailLoad, - /// - /// Stop - /// - [EnumMember(Value = ("Stop"))] - Stop, - /// - /// SslCertificateError - /// - [EnumMember(Value = ("SslCertificateError"))] - SslCertificateError, - /// - /// LoginAuthRequested - /// - [EnumMember(Value = ("LoginAuthRequested"))] - LoginAuthRequested, - /// - /// UaChangeRequiresReload - /// - [EnumMember(Value = ("UaChangeRequiresReload"))] - UaChangeRequiresReload, - /// - /// BlockedByClient - /// - [EnumMember(Value = ("BlockedByClient"))] - BlockedByClient, - /// - /// AudioOutputDeviceRequested - /// - [EnumMember(Value = ("AudioOutputDeviceRequested"))] - AudioOutputDeviceRequested, - /// - /// MixedContent - /// - [EnumMember(Value = ("MixedContent"))] - MixedContent, - /// - /// TriggerBackgrounded - /// - [EnumMember(Value = ("TriggerBackgrounded"))] - TriggerBackgrounded, - /// - /// EmbedderTriggeredAndCrossOriginRedirected - /// - [EnumMember(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] - EmbedderTriggeredAndCrossOriginRedirected, - /// - /// MemoryLimitExceeded - /// - [EnumMember(Value = ("MemoryLimitExceeded"))] - MemoryLimitExceeded, - /// - /// FailToGetMemoryUsage - /// - [EnumMember(Value = ("FailToGetMemoryUsage"))] - FailToGetMemoryUsage, - /// - /// DataSaverEnabled - /// - [EnumMember(Value = ("DataSaverEnabled"))] - DataSaverEnabled, - /// - /// HasEffectiveUrl - /// - [EnumMember(Value = ("HasEffectiveUrl"))] - HasEffectiveUrl, - /// - /// ActivatedBeforeStarted - /// - [EnumMember(Value = ("ActivatedBeforeStarted"))] - ActivatedBeforeStarted, - /// - /// InactivePageRestriction - /// - [EnumMember(Value = ("InactivePageRestriction"))] - InactivePageRestriction, - /// - /// StartFailed - /// - [EnumMember(Value = ("StartFailed"))] - StartFailed, - /// - /// TimeoutBackgrounded - /// - [EnumMember(Value = ("TimeoutBackgrounded"))] - TimeoutBackgrounded, - /// - /// CrossSiteRedirect - /// - [EnumMember(Value = ("CrossSiteRedirect"))] - CrossSiteRedirect, - /// - /// CrossSiteNavigation - /// - [EnumMember(Value = ("CrossSiteNavigation"))] - CrossSiteNavigation, - /// - /// SameSiteCrossOriginRedirect - /// - [EnumMember(Value = ("SameSiteCrossOriginRedirect"))] - SameSiteCrossOriginRedirect, - /// - /// SameSiteCrossOriginNavigation - /// - [EnumMember(Value = ("SameSiteCrossOriginNavigation"))] - SameSiteCrossOriginNavigation, - /// - /// SameSiteCrossOriginRedirectNotOptIn - /// - [EnumMember(Value = ("SameSiteCrossOriginRedirectNotOptIn"))] - SameSiteCrossOriginRedirectNotOptIn, - /// - /// SameSiteCrossOriginNavigationNotOptIn - /// - [EnumMember(Value = ("SameSiteCrossOriginNavigationNotOptIn"))] - SameSiteCrossOriginNavigationNotOptIn, - /// - /// ActivationNavigationParameterMismatch - /// - [EnumMember(Value = ("ActivationNavigationParameterMismatch"))] - ActivationNavigationParameterMismatch, - /// - /// ActivatedInBackground - /// - [EnumMember(Value = ("ActivatedInBackground"))] - ActivatedInBackground, - /// - /// EmbedderHostDisallowed - /// - [EnumMember(Value = ("EmbedderHostDisallowed"))] - EmbedderHostDisallowed, - /// - /// ActivationNavigationDestroyedBeforeSuccess - /// - [EnumMember(Value = ("ActivationNavigationDestroyedBeforeSuccess"))] - ActivationNavigationDestroyedBeforeSuccess, - /// - /// TabClosedByUserGesture - /// - [EnumMember(Value = ("TabClosedByUserGesture"))] - TabClosedByUserGesture, - /// - /// TabClosedWithoutUserGesture - /// - [EnumMember(Value = ("TabClosedWithoutUserGesture"))] - TabClosedWithoutUserGesture, - /// - /// PrimaryMainFrameRendererProcessCrashed - /// - [EnumMember(Value = ("PrimaryMainFrameRendererProcessCrashed"))] - PrimaryMainFrameRendererProcessCrashed, - /// - /// PrimaryMainFrameRendererProcessKilled - /// - [EnumMember(Value = ("PrimaryMainFrameRendererProcessKilled"))] - PrimaryMainFrameRendererProcessKilled, - /// - /// ActivationFramePolicyNotCompatible - /// - [EnumMember(Value = ("ActivationFramePolicyNotCompatible"))] - ActivationFramePolicyNotCompatible, - /// - /// PreloadingDisabled - /// - [EnumMember(Value = ("PreloadingDisabled"))] - PreloadingDisabled, - /// - /// BatterySaverEnabled - /// - [EnumMember(Value = ("BatterySaverEnabled"))] - BatterySaverEnabled, - /// - /// ActivatedDuringMainFrameNavigation - /// - [EnumMember(Value = ("ActivatedDuringMainFrameNavigation"))] - ActivatedDuringMainFrameNavigation, - /// - /// PreloadingUnsupportedByWebContents - /// - [EnumMember(Value = ("PreloadingUnsupportedByWebContents"))] - PreloadingUnsupportedByWebContents - } - - /// - /// Preloading status values, see also PreloadingTriggeringOutcome. This - /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. - /// - public enum PreloadingStatus - { - /// - /// Pending - /// - [EnumMember(Value = ("Pending"))] - Pending, - /// - /// Running - /// - [EnumMember(Value = ("Running"))] - Running, - /// - /// Ready - /// - [EnumMember(Value = ("Ready"))] - Ready, - /// - /// Success - /// - [EnumMember(Value = ("Success"))] - Success, - /// - /// Failure - /// - [EnumMember(Value = ("Failure"))] - Failure, - /// - /// NotSupported - /// - [EnumMember(Value = ("NotSupported"))] - NotSupported - } - /// /// domContentEventFired /// @@ -21949,178 +21654,6 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredExplanationTree NotRest } } - /// - /// Fired when a prerender attempt is completed. - /// - [System.Runtime.Serialization.DataContractAttribute] - public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// The frame id of the frame initiating prerendering. - /// - [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrerenderingUrl - /// - [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] - public string PrerenderingUrl - { - get; - private set; - } - - /// - /// FinalStatus - /// - public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus - { - get - { - return (CefSharp.DevTools.Page.PrerenderFinalStatus)(StringToEnum(typeof(CefSharp.DevTools.Page.PrerenderFinalStatus), finalStatus)); - } - - set - { - this.finalStatus = (EnumToString(value)); - } - } - - /// - /// FinalStatus - /// - [DataMember(Name = ("finalStatus"), IsRequired = (true))] - internal string finalStatus - { - get; - private set; - } - - /// - /// This is used to give users more information about the name of the API call - /// that is incompatible with prerender and has caused the cancellation of the attempt - /// - [DataMember(Name = ("disallowedApiMethod"), IsRequired = (false))] - public string DisallowedApiMethod - { - get; - private set; - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prefetch attempt is updated. - /// - [System.Runtime.Serialization.DataContractAttribute] - public class PrefetchStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// The frame id of the frame initiating prefetch. - /// - [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrefetchUrl - /// - [DataMember(Name = ("prefetchUrl"), IsRequired = (true))] - public string PrefetchUrl - { - get; - private set; - } - - /// - /// Status - /// - public CefSharp.DevTools.Page.PreloadingStatus Status - { - get - { - return (CefSharp.DevTools.Page.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Page.PreloadingStatus), status)); - } - - set - { - this.status = (EnumToString(value)); - } - } - - /// - /// Status - /// - [DataMember(Name = ("status"), IsRequired = (true))] - internal string status - { - get; - private set; - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prerender attempt is updated. - /// - [System.Runtime.Serialization.DataContractAttribute] - public class PrerenderStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// The frame id of the frame initiating prerender. - /// - [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrerenderingUrl - /// - [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] - public string PrerenderingUrl - { - get; - private set; - } - - /// - /// Status - /// - public CefSharp.DevTools.Page.PreloadingStatus Status - { - get - { - return (CefSharp.DevTools.Page.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Page.PreloadingStatus), status)); - } - - set - { - this.status = (EnumToString(value)); - } - } - - /// - /// Status - /// - [DataMember(Name = ("status"), IsRequired = (true))] - internal string status - { - get; - private set; - } - } - /// /// loadEventFired /// @@ -23757,6 +23290,11 @@ public enum StorageType [EnumMember(Value = ("shared_storage"))] SharedStorage, /// + /// storage_buckets + /// + [EnumMember(Value = ("storage_buckets"))] + StorageBuckets, + /// /// all /// [EnumMember(Value = ("all"))] @@ -24332,6 +23870,126 @@ public bool? IgnoreIfPresent } } + /// + /// StorageBucketsDurability + /// + public enum StorageBucketsDurability + { + /// + /// relaxed + /// + [EnumMember(Value = ("relaxed"))] + Relaxed, + /// + /// strict + /// + [EnumMember(Value = ("strict"))] + Strict + } + + /// + /// StorageBucketInfo + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class StorageBucketInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// StorageKey + /// + [DataMember(Name = ("storageKey"), IsRequired = (true))] + public string StorageKey + { + get; + set; + } + + /// + /// Id + /// + [DataMember(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + set; + } + + /// + /// Name + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// IsDefault + /// + [DataMember(Name = ("isDefault"), IsRequired = (true))] + public bool IsDefault + { + get; + set; + } + + /// + /// Expiration + /// + [DataMember(Name = ("expiration"), IsRequired = (true))] + public double Expiration + { + get; + set; + } + + /// + /// Storage quota (bytes). + /// + [DataMember(Name = ("quota"), IsRequired = (true))] + public double Quota + { + get; + set; + } + + /// + /// Persistent + /// + [DataMember(Name = ("persistent"), IsRequired = (true))] + public bool Persistent + { + get; + set; + } + + /// + /// Durability + /// + public CefSharp.DevTools.Storage.StorageBucketsDurability Durability + { + get + { + return (CefSharp.DevTools.Storage.StorageBucketsDurability)(StringToEnum(typeof(CefSharp.DevTools.Storage.StorageBucketsDurability), durability)); + } + + set + { + this.durability = (EnumToString(value)); + } + } + + /// + /// Durability + /// + [DataMember(Name = ("durability"), IsRequired = (true))] + internal string durability + { + get; + set; + } + } + /// /// A cache's contents have been modified. /// @@ -24607,6 +24265,40 @@ public CefSharp.DevTools.Storage.SharedStorageAccessParams Params private set; } } + + /// + /// storageBucketCreatedOrUpdated + /// + [System.Runtime.Serialization.DataContractAttribute] + public class StorageBucketCreatedOrUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Bucket + /// + [DataMember(Name = ("bucket"), IsRequired = (true))] + public CefSharp.DevTools.Storage.StorageBucketInfo Bucket + { + get; + private set; + } + } + + /// + /// storageBucketDeleted + /// + [System.Runtime.Serialization.DataContractAttribute] + public class StorageBucketDeletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// BucketId + /// + [DataMember(Name = ("bucketId"), IsRequired = (true))] + public string BucketId + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -28066,6 +27758,558 @@ public string SourceText get; set; } + + /// + /// Error information + /// `errorMessage` is null iff `errorType` is null. + /// + public CefSharp.DevTools.Preload.RuleSetErrorType? ErrorType + { + get + { + return (CefSharp.DevTools.Preload.RuleSetErrorType? )(StringToEnum(typeof(CefSharp.DevTools.Preload.RuleSetErrorType? ), errorType)); + } + + set + { + this.errorType = (EnumToString(value)); + } + } + + /// + /// Error information + /// `errorMessage` is null iff `errorType` is null. + /// + [DataMember(Name = ("errorType"), IsRequired = (false))] + internal string errorType + { + get; + set; + } + + /// + /// TODO(https://crbug.com/1425354): Replace this property with structured error. + /// + [DataMember(Name = ("errorMessage"), IsRequired = (false))] + public string ErrorMessage + { + get; + set; + } + } + + /// + /// RuleSetErrorType + /// + public enum RuleSetErrorType + { + /// + /// SourceIsNotJsonObject + /// + [EnumMember(Value = ("SourceIsNotJsonObject"))] + SourceIsNotJsonObject, + /// + /// InvalidRulesSkipped + /// + [EnumMember(Value = ("InvalidRulesSkipped"))] + InvalidRulesSkipped + } + + /// + /// The type of preloading attempted. It corresponds to + /// mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it + /// isn't being used by clients). + /// + public enum SpeculationAction + { + /// + /// Prefetch + /// + [EnumMember(Value = ("Prefetch"))] + Prefetch, + /// + /// Prerender + /// + [EnumMember(Value = ("Prerender"))] + Prerender + } + + /// + /// Corresponds to mojom::SpeculationTargetHint. + /// See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints + /// + public enum SpeculationTargetHint + { + /// + /// Blank + /// + [EnumMember(Value = ("Blank"))] + Blank, + /// + /// Self + /// + [EnumMember(Value = ("Self"))] + Self + } + + /// + /// A key that identifies a preloading attempt. + /// + /// The url used is the url specified by the trigger (i.e. the initial URL), and + /// not the final url that is navigated to. For example, prerendering allows + /// same-origin main frame navigations during the attempt, but the attempt is + /// still keyed with the initial URL. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class PreloadingAttemptKey : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// LoaderId + /// + [DataMember(Name = ("loaderId"), IsRequired = (true))] + public string LoaderId + { + get; + set; + } + + /// + /// Action + /// + public CefSharp.DevTools.Preload.SpeculationAction Action + { + get + { + return (CefSharp.DevTools.Preload.SpeculationAction)(StringToEnum(typeof(CefSharp.DevTools.Preload.SpeculationAction), action)); + } + + set + { + this.action = (EnumToString(value)); + } + } + + /// + /// Action + /// + [DataMember(Name = ("action"), IsRequired = (true))] + internal string action + { + get; + set; + } + + /// + /// Url + /// + [DataMember(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + set; + } + + /// + /// TargetHint + /// + public CefSharp.DevTools.Preload.SpeculationTargetHint? TargetHint + { + get + { + return (CefSharp.DevTools.Preload.SpeculationTargetHint? )(StringToEnum(typeof(CefSharp.DevTools.Preload.SpeculationTargetHint? ), targetHint)); + } + + set + { + this.targetHint = (EnumToString(value)); + } + } + + /// + /// TargetHint + /// + [DataMember(Name = ("targetHint"), IsRequired = (false))] + internal string targetHint + { + get; + set; + } + } + + /// + /// Lists sources for a preloading attempt, specifically the ids of rule sets + /// that had a speculation rule that triggered the attempt, and the + /// BackendNodeIds of <a href> or <area href> elements that triggered the + /// attempt (in the case of attempts triggered by a document rule). It is + /// possible for mulitple rule sets and links to trigger a single attempt. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class PreloadingAttemptSource : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key + { + get; + set; + } + + /// + /// RuleSetIds + /// + [DataMember(Name = ("ruleSetIds"), IsRequired = (true))] + public string[] RuleSetIds + { + get; + set; + } + + /// + /// NodeIds + /// + [DataMember(Name = ("nodeIds"), IsRequired = (true))] + public int[] NodeIds + { + get; + set; + } + } + + /// + /// List of FinalStatus reasons for Prerender2. + /// + public enum PrerenderFinalStatus + { + /// + /// Activated + /// + [EnumMember(Value = ("Activated"))] + Activated, + /// + /// Destroyed + /// + [EnumMember(Value = ("Destroyed"))] + Destroyed, + /// + /// LowEndDevice + /// + [EnumMember(Value = ("LowEndDevice"))] + LowEndDevice, + /// + /// InvalidSchemeRedirect + /// + [EnumMember(Value = ("InvalidSchemeRedirect"))] + InvalidSchemeRedirect, + /// + /// InvalidSchemeNavigation + /// + [EnumMember(Value = ("InvalidSchemeNavigation"))] + InvalidSchemeNavigation, + /// + /// InProgressNavigation + /// + [EnumMember(Value = ("InProgressNavigation"))] + InProgressNavigation, + /// + /// NavigationRequestBlockedByCsp + /// + [EnumMember(Value = ("NavigationRequestBlockedByCsp"))] + NavigationRequestBlockedByCsp, + /// + /// MainFrameNavigation + /// + [EnumMember(Value = ("MainFrameNavigation"))] + MainFrameNavigation, + /// + /// MojoBinderPolicy + /// + [EnumMember(Value = ("MojoBinderPolicy"))] + MojoBinderPolicy, + /// + /// RendererProcessCrashed + /// + [EnumMember(Value = ("RendererProcessCrashed"))] + RendererProcessCrashed, + /// + /// RendererProcessKilled + /// + [EnumMember(Value = ("RendererProcessKilled"))] + RendererProcessKilled, + /// + /// Download + /// + [EnumMember(Value = ("Download"))] + Download, + /// + /// TriggerDestroyed + /// + [EnumMember(Value = ("TriggerDestroyed"))] + TriggerDestroyed, + /// + /// NavigationNotCommitted + /// + [EnumMember(Value = ("NavigationNotCommitted"))] + NavigationNotCommitted, + /// + /// NavigationBadHttpStatus + /// + [EnumMember(Value = ("NavigationBadHttpStatus"))] + NavigationBadHttpStatus, + /// + /// ClientCertRequested + /// + [EnumMember(Value = ("ClientCertRequested"))] + ClientCertRequested, + /// + /// NavigationRequestNetworkError + /// + [EnumMember(Value = ("NavigationRequestNetworkError"))] + NavigationRequestNetworkError, + /// + /// MaxNumOfRunningPrerendersExceeded + /// + [EnumMember(Value = ("MaxNumOfRunningPrerendersExceeded"))] + MaxNumOfRunningPrerendersExceeded, + /// + /// CancelAllHostsForTesting + /// + [EnumMember(Value = ("CancelAllHostsForTesting"))] + CancelAllHostsForTesting, + /// + /// DidFailLoad + /// + [EnumMember(Value = ("DidFailLoad"))] + DidFailLoad, + /// + /// Stop + /// + [EnumMember(Value = ("Stop"))] + Stop, + /// + /// SslCertificateError + /// + [EnumMember(Value = ("SslCertificateError"))] + SslCertificateError, + /// + /// LoginAuthRequested + /// + [EnumMember(Value = ("LoginAuthRequested"))] + LoginAuthRequested, + /// + /// UaChangeRequiresReload + /// + [EnumMember(Value = ("UaChangeRequiresReload"))] + UaChangeRequiresReload, + /// + /// BlockedByClient + /// + [EnumMember(Value = ("BlockedByClient"))] + BlockedByClient, + /// + /// AudioOutputDeviceRequested + /// + [EnumMember(Value = ("AudioOutputDeviceRequested"))] + AudioOutputDeviceRequested, + /// + /// MixedContent + /// + [EnumMember(Value = ("MixedContent"))] + MixedContent, + /// + /// TriggerBackgrounded + /// + [EnumMember(Value = ("TriggerBackgrounded"))] + TriggerBackgrounded, + /// + /// EmbedderTriggeredAndCrossOriginRedirected + /// + [EnumMember(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] + EmbedderTriggeredAndCrossOriginRedirected, + /// + /// MemoryLimitExceeded + /// + [EnumMember(Value = ("MemoryLimitExceeded"))] + MemoryLimitExceeded, + /// + /// FailToGetMemoryUsage + /// + [EnumMember(Value = ("FailToGetMemoryUsage"))] + FailToGetMemoryUsage, + /// + /// DataSaverEnabled + /// + [EnumMember(Value = ("DataSaverEnabled"))] + DataSaverEnabled, + /// + /// HasEffectiveUrl + /// + [EnumMember(Value = ("HasEffectiveUrl"))] + HasEffectiveUrl, + /// + /// ActivatedBeforeStarted + /// + [EnumMember(Value = ("ActivatedBeforeStarted"))] + ActivatedBeforeStarted, + /// + /// InactivePageRestriction + /// + [EnumMember(Value = ("InactivePageRestriction"))] + InactivePageRestriction, + /// + /// StartFailed + /// + [EnumMember(Value = ("StartFailed"))] + StartFailed, + /// + /// TimeoutBackgrounded + /// + [EnumMember(Value = ("TimeoutBackgrounded"))] + TimeoutBackgrounded, + /// + /// CrossSiteRedirectInInitialNavigation + /// + [EnumMember(Value = ("CrossSiteRedirectInInitialNavigation"))] + CrossSiteRedirectInInitialNavigation, + /// + /// CrossSiteNavigationInInitialNavigation + /// + [EnumMember(Value = ("CrossSiteNavigationInInitialNavigation"))] + CrossSiteNavigationInInitialNavigation, + /// + /// SameSiteCrossOriginRedirectNotOptInInInitialNavigation + /// + [EnumMember(Value = ("SameSiteCrossOriginRedirectNotOptInInInitialNavigation"))] + SameSiteCrossOriginRedirectNotOptInInInitialNavigation, + /// + /// SameSiteCrossOriginNavigationNotOptInInInitialNavigation + /// + [EnumMember(Value = ("SameSiteCrossOriginNavigationNotOptInInInitialNavigation"))] + SameSiteCrossOriginNavigationNotOptInInInitialNavigation, + /// + /// ActivationNavigationParameterMismatch + /// + [EnumMember(Value = ("ActivationNavigationParameterMismatch"))] + ActivationNavigationParameterMismatch, + /// + /// ActivatedInBackground + /// + [EnumMember(Value = ("ActivatedInBackground"))] + ActivatedInBackground, + /// + /// EmbedderHostDisallowed + /// + [EnumMember(Value = ("EmbedderHostDisallowed"))] + EmbedderHostDisallowed, + /// + /// ActivationNavigationDestroyedBeforeSuccess + /// + [EnumMember(Value = ("ActivationNavigationDestroyedBeforeSuccess"))] + ActivationNavigationDestroyedBeforeSuccess, + /// + /// TabClosedByUserGesture + /// + [EnumMember(Value = ("TabClosedByUserGesture"))] + TabClosedByUserGesture, + /// + /// TabClosedWithoutUserGesture + /// + [EnumMember(Value = ("TabClosedWithoutUserGesture"))] + TabClosedWithoutUserGesture, + /// + /// PrimaryMainFrameRendererProcessCrashed + /// + [EnumMember(Value = ("PrimaryMainFrameRendererProcessCrashed"))] + PrimaryMainFrameRendererProcessCrashed, + /// + /// PrimaryMainFrameRendererProcessKilled + /// + [EnumMember(Value = ("PrimaryMainFrameRendererProcessKilled"))] + PrimaryMainFrameRendererProcessKilled, + /// + /// ActivationFramePolicyNotCompatible + /// + [EnumMember(Value = ("ActivationFramePolicyNotCompatible"))] + ActivationFramePolicyNotCompatible, + /// + /// PreloadingDisabled + /// + [EnumMember(Value = ("PreloadingDisabled"))] + PreloadingDisabled, + /// + /// BatterySaverEnabled + /// + [EnumMember(Value = ("BatterySaverEnabled"))] + BatterySaverEnabled, + /// + /// ActivatedDuringMainFrameNavigation + /// + [EnumMember(Value = ("ActivatedDuringMainFrameNavigation"))] + ActivatedDuringMainFrameNavigation, + /// + /// PreloadingUnsupportedByWebContents + /// + [EnumMember(Value = ("PreloadingUnsupportedByWebContents"))] + PreloadingUnsupportedByWebContents, + /// + /// CrossSiteRedirectInMainFrameNavigation + /// + [EnumMember(Value = ("CrossSiteRedirectInMainFrameNavigation"))] + CrossSiteRedirectInMainFrameNavigation, + /// + /// CrossSiteNavigationInMainFrameNavigation + /// + [EnumMember(Value = ("CrossSiteNavigationInMainFrameNavigation"))] + CrossSiteNavigationInMainFrameNavigation, + /// + /// SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation + /// + [EnumMember(Value = ("SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation"))] + SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation, + /// + /// SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation + /// + [EnumMember(Value = ("SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation"))] + SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation + } + + /// + /// Preloading status values, see also PreloadingTriggeringOutcome. This + /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. + /// + public enum PreloadingStatus + { + /// + /// Pending + /// + [EnumMember(Value = ("Pending"))] + Pending, + /// + /// Running + /// + [EnumMember(Value = ("Running"))] + Running, + /// + /// Ready + /// + [EnumMember(Value = ("Ready"))] + Ready, + /// + /// Success + /// + [EnumMember(Value = ("Success"))] + Success, + /// + /// Failure + /// + [EnumMember(Value = ("Failure"))] + Failure, + /// + /// NotSupported + /// + [EnumMember(Value = ("NotSupported"))] + NotSupported } /// @@ -28101,6 +28345,425 @@ public string Id private set; } } + + /// + /// Fired when a prerender attempt is completed. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key + { + get; + private set; + } + + /// + /// The frame id of the frame initiating prerendering. + /// + [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrerenderingUrl + /// + [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] + public string PrerenderingUrl + { + get; + private set; + } + + /// + /// FinalStatus + /// + public CefSharp.DevTools.Preload.PrerenderFinalStatus FinalStatus + { + get + { + return (CefSharp.DevTools.Preload.PrerenderFinalStatus)(StringToEnum(typeof(CefSharp.DevTools.Preload.PrerenderFinalStatus), finalStatus)); + } + + set + { + this.finalStatus = (EnumToString(value)); + } + } + + /// + /// FinalStatus + /// + [DataMember(Name = ("finalStatus"), IsRequired = (true))] + internal string finalStatus + { + get; + private set; + } + + /// + /// This is used to give users more information about the name of the API call + /// that is incompatible with prerender and has caused the cancellation of the attempt + /// + [DataMember(Name = ("disallowedApiMethod"), IsRequired = (false))] + public string DisallowedApiMethod + { + get; + private set; + } + } + + /// + /// Fired when a prefetch attempt is updated. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PrefetchStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key + { + get; + private set; + } + + /// + /// The frame id of the frame initiating prefetch. + /// + [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrefetchUrl + /// + [DataMember(Name = ("prefetchUrl"), IsRequired = (true))] + public string PrefetchUrl + { + get; + private set; + } + + /// + /// Status + /// + public CefSharp.DevTools.Preload.PreloadingStatus Status + { + get + { + return (CefSharp.DevTools.Preload.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Preload.PreloadingStatus), status)); + } + + set + { + this.status = (EnumToString(value)); + } + } + + /// + /// Status + /// + [DataMember(Name = ("status"), IsRequired = (true))] + internal string status + { + get; + private set; + } + } + + /// + /// Fired when a prerender attempt is updated. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PrerenderStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key + { + get; + private set; + } + + /// + /// The frame id of the frame initiating prerender. + /// + [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] + public string InitiatingFrameId + { + get; + private set; + } + + /// + /// PrerenderingUrl + /// + [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] + public string PrerenderingUrl + { + get; + private set; + } + + /// + /// Status + /// + public CefSharp.DevTools.Preload.PreloadingStatus Status + { + get + { + return (CefSharp.DevTools.Preload.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Preload.PreloadingStatus), status)); + } + + set + { + this.status = (EnumToString(value)); + } + } + + /// + /// Status + /// + [DataMember(Name = ("status"), IsRequired = (true))] + internal string status + { + get; + private set; + } + } + + /// + /// Send a list of sources for all preloading attempts in a document. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PreloadingAttemptSourcesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// LoaderId + /// + [DataMember(Name = ("loaderId"), IsRequired = (true))] + public string LoaderId + { + get; + private set; + } + + /// + /// PreloadingAttemptSources + /// + [DataMember(Name = ("preloadingAttemptSources"), IsRequired = (true))] + public System.Collections.Generic.IList PreloadingAttemptSources + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.FedCm +{ + /// + /// Whether this is a sign-up or sign-in action for this account, i.e. + /// whether this account has ever been used to sign in to this RP before. + /// + public enum LoginState + { + /// + /// SignIn + /// + [EnumMember(Value = ("SignIn"))] + SignIn, + /// + /// SignUp + /// + [EnumMember(Value = ("SignUp"))] + SignUp + } + + /// + /// Corresponds to IdentityRequestAccount + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class Account : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// AccountId + /// + [DataMember(Name = ("accountId"), IsRequired = (true))] + public string AccountId + { + get; + set; + } + + /// + /// Email + /// + [DataMember(Name = ("email"), IsRequired = (true))] + public string Email + { + get; + set; + } + + /// + /// Name + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// GivenName + /// + [DataMember(Name = ("givenName"), IsRequired = (true))] + public string GivenName + { + get; + set; + } + + /// + /// PictureUrl + /// + [DataMember(Name = ("pictureUrl"), IsRequired = (true))] + public string PictureUrl + { + get; + set; + } + + /// + /// IdpConfigUrl + /// + [DataMember(Name = ("idpConfigUrl"), IsRequired = (true))] + public string IdpConfigUrl + { + get; + set; + } + + /// + /// IdpSigninUrl + /// + [DataMember(Name = ("idpSigninUrl"), IsRequired = (true))] + public string IdpSigninUrl + { + get; + set; + } + + /// + /// LoginState + /// + public CefSharp.DevTools.FedCm.LoginState LoginState + { + get + { + return (CefSharp.DevTools.FedCm.LoginState)(StringToEnum(typeof(CefSharp.DevTools.FedCm.LoginState), loginState)); + } + + set + { + this.loginState = (EnumToString(value)); + } + } + + /// + /// LoginState + /// + [DataMember(Name = ("loginState"), IsRequired = (true))] + internal string loginState + { + get; + set; + } + + /// + /// These two are only set if the loginState is signUp + /// + [DataMember(Name = ("termsOfServiceUrl"), IsRequired = (false))] + public string TermsOfServiceUrl + { + get; + set; + } + + /// + /// PrivacyPolicyUrl + /// + [DataMember(Name = ("privacyPolicyUrl"), IsRequired = (false))] + public string PrivacyPolicyUrl + { + get; + set; + } + } + + /// + /// dialogShown + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DialogShownEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// DialogId + /// + [DataMember(Name = ("dialogId"), IsRequired = (true))] + public string DialogId + { + get; + private set; + } + + /// + /// Accounts + /// + [DataMember(Name = ("accounts"), IsRequired = (true))] + public System.Collections.Generic.IList Accounts + { + get; + private set; + } + + /// + /// These exist primarily so that the caller can verify the + /// RP context was used appropriately. + /// + [DataMember(Name = ("title"), IsRequired = (true))] + public string Title + { + get; + private set; + } + + /// + /// Subtitle + /// + [DataMember(Name = ("subtitle"), IsRequired = (false))] + public string Subtitle + { + get; + private set; + } + } } namespace CefSharp.DevTools.Debugger @@ -44033,56 +44696,6 @@ public event System.EventHandler BackForwardCa } } - /// - /// Fired when a prerender attempt is completed. - /// - public event System.EventHandler PrerenderAttemptCompleted - { - add - { - _client.AddEventHandler("Page.prerenderAttemptCompleted", value); - } - - remove - { - _client.RemoveEventHandler("Page.prerenderAttemptCompleted", value); - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prefetch attempt is updated. - /// - public event System.EventHandler PrefetchStatusUpdated - { - add - { - _client.AddEventHandler("Page.prefetchStatusUpdated", value); - } - - remove - { - _client.RemoveEventHandler("Page.prefetchStatusUpdated", value); - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prerender attempt is updated. - /// - public event System.EventHandler PrerenderStatusUpdated - { - add - { - _client.AddEventHandler("Page.prerenderStatusUpdated", value); - } - - remove - { - _client.RemoveEventHandler("Page.prerenderStatusUpdated", value); - } - } - /// /// LoadEventFired /// @@ -45930,6 +46543,38 @@ public event System.EventHandler SharedStorageAc } } + /// + /// StorageBucketCreatedOrUpdated + /// + public event System.EventHandler StorageBucketCreatedOrUpdated + { + add + { + _client.AddEventHandler("Storage.storageBucketCreatedOrUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Storage.storageBucketCreatedOrUpdated", value); + } + } + + /// + /// StorageBucketDeleted + /// + public event System.EventHandler StorageBucketDeleted + { + add + { + _client.AddEventHandler("Storage.storageBucketDeleted", value); + } + + remove + { + _client.RemoveEventHandler("Storage.storageBucketDeleted", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -46343,6 +46988,38 @@ public System.Threading.Tasks.Task SetSharedStorageTrack dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageTracking", dict); } + + partial void ValidateSetStorageBucketTracking(string storageKey, bool enable); + /// + /// Set tracking for a storage key's buckets. + /// + /// storageKey + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetStorageBucketTrackingAsync(string storageKey, bool enable) + { + ValidateSetStorageBucketTracking(storageKey, enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setStorageBucketTracking", dict); + } + + partial void ValidateDeleteStorageBucket(string storageKey, string bucketName); + /// + /// Deletes the Storage Bucket with the given storage key and bucket name. + /// + /// storageKey + /// bucketName + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DeleteStorageBucketAsync(string storageKey, string bucketName) + { + ValidateDeleteStorageBucket(storageKey, bucketName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("bucketName", bucketName); + return _client.ExecuteDevToolsMethodAsync("Storage.deleteStorageBucket", dict); + } } } @@ -48868,6 +49545,70 @@ public event System.EventHandler RuleSetRemoved } } + /// + /// Fired when a prerender attempt is completed. + /// + public event System.EventHandler PrerenderAttemptCompleted + { + add + { + _client.AddEventHandler("Preload.prerenderAttemptCompleted", value); + } + + remove + { + _client.RemoveEventHandler("Preload.prerenderAttemptCompleted", value); + } + } + + /// + /// Fired when a prefetch attempt is updated. + /// + public event System.EventHandler PrefetchStatusUpdated + { + add + { + _client.AddEventHandler("Preload.prefetchStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.prefetchStatusUpdated", value); + } + } + + /// + /// Fired when a prerender attempt is updated. + /// + public event System.EventHandler PrerenderStatusUpdated + { + add + { + _client.AddEventHandler("Preload.prerenderStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.prerenderStatusUpdated", value); + } + } + + /// + /// Send a list of sources for all preloading attempts in a document. + /// + public event System.EventHandler PreloadingAttemptSourcesUpdated + { + add + { + _client.AddEventHandler("Preload.preloadingAttemptSourcesUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.preloadingAttemptSourcesUpdated", value); + } + } + /// /// Enable /// @@ -48890,6 +49631,118 @@ public System.Threading.Tasks.Task DisableAsync() } } +namespace CefSharp.DevTools.FedCm +{ + using System.Linq; + + /// + /// This domain allows interacting with the FedCM dialog. + /// + public partial class FedCmClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// FedCm + /// + /// DevToolsClient + public FedCmClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// DialogShown + /// + public event System.EventHandler DialogShown + { + add + { + _client.AddEventHandler("FedCm.dialogShown", value); + } + + remove + { + _client.RemoveEventHandler("FedCm.dialogShown", value); + } + } + + partial void ValidateEnable(bool? disableRejectionDelay = null); + /// + /// Enable + /// + /// Allows callers to disable the promise rejection delay that wouldnormally happen, if this is unimportant to what's being tested.(step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in) + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync(bool? disableRejectionDelay = null) + { + ValidateEnable(disableRejectionDelay); + var dict = new System.Collections.Generic.Dictionary(); + if (disableRejectionDelay.HasValue) + { + dict.Add("disableRejectionDelay", disableRejectionDelay.Value); + } + + return _client.ExecuteDevToolsMethodAsync("FedCm.enable", dict); + } + + /// + /// Disable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("FedCm.disable", dict); + } + + partial void ValidateSelectAccount(string dialogId, int accountIndex); + /// + /// SelectAccount + /// + /// dialogId + /// accountIndex + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SelectAccountAsync(string dialogId, int accountIndex) + { + ValidateSelectAccount(dialogId, accountIndex); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + dict.Add("accountIndex", accountIndex); + return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); + } + + partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); + /// + /// DismissDialog + /// + /// dialogId + /// triggerCooldown + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DismissDialogAsync(string dialogId, bool? triggerCooldown = null) + { + ValidateDismissDialog(dialogId, triggerCooldown); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + if (triggerCooldown.HasValue) + { + dict.Add("triggerCooldown", triggerCooldown.Value); + } + + return _client.ExecuteDevToolsMethodAsync("FedCm.dismissDialog", dict); + } + + /// + /// Resets the cooldown time, if any, to allow the next FedCM call to show + /// a dialog even if one was recently dismissed by the user. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ResetCooldownAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("FedCm.resetCooldown", dict); + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -53024,6 +53877,23 @@ public CefSharp.DevTools.Preload.PreloadClient Preload } } + private CefSharp.DevTools.FedCm.FedCmClient _FedCm; + /// + /// This domain allows interacting with the FedCM dialog. + /// + public CefSharp.DevTools.FedCm.FedCmClient FedCm + { + get + { + if ((_FedCm) == (null)) + { + _FedCm = (new CefSharp.DevTools.FedCm.FedCmClient(this)); + } + + return _FedCm; + } + } + private CefSharp.DevTools.Debugger.DebuggerClient _Debugger; /// /// Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 8729e921a..b8905ace4 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 112.0.5615.49 +// CHROMIUM VERSION 113.0.5672.63 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2292,11 +2292,6 @@ public enum AttributionReportingIssueType [JsonPropertyName("PermissionPolicyDisabled")] PermissionPolicyDisabled, /// - /// PermissionPolicyNotDelegated - /// - [JsonPropertyName("PermissionPolicyNotDelegated")] - PermissionPolicyNotDelegated, - /// /// UntrustworthyReportingOrigin /// [JsonPropertyName("UntrustworthyReportingOrigin")] @@ -2340,7 +2335,32 @@ public enum AttributionReportingIssueType /// TriggerIgnored /// [JsonPropertyName("TriggerIgnored")] - TriggerIgnored + TriggerIgnored, + /// + /// OsSourceIgnored + /// + [JsonPropertyName("OsSourceIgnored")] + OsSourceIgnored, + /// + /// OsTriggerIgnored + /// + [JsonPropertyName("OsTriggerIgnored")] + OsTriggerIgnored, + /// + /// InvalidRegisterOsSourceHeader + /// + [JsonPropertyName("InvalidRegisterOsSourceHeader")] + InvalidRegisterOsSourceHeader, + /// + /// InvalidRegisterOsTriggerHeader + /// + [JsonPropertyName("InvalidRegisterOsTriggerHeader")] + InvalidRegisterOsTriggerHeader, + /// + /// WebAndOsHeaders + /// + [JsonPropertyName("WebAndOsHeaders")] + WebAndOsHeaders } /// @@ -2534,10 +2554,10 @@ public enum GenericIssueErrorType [JsonPropertyName("FormLabelForMatchesNonExistingIdError")] FormLabelForMatchesNonExistingIdError, /// - /// FormHasPasswordFieldWithoutUsernameFieldError + /// FormInputHasWrongButWellIntendedAutocompleteValueError /// - [JsonPropertyName("FormHasPasswordFieldWithoutUsernameFieldError")] - FormHasPasswordFieldWithoutUsernameFieldError + [JsonPropertyName("FormInputHasWrongButWellIntendedAutocompleteValueError")] + FormInputHasWrongButWellIntendedAutocompleteValueError } /// @@ -4295,6 +4315,16 @@ public CefSharp.DevTools.CSS.SelectorList SelectorList set; } + /// + /// Array of selectors from ancestor style rules, sorted by distance from the current rule. + /// + [JsonPropertyName("nestingSelectors")] + public string[] NestingSelectors + { + get; + set; + } + /// /// Parent stylesheet's origin. /// @@ -19405,331 +19435,6 @@ public System.Collections.Generic.IList - /// List of FinalStatus reasons for Prerender2. - /// - public enum PrerenderFinalStatus - { - /// - /// Activated - /// - [JsonPropertyName("Activated")] - Activated, - /// - /// Destroyed - /// - [JsonPropertyName("Destroyed")] - Destroyed, - /// - /// LowEndDevice - /// - [JsonPropertyName("LowEndDevice")] - LowEndDevice, - /// - /// InvalidSchemeRedirect - /// - [JsonPropertyName("InvalidSchemeRedirect")] - InvalidSchemeRedirect, - /// - /// InvalidSchemeNavigation - /// - [JsonPropertyName("InvalidSchemeNavigation")] - InvalidSchemeNavigation, - /// - /// InProgressNavigation - /// - [JsonPropertyName("InProgressNavigation")] - InProgressNavigation, - /// - /// NavigationRequestBlockedByCsp - /// - [JsonPropertyName("NavigationRequestBlockedByCsp")] - NavigationRequestBlockedByCsp, - /// - /// MainFrameNavigation - /// - [JsonPropertyName("MainFrameNavigation")] - MainFrameNavigation, - /// - /// MojoBinderPolicy - /// - [JsonPropertyName("MojoBinderPolicy")] - MojoBinderPolicy, - /// - /// RendererProcessCrashed - /// - [JsonPropertyName("RendererProcessCrashed")] - RendererProcessCrashed, - /// - /// RendererProcessKilled - /// - [JsonPropertyName("RendererProcessKilled")] - RendererProcessKilled, - /// - /// Download - /// - [JsonPropertyName("Download")] - Download, - /// - /// TriggerDestroyed - /// - [JsonPropertyName("TriggerDestroyed")] - TriggerDestroyed, - /// - /// NavigationNotCommitted - /// - [JsonPropertyName("NavigationNotCommitted")] - NavigationNotCommitted, - /// - /// NavigationBadHttpStatus - /// - [JsonPropertyName("NavigationBadHttpStatus")] - NavigationBadHttpStatus, - /// - /// ClientCertRequested - /// - [JsonPropertyName("ClientCertRequested")] - ClientCertRequested, - /// - /// NavigationRequestNetworkError - /// - [JsonPropertyName("NavigationRequestNetworkError")] - NavigationRequestNetworkError, - /// - /// MaxNumOfRunningPrerendersExceeded - /// - [JsonPropertyName("MaxNumOfRunningPrerendersExceeded")] - MaxNumOfRunningPrerendersExceeded, - /// - /// CancelAllHostsForTesting - /// - [JsonPropertyName("CancelAllHostsForTesting")] - CancelAllHostsForTesting, - /// - /// DidFailLoad - /// - [JsonPropertyName("DidFailLoad")] - DidFailLoad, - /// - /// Stop - /// - [JsonPropertyName("Stop")] - Stop, - /// - /// SslCertificateError - /// - [JsonPropertyName("SslCertificateError")] - SslCertificateError, - /// - /// LoginAuthRequested - /// - [JsonPropertyName("LoginAuthRequested")] - LoginAuthRequested, - /// - /// UaChangeRequiresReload - /// - [JsonPropertyName("UaChangeRequiresReload")] - UaChangeRequiresReload, - /// - /// BlockedByClient - /// - [JsonPropertyName("BlockedByClient")] - BlockedByClient, - /// - /// AudioOutputDeviceRequested - /// - [JsonPropertyName("AudioOutputDeviceRequested")] - AudioOutputDeviceRequested, - /// - /// MixedContent - /// - [JsonPropertyName("MixedContent")] - MixedContent, - /// - /// TriggerBackgrounded - /// - [JsonPropertyName("TriggerBackgrounded")] - TriggerBackgrounded, - /// - /// EmbedderTriggeredAndCrossOriginRedirected - /// - [JsonPropertyName("EmbedderTriggeredAndCrossOriginRedirected")] - EmbedderTriggeredAndCrossOriginRedirected, - /// - /// MemoryLimitExceeded - /// - [JsonPropertyName("MemoryLimitExceeded")] - MemoryLimitExceeded, - /// - /// FailToGetMemoryUsage - /// - [JsonPropertyName("FailToGetMemoryUsage")] - FailToGetMemoryUsage, - /// - /// DataSaverEnabled - /// - [JsonPropertyName("DataSaverEnabled")] - DataSaverEnabled, - /// - /// HasEffectiveUrl - /// - [JsonPropertyName("HasEffectiveUrl")] - HasEffectiveUrl, - /// - /// ActivatedBeforeStarted - /// - [JsonPropertyName("ActivatedBeforeStarted")] - ActivatedBeforeStarted, - /// - /// InactivePageRestriction - /// - [JsonPropertyName("InactivePageRestriction")] - InactivePageRestriction, - /// - /// StartFailed - /// - [JsonPropertyName("StartFailed")] - StartFailed, - /// - /// TimeoutBackgrounded - /// - [JsonPropertyName("TimeoutBackgrounded")] - TimeoutBackgrounded, - /// - /// CrossSiteRedirect - /// - [JsonPropertyName("CrossSiteRedirect")] - CrossSiteRedirect, - /// - /// CrossSiteNavigation - /// - [JsonPropertyName("CrossSiteNavigation")] - CrossSiteNavigation, - /// - /// SameSiteCrossOriginRedirect - /// - [JsonPropertyName("SameSiteCrossOriginRedirect")] - SameSiteCrossOriginRedirect, - /// - /// SameSiteCrossOriginNavigation - /// - [JsonPropertyName("SameSiteCrossOriginNavigation")] - SameSiteCrossOriginNavigation, - /// - /// SameSiteCrossOriginRedirectNotOptIn - /// - [JsonPropertyName("SameSiteCrossOriginRedirectNotOptIn")] - SameSiteCrossOriginRedirectNotOptIn, - /// - /// SameSiteCrossOriginNavigationNotOptIn - /// - [JsonPropertyName("SameSiteCrossOriginNavigationNotOptIn")] - SameSiteCrossOriginNavigationNotOptIn, - /// - /// ActivationNavigationParameterMismatch - /// - [JsonPropertyName("ActivationNavigationParameterMismatch")] - ActivationNavigationParameterMismatch, - /// - /// ActivatedInBackground - /// - [JsonPropertyName("ActivatedInBackground")] - ActivatedInBackground, - /// - /// EmbedderHostDisallowed - /// - [JsonPropertyName("EmbedderHostDisallowed")] - EmbedderHostDisallowed, - /// - /// ActivationNavigationDestroyedBeforeSuccess - /// - [JsonPropertyName("ActivationNavigationDestroyedBeforeSuccess")] - ActivationNavigationDestroyedBeforeSuccess, - /// - /// TabClosedByUserGesture - /// - [JsonPropertyName("TabClosedByUserGesture")] - TabClosedByUserGesture, - /// - /// TabClosedWithoutUserGesture - /// - [JsonPropertyName("TabClosedWithoutUserGesture")] - TabClosedWithoutUserGesture, - /// - /// PrimaryMainFrameRendererProcessCrashed - /// - [JsonPropertyName("PrimaryMainFrameRendererProcessCrashed")] - PrimaryMainFrameRendererProcessCrashed, - /// - /// PrimaryMainFrameRendererProcessKilled - /// - [JsonPropertyName("PrimaryMainFrameRendererProcessKilled")] - PrimaryMainFrameRendererProcessKilled, - /// - /// ActivationFramePolicyNotCompatible - /// - [JsonPropertyName("ActivationFramePolicyNotCompatible")] - ActivationFramePolicyNotCompatible, - /// - /// PreloadingDisabled - /// - [JsonPropertyName("PreloadingDisabled")] - PreloadingDisabled, - /// - /// BatterySaverEnabled - /// - [JsonPropertyName("BatterySaverEnabled")] - BatterySaverEnabled, - /// - /// ActivatedDuringMainFrameNavigation - /// - [JsonPropertyName("ActivatedDuringMainFrameNavigation")] - ActivatedDuringMainFrameNavigation, - /// - /// PreloadingUnsupportedByWebContents - /// - [JsonPropertyName("PreloadingUnsupportedByWebContents")] - PreloadingUnsupportedByWebContents - } - - /// - /// Preloading status values, see also PreloadingTriggeringOutcome. This - /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. - /// - public enum PreloadingStatus - { - /// - /// Pending - /// - [JsonPropertyName("Pending")] - Pending, - /// - /// Running - /// - [JsonPropertyName("Running")] - Running, - /// - /// Ready - /// - [JsonPropertyName("Ready")] - Ready, - /// - /// Success - /// - [JsonPropertyName("Success")] - Success, - /// - /// Failure - /// - [JsonPropertyName("Failure")] - Failure, - /// - /// NotSupported - /// - [JsonPropertyName("NotSupported")] - NotSupported - } - /// /// domContentEventFired /// @@ -20432,143 +20137,6 @@ public CefSharp.DevTools.Page.BackForwardCacheNotRestoredExplanationTree NotRest } } - /// - /// Fired when a prerender attempt is completed. - /// - public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// The frame id of the frame initiating prerendering. - /// - [JsonInclude] - [JsonPropertyName("initiatingFrameId")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrerenderingUrl - /// - [JsonInclude] - [JsonPropertyName("prerenderingUrl")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PrerenderingUrl - { - get; - private set; - } - - /// - /// FinalStatus - /// - [JsonInclude] - [JsonPropertyName("finalStatus")] - public CefSharp.DevTools.Page.PrerenderFinalStatus FinalStatus - { - get; - private set; - } - - /// - /// This is used to give users more information about the name of the API call - /// that is incompatible with prerender and has caused the cancellation of the attempt - /// - [JsonInclude] - [JsonPropertyName("disallowedApiMethod")] - public string DisallowedApiMethod - { - get; - private set; - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prefetch attempt is updated. - /// - public class PrefetchStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// The frame id of the frame initiating prefetch. - /// - [JsonInclude] - [JsonPropertyName("initiatingFrameId")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrefetchUrl - /// - [JsonInclude] - [JsonPropertyName("prefetchUrl")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PrefetchUrl - { - get; - private set; - } - - /// - /// Status - /// - [JsonInclude] - [JsonPropertyName("status")] - public CefSharp.DevTools.Page.PreloadingStatus Status - { - get; - private set; - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prerender attempt is updated. - /// - public class PrerenderStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// The frame id of the frame initiating prerender. - /// - [JsonInclude] - [JsonPropertyName("initiatingFrameId")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrerenderingUrl - /// - [JsonInclude] - [JsonPropertyName("prerenderingUrl")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PrerenderingUrl - { - get; - private set; - } - - /// - /// Status - /// - [JsonInclude] - [JsonPropertyName("status")] - public CefSharp.DevTools.Page.PreloadingStatus Status - { - get; - private set; - } - } - /// /// loadEventFired /// @@ -22109,6 +21677,11 @@ public enum StorageType [JsonPropertyName("shared_storage")] SharedStorage, /// + /// storage_buckets + /// + [JsonPropertyName("storage_buckets")] + StorageBuckets, + /// /// all /// [JsonPropertyName("all")] @@ -22673,6 +22246,112 @@ public bool? IgnoreIfPresent } } + /// + /// StorageBucketsDurability + /// + public enum StorageBucketsDurability + { + /// + /// relaxed + /// + [JsonPropertyName("relaxed")] + Relaxed, + /// + /// strict + /// + [JsonPropertyName("strict")] + Strict + } + + /// + /// StorageBucketInfo + /// + public partial class StorageBucketInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// StorageKey + /// + [JsonPropertyName("storageKey")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string StorageKey + { + get; + set; + } + + /// + /// Id + /// + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Name + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// IsDefault + /// + [JsonPropertyName("isDefault")] + public bool IsDefault + { + get; + set; + } + + /// + /// Expiration + /// + [JsonPropertyName("expiration")] + public double Expiration + { + get; + set; + } + + /// + /// Storage quota (bytes). + /// + [JsonPropertyName("quota")] + public double Quota + { + get; + set; + } + + /// + /// Persistent + /// + [JsonPropertyName("persistent")] + public bool Persistent + { + get; + set; + } + + /// + /// Durability + /// + [JsonPropertyName("durability")] + public CefSharp.DevTools.Storage.StorageBucketsDurability Durability + { + get; + set; + } + } + /// /// A cache's contents have been modified. /// @@ -22946,6 +22625,42 @@ public CefSharp.DevTools.Storage.SharedStorageAccessParams Params private set; } } + + /// + /// storageBucketCreatedOrUpdated + /// + public class StorageBucketCreatedOrUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Bucket + /// + [JsonInclude] + [JsonPropertyName("bucket")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.StorageBucketInfo Bucket + { + get; + private set; + } + } + + /// + /// storageBucketDeleted + /// + public class StorageBucketDeletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// BucketId + /// + [JsonInclude] + [JsonPropertyName("bucketId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BucketId + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -25854,151 +25569,1000 @@ public string Value } /// - /// Represents logged source line numbers reported in an error. - /// NOTE: file and line are from chromium c++ implementation code, not js. + /// Represents logged source line numbers reported in an error. + /// NOTE: file and line are from chromium c++ implementation code, not js. + /// + public partial class PlayerErrorSourceLocation : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// File + /// + [JsonPropertyName("file")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string File + { + get; + set; + } + + /// + /// Line + /// + [JsonPropertyName("line")] + public int Line + { + get; + set; + } + } + + /// + /// Corresponds to kMediaError + /// + public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// ErrorType + /// + [JsonPropertyName("errorType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ErrorType + { + get; + set; + } + + /// + /// Code is the numeric enum entry for a specific set of error codes, such + /// as PipelineStatusCodes in media/base/pipeline_status.h + /// + [JsonPropertyName("code")] + public int Code + { + get; + set; + } + + /// + /// A trace of where this error was caused / where it passed through. + /// + [JsonPropertyName("stack")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Stack + { + get; + set; + } + + /// + /// Errors potentially have a root cause error, ie, a DecoderError might be + /// caused by an WindowsError + /// + [JsonPropertyName("cause")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Cause + { + get; + set; + } + + /// + /// Extra data attached to an error, such as an HRESULT, Video Codec, etc. + /// + [JsonPropertyName("data")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public object Data + { + get; + set; + } + } + + /// + /// This can be called multiple times, and can be used to set / override / + /// remove player properties. A null propValue indicates removal. + /// + public class PlayerPropertiesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [JsonInclude] + [JsonPropertyName("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Properties + /// + [JsonInclude] + [JsonPropertyName("properties")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Properties + { + get; + private set; + } + } + + /// + /// Send events as a list, allowing them to be batched on the browser for less + /// congestion. If batched, events must ALWAYS be in chronological order. + /// + public class PlayerEventsAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [JsonInclude] + [JsonPropertyName("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Events + /// + [JsonInclude] + [JsonPropertyName("events")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Events + { + get; + private set; + } + } + + /// + /// Send a list of any messages that need to be delivered. + /// + public class PlayerMessagesLoggedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [JsonInclude] + [JsonPropertyName("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Messages + /// + [JsonInclude] + [JsonPropertyName("messages")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Messages + { + get; + private set; + } + } + + /// + /// Send a list of any errors that need to be delivered. + /// + public class PlayerErrorsRaisedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// PlayerId + /// + [JsonInclude] + [JsonPropertyName("playerId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PlayerId + { + get; + private set; + } + + /// + /// Errors + /// + [JsonInclude] + [JsonPropertyName("errors")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Errors + { + get; + private set; + } + } + + /// + /// Called whenever a player is created, or when a new agent joins and receives + /// a list of active players. If an agent is restored, it will receive the full + /// list of player ids and all events again. + /// + public class PlayersCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Players + /// + [JsonInclude] + [JsonPropertyName("players")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Players + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.DeviceAccess +{ + /// + /// Device information displayed in a user prompt to select a device. + /// + public partial class PromptDevice : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Id + /// + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Display name as it appears in a device request user prompt. + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + } + + /// + /// A device request opened a user prompt to select a device. Respond with the + /// selectPrompt or cancelPrompt command. + /// + public class DeviceRequestPromptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Id + /// + [JsonInclude] + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + private set; + } + + /// + /// Devices + /// + [JsonInclude] + [JsonPropertyName("devices")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Devices + { + get; + private set; + } + } +} + +namespace CefSharp.DevTools.Preload +{ + /// + /// Corresponds to SpeculationRuleSet + /// + public partial class RuleSet : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Id + /// + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// Identifies a document which the rule set is associated with. + /// + [JsonPropertyName("loaderId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LoaderId + { + get; + set; + } + + /// + /// Source text of JSON representing the rule set. If it comes from + /// <script> tag, it is the textContent of the node. Note that it is + /// a JSON for valid case. + /// + /// See also: + /// - https://wicg.github.io/nav-speculation/speculation-rules.html + /// - https://github.com/WICG/nav-speculation/blob/main/triggers.md + /// + [JsonPropertyName("sourceText")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceText + { + get; + set; + } + + /// + /// Error information + /// `errorMessage` is null iff `errorType` is null. + /// + [JsonPropertyName("errorType")] + public CefSharp.DevTools.Preload.RuleSetErrorType? ErrorType + { + get; + set; + } + + /// + /// TODO(https://crbug.com/1425354): Replace this property with structured error. + /// + [JsonPropertyName("errorMessage")] + public string ErrorMessage + { + get; + set; + } + } + + /// + /// RuleSetErrorType + /// + public enum RuleSetErrorType + { + /// + /// SourceIsNotJsonObject + /// + [JsonPropertyName("SourceIsNotJsonObject")] + SourceIsNotJsonObject, + /// + /// InvalidRulesSkipped + /// + [JsonPropertyName("InvalidRulesSkipped")] + InvalidRulesSkipped + } + + /// + /// The type of preloading attempted. It corresponds to + /// mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it + /// isn't being used by clients). + /// + public enum SpeculationAction + { + /// + /// Prefetch + /// + [JsonPropertyName("Prefetch")] + Prefetch, + /// + /// Prerender + /// + [JsonPropertyName("Prerender")] + Prerender + } + + /// + /// Corresponds to mojom::SpeculationTargetHint. + /// See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints + /// + public enum SpeculationTargetHint + { + /// + /// Blank + /// + [JsonPropertyName("Blank")] + Blank, + /// + /// Self + /// + [JsonPropertyName("Self")] + Self + } + + /// + /// A key that identifies a preloading attempt. + /// + /// The url used is the url specified by the trigger (i.e. the initial URL), and + /// not the final url that is navigated to. For example, prerendering allows + /// same-origin main frame navigations during the attempt, but the attempt is + /// still keyed with the initial URL. + /// + public partial class PreloadingAttemptKey : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// LoaderId + /// + [JsonPropertyName("loaderId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string LoaderId + { + get; + set; + } + + /// + /// Action + /// + [JsonPropertyName("action")] + public CefSharp.DevTools.Preload.SpeculationAction Action + { + get; + set; + } + + /// + /// Url + /// + [JsonPropertyName("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// TargetHint + /// + [JsonPropertyName("targetHint")] + public CefSharp.DevTools.Preload.SpeculationTargetHint? TargetHint + { + get; + set; + } + } + + /// + /// Lists sources for a preloading attempt, specifically the ids of rule sets + /// that had a speculation rule that triggered the attempt, and the + /// BackendNodeIds of <a href> or <area href> elements that triggered the + /// attempt (in the case of attempts triggered by a document rule). It is + /// possible for mulitple rule sets and links to trigger a single attempt. + /// + public partial class PreloadingAttemptSource : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [JsonPropertyName("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key + { + get; + set; + } + + /// + /// RuleSetIds + /// + [JsonPropertyName("ruleSetIds")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] RuleSetIds + { + get; + set; + } + + /// + /// NodeIds + /// + [JsonPropertyName("nodeIds")] + public int[] NodeIds + { + get; + set; + } + } + + /// + /// List of FinalStatus reasons for Prerender2. + /// + public enum PrerenderFinalStatus + { + /// + /// Activated + /// + [JsonPropertyName("Activated")] + Activated, + /// + /// Destroyed + /// + [JsonPropertyName("Destroyed")] + Destroyed, + /// + /// LowEndDevice + /// + [JsonPropertyName("LowEndDevice")] + LowEndDevice, + /// + /// InvalidSchemeRedirect + /// + [JsonPropertyName("InvalidSchemeRedirect")] + InvalidSchemeRedirect, + /// + /// InvalidSchemeNavigation + /// + [JsonPropertyName("InvalidSchemeNavigation")] + InvalidSchemeNavigation, + /// + /// InProgressNavigation + /// + [JsonPropertyName("InProgressNavigation")] + InProgressNavigation, + /// + /// NavigationRequestBlockedByCsp + /// + [JsonPropertyName("NavigationRequestBlockedByCsp")] + NavigationRequestBlockedByCsp, + /// + /// MainFrameNavigation + /// + [JsonPropertyName("MainFrameNavigation")] + MainFrameNavigation, + /// + /// MojoBinderPolicy + /// + [JsonPropertyName("MojoBinderPolicy")] + MojoBinderPolicy, + /// + /// RendererProcessCrashed + /// + [JsonPropertyName("RendererProcessCrashed")] + RendererProcessCrashed, + /// + /// RendererProcessKilled + /// + [JsonPropertyName("RendererProcessKilled")] + RendererProcessKilled, + /// + /// Download + /// + [JsonPropertyName("Download")] + Download, + /// + /// TriggerDestroyed + /// + [JsonPropertyName("TriggerDestroyed")] + TriggerDestroyed, + /// + /// NavigationNotCommitted + /// + [JsonPropertyName("NavigationNotCommitted")] + NavigationNotCommitted, + /// + /// NavigationBadHttpStatus + /// + [JsonPropertyName("NavigationBadHttpStatus")] + NavigationBadHttpStatus, + /// + /// ClientCertRequested + /// + [JsonPropertyName("ClientCertRequested")] + ClientCertRequested, + /// + /// NavigationRequestNetworkError + /// + [JsonPropertyName("NavigationRequestNetworkError")] + NavigationRequestNetworkError, + /// + /// MaxNumOfRunningPrerendersExceeded + /// + [JsonPropertyName("MaxNumOfRunningPrerendersExceeded")] + MaxNumOfRunningPrerendersExceeded, + /// + /// CancelAllHostsForTesting + /// + [JsonPropertyName("CancelAllHostsForTesting")] + CancelAllHostsForTesting, + /// + /// DidFailLoad + /// + [JsonPropertyName("DidFailLoad")] + DidFailLoad, + /// + /// Stop + /// + [JsonPropertyName("Stop")] + Stop, + /// + /// SslCertificateError + /// + [JsonPropertyName("SslCertificateError")] + SslCertificateError, + /// + /// LoginAuthRequested + /// + [JsonPropertyName("LoginAuthRequested")] + LoginAuthRequested, + /// + /// UaChangeRequiresReload + /// + [JsonPropertyName("UaChangeRequiresReload")] + UaChangeRequiresReload, + /// + /// BlockedByClient + /// + [JsonPropertyName("BlockedByClient")] + BlockedByClient, + /// + /// AudioOutputDeviceRequested + /// + [JsonPropertyName("AudioOutputDeviceRequested")] + AudioOutputDeviceRequested, + /// + /// MixedContent + /// + [JsonPropertyName("MixedContent")] + MixedContent, + /// + /// TriggerBackgrounded + /// + [JsonPropertyName("TriggerBackgrounded")] + TriggerBackgrounded, + /// + /// EmbedderTriggeredAndCrossOriginRedirected + /// + [JsonPropertyName("EmbedderTriggeredAndCrossOriginRedirected")] + EmbedderTriggeredAndCrossOriginRedirected, + /// + /// MemoryLimitExceeded + /// + [JsonPropertyName("MemoryLimitExceeded")] + MemoryLimitExceeded, + /// + /// FailToGetMemoryUsage + /// + [JsonPropertyName("FailToGetMemoryUsage")] + FailToGetMemoryUsage, + /// + /// DataSaverEnabled + /// + [JsonPropertyName("DataSaverEnabled")] + DataSaverEnabled, + /// + /// HasEffectiveUrl + /// + [JsonPropertyName("HasEffectiveUrl")] + HasEffectiveUrl, + /// + /// ActivatedBeforeStarted + /// + [JsonPropertyName("ActivatedBeforeStarted")] + ActivatedBeforeStarted, + /// + /// InactivePageRestriction + /// + [JsonPropertyName("InactivePageRestriction")] + InactivePageRestriction, + /// + /// StartFailed + /// + [JsonPropertyName("StartFailed")] + StartFailed, + /// + /// TimeoutBackgrounded + /// + [JsonPropertyName("TimeoutBackgrounded")] + TimeoutBackgrounded, + /// + /// CrossSiteRedirectInInitialNavigation + /// + [JsonPropertyName("CrossSiteRedirectInInitialNavigation")] + CrossSiteRedirectInInitialNavigation, + /// + /// CrossSiteNavigationInInitialNavigation + /// + [JsonPropertyName("CrossSiteNavigationInInitialNavigation")] + CrossSiteNavigationInInitialNavigation, + /// + /// SameSiteCrossOriginRedirectNotOptInInInitialNavigation + /// + [JsonPropertyName("SameSiteCrossOriginRedirectNotOptInInInitialNavigation")] + SameSiteCrossOriginRedirectNotOptInInInitialNavigation, + /// + /// SameSiteCrossOriginNavigationNotOptInInInitialNavigation + /// + [JsonPropertyName("SameSiteCrossOriginNavigationNotOptInInInitialNavigation")] + SameSiteCrossOriginNavigationNotOptInInInitialNavigation, + /// + /// ActivationNavigationParameterMismatch + /// + [JsonPropertyName("ActivationNavigationParameterMismatch")] + ActivationNavigationParameterMismatch, + /// + /// ActivatedInBackground + /// + [JsonPropertyName("ActivatedInBackground")] + ActivatedInBackground, + /// + /// EmbedderHostDisallowed + /// + [JsonPropertyName("EmbedderHostDisallowed")] + EmbedderHostDisallowed, + /// + /// ActivationNavigationDestroyedBeforeSuccess + /// + [JsonPropertyName("ActivationNavigationDestroyedBeforeSuccess")] + ActivationNavigationDestroyedBeforeSuccess, + /// + /// TabClosedByUserGesture + /// + [JsonPropertyName("TabClosedByUserGesture")] + TabClosedByUserGesture, + /// + /// TabClosedWithoutUserGesture + /// + [JsonPropertyName("TabClosedWithoutUserGesture")] + TabClosedWithoutUserGesture, + /// + /// PrimaryMainFrameRendererProcessCrashed + /// + [JsonPropertyName("PrimaryMainFrameRendererProcessCrashed")] + PrimaryMainFrameRendererProcessCrashed, + /// + /// PrimaryMainFrameRendererProcessKilled + /// + [JsonPropertyName("PrimaryMainFrameRendererProcessKilled")] + PrimaryMainFrameRendererProcessKilled, + /// + /// ActivationFramePolicyNotCompatible + /// + [JsonPropertyName("ActivationFramePolicyNotCompatible")] + ActivationFramePolicyNotCompatible, + /// + /// PreloadingDisabled + /// + [JsonPropertyName("PreloadingDisabled")] + PreloadingDisabled, + /// + /// BatterySaverEnabled + /// + [JsonPropertyName("BatterySaverEnabled")] + BatterySaverEnabled, + /// + /// ActivatedDuringMainFrameNavigation + /// + [JsonPropertyName("ActivatedDuringMainFrameNavigation")] + ActivatedDuringMainFrameNavigation, + /// + /// PreloadingUnsupportedByWebContents + /// + [JsonPropertyName("PreloadingUnsupportedByWebContents")] + PreloadingUnsupportedByWebContents, + /// + /// CrossSiteRedirectInMainFrameNavigation + /// + [JsonPropertyName("CrossSiteRedirectInMainFrameNavigation")] + CrossSiteRedirectInMainFrameNavigation, + /// + /// CrossSiteNavigationInMainFrameNavigation + /// + [JsonPropertyName("CrossSiteNavigationInMainFrameNavigation")] + CrossSiteNavigationInMainFrameNavigation, + /// + /// SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation + /// + [JsonPropertyName("SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation")] + SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation, + /// + /// SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation + /// + [JsonPropertyName("SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation")] + SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation + } + + /// + /// Preloading status values, see also PreloadingTriggeringOutcome. This + /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. + /// + public enum PreloadingStatus + { + /// + /// Pending + /// + [JsonPropertyName("Pending")] + Pending, + /// + /// Running + /// + [JsonPropertyName("Running")] + Running, + /// + /// Ready + /// + [JsonPropertyName("Ready")] + Ready, + /// + /// Success + /// + [JsonPropertyName("Success")] + Success, + /// + /// Failure + /// + [JsonPropertyName("Failure")] + Failure, + /// + /// NotSupported + /// + [JsonPropertyName("NotSupported")] + NotSupported + } + + /// + /// Upsert. Currently, it is only emitted when a rule set added. /// - public partial class PlayerErrorSourceLocation : CefSharp.DevTools.DevToolsDomainEntityBase + public class RuleSetUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// File + /// RuleSet /// - [JsonPropertyName("file")] + [JsonInclude] + [JsonPropertyName("ruleSet")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string File + public CefSharp.DevTools.Preload.RuleSet RuleSet { get; - set; + private set; } + } + /// + /// ruleSetRemoved + /// + public class RuleSetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { /// - /// Line + /// Id /// - [JsonPropertyName("line")] - public int Line + [JsonInclude] + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id { get; - set; + private set; } } /// - /// Corresponds to kMediaError + /// Fired when a prerender attempt is completed. /// - public partial class PlayerError : CefSharp.DevTools.DevToolsDomainEntityBase + public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// ErrorType + /// Key /// - [JsonPropertyName("errorType")] + [JsonInclude] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string ErrorType + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key { get; - set; + private set; } /// - /// Code is the numeric enum entry for a specific set of error codes, such - /// as PipelineStatusCodes in media/base/pipeline_status.h + /// The frame id of the frame initiating prerendering. /// - [JsonPropertyName("code")] - public int Code + [JsonInclude] + [JsonPropertyName("initiatingFrameId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string InitiatingFrameId { get; - set; + private set; } /// - /// A trace of where this error was caused / where it passed through. + /// PrerenderingUrl /// - [JsonPropertyName("stack")] + [JsonInclude] + [JsonPropertyName("prerenderingUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Stack + public string PrerenderingUrl { get; - set; + private set; } /// - /// Errors potentially have a root cause error, ie, a DecoderError might be - /// caused by an WindowsError + /// FinalStatus /// - [JsonPropertyName("cause")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Cause + [JsonInclude] + [JsonPropertyName("finalStatus")] + public CefSharp.DevTools.Preload.PrerenderFinalStatus FinalStatus { get; - set; + private set; } /// - /// Extra data attached to an error, such as an HRESULT, Video Codec, etc. + /// This is used to give users more information about the name of the API call + /// that is incompatible with prerender and has caused the cancellation of the attempt /// - [JsonPropertyName("data")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public object Data + [JsonInclude] + [JsonPropertyName("disallowedApiMethod")] + public string DisallowedApiMethod { get; - set; + private set; } } /// - /// This can be called multiple times, and can be used to set / override / - /// remove player properties. A null propValue indicates removal. + /// Fired when a prefetch attempt is updated. /// - public class PlayerPropertiesChangedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + public class PrefetchStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// PlayerId + /// Key /// [JsonInclude] - [JsonPropertyName("playerId")] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PlayerId + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key { get; private set; } /// - /// Properties + /// The frame id of the frame initiating prefetch. /// [JsonInclude] - [JsonPropertyName("properties")] + [JsonPropertyName("initiatingFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Properties + public string InitiatingFrameId { get; private set; } - } - /// - /// Send events as a list, allowing them to be batched on the browser for less - /// congestion. If batched, events must ALWAYS be in chronological order. - /// - public class PlayerEventsAddedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { /// - /// PlayerId + /// PrefetchUrl /// [JsonInclude] - [JsonPropertyName("playerId")] + [JsonPropertyName("prefetchUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PlayerId + public string PrefetchUrl { get; private set; } /// - /// Events + /// Status /// [JsonInclude] - [JsonPropertyName("events")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Events + [JsonPropertyName("status")] + public CefSharp.DevTools.Preload.PreloadingStatus Status { get; private set; @@ -26006,59 +26570,52 @@ public System.Collections.Generic.IList Eve } /// - /// Send a list of any messages that need to be delivered. + /// Fired when a prerender attempt is updated. /// - public class PlayerMessagesLoggedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + public class PrerenderStatusUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// PlayerId + /// Key /// [JsonInclude] - [JsonPropertyName("playerId")] + [JsonPropertyName("key")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PlayerId + public CefSharp.DevTools.Preload.PreloadingAttemptKey Key { get; private set; } /// - /// Messages + /// The frame id of the frame initiating prerender. /// [JsonInclude] - [JsonPropertyName("messages")] + [JsonPropertyName("initiatingFrameId")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Messages + public string InitiatingFrameId { get; private set; } - } - /// - /// Send a list of any errors that need to be delivered. - /// - public class PlayerErrorsRaisedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { /// - /// PlayerId + /// PrerenderingUrl /// [JsonInclude] - [JsonPropertyName("playerId")] + [JsonPropertyName("prerenderingUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PlayerId + public string PrerenderingUrl { get; private set; } /// - /// Errors + /// Status /// [JsonInclude] - [JsonPropertyName("errors")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Errors + [JsonPropertyName("status")] + public CefSharp.DevTools.Preload.PreloadingStatus Status { get; private set; @@ -26066,19 +26623,29 @@ public System.Collections.Generic.IList Err } /// - /// Called whenever a player is created, or when a new agent joins and receives - /// a list of active players. If an agent is restored, it will receive the full - /// list of player ids and all events again. + /// Send a list of sources for all preloading attempts in a document. /// - public class PlayersCreatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + public class PreloadingAttemptSourcesUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// Players + /// LoaderId /// [JsonInclude] - [JsonPropertyName("players")] + [JsonPropertyName("loaderId")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string[] Players + public string LoaderId + { + get; + private set; + } + + /// + /// PreloadingAttemptSources + /// + [JsonInclude] + [JsonPropertyName("preloadingAttemptSources")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList PreloadingAttemptSources { get; private set; @@ -26086,26 +26653,55 @@ public string[] Players } } -namespace CefSharp.DevTools.DeviceAccess +namespace CefSharp.DevTools.FedCm { /// - /// Device information displayed in a user prompt to select a device. + /// Whether this is a sign-up or sign-in action for this account, i.e. + /// whether this account has ever been used to sign in to this RP before. /// - public partial class PromptDevice : CefSharp.DevTools.DevToolsDomainEntityBase + public enum LoginState { /// - /// Id + /// SignIn /// - [JsonPropertyName("id")] + [JsonPropertyName("SignIn")] + SignIn, + /// + /// SignUp + /// + [JsonPropertyName("SignUp")] + SignUp + } + + /// + /// Corresponds to IdentityRequestAccount + /// + public partial class Account : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// AccountId + /// + [JsonPropertyName("accountId")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Id + public string AccountId { get; set; } /// - /// Display name as it appears in a device request user prompt. + /// Email + /// + [JsonPropertyName("email")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Email + { + get; + set; + } + + /// + /// Name /// [JsonPropertyName("name")] [System.Diagnostics.CodeAnalysis.DisallowNull] @@ -26114,81 +26710,76 @@ public string Name get; set; } - } - /// - /// A device request opened a user prompt to select a device. Respond with the - /// selectPrompt or cancelPrompt command. - /// - public class DeviceRequestPromptedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { /// - /// Id + /// GivenName /// - [JsonInclude] - [JsonPropertyName("id")] + [JsonPropertyName("givenName")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Id + public string GivenName { get; - private set; + set; } /// - /// Devices + /// PictureUrl /// - [JsonInclude] - [JsonPropertyName("devices")] + [JsonPropertyName("pictureUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public System.Collections.Generic.IList Devices + public string PictureUrl { get; - private set; + set; } - } -} -namespace CefSharp.DevTools.Preload -{ - /// - /// Corresponds to SpeculationRuleSet - /// - public partial class RuleSet : CefSharp.DevTools.DevToolsDomainEntityBase - { /// - /// Id + /// IdpConfigUrl /// - [JsonPropertyName("id")] + [JsonPropertyName("idpConfigUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Id + public string IdpConfigUrl { get; set; } /// - /// Identifies a document which the rule set is associated with. + /// IdpSigninUrl /// - [JsonPropertyName("loaderId")] + [JsonPropertyName("idpSigninUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string LoaderId + public string IdpSigninUrl { get; set; } /// - /// Source text of JSON representing the rule set. If it comes from - /// <script> tag, it is the textContent of the node. Note that it is - /// a JSON for valid case. - /// - /// See also: - /// - https://wicg.github.io/nav-speculation/speculation-rules.html - /// - https://github.com/WICG/nav-speculation/blob/main/triggers.md + /// LoginState /// - [JsonPropertyName("sourceText")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string SourceText + [JsonPropertyName("loginState")] + public CefSharp.DevTools.FedCm.LoginState LoginState + { + get; + set; + } + + /// + /// These two are only set if the loginState is signUp + /// + [JsonPropertyName("termsOfServiceUrl")] + public string TermsOfServiceUrl + { + get; + set; + } + + /// + /// PrivacyPolicyUrl + /// + [JsonPropertyName("privacyPolicyUrl")] + public string PrivacyPolicyUrl { get; set; @@ -26196,35 +26787,53 @@ public string SourceText } /// - /// Upsert. Currently, it is only emitted when a rule set added. + /// dialogShown /// - public class RuleSetUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + public class DialogShownEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// RuleSet + /// DialogId /// [JsonInclude] - [JsonPropertyName("ruleSet")] + [JsonPropertyName("dialogId")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public CefSharp.DevTools.Preload.RuleSet RuleSet + public string DialogId { get; private set; } - } - /// - /// ruleSetRemoved - /// - public class RuleSetRemovedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { /// - /// Id + /// Accounts /// [JsonInclude] - [JsonPropertyName("id")] + [JsonPropertyName("accounts")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Id + public System.Collections.Generic.IList Accounts + { + get; + private set; + } + + /// + /// These exist primarily so that the caller can verify the + /// RP context was used appropriately. + /// + [JsonInclude] + [JsonPropertyName("title")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Title + { + get; + private set; + } + + /// + /// Subtitle + /// + [JsonInclude] + [JsonPropertyName("subtitle")] + public string Subtitle { get; private set; @@ -40699,56 +41308,6 @@ public event System.EventHandler BackForwardCa } } - /// - /// Fired when a prerender attempt is completed. - /// - public event System.EventHandler PrerenderAttemptCompleted - { - add - { - _client.AddEventHandler("Page.prerenderAttemptCompleted", value); - } - - remove - { - _client.RemoveEventHandler("Page.prerenderAttemptCompleted", value); - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prefetch attempt is updated. - /// - public event System.EventHandler PrefetchStatusUpdated - { - add - { - _client.AddEventHandler("Page.prefetchStatusUpdated", value); - } - - remove - { - _client.RemoveEventHandler("Page.prefetchStatusUpdated", value); - } - } - - /// - /// TODO(crbug/1384419): Create a dedicated domain for preloading. - /// Fired when a prerender attempt is updated. - /// - public event System.EventHandler PrerenderStatusUpdated - { - add - { - _client.AddEventHandler("Page.prerenderStatusUpdated", value); - } - - remove - { - _client.RemoveEventHandler("Page.prerenderStatusUpdated", value); - } - } - /// /// LoadEventFired /// @@ -42503,6 +43062,38 @@ public event System.EventHandler SharedStorageAc } } + /// + /// StorageBucketCreatedOrUpdated + /// + public event System.EventHandler StorageBucketCreatedOrUpdated + { + add + { + _client.AddEventHandler("Storage.storageBucketCreatedOrUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Storage.storageBucketCreatedOrUpdated", value); + } + } + + /// + /// StorageBucketDeleted + /// + public event System.EventHandler StorageBucketDeleted + { + add + { + _client.AddEventHandler("Storage.storageBucketDeleted", value); + } + + remove + { + _client.RemoveEventHandler("Storage.storageBucketDeleted", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -42916,6 +43507,38 @@ public System.Threading.Tasks.Task SetSharedStorageTrack dict.Add("enable", enable); return _client.ExecuteDevToolsMethodAsync("Storage.setSharedStorageTracking", dict); } + + partial void ValidateSetStorageBucketTracking(string storageKey, bool enable); + /// + /// Set tracking for a storage key's buckets. + /// + /// storageKey + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetStorageBucketTrackingAsync(string storageKey, bool enable) + { + ValidateSetStorageBucketTracking(storageKey, enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setStorageBucketTracking", dict); + } + + partial void ValidateDeleteStorageBucket(string storageKey, string bucketName); + /// + /// Deletes the Storage Bucket with the given storage key and bucket name. + /// + /// storageKey + /// bucketName + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DeleteStorageBucketAsync(string storageKey, string bucketName) + { + ValidateDeleteStorageBucket(storageKey, bucketName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("storageKey", storageKey); + dict.Add("bucketName", bucketName); + return _client.ExecuteDevToolsMethodAsync("Storage.deleteStorageBucket", dict); + } } } @@ -45254,6 +45877,70 @@ public event System.EventHandler RuleSetRemoved } } + /// + /// Fired when a prerender attempt is completed. + /// + public event System.EventHandler PrerenderAttemptCompleted + { + add + { + _client.AddEventHandler("Preload.prerenderAttemptCompleted", value); + } + + remove + { + _client.RemoveEventHandler("Preload.prerenderAttemptCompleted", value); + } + } + + /// + /// Fired when a prefetch attempt is updated. + /// + public event System.EventHandler PrefetchStatusUpdated + { + add + { + _client.AddEventHandler("Preload.prefetchStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.prefetchStatusUpdated", value); + } + } + + /// + /// Fired when a prerender attempt is updated. + /// + public event System.EventHandler PrerenderStatusUpdated + { + add + { + _client.AddEventHandler("Preload.prerenderStatusUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.prerenderStatusUpdated", value); + } + } + + /// + /// Send a list of sources for all preloading attempts in a document. + /// + public event System.EventHandler PreloadingAttemptSourcesUpdated + { + add + { + _client.AddEventHandler("Preload.preloadingAttemptSourcesUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.preloadingAttemptSourcesUpdated", value); + } + } + /// /// Enable /// @@ -45276,6 +45963,118 @@ public System.Threading.Tasks.Task DisableAsync() } } +namespace CefSharp.DevTools.FedCm +{ + using System.Linq; + + /// + /// This domain allows interacting with the FedCM dialog. + /// + public partial class FedCmClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// FedCm + /// + /// DevToolsClient + public FedCmClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + /// + /// DialogShown + /// + public event System.EventHandler DialogShown + { + add + { + _client.AddEventHandler("FedCm.dialogShown", value); + } + + remove + { + _client.RemoveEventHandler("FedCm.dialogShown", value); + } + } + + partial void ValidateEnable(bool? disableRejectionDelay = null); + /// + /// Enable + /// + /// Allows callers to disable the promise rejection delay that wouldnormally happen, if this is unimportant to what's being tested.(step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in) + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync(bool? disableRejectionDelay = null) + { + ValidateEnable(disableRejectionDelay); + var dict = new System.Collections.Generic.Dictionary(); + if (disableRejectionDelay.HasValue) + { + dict.Add("disableRejectionDelay", disableRejectionDelay.Value); + } + + return _client.ExecuteDevToolsMethodAsync("FedCm.enable", dict); + } + + /// + /// Disable + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("FedCm.disable", dict); + } + + partial void ValidateSelectAccount(string dialogId, int accountIndex); + /// + /// SelectAccount + /// + /// dialogId + /// accountIndex + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SelectAccountAsync(string dialogId, int accountIndex) + { + ValidateSelectAccount(dialogId, accountIndex); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + dict.Add("accountIndex", accountIndex); + return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); + } + + partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); + /// + /// DismissDialog + /// + /// dialogId + /// triggerCooldown + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DismissDialogAsync(string dialogId, bool? triggerCooldown = null) + { + ValidateDismissDialog(dialogId, triggerCooldown); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + if (triggerCooldown.HasValue) + { + dict.Add("triggerCooldown", triggerCooldown.Value); + } + + return _client.ExecuteDevToolsMethodAsync("FedCm.dismissDialog", dict); + } + + /// + /// Resets the cooldown time, if any, to allow the next FedCM call to show + /// a dialog even if one was recently dismissed by the user. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ResetCooldownAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("FedCm.resetCooldown", dict); + } + } +} + namespace CefSharp.DevTools.Debugger { /// @@ -48978,6 +49777,23 @@ public CefSharp.DevTools.Preload.PreloadClient Preload } } + private CefSharp.DevTools.FedCm.FedCmClient _FedCm; + /// + /// This domain allows interacting with the FedCM dialog. + /// + public CefSharp.DevTools.FedCm.FedCmClient FedCm + { + get + { + if ((_FedCm) == (null)) + { + _FedCm = (new CefSharp.DevTools.FedCm.FedCmClient(this)); + } + + return _FedCm; + } + } + private CefSharp.DevTools.Debugger.DebuggerClient _Debugger; /// /// Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing From 026288439f60b7f1624b326aba899a1eefcadbd8 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 7 May 2023 05:52:28 +1000 Subject: [PATCH 268/543] Core - Update CefErrorCode (113.0.5672.63) --- CefSharp/Enums/CefErrorCode.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/CefSharp/Enums/CefErrorCode.cs b/CefSharp/Enums/CefErrorCode.cs index 1aa23348d..bd4ea2a15 100644 --- a/CefSharp/Enums/CefErrorCode.cs +++ b/CefSharp/Enums/CefErrorCode.cs @@ -151,12 +151,7 @@ public enum CefErrorCode /// SocketIsConnected = -23, - /// - /// The request was blocked because the forced reenrollment check is still - /// pending. This error can only occur on ChromeOS. - /// The error can be emitted by code in chrome/browser/policy/policy_helpers.cc. - /// - BlockedEnrollmentCheckPending = -24, + // Error -24 was removed (BLOCKED_ENROLLMENT_CHECK_PENDING) /// /// The upload failed because the upload stream needed to be re-read, due to a @@ -1196,10 +1191,10 @@ public enum CefErrorCode InconsistentIpAddressSpace = -383, /// - /// The IP address space of the cached remote endpoint is blocked by private + /// The IP address space of the cached remote endpoint is blocked by local /// network access check. /// - CachedIpAddressSpaceBlockedByPrivateNetworkAccessPolicy = -384, + CachedIpAddressSpaceBlockedByLocalNetworkAccessPolicy = -384, /// /// The cache does not have the requested entry. @@ -1512,6 +1507,6 @@ public enum CefErrorCode /// The hostname resolution of HTTPS record was expected to be resolved with /// alpn values of supported protocols, but did not. /// - DnsNoMachingSupportedAlpn = -811, + DnsNoMatchingSupportedAlpn = -811, }; } From e171feecb23df6ea5b02f883f9ff1ffaee88ac04 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 7 May 2023 06:02:00 +1000 Subject: [PATCH 269/543] Update README.md as M113 release imminent --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46a081f39..019c95fa0 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,8 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| | [master](https://github.com/cefsharp/CefSharp/) | 5615 | 2019* | 4.5.2** | Development | -| [cefsharp/112](https://github.com/cefsharp/CefSharp/tree/cefsharp/112)| 5615 | 2019* | 4.5.2** | **Release** | +| [cefsharp/113](https://github.com/cefsharp/CefSharp/tree/cefsharp/113)| 5615 | 2019* | 4.5.2** | **Release** | +| [cefsharp/112](https://github.com/cefsharp/CefSharp/tree/cefsharp/112)| 5615 | 2019* | 4.5.2** | Unsupported | | [cefsharp/111](https://github.com/cefsharp/CefSharp/tree/cefsharp/111)| 5563 | 2019* | 4.5.2** | Unsupported | | [cefsharp/110](https://github.com/cefsharp/CefSharp/tree/cefsharp/110)| 5481 | 2019* | 4.5.2** | Unsupported | | [cefsharp/109](https://github.com/cefsharp/CefSharp/tree/cefsharp/109)| 5414 | 2019* | 4.5.2** | Unsupported | From 252105271f11c0402d1f283cb09f04907a510c27 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 8 Jun 2023 19:53:16 +1000 Subject: [PATCH 270/543] Upgrade to 114.2.10+g398e3c3+chromium-114.0.5735.110 / Chromium 114.0.5735.110 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 8abc572df..336d3cdb2 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index b39248db1..f36309c26 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 29ee7f750..5a32ae91e 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 113,1,10 - PRODUCTVERSION 113,1,10 + FILEVERSION 114,2,100 + PRODUCTVERSION 114,2,100 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "113.1.10" + VALUE "FileVersion", "114.2.100" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "113.1.10" + VALUE "ProductVersion", "114.2.100" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 2d1c7c9bb..c0e7a040d 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 884266935..bc500a55d 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index dd5adc364..cbdd16380 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 8bab14e41..b8afbac7e 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index b3d98c264..535fc76a1 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 19178d3ca..6d10c45a7 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 113,1,10 - PRODUCTVERSION 113,1,10 + FILEVERSION 114,2,100 + PRODUCTVERSION 114,2,100 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "113.1.10" + VALUE "FileVersion", "114.2.100" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "113.1.10" + VALUE "ProductVersion", "114.2.100" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 2d1c7c9bb..c0e7a040d 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 884266935..bc500a55d 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index baff362d3..69e685bd2 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index d46252b41..36a278569 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index d41c5cc25..5b207ec48 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index a9552e18f..1ae7b3c24 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index f148f07a8..c3ebdcce3 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 90358e947..08e53fd8a 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 03fc0f1a1..9eb6147df 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 787b81a62..f0f283e41 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index b68d42b9e..15e8a3fd8 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 265500b8c..48194df2f 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 920ea2a93..cd7c7a797 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 230c83b75..915008613 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 113.1.10 + 114.2.100 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 113.1.10 + Version 114.2.100 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 23772ce3b..311a62f25 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "113.1.10"; - public const string AssemblyFileVersion = "113.1.10.0"; + public const string AssemblyVersion = "114.2.100"; + public const string AssemblyFileVersion = "114.2.100.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index a49f8f748..d4a1a4d03 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 30f740ac3..e9767a225 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 127ac4859..e86360323 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index aaadb39a0..5c36d1216 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "113.1.1", + [string] $CefVersion = "114.2.10", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 19288301c..06d8216e7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 113.1.10-CI{build} +version: 114.2.100-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 5899c2d03..226e8c890 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "113.1.10", + [string] $Version = "114.2.100", [Parameter(Position = 2)] - [string] $AssemblyVersion = "113.1.10", + [string] $AssemblyVersion = "114.2.100", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 1def8a7937dce48e6f6264ae147cd63bdfd8c598 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 10 Jun 2023 07:33:20 +1000 Subject: [PATCH 271/543] Upgrade to .Net 4.6.2 (#4482) * Upgrade minimum .Net version to 4.6.2 #4433 * Use TaskCreationOptions.RunContinuationsAsynchronously - Now that min version is .Net 4.6.2 we can use RunContinuationsAsynchronously - Remove some unused code --- .../CefSharp.BrowserSubprocess.Core.vcxproj | 6 +- .../CefSharp.BrowserSubprocess.csproj | 2 +- CefSharp.BrowserSubprocess/app.config | 2 +- .../CefSharp.Core.Runtime.vcxproj | 6 +- .../Internals/CefBrowserHostWrapper.cpp | 5 +- .../Internals/ClientAdapter.cpp | 2 +- CefSharp.Core/CefSharp.Core.csproj | 2 +- CefSharp.Core/DevTools/DevToolsClient.cs | 8 +- CefSharp.Core/WebBrowserExtensionsEx.cs | 10 +- CefSharp.OffScreen/CefSharp.OffScreen.csproj | 2 +- CefSharp.OffScreen/ChromiumWebBrowser.cs | 18 ++-- CefSharp.WinForms/CefSharp.WinForms.csproj | 2 +- CefSharp.Wpf/CefSharp.Wpf.csproj | 2 +- CefSharp.Wpf/ChromiumWebBrowser.cs | 6 -- CefSharp/Callback/TaskCompletionCallback.cs | 10 +- .../Callback/TaskDeleteCookiesCallback.cs | 9 +- CefSharp/Callback/TaskPrintToPdfCallback.cs | 9 +- CefSharp/Callback/TaskResolveCallback.cs | 9 +- CefSharp/Callback/TaskSetCookieCallback.cs | 9 +- CefSharp/CefSharp.csproj | 2 +- .../Partial/ChromiumWebBrowser.Partial.cs | 6 +- CefSharp/Internals/PendingTaskRepository.cs | 4 +- CefSharp/Internals/TaskExtensions.cs | 102 ------------------ .../JavascriptBindingExtensions.cs | 6 +- CefSharp/Visitor/TaskCookieVisitor.cs | 9 +- .../Visitor/TaskNavigationEntryVisitor.cs | 5 +- CefSharp/Visitor/TaskStringVisitor.cs | 4 +- CefSharp/WebBrowserExtensions.cs | 12 +-- NuGet/CefSharp.Common.nuspec | 18 ++-- NuGet/CefSharp.Common.props | 4 +- NuGet/CefSharp.Common.targets | 6 +- NuGet/CefSharp.OffScreen.nuspec | 11 +- NuGet/CefSharp.WinForms.nuspec | 11 +- NuGet/CefSharp.Wpf.nuspec | 11 +- NuGet/Readme.txt | 4 +- README.md | 2 +- 36 files changed, 96 insertions(+), 240 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index f36309c26..c04101787 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,4 +1,4 @@ - + @@ -26,7 +26,7 @@ {6C4BB501-2F8E-48AC-9AB5-8CFB2D74185C} ManagedCProj CefSharpBrowserSubprocessCore - v4.5.2 + v4.6.2 10.0 @@ -261,4 +261,4 @@ - \ No newline at end of file + diff --git a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj index 30ba63279..03728ee01 100644 --- a/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj +++ b/CefSharp.BrowserSubprocess/CefSharp.BrowserSubprocess.csproj @@ -1,6 +1,6 @@ - net452 + net462 WinExe x86;x64 false diff --git a/CefSharp.BrowserSubprocess/app.config b/CefSharp.BrowserSubprocess/app.config index de8289320..ac5aa757c 100644 --- a/CefSharp.BrowserSubprocess/app.config +++ b/CefSharp.BrowserSubprocess/app.config @@ -1,3 +1,3 @@ - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 535fc76a1..8e5c031f5 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,4 +1,4 @@ - + @@ -26,7 +26,7 @@ {7B495581-2271-4F41-9476-ACB86E8C864F} CefSharp ManagedCProj - v4.5.2 + v4.6.2 @@ -368,4 +368,4 @@ - \ No newline at end of file + diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp index 143f278c3..c85427d4f 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp @@ -134,10 +134,7 @@ Task^ CefBrowserHostWrapper::GetZoomLevelAsync() if (CefCurrentlyOn(TID_UI)) { - auto taskSource = gcnew TaskCompletionSource(); - - CefSharp::Internals::TaskExtensions::TrySetResultAsync(taskSource, GetZoomLevelOnUI()); - return taskSource->Task; + return Task::FromResult(GetZoomLevelOnUI()); } return Cef::UIThreadTaskFactory->StartNew(gcnew Func(this, &CefBrowserHostWrapper::GetZoomLevelOnUI)); } diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index 0cc7c31cf..a5b994856 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -1489,7 +1489,7 @@ namespace CefSharp response->Message = StringUtils::ToClr(argList->GetString(2)); } - CefSharp::Internals::TaskExtensions::TrySetResultAsync(pendingTask, response); + pendingTask->TrySetResult(response); } handled = true; diff --git a/CefSharp.Core/CefSharp.Core.csproj b/CefSharp.Core/CefSharp.Core.csproj index 03f22f3fc..1f7efab95 100644 --- a/CefSharp.Core/CefSharp.Core.csproj +++ b/CefSharp.Core/CefSharp.Core.csproj @@ -1,6 +1,6 @@ - net452 + net462 Library CefSharp false diff --git a/CefSharp.Core/DevTools/DevToolsClient.cs b/CefSharp.Core/DevTools/DevToolsClient.cs index 805cb82fd..a88fad214 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.cs @@ -138,7 +138,7 @@ public Task ExecuteDevToolsMethodAsync(string method, IDictionary(); + var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); var methodResultContext = new DevToolsMethodResponseContext( type: typeof(T), @@ -332,7 +332,7 @@ void IDevToolsMessageObserver.OnDevToolsMethodResult(IBrowser browser, int messa /// /// Deserialize the JSON stream into a .Net object. /// For .Net Core/.Net 5.0 uses System.Text.Json - /// for .Net 4.5.2 uses System.Runtime.Serialization.Json + /// for .Net 4.6.2 uses System.Runtime.Serialization.Json /// /// Object type /// event Name @@ -359,7 +359,7 @@ private static T DeserializeJsonEvent(string eventName, Stream stream) where /// /// Deserialize the JSON stream into a .Net object. /// For .Net Core/.Net 5.0 uses System.Text.Json - /// for .Net 4.5.2 uses System.Runtime.Serialization.Json + /// for .Net 4.6.2 uses System.Runtime.Serialization.Json /// /// Object type /// JSON stream @@ -372,7 +372,7 @@ private static T DeserializeJson(Stream stream) /// /// Deserialize the JSON stream into a .Net object. /// For .Net Core/.Net 5.0 uses System.Text.Json - /// for .Net 4.5.2 uses System.Runtime.Serialization.Json + /// for .Net 4.6.2 uses System.Runtime.Serialization.Json /// /// Object type /// JSON stream diff --git a/CefSharp.Core/WebBrowserExtensionsEx.cs b/CefSharp.Core/WebBrowserExtensionsEx.cs index 9892ff52a..537f7cba3 100644 --- a/CefSharp.Core/WebBrowserExtensionsEx.cs +++ b/CefSharp.Core/WebBrowserExtensionsEx.cs @@ -39,13 +39,13 @@ public static Task GetVisibleNavigationEntryAsync(this IChromiu return Task.FromResult(entry); } - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); Cef.UIThreadTaskFactory.StartNew(delegate { var entry = host.GetVisibleNavigationEntry(); - tcs.TrySetResultAsync(entry); + tcs.TrySetResult(entry); }); return tcs.Task; @@ -107,7 +107,7 @@ public static Task DownloadUrlAsync(this IFrame frame, string url) throw new Exception("Frame is invalid, unable to continue."); } - var taskCompletionSource = new TaskCompletionSource(); + var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); //Can be created on any valid CEF Thread, here we'll use the CEF UI Thread Cef.UIThreadTaskFactory.StartNew(delegate @@ -129,11 +129,11 @@ public static Task DownloadUrlAsync(this IFrame frame, string url) { if (req.RequestStatus == UrlRequestStatus.Success) { - taskCompletionSource.TrySetResultAsync(memoryStream.ToArray()); + taskCompletionSource.TrySetResult(memoryStream.ToArray()); } else { - taskCompletionSource.TrySetExceptionAsync(new Exception("RequestStatus:" + req.RequestStatus + ";StatusCode:" + req.Response.StatusCode)); + taskCompletionSource.TrySetException(new Exception("RequestStatus:" + req.RequestStatus + ";StatusCode:" + req.Response.StatusCode)); } }) .Build(); diff --git a/CefSharp.OffScreen/CefSharp.OffScreen.csproj b/CefSharp.OffScreen/CefSharp.OffScreen.csproj index 249e94b63..aff0664b7 100644 --- a/CefSharp.OffScreen/CefSharp.OffScreen.csproj +++ b/CefSharp.OffScreen/CefSharp.OffScreen.csproj @@ -1,6 +1,6 @@ - net452;net462 + net462 Library true ..\CefSharp.snk diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 1144c64fb..8d0d17644 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -389,11 +389,11 @@ public void CreateBrowser(IWindowInfo windowInfo = null, IBrowserSettings browse /// public Task CreateBrowserAsync(IWindowInfo windowInfo = null, IBrowserSettings browserSettings = null) { - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); onAfterBrowserCreatedDelegate += new Action(b => { - tcs.TrySetResultAsync(b); + tcs.TrySetResult(b); }); try @@ -402,7 +402,7 @@ public Task CreateBrowserAsync(IWindowInfo windowInfo = null, IBrowser } catch(Exception ex) { - tcs.TrySetExceptionAsync(ex); + tcs.TrySetException(ex); } return tcs.Task; @@ -520,7 +520,7 @@ public Task ScreenshotAsync(bool ignoreExistingScreenshot = false, Popup // Try our luck and see if there is already a screenshot, to save us creating a new thread for nothing. var screenshot = ScreenshotOrNull(blend); - var completionSource = new TaskCompletionSource(); + var completionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); if (screenshot == null || ignoreExistingScreenshot) { @@ -539,7 +539,7 @@ public Task ScreenshotAsync(bool ignoreExistingScreenshot = false, Popup } else { - completionSource.TrySetResultAsync(ScreenshotOrNull(blend)); + completionSource.TrySetResult(ScreenshotOrNull(blend)); } }; @@ -547,7 +547,7 @@ public Task ScreenshotAsync(bool ignoreExistingScreenshot = false, Popup } else { - completionSource.TrySetResultAsync(screenshot); + completionSource.TrySetResult(screenshot); } return completionSource.Task; @@ -640,7 +640,7 @@ public Task ResizeAsync(int width, int height, float? deviceScaleFactor = null) var scaledWidth = (int)(width * DeviceScaleFactor); var scaledHeight = (int)(height * DeviceScaleFactor); - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); EventHandler handler = null; handler = (s, e) => @@ -649,7 +649,7 @@ public Task ResizeAsync(int width, int height, float? deviceScaleFactor = null) { AfterPaint -= handler; - tcs.TrySetResultAsync(true); + tcs.TrySetResult(true); } }; @@ -692,7 +692,6 @@ public void Load(string url) } } -#if NETCOREAPP || NET462 /// /// Waits for the page rendering to be idle for . /// Rendering is considered to be idle when no events have occured @@ -750,7 +749,6 @@ public async Task WaitForRenderIdleAsync(int idleTimeInMs = 500, TimeSpan? timeo throw; } } -#endif /// /// The javascript object repository, one repository per ChromiumWebBrowser instance. diff --git a/CefSharp.WinForms/CefSharp.WinForms.csproj b/CefSharp.WinForms/CefSharp.WinForms.csproj index 232089801..93318b092 100644 --- a/CefSharp.WinForms/CefSharp.WinForms.csproj +++ b/CefSharp.WinForms/CefSharp.WinForms.csproj @@ -1,6 +1,6 @@ - net452;net462 + net462 Library true ..\CefSharp.snk diff --git a/CefSharp.Wpf/CefSharp.Wpf.csproj b/CefSharp.Wpf/CefSharp.Wpf.csproj index ee02dfa5e..4599b4769 100644 --- a/CefSharp.Wpf/CefSharp.Wpf.csproj +++ b/CefSharp.Wpf/CefSharp.Wpf.csproj @@ -1,6 +1,6 @@ - net452;net462 + net462 Library false true diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index 16973f9e2..ea8151c2c 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -1776,7 +1776,6 @@ private void PresentationSourceChangedHandler(object sender, SourceChangedEventA } } -#if NETCOREAPP || NET462 /// protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi) { @@ -1784,7 +1783,6 @@ protected override void OnDpiChanged(DpiScale oldDpi, DpiScale newDpi) base.OnDpiChanged(oldDpi, newDpi); } -#endif private void OnWindowStateChanged(object sender, EventArgs e) { @@ -2638,8 +2636,6 @@ private void ZoomReset() /// correspond to 96, 120, 144, 192 DPI (referred to as 100%, 125%, 150%, 200% in the Windows GUI). /// /// new DPI - /// .Net 4.6.2 adds HwndSource.DpiChanged which could be used to automatically - /// handle DPI change, unfortunately we still target .Net 4.5.2 public virtual void NotifyDpiChange(float newDpi) { //Do nothing @@ -2680,7 +2676,6 @@ public virtual void NotifyDpiChange(float newDpi) } } -#if NETCOREAPP || NET462 /// /// Waits for the page rendering to be idle for . /// Rendering is considered to be idle when no events have occured @@ -2738,7 +2733,6 @@ public async Task WaitForRenderIdleAsync(int idleTimeInMs = 500, TimeSpan? timeo throw; } } -#endif /// /// Legacy keyboard handler uses WindowProc callback interceptor to forward keypress events diff --git a/CefSharp/Callback/TaskCompletionCallback.cs b/CefSharp/Callback/TaskCompletionCallback.cs index 56428f4ce..c930749da 100644 --- a/CefSharp/Callback/TaskCompletionCallback.cs +++ b/CefSharp/Callback/TaskCompletionCallback.cs @@ -4,7 +4,6 @@ using System; using System.Threading.Tasks; -using CefSharp.Internals; namespace CefSharp { @@ -22,14 +21,14 @@ public sealed class TaskCompletionCallback : ICompletionCallback /// public TaskCompletionCallback() { - taskCompletionSource = new TaskCompletionSource(); + taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); } void ICompletionCallback.OnComplete() { onComplete = true; - taskCompletionSource.TrySetResultAsync(true); + taskCompletionSource.TrySetResult(true); } /// @@ -50,11 +49,10 @@ void IDisposable.Dispose() var task = taskCompletionSource.Task; //If onComplete is false then ICompletionCallback.OnComplete was never called, - //so we'll set the result to false. Calling TrySetResultAsync multiple times - //can result in the issue outlined in https://github.com/cefsharp/CefSharp/pull/2349 + //so we'll set the result to false. if (onComplete == false && task.IsCompleted == false) { - taskCompletionSource.TrySetResultAsync(false); + taskCompletionSource.TrySetResult(false); } isDisposed = true; diff --git a/CefSharp/Callback/TaskDeleteCookiesCallback.cs b/CefSharp/Callback/TaskDeleteCookiesCallback.cs index 13545fdf9..cc7fc1201 100644 --- a/CefSharp/Callback/TaskDeleteCookiesCallback.cs +++ b/CefSharp/Callback/TaskDeleteCookiesCallback.cs @@ -27,14 +27,14 @@ public class TaskDeleteCookiesCallback : IDeleteCookiesCallback /// public TaskDeleteCookiesCallback() { - taskCompletionSource = new TaskCompletionSource(); + taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); } void IDeleteCookiesCallback.OnComplete(int numDeleted) { onComplete = true; - taskCompletionSource.TrySetResultAsync(numDeleted); + taskCompletionSource.TrySetResult(numDeleted); } /// @@ -54,11 +54,10 @@ void IDisposable.Dispose() var task = taskCompletionSource.Task; //If onComplete is false then IDeleteCookiesCallback.OnComplete was never called, - //so we'll set the result to false. Calling TrySetResultAsync multiple times - //can result in the issue outlined in https://github.com/cefsharp/CefSharp/pull/2349 + //so we'll set the result to false. if (onComplete == false && task.IsCompleted == false) { - taskCompletionSource.TrySetResultAsync(InvalidNoOfCookiesDeleted); + taskCompletionSource.TrySetResult(InvalidNoOfCookiesDeleted); } isDisposed = true; diff --git a/CefSharp/Callback/TaskPrintToPdfCallback.cs b/CefSharp/Callback/TaskPrintToPdfCallback.cs index dcf1d1a5f..18bc66ac2 100644 --- a/CefSharp/Callback/TaskPrintToPdfCallback.cs +++ b/CefSharp/Callback/TaskPrintToPdfCallback.cs @@ -13,7 +13,7 @@ namespace CefSharp /// public sealed class TaskPrintToPdfCallback : IPrintToPdfCallback { - private readonly TaskCompletionSource taskCompletionSource = new TaskCompletionSource(); + private readonly TaskCompletionSource taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); private volatile bool isDisposed; private bool onComplete; //Only ever accessed on the same CEF thread, so no need for thread safety @@ -29,7 +29,7 @@ void IPrintToPdfCallback.OnPdfPrintFinished(string path, bool ok) { onComplete = true; - taskCompletionSource.TrySetResultAsync(ok); + taskCompletionSource.TrySetResult(ok); } bool IPrintToPdfCallback.IsDisposed @@ -42,11 +42,10 @@ void IDisposable.Dispose() var task = taskCompletionSource.Task; //If onComplete is false then IPrintToPdfCallback.OnPdfPrintFinished was never called, - //so we'll set the result to false. Calling TrySetResultAsync multiple times - //can result in the issue outlined in https://github.com/cefsharp/CefSharp/pull/2349 + //so we'll set the result to false. if (onComplete == false && task.IsCompleted == false) { - taskCompletionSource.TrySetResultAsync(false); + taskCompletionSource.TrySetResult(false); } isDisposed = true; diff --git a/CefSharp/Callback/TaskResolveCallback.cs b/CefSharp/Callback/TaskResolveCallback.cs index 1ea00e2c8..ccbf0e146 100644 --- a/CefSharp/Callback/TaskResolveCallback.cs +++ b/CefSharp/Callback/TaskResolveCallback.cs @@ -23,14 +23,14 @@ public sealed class TaskResolveCallback : IResolveCallback /// public TaskResolveCallback() { - taskCompletionSource = new TaskCompletionSource(); + taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); } void IResolveCallback.OnResolveCompleted(CefErrorCode result, IList resolvedIpAddresses) { onComplete = true; - taskCompletionSource.TrySetResultAsync(new ResolveCallbackResult(result, resolvedIpAddresses)); + taskCompletionSource.TrySetResult(new ResolveCallbackResult(result, resolvedIpAddresses)); } bool IResolveCallback.IsDisposed @@ -51,11 +51,10 @@ void IDisposable.Dispose() var task = taskCompletionSource.Task; //If onComplete is false then IResolveCallback.OnResolveCompleted was never called, - //so we'll set the result to false. Calling TrySetResultAsync multiple times - //can result in the issue outlined in https://github.com/cefsharp/CefSharp/pull/2349 + //so we'll set the result to false. if (onComplete == false && task.IsCompleted == false) { - taskCompletionSource.TrySetResultAsync(new ResolveCallbackResult(CefErrorCode.Unexpected, null)); + taskCompletionSource.TrySetResult(new ResolveCallbackResult(CefErrorCode.Unexpected, null)); } isDisposed = true; diff --git a/CefSharp/Callback/TaskSetCookieCallback.cs b/CefSharp/Callback/TaskSetCookieCallback.cs index dffcaaae6..28126ca50 100644 --- a/CefSharp/Callback/TaskSetCookieCallback.cs +++ b/CefSharp/Callback/TaskSetCookieCallback.cs @@ -22,14 +22,14 @@ public sealed class TaskSetCookieCallback : ISetCookieCallback /// public TaskSetCookieCallback() { - taskCompletionSource = new TaskCompletionSource(); + taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); } void ISetCookieCallback.OnComplete(bool success) { onComplete = true; - taskCompletionSource.TrySetResultAsync(success); + taskCompletionSource.TrySetResult(success); } /// @@ -50,11 +50,10 @@ void IDisposable.Dispose() var task = taskCompletionSource.Task; //If onComplete is false then ISetCookieCallback.OnComplete was never called, - //so we'll set the result to false. Calling TrySetResultAsync multiple times - //can result in the issue outlined in https://github.com/cefsharp/CefSharp/pull/2349 + //so we'll set the result to false. if (onComplete == false && task.IsCompleted == false) { - taskCompletionSource.TrySetResultAsync(false); + taskCompletionSource.TrySetResult(false); } isDisposed = true; diff --git a/CefSharp/CefSharp.csproj b/CefSharp/CefSharp.csproj index 900b025ca..1d14689da 100644 --- a/CefSharp/CefSharp.csproj +++ b/CefSharp/CefSharp.csproj @@ -1,6 +1,6 @@ - net452 + net462 Library false true diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index 50f4c2d6d..c9c00ef55 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -51,7 +51,7 @@ public partial class ChromiumWebBrowser /// /// Initial browser load task complection source /// - private TaskCompletionSource initialLoadTaskCompletionSource = new TaskCompletionSource(); + private TaskCompletionSource initialLoadTaskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); /// /// Initial browser load action @@ -458,7 +458,7 @@ private void InitialLoad(bool? isLoading, CefErrorCode? errorCode) statusCode = -1; } - initialLoadTaskCompletionSource.TrySetResultAsync(new LoadUrlAsyncResponse(CefErrorCode.None, statusCode)); + initialLoadTaskCompletionSource.TrySetResult(new LoadUrlAsyncResponse(CefErrorCode.None, statusCode)); } else if (errorCode.HasValue) { @@ -471,7 +471,7 @@ private void InitialLoad(bool? isLoading, CefErrorCode? errorCode) initialLoadAction = null; - initialLoadTaskCompletionSource.TrySetResultAsync(new LoadUrlAsyncResponse(errorCode.Value, -1)); + initialLoadTaskCompletionSource.TrySetResult(new LoadUrlAsyncResponse(errorCode.Value, -1)); } } diff --git a/CefSharp/Internals/PendingTaskRepository.cs b/CefSharp/Internals/PendingTaskRepository.cs index 3dae39c5e..3a867c9a7 100644 --- a/CefSharp/Internals/PendingTaskRepository.cs +++ b/CefSharp/Internals/PendingTaskRepository.cs @@ -33,7 +33,7 @@ public sealed class PendingTaskRepository /// The unique id of the newly created pending task and the newly created . public KeyValuePair> CreatePendingTask(TimeSpan? timeout = null) { - var taskCompletionSource = new TaskCompletionSource(); + var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); var id = Interlocked.Increment(ref lastId); pendingTasks.TryAdd(id, taskCompletionSource); @@ -54,7 +54,7 @@ public KeyValuePair> CreatePendingTask(TimeS /// The unique id of the newly created pending task and the newly created . public KeyValuePair> CreateJavascriptCallbackPendingTask(long id, TimeSpan? timeout = null) { - var taskCompletionSource = new TaskCompletionSource(); + var taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); callbackPendingTasks.TryAdd(id, taskCompletionSource); diff --git a/CefSharp/Internals/TaskExtensions.cs b/CefSharp/Internals/TaskExtensions.cs index 6b9e830ae..6b64d0d4d 100644 --- a/CefSharp/Internals/TaskExtensions.cs +++ b/CefSharp/Internals/TaskExtensions.cs @@ -15,64 +15,6 @@ namespace CefSharp.Internals /// public static class TaskExtensions { - /// Creates a new Task that mirrors the supplied task but that will be canceled after the specified timeout. - /// Specifies the type of data contained in the task. - /// The task. - /// The timeout. - /// The new Task that may time out. - public static Task WithTimeout(this Task task, TimeSpan timeout) - { - var result = new TaskCompletionSource(task.AsyncState); - var timer = new Timer(state => ((TaskCompletionSource)state).TrySetCanceled(), result, timeout, TimeSpan.FromMilliseconds(-1)); - task.ContinueWith(t => - { - timer.Dispose(); - result.TrySetFromTask(t); - }, TaskContinuationOptions.ExecuteSynchronously); - return result.Task; - } - - /// Attempts to transfer the result of a Task to the TaskCompletionSource. - /// Specifies the type of the result. - /// The TaskCompletionSource. - /// The task whose completion results should be transfered. - /// Whether the transfer could be completed. - public static bool TrySetFromTask(this TaskCompletionSource resultSetter, Task task) - { - switch (task.Status) - { - case TaskStatus.RanToCompletion: - return resultSetter.TrySetResult(task is Task ? ((Task)task).Result : default(TResult)); - case TaskStatus.Faulted: - return resultSetter.TrySetException(task.Exception.InnerExceptions); - case TaskStatus.Canceled: - return resultSetter.TrySetCanceled(); - default: - throw new InvalidOperationException("The task was not completed."); - } - } - /// Attempts to transfer the result of a Task to the TaskCompletionSource. - /// Specifies the type of the result. - /// The TaskCompletionSource. - /// The task whose completion results should be transfered. - /// Whether the transfer could be completed. - public static bool TrySetFromTask(this TaskCompletionSource resultSetter, Task task) - { - return TrySetFromTask(resultSetter, (Task)task); - } - - public static Task FromResult(T value) - { - var tcs = new TaskCompletionSource(); - tcs.SetResult(value); - return tcs.Task; - } - - public static TaskCompletionSource WithTimeout(this TaskCompletionSource taskCompletionSource, TimeSpan timeout) - { - return WithTimeout(taskCompletionSource, timeout, null); - } - public static TaskCompletionSource WithTimeout(this TaskCompletionSource taskCompletionSource, TimeSpan timeout, Action cancelled) { Timer timer = null; @@ -91,49 +33,5 @@ public static TaskCompletionSource WithTimeout(this TaskComple return taskCompletionSource; } - - /// - /// Set the TaskCompletionSource in an async fashion. This prevents the Task Continuation being executed sync on the same thread - /// This is required otherwise continuations will happen on CEF UI threads - /// - /// Generic param - /// tcs - /// result - public static void TrySetResultAsync(this TaskCompletionSource taskCompletionSource, TResult result) - { - Task.Factory.StartNew(delegate - { - taskCompletionSource.TrySetResult(result); - }, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default); - } - - /// - /// Calls in an async fashion. This prevents the Task Continuation being executed sync on the same thread - /// This is required otherwise continuations will happen on CEF UI threads - /// - /// Generic param - /// tcs - /// exception - public static void TrySetExceptionAsync(this TaskCompletionSource taskCompletionSource, Exception ex) - { - Task.Factory.StartNew(delegate - { - taskCompletionSource.TrySetException(ex); - }, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default); - } - - /// - /// Calls in an async fashion. This prevents the Task Continuation being executed sync on the same thread - /// This is required otherwise continuations will happen on CEF UI threads - /// - /// Generic param - /// tcs - public static void TrySetCanceledAsync(this TaskCompletionSource taskCompletionSource) - { - Task.Factory.StartNew(delegate - { - taskCompletionSource.TrySetCanceled(); - }, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default); - } } } diff --git a/CefSharp/JavascriptBinding/JavascriptBindingExtensions.cs b/CefSharp/JavascriptBinding/JavascriptBindingExtensions.cs index 536a1f48c..88721922a 100644 --- a/CefSharp/JavascriptBinding/JavascriptBindingExtensions.cs +++ b/CefSharp/JavascriptBinding/JavascriptBindingExtensions.cs @@ -23,7 +23,7 @@ public static class JavascriptBindingExtensions /// List of objects that were bound public static Task> EnsureObjectBoundAsync(this IWebBrowser browser, params string[] names) { - var objBoundTasks = new TaskCompletionSource>(); + var objBoundTasks = new TaskCompletionSource>(TaskCreationOptions.RunContinuationsAsynchronously); EventHandler handler = null; handler = (sender, args) => @@ -34,11 +34,11 @@ public static Task> EnsureObjectBoundAsync(this IWebBrowser browse var allObjectsBound = names.ToList().SequenceEqual(args.ObjectNames); if (allObjectsBound) { - objBoundTasks.SetResult(args.ObjectNames); + objBoundTasks.TrySetResult(args.ObjectNames); } else { - objBoundTasks.SetException(new Exception("Not all objects were bound successfully, bound objects were " + string.Join(",", args.ObjectNames))); + objBoundTasks.TrySetException(new Exception("Not all objects were bound successfully, bound objects were " + string.Join(",", args.ObjectNames))); } }; diff --git a/CefSharp/Visitor/TaskCookieVisitor.cs b/CefSharp/Visitor/TaskCookieVisitor.cs index f1bd9cb8b..7ff6881e4 100644 --- a/CefSharp/Visitor/TaskCookieVisitor.cs +++ b/CefSharp/Visitor/TaskCookieVisitor.cs @@ -5,7 +5,6 @@ using System; using System.Collections.Generic; using System.Threading.Tasks; -using CefSharp.Internals; namespace CefSharp { @@ -23,7 +22,7 @@ public class TaskCookieVisitor : ICookieVisitor /// public TaskCookieVisitor() { - taskCompletionSource = new TaskCompletionSource>(); + taskCompletionSource = new TaskCompletionSource>(TaskCreationOptions.RunContinuationsAsynchronously); list = new List(); } @@ -34,8 +33,7 @@ bool ICookieVisitor.Visit(Cookie cookie, int count, int total, ref bool deleteCo if (count == (total - 1)) { - //Set the result on the ThreadPool so the Task continuation is not run on the CEF UI Thread - taskCompletionSource.TrySetResultAsync(list); + taskCompletionSource.TrySetResult(list); } return true; @@ -46,8 +44,7 @@ void IDisposable.Dispose() { if (list != null && list.Count == 0) { - //Set the result on the ThreadPool so the Task continuation is not run on the CEF UI Thread - taskCompletionSource.TrySetResultAsync(list); + taskCompletionSource.TrySetResult(list); } list = null; diff --git a/CefSharp/Visitor/TaskNavigationEntryVisitor.cs b/CefSharp/Visitor/TaskNavigationEntryVisitor.cs index c8088b8d3..8c10d2403 100644 --- a/CefSharp/Visitor/TaskNavigationEntryVisitor.cs +++ b/CefSharp/Visitor/TaskNavigationEntryVisitor.cs @@ -23,7 +23,7 @@ public class TaskNavigationEntryVisitor : INavigationEntryVisitor /// public TaskNavigationEntryVisitor() { - taskCompletionSource = new TaskCompletionSource>(); + taskCompletionSource = new TaskCompletionSource>(TaskCreationOptions.RunContinuationsAsynchronously); list = new List(); } @@ -40,8 +40,7 @@ void IDisposable.Dispose() { if (list != null) { - //Set the result on the ThreadPool so the Task continuation is not run on the CEF UI Thread - taskCompletionSource.TrySetResultAsync(list); + taskCompletionSource.TrySetResult(list); } list = null; diff --git a/CefSharp/Visitor/TaskStringVisitor.cs b/CefSharp/Visitor/TaskStringVisitor.cs index b82e56521..c8a0fc8fc 100644 --- a/CefSharp/Visitor/TaskStringVisitor.cs +++ b/CefSharp/Visitor/TaskStringVisitor.cs @@ -21,7 +21,7 @@ public class TaskStringVisitor : IStringVisitor /// public TaskStringVisitor() { - taskCompletionSource = new TaskCompletionSource(); + taskCompletionSource = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); } /// @@ -30,7 +30,7 @@ public TaskStringVisitor() /// string (result of async execution) void IStringVisitor.Visit(string str) { - taskCompletionSource.TrySetResultAsync(str); + taskCompletionSource.TrySetResult(str); } /// diff --git a/CefSharp/WebBrowserExtensions.cs b/CefSharp/WebBrowserExtensions.cs index 4ca10dd4e..a17bb9a32 100644 --- a/CefSharp/WebBrowserExtensions.cs +++ b/CefSharp/WebBrowserExtensions.cs @@ -424,7 +424,7 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch throw new ArgumentNullException(nameof(url)); } - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); EventHandler loadErrorHandler = null; EventHandler loadingStateChangeHandler = null; @@ -447,7 +447,7 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch //Ensure our continuation is executed on the ThreadPool //For the .Net Core implementation we could use //TaskCreationOptions.RunContinuationsAsynchronously - tcs.TrySetResultAsync(new LoadUrlAsyncResponse(args.ErrorCode, -1)); + tcs.TrySetResult(new LoadUrlAsyncResponse(args.ErrorCode, -1)); }; loadingStateChangeHandler = (sender, args) => @@ -478,7 +478,7 @@ public static Task LoadUrlAsync(IChromiumWebBrowserBase ch //Ensure our continuation is executed on the ThreadPool //For the .Net Core implementation we could use //TaskCreationOptions.RunContinuationsAsynchronously - tcs.TrySetResultAsync(new LoadUrlAsyncResponse(statusCode == -1 ? CefErrorCode.Failed : CefErrorCode.None, statusCode)); + tcs.TrySetResult(new LoadUrlAsyncResponse(statusCode == -1 ? CefErrorCode.Failed : CefErrorCode.None, statusCode)); } }; @@ -520,7 +520,7 @@ public static async Task WaitForNavigationAsync( { ThrowExceptionIfChromiumWebBrowserDisposed(chromiumWebBrowser); - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); EventHandler loadErrorHandler = null; EventHandler loadingStateChangeHandler = null; @@ -543,7 +543,7 @@ public static async Task WaitForNavigationAsync( //Ensure our continuation is executed on the ThreadPool //For the .Net Core implementation we could use //TaskCreationOptions.RunContinuationsAsynchronously - tcs.TrySetResultAsync(new WaitForNavigationAsyncResponse(args.ErrorCode, -1)); + tcs.TrySetResult(new WaitForNavigationAsyncResponse(args.ErrorCode, -1)); }; loadingStateChangeHandler = (sender, args) => @@ -574,7 +574,7 @@ public static async Task WaitForNavigationAsync( //Ensure our continuation is executed on the ThreadPool //For the .Net Core implementation we could use //TaskCreationOptions.RunContinuationsAsynchronously - tcs.TrySetResultAsync(new WaitForNavigationAsyncResponse(statusCode == -1 ? CefErrorCode.Failed : CefErrorCode.None, statusCode)); + tcs.TrySetResult(new WaitForNavigationAsyncResponse(statusCode == -1 ? CefErrorCode.Failed : CefErrorCode.None, statusCode)); } }; diff --git a/NuGet/CefSharp.Common.nuspec b/NuGet/CefSharp.Common.nuspec index de89adcef..80fe0e3c5 100644 --- a/NuGet/CefSharp.Common.nuspec +++ b/NuGet/CefSharp.Common.nuspec @@ -12,21 +12,21 @@ chrome browser Copyright © The CefSharp Authors - + - + - - - - - - + + + + + + - diff --git a/NuGet/CefSharp.Common.props b/NuGet/CefSharp.Common.props index 580605831..60d131fbb 100644 --- a/NuGet/CefSharp.Common.props +++ b/NuGet/CefSharp.Common.props @@ -5,9 +5,9 @@ - + - + diff --git a/NuGet/CefSharp.Common.targets b/NuGet/CefSharp.Common.targets index 7347aa724..203ba2142 100644 --- a/NuGet/CefSharp.Common.targets +++ b/NuGet/CefSharp.Common.targets @@ -397,7 +397,7 @@ - + @@ -408,7 +408,7 @@ - + @@ -427,7 +427,7 @@ $(CefRedist64TargetDir)x64\ - <_CefSharpCommonManagedDll Include="$(MSBuildThisFileDirectory)..\lib\net452\CefSharp.dll" /> + <_CefSharpCommonManagedDll Include="$(MSBuildThisFileDirectory)..\lib\net462\CefSharp.dll" /> <_CefSharpCommonBinaries32 Include="$(MSBuildThisFileDirectory)..\CefSharp\x86\*.*" /> <_CefSharpCommonBinaries64 Include="$(MSBuildThisFileDirectory)..\CefSharp\x64\*.*" /> diff --git a/NuGet/CefSharp.OffScreen.nuspec b/NuGet/CefSharp.OffScreen.nuspec index 4a0c1c3f2..6854ff636 100644 --- a/NuGet/CefSharp.OffScreen.nuspec +++ b/NuGet/CefSharp.OffScreen.nuspec @@ -12,10 +12,7 @@ osr chrome browser chromium-embedded cefsharp Copyright © The CefSharp Authors - - - - + @@ -27,11 +24,7 @@ - - - - - + diff --git a/NuGet/CefSharp.WinForms.nuspec b/NuGet/CefSharp.WinForms.nuspec index ee8d068ee..8606d1027 100644 --- a/NuGet/CefSharp.WinForms.nuspec +++ b/NuGet/CefSharp.WinForms.nuspec @@ -12,10 +12,7 @@ winforms chrome browser chromium-embedded cefsharp Copyright © The CefSharp Authors - - - - + @@ -27,11 +24,7 @@ - - - - - + diff --git a/NuGet/CefSharp.Wpf.nuspec b/NuGet/CefSharp.Wpf.nuspec index 22421d581..dabad3b01 100644 --- a/NuGet/CefSharp.Wpf.nuspec +++ b/NuGet/CefSharp.Wpf.nuspec @@ -12,10 +12,7 @@ wpf chrome browser chromium-embedded cefsharp Copyright © The CefSharp Authors - - - - + @@ -27,11 +24,7 @@ - - - - - + diff --git a/NuGet/Readme.txt b/NuGet/Readme.txt index 3d6c0effa..e72766a54 100644 --- a/NuGet/Readme.txt +++ b/NuGet/Readme.txt @@ -18,11 +18,11 @@ Deployment: What's New: See https://github.com/cefsharp/CefSharp/releases IMPORTANT NOTE - Visual C++ 2019 or greater is required - IMPORTANT NOTE - .NET Framework 4.5.2 or greater is required. + IMPORTANT NOTE - .NET Framework 4.6.2 or greater is required. IMPORTANT NOTE - Chromium support for Windows 7/8/8.1 ends with version 109, starting with version 110 a minimum of Windows 10 is required. Basic Troubleshooting: - - Minimum of .Net 4.5.2 + - Minimum of .Net 4.6.2 - Minimum of `Visual C++ 2019 Redist` is installed (either `x86` or `x64` depending on your application). - Please ensure your binaries directory contains these required dependencies: * libcef.dll (Chromium Embedded Framework Core library) diff --git a/README.md b/README.md index 019c95fa0..6dc208e10 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5615 | 2019* | 4.5.2** | Development | +| [master](https://github.com/cefsharp/CefSharp/) | 5615 | 2019* | 4.6.2** | Development | | [cefsharp/113](https://github.com/cefsharp/CefSharp/tree/cefsharp/113)| 5615 | 2019* | 4.5.2** | **Release** | | [cefsharp/112](https://github.com/cefsharp/CefSharp/tree/cefsharp/112)| 5615 | 2019* | 4.5.2** | Unsupported | | [cefsharp/111](https://github.com/cefsharp/CefSharp/tree/cefsharp/111)| 5563 | 2019* | 4.5.2** | Unsupported | From b79c7c8f79e73953f7c3d1cbb19800bf93e0573d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 9 Jun 2023 05:48:21 +1000 Subject: [PATCH 272/543] DevTools Client - Update to 114.0.5735.110 --- .../DevTools/DevToolsClient.Generated.cs | 355 +++++++++++++++++- .../DevToolsClient.Generated.netcore.cs | 309 ++++++++++++++- 2 files changed, 628 insertions(+), 36 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 05fbf8505..e7138c39c 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 113.0.5672.63 +// CHROMIUM VERSION 114.0.5735.110 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2581,11 +2581,6 @@ public enum AttributionReportingIssueType [EnumMember(Value = ("InvalidEligibleHeader"))] InvalidEligibleHeader, /// - /// TooManyConcurrentRequests - /// - [EnumMember(Value = ("TooManyConcurrentRequests"))] - TooManyConcurrentRequests, - /// /// SourceAndTriggerHeaders /// [EnumMember(Value = ("SourceAndTriggerHeaders"))] @@ -2624,7 +2619,12 @@ public enum AttributionReportingIssueType /// WebAndOsHeaders /// [EnumMember(Value = ("WebAndOsHeaders"))] - WebAndOsHeaders + WebAndOsHeaders, + /// + /// NoWebOrOsSupport + /// + [EnumMember(Value = ("NoWebOrOsSupport"))] + NoWebOrOsSupport } /// @@ -2890,6 +2890,16 @@ public int? ViolatingNodeId get; set; } + + /// + /// ViolatingNodeAttribute + /// + [DataMember(Name = ("violatingNodeAttribute"), IsRequired = (false))] + public string ViolatingNodeAttribute + { + get; + set; + } } /// @@ -2930,6 +2940,27 @@ public string Type } } + /// + /// This issue warns about sites in the redirect chain of a finished navigation + /// that may be flagged as trackers and have their state cleared if they don't + /// receive a user interaction. Note that in this context 'site' means eTLD+1. + /// For example, if the URL `https://example.test:80/bounce` was in the + /// redirect chain, the site reported would be `example.test`. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class BounceTrackingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// TrackingSites + /// + [DataMember(Name = ("trackingSites"), IsRequired = (true))] + public string[] TrackingSites + { + get; + set; + } + } + /// /// ClientHintIssueReason /// @@ -3019,6 +3050,11 @@ public enum FederatedAuthRequestIssueReason [EnumMember(Value = ("WellKnownListEmpty"))] WellKnownListEmpty, /// + /// WellKnownInvalidContentType + /// + [EnumMember(Value = ("WellKnownInvalidContentType"))] + WellKnownInvalidContentType, + /// /// ConfigNotInWellKnown /// [EnumMember(Value = ("ConfigNotInWellKnown"))] @@ -3044,6 +3080,11 @@ public enum FederatedAuthRequestIssueReason [EnumMember(Value = ("ConfigInvalidResponse"))] ConfigInvalidResponse, /// + /// ConfigInvalidContentType + /// + [EnumMember(Value = ("ConfigInvalidContentType"))] + ConfigInvalidContentType, + /// /// ClientMetadataHttpNotFound /// [EnumMember(Value = ("ClientMetadataHttpNotFound"))] @@ -3059,6 +3100,11 @@ public enum FederatedAuthRequestIssueReason [EnumMember(Value = ("ClientMetadataInvalidResponse"))] ClientMetadataInvalidResponse, /// + /// ClientMetadataInvalidContentType + /// + [EnumMember(Value = ("ClientMetadataInvalidContentType"))] + ClientMetadataInvalidContentType, + /// /// DisabledInSettings /// [EnumMember(Value = ("DisabledInSettings"))] @@ -3094,6 +3140,11 @@ public enum FederatedAuthRequestIssueReason [EnumMember(Value = ("AccountsListEmpty"))] AccountsListEmpty, /// + /// AccountsInvalidContentType + /// + [EnumMember(Value = ("AccountsInvalidContentType"))] + AccountsInvalidContentType, + /// /// IdTokenHttpNotFound /// [EnumMember(Value = ("IdTokenHttpNotFound"))] @@ -3114,6 +3165,11 @@ public enum FederatedAuthRequestIssueReason [EnumMember(Value = ("IdTokenInvalidRequest"))] IdTokenInvalidRequest, /// + /// IdTokenInvalidContentType + /// + [EnumMember(Value = ("IdTokenInvalidContentType"))] + IdTokenInvalidContentType, + /// /// ErrorIdToken /// [EnumMember(Value = ("ErrorIdToken"))] @@ -3260,7 +3316,12 @@ public enum InspectorIssueCode /// FederatedAuthRequestIssue /// [EnumMember(Value = ("FederatedAuthRequestIssue"))] - FederatedAuthRequestIssue + FederatedAuthRequestIssue, + /// + /// BounceTrackingIssue + /// + [EnumMember(Value = ("BounceTrackingIssue"))] + BounceTrackingIssue } /// @@ -3430,6 +3491,16 @@ public CefSharp.DevTools.Audits.FederatedAuthRequestIssueDetails FederatedAuthRe get; set; } + + /// + /// BounceTrackingIssueDetails + /// + [DataMember(Name = ("bounceTrackingIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDetails + { + get; + set; + } } /// @@ -4704,6 +4775,16 @@ public double EndColumn get; set; } + + /// + /// If the style sheet was loaded from a network resource, this indicates when the resource failed to load + /// + [DataMember(Name = ("loadingFailed"), IsRequired = (false))] + public bool? LoadingFailed + { + get; + set; + } } /// @@ -5818,6 +5899,87 @@ public System.Collections.Generic.IList } } + /// + /// CSS try rule representation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSTryRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] + public string StyleSheetId + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get + { + return (CefSharp.DevTools.CSS.StyleSheetOrigin)(StringToEnum(typeof(CefSharp.DevTools.CSS.StyleSheetOrigin), origin)); + } + + set + { + this.origin = (EnumToString(value)); + } + } + + /// + /// Parent stylesheet's origin. + /// + [DataMember(Name = ("origin"), IsRequired = (true))] + internal string origin + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [DataMember(Name = ("style"), IsRequired = (true))] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + + /// + /// CSS position-fallback rule representation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSPositionFallbackRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public CefSharp.DevTools.CSS.Value Name + { + get; + set; + } + + /// + /// List of keyframes. + /// + [DataMember(Name = ("tryRules"), IsRequired = (true))] + public System.Collections.Generic.IList TryRules + { + get; + set; + } + } + /// /// CSS keyframes rule representation. /// @@ -18370,6 +18532,16 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("private-aggregation"))] PrivateAggregation, /// + /// private-state-token-issuance + /// + [EnumMember(Value = ("private-state-token-issuance"))] + PrivateStateTokenIssuance, + /// + /// private-state-token-redemption + /// + [EnumMember(Value = ("private-state-token-redemption"))] + PrivateStateTokenRedemption, + /// /// publickey-credentials-get /// [EnumMember(Value = ("publickey-credentials-get"))] @@ -18420,11 +18592,6 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("sync-xhr"))] SyncXhr, /// - /// trust-token-redemption - /// - [EnumMember(Value = ("trust-token-redemption"))] - TrustTokenRedemption, - /// /// unload /// [EnumMember(Value = ("unload"))] @@ -28271,7 +28438,49 @@ public enum PrerenderFinalStatus /// SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation /// [EnumMember(Value = ("SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation"))] - SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation + SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation, + /// + /// MemoryPressureOnTrigger + /// + [EnumMember(Value = ("MemoryPressureOnTrigger"))] + MemoryPressureOnTrigger, + /// + /// MemoryPressureAfterTriggered + /// + [EnumMember(Value = ("MemoryPressureAfterTriggered"))] + MemoryPressureAfterTriggered + } + + /// + /// PreloadEnabledState + /// + public enum PreloadEnabledState + { + /// + /// Enabled + /// + [EnumMember(Value = ("Enabled"))] + Enabled, + /// + /// DisabledByDataSaver + /// + [EnumMember(Value = ("DisabledByDataSaver"))] + DisabledByDataSaver, + /// + /// DisabledByBatterySaver + /// + [EnumMember(Value = ("DisabledByBatterySaver"))] + DisabledByBatterySaver, + /// + /// DisabledByPreference + /// + [EnumMember(Value = ("DisabledByPreference"))] + DisabledByPreference, + /// + /// NotSupported + /// + [EnumMember(Value = ("NotSupported"))] + NotSupported } /// @@ -28420,6 +28629,39 @@ public string DisallowedApiMethod } } + /// + /// Fired when a preload enabled state is updated. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class PreloadEnabledStateUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// State + /// + public CefSharp.DevTools.Preload.PreloadEnabledState State + { + get + { + return (CefSharp.DevTools.Preload.PreloadEnabledState)(StringToEnum(typeof(CefSharp.DevTools.Preload.PreloadEnabledState), state)); + } + + set + { + this.state = (EnumToString(value)); + } + } + + /// + /// State + /// + [DataMember(Name = ("state"), IsRequired = (true))] + internal string state + { + get; + private set; + } + } + /// /// Fired when a prefetch attempt is updated. /// @@ -29420,7 +29662,12 @@ public enum PausedReason /// XHR /// [EnumMember(Value = ("XHR"))] - XHR + XHR, + /// + /// step + /// + [EnumMember(Value = ("step"))] + Step } /// @@ -29603,7 +29850,7 @@ public string Hash } /// - /// Embedder-specific auxiliary data. + /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [DataMember(Name = ("executionContextAuxData"), IsRequired = (false))] public object ExecutionContextAuxData @@ -29797,7 +30044,7 @@ public string Hash } /// - /// Embedder-specific auxiliary data. + /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [DataMember(Name = ("executionContextAuxData"), IsRequired = (false))] public object ExecutionContextAuxData @@ -31828,7 +32075,7 @@ public string UniqueId } /// - /// Embedder-specific auxiliary data. + /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [DataMember(Name = ("auxData"), IsRequired = (false))] public object AuxData @@ -34453,6 +34700,24 @@ public System.Collections.Generic.IList } } + [DataMember] + internal System.Collections.Generic.IList cssPositionFallbackRules + { + get; + set; + } + + /// + /// cssPositionFallbackRules + /// + public System.Collections.Generic.IList CssPositionFallbackRules + { + get + { + return cssPositionFallbackRules; + } + } + [DataMember] internal int? parentLayoutNodeId { @@ -46427,6 +46692,34 @@ public System.Collections.Generic.IList + /// RunBounceTrackingMitigationsResponse + /// + [DataContract] + public class RunBounceTrackingMitigationsResponse : DevToolsDomainResponseBase + { + [DataMember] + internal string[] deletedSites + { + get; + set; + } + + /// + /// deletedSites + /// + public string[] DeletedSites + { + get + { + return deletedSites; + } + } + } +} + namespace CefSharp.DevTools.Storage { using System.Linq; @@ -47020,6 +47313,16 @@ public System.Threading.Tasks.Task DeleteStorageBucketAs dict.Add("bucketName", bucketName); return _client.ExecuteDevToolsMethodAsync("Storage.deleteStorageBucket", dict); } + + /// + /// Deletes state for sites identified as potential bounce trackers, immediately. + /// + /// returns System.Threading.Tasks.Task<RunBounceTrackingMitigationsResponse> + public System.Threading.Tasks.Task RunBounceTrackingMitigationsAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Storage.runBounceTrackingMitigations", dict); + } } } @@ -49561,6 +49864,22 @@ public event System.EventHandler PrerenderAt } } + /// + /// Fired when a preload enabled state is updated. + /// + public event System.EventHandler PreloadEnabledStateUpdated + { + add + { + _client.AddEventHandler("Preload.preloadEnabledStateUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.preloadEnabledStateUpdated", value); + } + } + /// /// Fired when a prefetch attempt is updated. /// diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index b8905ace4..24e67b3cb 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 113.0.5672.63 +// CHROMIUM VERSION 114.0.5735.110 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2317,11 +2317,6 @@ public enum AttributionReportingIssueType [JsonPropertyName("InvalidEligibleHeader")] InvalidEligibleHeader, /// - /// TooManyConcurrentRequests - /// - [JsonPropertyName("TooManyConcurrentRequests")] - TooManyConcurrentRequests, - /// /// SourceAndTriggerHeaders /// [JsonPropertyName("SourceAndTriggerHeaders")] @@ -2360,7 +2355,12 @@ public enum AttributionReportingIssueType /// WebAndOsHeaders /// [JsonPropertyName("WebAndOsHeaders")] - WebAndOsHeaders + WebAndOsHeaders, + /// + /// NoWebOrOsSupport + /// + [JsonPropertyName("NoWebOrOsSupport")] + NoWebOrOsSupport } /// @@ -2594,6 +2594,16 @@ public int? ViolatingNodeId get; set; } + + /// + /// ViolatingNodeAttribute + /// + [JsonPropertyName("violatingNodeAttribute")] + public string ViolatingNodeAttribute + { + get; + set; + } } /// @@ -2635,6 +2645,27 @@ public string Type } } + /// + /// This issue warns about sites in the redirect chain of a finished navigation + /// that may be flagged as trackers and have their state cleared if they don't + /// receive a user interaction. Note that in this context 'site' means eTLD+1. + /// For example, if the URL `https://example.test:80/bounce` was in the + /// redirect chain, the site reported would be `example.test`. + /// + public partial class BounceTrackingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// TrackingSites + /// + [JsonPropertyName("trackingSites")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] TrackingSites + { + get; + set; + } + } + /// /// ClientHintIssueReason /// @@ -2707,6 +2738,11 @@ public enum FederatedAuthRequestIssueReason [JsonPropertyName("WellKnownListEmpty")] WellKnownListEmpty, /// + /// WellKnownInvalidContentType + /// + [JsonPropertyName("WellKnownInvalidContentType")] + WellKnownInvalidContentType, + /// /// ConfigNotInWellKnown /// [JsonPropertyName("ConfigNotInWellKnown")] @@ -2732,6 +2768,11 @@ public enum FederatedAuthRequestIssueReason [JsonPropertyName("ConfigInvalidResponse")] ConfigInvalidResponse, /// + /// ConfigInvalidContentType + /// + [JsonPropertyName("ConfigInvalidContentType")] + ConfigInvalidContentType, + /// /// ClientMetadataHttpNotFound /// [JsonPropertyName("ClientMetadataHttpNotFound")] @@ -2747,6 +2788,11 @@ public enum FederatedAuthRequestIssueReason [JsonPropertyName("ClientMetadataInvalidResponse")] ClientMetadataInvalidResponse, /// + /// ClientMetadataInvalidContentType + /// + [JsonPropertyName("ClientMetadataInvalidContentType")] + ClientMetadataInvalidContentType, + /// /// DisabledInSettings /// [JsonPropertyName("DisabledInSettings")] @@ -2782,6 +2828,11 @@ public enum FederatedAuthRequestIssueReason [JsonPropertyName("AccountsListEmpty")] AccountsListEmpty, /// + /// AccountsInvalidContentType + /// + [JsonPropertyName("AccountsInvalidContentType")] + AccountsInvalidContentType, + /// /// IdTokenHttpNotFound /// [JsonPropertyName("IdTokenHttpNotFound")] @@ -2802,6 +2853,11 @@ public enum FederatedAuthRequestIssueReason [JsonPropertyName("IdTokenInvalidRequest")] IdTokenInvalidRequest, /// + /// IdTokenInvalidContentType + /// + [JsonPropertyName("IdTokenInvalidContentType")] + IdTokenInvalidContentType, + /// /// ErrorIdToken /// [JsonPropertyName("ErrorIdToken")] @@ -2932,7 +2988,12 @@ public enum InspectorIssueCode /// FederatedAuthRequestIssue /// [JsonPropertyName("FederatedAuthRequestIssue")] - FederatedAuthRequestIssue + FederatedAuthRequestIssue, + /// + /// BounceTrackingIssue + /// + [JsonPropertyName("BounceTrackingIssue")] + BounceTrackingIssue } /// @@ -3101,6 +3162,16 @@ public CefSharp.DevTools.Audits.FederatedAuthRequestIssueDetails FederatedAuthRe get; set; } + + /// + /// BounceTrackingIssueDetails + /// + [JsonPropertyName("bounceTrackingIssueDetails")] + public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDetails + { + get; + set; + } } /// @@ -4286,6 +4357,16 @@ public double EndColumn get; set; } + + /// + /// If the style sheet was loaded from a network resource, this indicates when the resource failed to load + /// + [JsonPropertyName("loadingFailed")] + public bool? LoadingFailed + { + get; + set; + } } /// @@ -5347,6 +5428,72 @@ public System.Collections.Generic.IList } } + /// + /// CSS try rule representation. + /// + public partial class CSSTryRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [JsonPropertyName("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + [JsonPropertyName("origin")] + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [JsonPropertyName("style")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + + /// + /// CSS position-fallback rule representation. + /// + public partial class CSSPositionFallbackRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Name + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.Value Name + { + get; + set; + } + + /// + /// List of keyframes. + /// + [JsonPropertyName("tryRules")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList TryRules + { + get; + set; + } + } + /// /// CSS keyframes rule representation. /// @@ -17109,6 +17256,16 @@ public enum PermissionsPolicyFeature [JsonPropertyName("private-aggregation")] PrivateAggregation, /// + /// private-state-token-issuance + /// + [JsonPropertyName("private-state-token-issuance")] + PrivateStateTokenIssuance, + /// + /// private-state-token-redemption + /// + [JsonPropertyName("private-state-token-redemption")] + PrivateStateTokenRedemption, + /// /// publickey-credentials-get /// [JsonPropertyName("publickey-credentials-get")] @@ -17159,11 +17316,6 @@ public enum PermissionsPolicyFeature [JsonPropertyName("sync-xhr")] SyncXhr, /// - /// trust-token-redemption - /// - [JsonPropertyName("trust-token-redemption")] - TrustTokenRedemption, - /// /// unload /// [JsonPropertyName("unload")] @@ -26374,7 +26526,49 @@ public enum PrerenderFinalStatus /// SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation /// [JsonPropertyName("SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation")] - SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation + SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation, + /// + /// MemoryPressureOnTrigger + /// + [JsonPropertyName("MemoryPressureOnTrigger")] + MemoryPressureOnTrigger, + /// + /// MemoryPressureAfterTriggered + /// + [JsonPropertyName("MemoryPressureAfterTriggered")] + MemoryPressureAfterTriggered + } + + /// + /// PreloadEnabledState + /// + public enum PreloadEnabledState + { + /// + /// Enabled + /// + [JsonPropertyName("Enabled")] + Enabled, + /// + /// DisabledByDataSaver + /// + [JsonPropertyName("DisabledByDataSaver")] + DisabledByDataSaver, + /// + /// DisabledByBatterySaver + /// + [JsonPropertyName("DisabledByBatterySaver")] + DisabledByBatterySaver, + /// + /// DisabledByPreference + /// + [JsonPropertyName("DisabledByPreference")] + DisabledByPreference, + /// + /// NotSupported + /// + [JsonPropertyName("NotSupported")] + NotSupported } /// @@ -26516,6 +26710,23 @@ public string DisallowedApiMethod } } + /// + /// Fired when a preload enabled state is updated. + /// + public class PreloadEnabledStateUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// State + /// + [JsonInclude] + [JsonPropertyName("state")] + public CefSharp.DevTools.Preload.PreloadEnabledState State + { + get; + private set; + } + } + /// /// Fired when a prefetch attempt is updated. /// @@ -27455,7 +27666,12 @@ public enum PausedReason /// XHR /// [JsonPropertyName("XHR")] - XHR + XHR, + /// + /// step + /// + [JsonPropertyName("step")] + Step } /// @@ -27639,7 +27855,7 @@ public string Hash } /// - /// Embedder-specific auxiliary data. + /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [JsonInclude] [JsonPropertyName("executionContextAuxData")] @@ -27836,7 +28052,7 @@ public string Hash } /// - /// Embedder-specific auxiliary data. + /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [JsonInclude] [JsonPropertyName("executionContextAuxData")] @@ -29767,7 +29983,7 @@ public string UniqueId } /// - /// Embedder-specific auxiliary data. + /// Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string} /// [JsonPropertyName("auxData")] public object AuxData @@ -32103,6 +32319,17 @@ public System.Collections.Generic.IList private set; } + /// + /// cssPositionFallbackRules + /// + [JsonInclude] + [JsonPropertyName("cssPositionFallbackRules")] + public System.Collections.Generic.IList CssPositionFallbackRules + { + get; + private set; + } + /// /// parentLayoutNodeId /// @@ -42946,6 +43173,26 @@ public System.Collections.Generic.IList + /// RunBounceTrackingMitigationsResponse + /// + public class RunBounceTrackingMitigationsResponse : DevToolsDomainResponseBase + { + /// + /// deletedSites + /// + [JsonInclude] + [JsonPropertyName("deletedSites")] + public string[] DeletedSites + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Storage { using System.Linq; @@ -43539,6 +43786,16 @@ public System.Threading.Tasks.Task DeleteStorageBucketAs dict.Add("bucketName", bucketName); return _client.ExecuteDevToolsMethodAsync("Storage.deleteStorageBucket", dict); } + + /// + /// Deletes state for sites identified as potential bounce trackers, immediately. + /// + /// returns System.Threading.Tasks.Task<RunBounceTrackingMitigationsResponse> + public System.Threading.Tasks.Task RunBounceTrackingMitigationsAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Storage.runBounceTrackingMitigations", dict); + } } } @@ -45893,6 +46150,22 @@ public event System.EventHandler PrerenderAt } } + /// + /// Fired when a preload enabled state is updated. + /// + public event System.EventHandler PreloadEnabledStateUpdated + { + add + { + _client.AddEventHandler("Preload.preloadEnabledStateUpdated", value); + } + + remove + { + _client.RemoveEventHandler("Preload.preloadEnabledStateUpdated", value); + } + } + /// /// Fired when a prefetch attempt is updated. /// From 2a9b50640f14bf43588ae754b26b42c035559dc1 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 16 Jul 2023 06:32:58 +1000 Subject: [PATCH 273/543] Core - Change from cef type defs to C++11 defs https://bitbucket.org/chromiumembedded/cef/commits/5042d7140822cd13b80990f61ce2d3865864a3d8 --- .../Async/JavascriptAsyncMethodHandler.h | 6 ++-- .../Async/JavascriptAsyncMethodWrapper.h | 2 +- .../Async/JavascriptAsyncObjectWrapper.h | 4 +-- .../CefAppUnmanagedWrapper.cpp | 4 +-- .../CefAppUnmanagedWrapper.h | 2 +- .../CefBrowserWrapper.h | 6 ++-- .../JavascriptCallbackRegistry.cpp | 2 +- .../JavascriptCallbackRegistry.h | 2 +- .../JavascriptMethodWrapper.h | 4 +-- .../JavascriptObjectWrapper.h | 2 +- .../JavascriptPromiseResolverCatch.h | 4 +-- .../JavascriptPromiseResolverThen.h | 4 +-- .../JavascriptPropertyWrapper.h | 4 +-- .../JavascriptRootObjectWrapper.cpp | 6 ++-- .../JavascriptRootObjectWrapper.h | 10 +++--- .../RegisterBoundObjectRegistry.h | 10 +++--- CefSharp.Core.Runtime/BrowserSettings.h | 6 ++-- CefSharp.Core.Runtime/Cef.h | 2 +- CefSharp.Core.Runtime/CefSettingsBase.h | 6 ++-- .../Internals/CefBrowserHostWrapper.cpp | 12 +++---- .../Internals/CefResourceHandlerAdapter.cpp | 4 +-- .../Internals/CefResourceHandlerAdapter.h | 4 +-- .../CefResourceRequestHandlerAdapter.h | 2 +- CefSharp.Core.Runtime/Internals/CefSharpApp.h | 2 +- .../Internals/CefUrlRequestClientAdapter.cpp | 4 +-- .../Internals/CefUrlRequestClientAdapter.h | 8 ++--- .../Internals/CefWriteHandlerWrapper.h | 6 ++-- .../Internals/ClientAdapter.cpp | 12 +++---- .../Internals/ClientAdapter.h | 10 +++--- .../Internals/Serialization/Primitives.cpp | 34 +++++++++---------- .../Internals/Serialization/Primitives.h | 24 ++++++------- 31 files changed, 104 insertions(+), 104 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.h b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.h index c98a4baa2..aa315f69c 100644 --- a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.h +++ b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.h @@ -18,11 +18,11 @@ namespace CefSharp { private: gcroot _callbackRegistry; - gcroot^> _methodCallbackSave; - int64 _objectId; + gcroot^> _methodCallbackSave; + int64_t _objectId; public: - JavascriptAsyncMethodHandler(int64 objectId, JavascriptCallbackRegistry^ callbackRegistry, Func^ methodCallbackSave) + JavascriptAsyncMethodHandler(int64_t objectId, JavascriptCallbackRegistry^ callbackRegistry, Func^ methodCallbackSave) :_callbackRegistry(callbackRegistry), _objectId(objectId), _methodCallbackSave(methodCallbackSave) { diff --git a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodWrapper.h b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodWrapper.h index 023166758..876aa5202 100644 --- a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodWrapper.h @@ -19,7 +19,7 @@ namespace CefSharp MCefRefPtr _javascriptMethodHandler; public: - JavascriptAsyncMethodWrapper(int64 ownerId, JavascriptCallbackRegistry^ callbackRegistry, Func^ methodCallbackSave) + JavascriptAsyncMethodWrapper(int64_t ownerId, JavascriptCallbackRegistry^ callbackRegistry, Func^ methodCallbackSave) : _javascriptMethodHandler(new JavascriptAsyncMethodHandler(ownerId, callbackRegistry, methodCallbackSave)) { diff --git a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncObjectWrapper.h b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncObjectWrapper.h index 6aa5d00d1..f42ac60e4 100644 --- a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncObjectWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncObjectWrapper.h @@ -18,11 +18,11 @@ namespace CefSharp { private: initonly List^ _wrappedMethods; - Func^ _methodCallbackSave; + Func^ _methodCallbackSave; JavascriptCallbackRegistry^ _callbackRegistry; public: - JavascriptAsyncObjectWrapper(JavascriptCallbackRegistry^ callbackRegistry, Func^ saveMethod) + JavascriptAsyncObjectWrapper(JavascriptCallbackRegistry^ callbackRegistry, Func^ saveMethod) : _wrappedMethods(gcnew List()), _methodCallbackSave(saveMethod), _callbackRegistry(callbackRegistry) { diff --git a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp index dfbdb7578..14e4c66b4 100644 --- a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp +++ b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp @@ -292,7 +292,7 @@ namespace CefSharp frame->SendProcessMessage(CefProcessId::PID_BROWSER, uncaughtExceptionMessage); } - JavascriptRootObjectWrapper^ CefAppUnmanagedWrapper::GetJsRootObjectWrapper(int browserId, int64 frameId) + JavascriptRootObjectWrapper^ CefAppUnmanagedWrapper::GetJsRootObjectWrapper(int browserId, int64_t frameId) { auto browserWrapper = FindBrowserWrapper(browserId); @@ -401,7 +401,7 @@ namespace CefSharp //both messages have callbackId stored at index 0 auto frameId = frame->GetIdentifier(); - int64 callbackId = GetInt64(argList, 0); + int64_t callbackId = GetInt64(argList, 0); if (name == kEvaluateJavascriptRequest) { diff --git a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h index b202f31aa..6ef917ec8 100644 --- a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h @@ -72,7 +72,7 @@ namespace CefSharp } CefBrowserWrapper^ FindBrowserWrapper(int browserId); - JavascriptRootObjectWrapper^ GetJsRootObjectWrapper(int browserId, int64 frameId); + JavascriptRootObjectWrapper^ GetJsRootObjectWrapper(int browserId, int64_t frameId); virtual DECL CefRefPtr GetRenderProcessHandler() override; virtual DECL void OnBrowserCreated(CefRefPtr browser, CefRefPtr extraInfo) override; diff --git a/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h b/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h index 1e32ecea5..aa299d610 100644 --- a/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h @@ -31,7 +31,7 @@ namespace CefSharp internal: //Frame Identifier is used as Key - property ConcurrentDictionary^ JavascriptRootObjectWrappers; + property ConcurrentDictionary^ JavascriptRootObjectWrappers; public: CefBrowserWrapper(CefRefPtr cefBrowser) @@ -40,7 +40,7 @@ namespace CefSharp BrowserId = cefBrowser->GetIdentifier(); IsPopup = cefBrowser->IsPopup(); - JavascriptRootObjectWrappers = gcnew ConcurrentDictionary(); + JavascriptRootObjectWrappers = gcnew ConcurrentDictionary(); } !CefBrowserWrapper() @@ -54,7 +54,7 @@ namespace CefSharp if (JavascriptRootObjectWrappers != nullptr) { - for each (KeyValuePair entry in JavascriptRootObjectWrappers) + for each (KeyValuePair entry in JavascriptRootObjectWrappers) { delete entry.Value; } diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp b/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp index 0cea75ec0..f704532f7 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp +++ b/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp @@ -25,7 +25,7 @@ namespace CefSharp return result; } - JavascriptCallbackWrapper^ JavascriptCallbackRegistry::FindWrapper(int64 id) + JavascriptCallbackWrapper^ JavascriptCallbackRegistry::FindWrapper(int64_t id) { JavascriptCallbackWrapper^ callback; _callbacks->TryGetValue(id, callback); diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.h b/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.h index 46db9b23b..dd0af41f4 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.h +++ b/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.h @@ -24,7 +24,7 @@ namespace CefSharp ConcurrentDictionary^ _callbacks; internal: - JavascriptCallbackWrapper^ FindWrapper(int64 id); + JavascriptCallbackWrapper^ FindWrapper(int64_t id); public: JavascriptCallbackRegistry(int browserId) : _browserId(browserId) diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptMethodWrapper.h b/CefSharp.BrowserSubprocess.Core/JavascriptMethodWrapper.h index 3f402f5f5..ebf980b8c 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptMethodWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/JavascriptMethodWrapper.h @@ -20,12 +20,12 @@ namespace CefSharp { private: MCefRefPtr _javascriptMethodHandler; - int64 _ownerId; + int64_t _ownerId; String^ _javascriptMethodName; IBrowserProcess^ _browserProcess; public: - JavascriptMethodWrapper(int64 ownerId, IBrowserProcess^ browserProcess, JavascriptCallbackRegistry^ callbackRegistry) + JavascriptMethodWrapper(int64_t ownerId, IBrowserProcess^ browserProcess, JavascriptCallbackRegistry^ callbackRegistry) { _ownerId = ownerId; _browserProcess = browserProcess; diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.h b/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.h index 785df10d9..28eebd3b5 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.h @@ -26,7 +26,7 @@ namespace CefSharp List^ _wrappedProperties; IBrowserProcess^ _browserProcess; MCefRefPtr _jsPropertyHandler; - int64 _objectId; + int64_t _objectId; public: JavascriptObjectWrapper(IBrowserProcess^ browserProcess) diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h index c3dbddac2..68fccd20e 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h +++ b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverCatch.h @@ -14,11 +14,11 @@ namespace CefSharp { private class JavascriptPromiseResolverCatch : public CefV8Handler { - int64 _callbackId; + int64_t _callbackId; bool _isJsCallback; public: - JavascriptPromiseResolverCatch(int64 callbackId, bool isJsCallback) : _callbackId(callbackId), _isJsCallback(isJsCallback) + JavascriptPromiseResolverCatch(int64_t callbackId, bool isJsCallback) : _callbackId(callbackId), _isJsCallback(isJsCallback) { } diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h index e2fa33721..49bc98412 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h +++ b/CefSharp.BrowserSubprocess.Core/JavascriptPromiseResolverThen.h @@ -19,11 +19,11 @@ namespace CefSharp { private class JavascriptPromiseResolverThen : public CefV8Handler { - int64 _callbackId; + int64_t _callbackId; bool _isJsCallback; public: - JavascriptPromiseResolverThen(int64 callbackId, bool isJsCallback) : _callbackId(callbackId), _isJsCallback(isJsCallback) + JavascriptPromiseResolverThen(int64_t callbackId, bool isJsCallback) : _callbackId(callbackId), _isJsCallback(isJsCallback) { } diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h b/CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h index 7b3abdaa1..d0ac14ae1 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h @@ -17,13 +17,13 @@ namespace CefSharp private ref class JavascriptPropertyWrapper { private: - int64 _ownerId; + int64_t _ownerId; IBrowserProcess^ _browserProcess; //TODO: Strongly type this variable - currently trying to include JavascriptObjectWrapper.h creates a circular reference, so won't compile Object^ _javascriptObjectWrapper; public: - JavascriptPropertyWrapper(int64 ownerId, IBrowserProcess^ browserProcess) + JavascriptPropertyWrapper(int64_t ownerId, IBrowserProcess^ browserProcess) { _ownerId = ownerId; _browserProcess = browserProcess; diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.cpp b/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.cpp index af73c6e89..6e49c59df 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.cpp +++ b/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.cpp @@ -18,7 +18,7 @@ namespace CefSharp { if (objects->Count > 0) { - auto saveMethod = gcnew Func(this, &JavascriptRootObjectWrapper::SaveMethodCallback); + auto saveMethod = gcnew Func(this, &JavascriptRootObjectWrapper::SaveMethodCallback); for each (JavascriptObject ^ obj in Enumerable::OfType(objects)) { @@ -54,14 +54,14 @@ namespace CefSharp return _callbackRegistry; } - int64 JavascriptRootObjectWrapper::SaveMethodCallback(JavascriptAsyncMethodCallback^ callback) + int64_t JavascriptRootObjectWrapper::SaveMethodCallback(JavascriptAsyncMethodCallback^ callback) { auto callbackId = Interlocked::Increment(_lastCallback); _methodCallbacks->Add(callbackId, callback); return callbackId; } - bool JavascriptRootObjectWrapper::TryGetAndRemoveMethodCallback(int64 id, JavascriptAsyncMethodCallback^% callback) + bool JavascriptRootObjectWrapper::TryGetAndRemoveMethodCallback(int64_t id, JavascriptAsyncMethodCallback^% callback) { bool result = false; if (result = _methodCallbacks->TryGetValue(id, callback)) diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.h b/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.h index ca2879b24..45b94b8ed 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/JavascriptRootObjectWrapper.h @@ -33,13 +33,13 @@ namespace CefSharp private: //Only access through Interlocked::Increment - used to generate unique callback Id's //Is static so ids are unique to this process https://github.com/cefsharp/CefSharp/issues/2792 - static int64 _lastCallback; + static int64_t _lastCallback; #ifndef NETCOREAPP initonly List^ _wrappedObjects; #endif initonly List^ _wrappedAsyncObjects; - initonly Dictionary^ _methodCallbacks; + initonly Dictionary^ _methodCallbacks; #ifndef NETCOREAPP IBrowserProcess^ _browserProcess; #endif @@ -47,7 +47,7 @@ namespace CefSharp // call directly into. JavascriptCallbackRegistry^ _callbackRegistry; - int64 SaveMethodCallback(JavascriptAsyncMethodCallback^ callback); + int64_t SaveMethodCallback(JavascriptAsyncMethodCallback^ callback); internal: property JavascriptCallbackRegistry^ CallbackRegistry @@ -68,7 +68,7 @@ namespace CefSharp #endif _wrappedAsyncObjects = gcnew List(); _callbackRegistry = gcnew JavascriptCallbackRegistry(browserId); - _methodCallbacks = gcnew Dictionary(); + _methodCallbacks = gcnew Dictionary(); } ~JavascriptRootObjectWrapper() @@ -101,7 +101,7 @@ namespace CefSharp _methodCallbacks->Clear(); } - bool TryGetAndRemoveMethodCallback(int64 id, JavascriptAsyncMethodCallback^% callback); + bool TryGetAndRemoveMethodCallback(int64_t id, JavascriptAsyncMethodCallback^% callback); void Bind(ICollection^ objects, const CefRefPtr& v8Value); }; diff --git a/CefSharp.BrowserSubprocess.Core/RegisterBoundObjectRegistry.h b/CefSharp.BrowserSubprocess.Core/RegisterBoundObjectRegistry.h index c9602da47..7dd5aaae4 100644 --- a/CefSharp.BrowserSubprocess.Core/RegisterBoundObjectRegistry.h +++ b/CefSharp.BrowserSubprocess.Core/RegisterBoundObjectRegistry.h @@ -24,14 +24,14 @@ namespace CefSharp private: //Only access through Interlocked::Increment - used to generate unique callback Id's //Is static so ids are unique to this process https://github.com/cefsharp/CefSharp/issues/2792 - static int64 _lastCallback; + static int64_t _lastCallback; - initonly Dictionary^ _methodCallbacks; + initonly Dictionary^ _methodCallbacks; public: RegisterBoundObjectRegistry() { - _methodCallbacks = gcnew Dictionary(); + _methodCallbacks = gcnew Dictionary(); } ~RegisterBoundObjectRegistry() @@ -43,14 +43,14 @@ namespace CefSharp _methodCallbacks->Clear(); } - int64 SaveMethodCallback(JavascriptAsyncMethodCallback^ callback) + int64_t SaveMethodCallback(JavascriptAsyncMethodCallback^ callback) { auto callbackId = Interlocked::Increment(_lastCallback); _methodCallbacks->Add(callbackId, callback); return callbackId; } - bool TryGetAndRemoveMethodCallback(int64 id, JavascriptAsyncMethodCallback^% callback) + bool TryGetAndRemoveMethodCallback(int64_t id, JavascriptAsyncMethodCallback^% callback) { bool result = false; if (result = _methodCallbacks->TryGetValue(id, callback)) diff --git a/CefSharp.Core.Runtime/BrowserSettings.h b/CefSharp.Core.Runtime/BrowserSettings.h index 132c714ec..279f4421b 100644 --- a/CefSharp.Core.Runtime/BrowserSettings.h +++ b/CefSharp.Core.Runtime/BrowserSettings.h @@ -308,10 +308,10 @@ namespace CefSharp /// CefSettings.BackgroundColor value will be used. If the alpha component is fully transparent /// for a windowless (WPF/OffScreen) browser then transparent painting will be enabled. /// - virtual property uint32 BackgroundColor + virtual property uint32_t BackgroundColor { - uint32 get() { return _browserSettings->background_color; } - void set(uint32 value) { _browserSettings->background_color = value; } + uint32_t get() { return _browserSettings->background_color; } + void set(uint32_t value) { _browserSettings->background_color = value; } } /// diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index 1040f1ced..37c86e199 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -674,7 +674,7 @@ namespace CefSharp /// Green /// Blue /// Returns the color. - static uint32 ColorSetARGB(uint32 a, uint32 r, uint32 g, uint32 b) + static uint32_t ColorSetARGB(uint32_t a, uint32_t r, uint32_t g, uint32_t b) { return CefColorSetARGB(a, r, g, b); } diff --git a/CefSharp.Core.Runtime/CefSettingsBase.h b/CefSharp.Core.Runtime/CefSettingsBase.h index b083bdf00..2ab73a54f 100644 --- a/CefSharp.Core.Runtime/CefSettingsBase.h +++ b/CefSharp.Core.Runtime/CefSettingsBase.h @@ -352,10 +352,10 @@ namespace CefSharp /// default value of opaque white be used. If the alpha component is fully transparent for a windowless (WPF/OffScreen) browser /// then transparent painting will be enabled. /// - property uint32 BackgroundColor + property uint32_t BackgroundColor { - uint32 get() { return _cefSettings->background_color; } - void set(uint32 value) { _cefSettings->background_color = value; } + uint32_t get() { return _cefSettings->background_color; } + void set(uint32_t value) { _cefSettings->background_color = value; } } /// diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp index c85427d4f..7068fe988 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp @@ -347,7 +347,7 @@ void CefBrowserHostWrapper::SendKeyEvent(KeyEvent keyEvent) CefKeyEvent nativeKeyEvent; nativeKeyEvent.focus_on_editable_field = keyEvent.FocusOnEditableField == 1; nativeKeyEvent.is_system_key = keyEvent.IsSystemKey == 1; - nativeKeyEvent.modifiers = (uint32)keyEvent.Modifiers; + nativeKeyEvent.modifiers = (uint32_t)keyEvent.Modifiers; nativeKeyEvent.type = (cef_key_event_type_t)keyEvent.Type; nativeKeyEvent.native_key_code = keyEvent.NativeKeyCode; nativeKeyEvent.windows_key_code = keyEvent.WindowsKeyCode; @@ -433,7 +433,7 @@ void CefBrowserHostWrapper::SendMouseWheelEvent(MouseEvent mouseEvent, int delta CefMouseEvent m; m.x = mouseEvent.X; m.y = mouseEvent.Y; - m.modifiers = (uint32)mouseEvent.Modifiers; + m.modifiers = (uint32_t)mouseEvent.Modifiers; _browserHost->SendMouseWheelEvent(m, deltaX, deltaY); } @@ -447,7 +447,7 @@ void CefBrowserHostWrapper::SendTouchEvent(TouchEvent evt) { CefTouchEvent e; e.id = evt.Id; - e.modifiers = (uint32)evt.Modifiers; + e.modifiers = (uint32_t)evt.Modifiers; e.pointer_type = (cef_pointer_type_t)evt.PointerType; e.pressure = evt.Pressure; e.radius_x = evt.RadiusX; @@ -559,7 +559,7 @@ void CefBrowserHostWrapper::SendMouseClickEvent(MouseEvent mouseEvent, MouseButt CefMouseEvent m; m.x = mouseEvent.X; m.y = mouseEvent.Y; - m.modifiers = (uint32)mouseEvent.Modifiers; + m.modifiers = (uint32_t)mouseEvent.Modifiers; _browserHost->SendMouseClickEvent(m, (CefBrowserHost::MouseButtonType) mouseButtonType, mouseUp, clickCount); } @@ -571,7 +571,7 @@ void CefBrowserHostWrapper::SendMouseMoveEvent(MouseEvent mouseEvent, bool mouse CefMouseEvent m; m.x = mouseEvent.X; m.y = mouseEvent.Y; - m.modifiers = (uint32)mouseEvent.Modifiers; + m.modifiers = (uint32_t)mouseEvent.Modifiers; _browserHost->SendMouseMoveEvent(m, mouseLeave); } @@ -695,7 +695,7 @@ CefMouseEvent CefBrowserHostWrapper::GetCefMouseEvent(MouseEvent mouseEvent) CefMouseEvent cefMouseEvent; cefMouseEvent.x = mouseEvent.X; cefMouseEvent.y = mouseEvent.Y; - cefMouseEvent.modifiers = (uint32)mouseEvent.Modifiers; + cefMouseEvent.modifiers = (uint32_t)mouseEvent.Modifiers; return cefMouseEvent; } diff --git a/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.cpp b/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.cpp index 421e445e7..d814b1f72 100644 --- a/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.cpp @@ -29,7 +29,7 @@ namespace CefSharp return _handler->Open(_request, handleRequest, callbackWrapper); } - void CefResourceHandlerAdapter::GetResponseHeaders(CefRefPtr response, int64& response_length, CefString& redirectUrl) + void CefResourceHandlerAdapter::GetResponseHeaders(CefRefPtr response, int64_t& response_length, CefString& redirectUrl) { String^ newRedirectUrl; @@ -40,7 +40,7 @@ namespace CefSharp redirectUrl = StringUtils::ToNative(newRedirectUrl); } - bool CefResourceHandlerAdapter::Skip(int64 bytesToSkip, int64& bytesSkipped, CefRefPtr callback) + bool CefResourceHandlerAdapter::Skip(int64_t bytesToSkip, int64_t& bytesSkipped, CefRefPtr callback) { auto callbackWrapper = gcnew CefResourceSkipCallbackWrapper(callback); diff --git a/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.h b/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.h index d03d120bc..6789c69b1 100644 --- a/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.h +++ b/CefSharp.Core.Runtime/Internals/CefResourceHandlerAdapter.h @@ -35,8 +35,8 @@ namespace CefSharp } virtual bool Open(CefRefPtr request, bool& handle_request, CefRefPtr callback) override; - virtual void GetResponseHeaders(CefRefPtr response, int64& response_length, CefString& redirectUrl) override; - virtual bool Skip(int64 bytesToSkip, int64& bytesSkipped, CefRefPtr callback) override; + virtual void GetResponseHeaders(CefRefPtr response, int64_t& response_length, CefString& redirectUrl) override; + virtual bool Skip(int64_t bytesToSkip, int64_t& bytesSkipped, CefRefPtr callback) override; virtual bool Read(void* dataOut, int bytesToRead, int& bytesRead, CefRefPtr callback) override; virtual void Cancel() override; diff --git a/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h b/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h index 0cb241977..fe9f47655 100644 --- a/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h +++ b/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h @@ -287,7 +287,7 @@ namespace CefSharp return new CefResponseFilterAdapter(responseFilter); } - void OnResourceLoadComplete(CefRefPtr browser, CefRefPtr frame, CefRefPtr request, CefRefPtr response, URLRequestStatus status, int64 receivedContentLength) override + void OnResourceLoadComplete(CefRefPtr browser, CefRefPtr frame, CefRefPtr request, CefRefPtr response, URLRequestStatus status, int64_t receivedContentLength) override { Request requestWrapper(request); CefResponseWrapper responseWrapper(response); diff --git a/CefSharp.Core.Runtime/Internals/CefSharpApp.h b/CefSharp.Core.Runtime/Internals/CefSharpApp.h index 8a40b3a02..794f52325 100644 --- a/CefSharp.Core.Runtime/Internals/CefSharpApp.h +++ b/CefSharp.Core.Runtime/Internals/CefSharpApp.h @@ -115,7 +115,7 @@ namespace CefSharp } } - virtual void OnScheduleMessagePumpWork(int64 delay_ms) override + virtual void OnScheduleMessagePumpWork(int64_t delay_ms) override { //We rely on previous checks to make sure _app and _app->BrowserProcessHandler aren't null _app->BrowserProcessHandler->OnScheduleMessagePumpWork(delay_ms); diff --git a/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.cpp index d37a24538..a638e6223 100644 --- a/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.cpp @@ -16,12 +16,12 @@ void CefUrlRequestClientAdapter::OnRequestComplete(CefRefPtr requ _client->OnRequestComplete(gcnew UrlRequest(request)); } -void CefUrlRequestClientAdapter::OnUploadProgress(CefRefPtr request, int64 current, int64 total) +void CefUrlRequestClientAdapter::OnUploadProgress(CefRefPtr request, int64_t current, int64_t total) { _client->OnUploadProgress(gcnew UrlRequest(request), current, total); } -void CefUrlRequestClientAdapter::OnDownloadProgress(CefRefPtr request, int64 current, int64 total) +void CefUrlRequestClientAdapter::OnDownloadProgress(CefRefPtr request, int64_t current, int64_t total) { _client->OnDownloadProgress(gcnew UrlRequest(request), current, total); } diff --git a/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.h b/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.h index 64a8c8833..200dc8a44 100644 --- a/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.h +++ b/CefSharp.Core.Runtime/Internals/CefUrlRequestClientAdapter.h @@ -46,8 +46,8 @@ namespace CefSharp /// /*--cef()--*/ virtual void OnUploadProgress(CefRefPtr request, - int64 current, - int64 total) override; + int64_t current, + int64_t total) override; ///ref // Notifies the client of download progress. |current| denotes the number of @@ -56,8 +56,8 @@ namespace CefSharp /// /*--cef()--*/ virtual void OnDownloadProgress(CefRefPtr request, - int64 current, - int64 total) override; + int64_t current, + int64_t total) override; /// // Called when some part of the response is read. |data| contains the current diff --git a/CefSharp.Core.Runtime/Internals/CefWriteHandlerWrapper.h b/CefSharp.Core.Runtime/Internals/CefWriteHandlerWrapper.h index 9aee3cbd0..3c55085bc 100644 --- a/CefSharp.Core.Runtime/Internals/CefWriteHandlerWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefWriteHandlerWrapper.h @@ -49,7 +49,7 @@ namespace CefSharp } } - virtual int Seek(int64 offset, int whence) override + virtual int Seek(int64_t offset, int whence) override { System::IO::SeekOrigin seekOrigin; @@ -93,9 +93,9 @@ namespace CefSharp return 0; } - virtual int64 Tell() override + virtual int64_t Tell() override { - return static_cast(_stream->Position); + return static_cast(_stream->Position); } virtual int Flush() override diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index a5b994856..724becec9 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -1106,7 +1106,7 @@ namespace CefSharp } } - void ClientAdapter::OnAudioStreamPacket(CefRefPtr browser, const float** data, int frames, int64 pts) + void ClientAdapter::OnAudioStreamPacket(CefRefPtr browser, const float** data, int frames, int64_t pts) { auto handler = _browserControl->AudioHandler; @@ -1219,8 +1219,8 @@ namespace CefSharp } } - bool ClientAdapter::OnShowPermissionPrompt(CefRefPtr browser, uint64 prompt_id, - const CefString& requesting_origin, uint32 requested_permissions, + bool ClientAdapter::OnShowPermissionPrompt(CefRefPtr browser, uint64_t prompt_id, + const CefString& requesting_origin, uint32_t requested_permissions, CefRefPtr callback) { auto handler = _browserControl->PermissionHandler; @@ -1235,7 +1235,7 @@ namespace CefSharp return false; } - void ClientAdapter::OnDismissPermissionPrompt(CefRefPtr browser, uint64 prompt_id, + void ClientAdapter::OnDismissPermissionPrompt(CefRefPtr browser, uint64_t prompt_id, cef_permission_request_result_t result) { auto handler = _browserControl->PermissionHandler; @@ -1248,7 +1248,7 @@ namespace CefSharp } bool ClientAdapter::OnRequestMediaAccessPermission(CefRefPtr browser, CefRefPtr frame, - const CefString& requesting_origin, uint32 requested_permissions, + const CefString& requesting_origin, uint32_t requested_permissions, CefRefPtr callback) { auto handler = _browserControl->PermissionHandler; @@ -1518,7 +1518,7 @@ namespace CefSharp auto callbackId = GetInt64(argList, 1); auto methodName = StringUtils::ToClr(argList->GetString(2)); auto arguments = argList->GetList(3); - auto methodInvocation = gcnew MethodInvocation(browser->GetIdentifier(), frameId, objectId, methodName, (callbackId > 0 ? Nullable(callbackId) : Nullable())); + auto methodInvocation = gcnew MethodInvocation(browser->GetIdentifier(), frameId, objectId, methodName, (callbackId > 0 ? Nullable(callbackId) : Nullable())); for (auto i = 0; i < static_cast(arguments->GetSize()); i++) { methodInvocation->Parameters->Add(DeserializeObject(arguments, i, callbackFactory)); diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.h b/CefSharp.Core.Runtime/Internals/ClientAdapter.h index 142c4a771..c82e12138 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.h +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.h @@ -201,7 +201,7 @@ namespace CefSharp //CefAudioHandler virtual DECL bool GetAudioParameters(CefRefPtr browser, CefAudioParameters & params) override; virtual DECL void OnAudioStreamStarted(CefRefPtr browser, const CefAudioParameters& params, int channels) override; - virtual DECL void OnAudioStreamPacket(CefRefPtr browser, const float** data, int frames, int64 pts) override; + virtual DECL void OnAudioStreamPacket(CefRefPtr browser, const float** data, int frames, int64_t pts) override; virtual DECL void OnAudioStreamStopped(CefRefPtr browser) override; virtual DECL void OnAudioStreamError(CefRefPtr browser, const CefString& message) override; @@ -214,21 +214,21 @@ namespace CefSharp //CefPermissionHandler virtual DECL bool OnShowPermissionPrompt( CefRefPtr browser, - uint64 prompt_id, + uint64_t prompt_id, const CefString& requesting_origin, - uint32 requested_permissions, + uint32_t requested_permissions, CefRefPtr callback) override; virtual DECL void OnDismissPermissionPrompt( CefRefPtr browser, - uint64 prompt_id, + uint64_t prompt_id, cef_permission_request_result_t result) override; virtual DECL bool OnRequestMediaAccessPermission( CefRefPtr browser, CefRefPtr frame, const CefString& requesting_origin, - uint32 requested_permissions, + uint32_t requested_permissions, CefRefPtr callback) override; IMPLEMENT_REFCOUNTINGM(ClientAdapter); diff --git a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp index 420aec9b3..40adb0e07 100644 --- a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp +++ b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp @@ -37,23 +37,23 @@ namespace CefSharp } template - void SetInt64(const CefRefPtr& list, TIndex index, const int64 &value) + void SetInt64(const CefRefPtr& list, TIndex index, const int64_t&value) { - unsigned char mem[1 + sizeof(int64)]; + unsigned char mem[1 + sizeof(int64_t)]; mem[0] = static_cast(PrimitiveType::INT64); - memcpy(reinterpret_cast(mem + 1), &value, sizeof(int64)); + memcpy(reinterpret_cast(mem + 1), &value, sizeof(int64_t)); auto binaryValue = CefBinaryValue::Create(mem, sizeof(mem)); list->SetBinary(index, binaryValue); } template - int64 GetInt64(const CefRefPtr& list, TIndex index) + int64_t GetInt64(const CefRefPtr& list, TIndex index) { - int64 result; + int64_t result; auto binaryValue = list->GetBinary(index); - binaryValue->GetData(&result, sizeof(int64), 1); + binaryValue->GetData(&result, sizeof(int64_t), 1); return result; } @@ -65,11 +65,11 @@ namespace CefSharp } template - void SetCefTime(const CefRefPtr& list, TIndex index, const int64 &value) + void SetCefTime(const CefRefPtr& list, TIndex index, const int64_t&value) { - unsigned char mem[1 + sizeof(int64)]; + unsigned char mem[1 + sizeof(int64_t)]; mem[0] = static_cast(PrimitiveType::CEFTIME); - memcpy(reinterpret_cast(mem + 1), &value, sizeof(int64)); + memcpy(reinterpret_cast(mem + 1), &value, sizeof(int64_t)); auto binaryValue = CefBinaryValue::Create(mem, sizeof(mem)); list->SetBinary(index, binaryValue); @@ -81,7 +81,7 @@ namespace CefSharp CefBaseTime baseTime; auto binaryValue = list->GetBinary(index); - binaryValue->GetData(&baseTime.val, sizeof(int64), 1); + binaryValue->GetData(&baseTime.val, sizeof(int64_t), 1); return baseTime; } @@ -98,11 +98,11 @@ namespace CefSharp auto browserId = value->BrowserId; auto frameId = value->FrameId; - unsigned char mem[1 + sizeof(int) + sizeof(int64) + sizeof(int64)]; + unsigned char mem[1 + sizeof(int) + sizeof(int64_t) + sizeof(int64_t)]; mem[0] = static_cast(PrimitiveType::JSCALLBACK); memcpy(reinterpret_cast(mem + 1), &browserId, sizeof(int)); - memcpy(reinterpret_cast(mem + 1 + sizeof(int)), &id, sizeof(int64)); - memcpy(reinterpret_cast(mem + 1 + sizeof(int) + sizeof(int64)), &frameId, sizeof(int64)); + memcpy(reinterpret_cast(mem + 1 + sizeof(int)), &id, sizeof(int64_t)); + memcpy(reinterpret_cast(mem + 1 + sizeof(int) + sizeof(int64_t)), &frameId, sizeof(int64_t)); auto binaryValue = CefBinaryValue::Create(mem, sizeof(mem)); list->SetBinary(index, binaryValue); @@ -112,14 +112,14 @@ namespace CefSharp JavascriptCallback^ GetJsCallback(const CefRefPtr& list, TIndex index) { auto result = gcnew JavascriptCallback(); - int64 id; + int64_t id; int browserId; - int64 frameId; + int64_t frameId; auto binaryValue = list->GetBinary(index); binaryValue->GetData(&browserId, sizeof(int), 1); - binaryValue->GetData(&id, sizeof(int64), 1 + sizeof(int)); - binaryValue->GetData(&frameId, sizeof(int64), 1 + sizeof(int) + sizeof(int64)); + binaryValue->GetData(&id, sizeof(int64_t), 1 + sizeof(int)); + binaryValue->GetData(&frameId, sizeof(int64_t), 1 + sizeof(int) + sizeof(int64_t)); result->Id = id; result->BrowserId = browserId; diff --git a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h index 7853a47c2..b16016597 100644 --- a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h +++ b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.h @@ -13,14 +13,14 @@ namespace CefSharp //Functions to serialize/deserialize specific types into CefBinaryValue template - void SetInt64(const CefRefPtr& list, TIndex index, const int64 &value); + void SetInt64(const CefRefPtr& list, TIndex index, const int64_t&value); template - int64 GetInt64(const CefRefPtr& list, TIndex index); + int64_t GetInt64(const CefRefPtr& list, TIndex index); template bool IsInt64(const CefRefPtr& list, TIndex index); template - void SetCefTime(const CefRefPtr& list, TIndex index, const int64 &value); + void SetCefTime(const CefRefPtr& list, TIndex index, const int64_t&value); template CefBaseTime GetCefTime(const CefRefPtr& list, TIndex index); template @@ -33,19 +33,19 @@ namespace CefSharp template bool IsJsCallback(const CefRefPtr& list, TIndex index); - template void SetInt64(const CefRefPtr& list, int index, const int64 &value); - template void SetInt64(const CefRefPtr& list, size_t index, const int64 &value); - template void SetInt64(const CefRefPtr& list, CefString index, const int64 &value); - template int64 GetInt64(const CefRefPtr& list, int index); - template int64 GetInt64(const CefRefPtr& list, size_t index); - template int64 GetInt64(const CefRefPtr& list, CefString index); + template void SetInt64(const CefRefPtr& list, int index, const int64_t&value); + template void SetInt64(const CefRefPtr& list, size_t index, const int64_t&value); + template void SetInt64(const CefRefPtr& list, CefString index, const int64_t&value); + template int64_t GetInt64(const CefRefPtr& list, int index); + template int64_t GetInt64(const CefRefPtr& list, size_t index); + template int64_t GetInt64(const CefRefPtr& list, CefString index); template bool IsInt64(const CefRefPtr& list, int index); template bool IsInt64(const CefRefPtr& list, size_t index); template bool IsInt64(const CefRefPtr& list, CefString index); - template void SetCefTime(const CefRefPtr& list, int index, const int64 &value); - template void SetCefTime(const CefRefPtr& list, size_t index, const int64 &value); - template void SetCefTime(const CefRefPtr& list, CefString index, const int64 &value); + template void SetCefTime(const CefRefPtr& list, int index, const int64_t&value); + template void SetCefTime(const CefRefPtr& list, size_t index, const int64_t&value); + template void SetCefTime(const CefRefPtr& list, CefString index, const int64_t&value); template CefBaseTime GetCefTime(const CefRefPtr& list, int index); template CefBaseTime GetCefTime(const CefRefPtr& list, size_t index); template CefBaseTime GetCefTime(const CefRefPtr& list, CefString index); From c0d840a6411bbf802946219b78039de8da6acf01 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 16 Jul 2023 09:34:44 +1000 Subject: [PATCH 274/543] Remove CefSettings.UserDataPath Resolves #4518 --- CefSharp.Core.Runtime/CefSettingsBase.h | 11 ----------- CefSharp.Core/CefSettingsBase.cs | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/CefSharp.Core.Runtime/CefSettingsBase.h b/CefSharp.Core.Runtime/CefSettingsBase.h index 2ab73a54f..55db47922 100644 --- a/CefSharp.Core.Runtime/CefSettingsBase.h +++ b/CefSharp.Core.Runtime/CefSettingsBase.h @@ -171,17 +171,6 @@ namespace CefSharp void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->root_cache_path, value); } } - /// - /// The location where user data such as the Widevine CDM module and spell checking dictionary files will be stored on disk. - /// If this value is empty then "Local Settings\Application Data\CEF\User Data" directory under the user profile directory - /// will be used. If this value is non-empty then it must be an absolute path. - /// - property String^ UserDataPath - { - String^ get() { return StringUtils::ToClr(_cefSettings->user_data_path); } - void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->user_data_path, value); } - } - /// /// The locale string that will be passed to WebKit. If empty the default locale of "en-US" will be used. Also configurable using /// the "lang" command-line switch. diff --git a/CefSharp.Core/CefSettingsBase.cs b/CefSharp.Core/CefSettingsBase.cs index 8080a2286..97d129cfd 100644 --- a/CefSharp.Core/CefSettingsBase.cs +++ b/CefSharp.Core/CefSettingsBase.cs @@ -156,17 +156,6 @@ public string RootCachePath set { settings.RootCachePath = value; } } - /// - /// The location where user data such as the Widevine CDM module and spell checking dictionary files will be stored on disk. - /// If this value is empty then "Local Settings\Application Data\CEF\User Data" directory under the user profile directory - /// will be used. If this value is non-empty then it must be an absolute path. - /// - public string UserDataPath - { - get { return settings.UserDataPath; } - set { settings.UserDataPath = value; } - } - /// /// Set to true in order to completely ignore SSL certificate errors. This is NOT recommended. /// From d318c9b91a93246e3f2fcddb7ee5682935a177a4 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 16 Jul 2023 11:29:18 +1000 Subject: [PATCH 275/543] Upgrade to 115.3.7+ga8d552a+chromium-115.0.5790.40 / Chromium 115.0.5790.40 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 6 +++--- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 6 +++--- CefSharp.Core.Runtime/Internals/StringUtils.h | 12 ++++++++---- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 31 files changed, 56 insertions(+), 52 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 336d3cdb2..549ec5f55 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index c04101787..f6e9f29e4 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@ - + - + @@ -261,4 +261,4 @@ - + \ No newline at end of file diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 5a32ae91e..7e7a61113 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 114,2,100 - PRODUCTVERSION 114,2,100 + FILEVERSION 115,3,70 + PRODUCTVERSION 115,3,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "114.2.100" + VALUE "FileVersion", "115.3.70" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "114.2.100" + VALUE "ProductVersion", "115.3.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index c0e7a040d..5065e105e 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index bc500a55d..c180478b5 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index cbdd16380..772631b04 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index b8afbac7e..4c16c2cba 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 8e5c031f5..33c0a6214 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@ - + - + @@ -368,4 +368,4 @@ - + \ No newline at end of file diff --git a/CefSharp.Core.Runtime/Internals/StringUtils.h b/CefSharp.Core.Runtime/Internals/StringUtils.h index 18342bf8e..f34375893 100644 --- a/CefSharp.Core.Runtime/Internals/StringUtils.h +++ b/CefSharp.Core.Runtime/Internals/StringUtils.h @@ -28,7 +28,9 @@ namespace CefSharp [DebuggerStepThrough] static String^ StringUtils::ToClr(const cef_string_t& cefStr) { - return gcnew String(cefStr.str); + auto str = reinterpret_cast(cefStr.str); + + return gcnew String(str); } /// @@ -39,7 +41,9 @@ namespace CefSharp [DebuggerStepThrough] static String^ StringUtils::ToClr(const CefString& cefStr) { - return gcnew String(cefStr.c_str()); + auto str = reinterpret_cast(cefStr.c_str()); + + return gcnew String(str); } /// @@ -115,7 +119,7 @@ namespace CefSharp if (str != nullptr) { pin_ptr pStr = PtrToStringChars(str); - cef_string_copy(pStr, str->Length, &cefStr); + cef_string_copy(reinterpret_cast(pStr), str->Length, &cefStr); } } @@ -142,4 +146,4 @@ namespace CefSharp } }; } -} \ No newline at end of file +} diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 6d10c45a7..9d0b04592 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 114,2,100 - PRODUCTVERSION 114,2,100 + FILEVERSION 115,3,70 + PRODUCTVERSION 115,3,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "114.2.100" + VALUE "FileVersion", "115.3.70" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "114.2.100" + VALUE "ProductVersion", "115.3.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index c0e7a040d..5065e105e 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index bc500a55d..c180478b5 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 69e685bd2..d52187db3 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 36a278569..334e746e4 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 5b207ec48..1c76f2402 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 1ae7b3c24..f1ef4bf24 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index c3ebdcce3..17b642849 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 08e53fd8a..d55d77ce4 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 9eb6147df..9bc6c401c 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index f0f283e41..534fbfdf4 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 15e8a3fd8..62f6be96e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 48194df2f..216a07d2e 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index cd7c7a797..f7d4e7730 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 915008613..32503c439 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 114.2.100 + 115.3.70 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 114.2.100 + Version 115.3.70 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 311a62f25..040ee5f74 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "114.2.100"; - public const string AssemblyFileVersion = "114.2.100.0"; + public const string AssemblyVersion = "115.3.70"; + public const string AssemblyFileVersion = "115.3.70.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index d4a1a4d03..27204e978 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index e9767a225..c3dab1f5c 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index e86360323..184dde970 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 5c36d1216..de29ff8a1 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "114.2.10", + [string] $CefVersion = "115.3.7", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 06d8216e7..faff0805e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 114.2.100-CI{build} +version: 115.3.70-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 226e8c890..4633c5769 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "114.2.100", + [string] $Version = "115.3.70", [Parameter(Position = 2)] - [string] $AssemblyVersion = "114.2.100", + [string] $AssemblyVersion = "115.3.70", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From fb0c3428d1022f128ede1b2c3cc81d36c96c9cbc Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 30 Jul 2023 09:28:11 +1000 Subject: [PATCH 276/543] Upgrade to 115.3.11+ga61da9b+chromium-115.0.5790.114 / Chromium 115.0.5790.114 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 549ec5f55..510a72224 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index f6e9f29e4..a564c561f 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 7e7a61113..6d6048f20 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 115,3,70 - PRODUCTVERSION 115,3,70 + FILEVERSION 115,3,110 + PRODUCTVERSION 115,3,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "115.3.70" + VALUE "FileVersion", "115.3.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "115.3.70" + VALUE "ProductVersion", "115.3.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 5065e105e..b95967401 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index c180478b5..a22a90b04 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 772631b04..afcd9abd4 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 4c16c2cba..d5097252f 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 33c0a6214..c87c03f5f 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 9d0b04592..5cc64942f 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 115,3,70 - PRODUCTVERSION 115,3,70 + FILEVERSION 115,3,110 + PRODUCTVERSION 115,3,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "115.3.70" + VALUE "FileVersion", "115.3.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "115.3.70" + VALUE "ProductVersion", "115.3.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 5065e105e..b95967401 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index c180478b5..a22a90b04 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index d52187db3..360e684ab 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 334e746e4..5b509f244 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 1c76f2402..f932dad86 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index f1ef4bf24..ce096c3d8 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 17b642849..7b675820b 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index d55d77ce4..0fd359cd7 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 9bc6c401c..e98370280 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 534fbfdf4..f447bf10b 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 62f6be96e..fb419f444 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 216a07d2e..06782adcb 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index f7d4e7730..5f67f40be 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 32503c439..e98addc53 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 115.3.70 + 115.3.110 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 115.3.70 + Version 115.3.110 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 040ee5f74..df79daf2a 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "115.3.70"; - public const string AssemblyFileVersion = "115.3.70.0"; + public const string AssemblyVersion = "115.3.110"; + public const string AssemblyFileVersion = "115.3.110.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 27204e978..881fe1df3 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index c3dab1f5c..d697ec74a 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 184dde970..754617bf4 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index de29ff8a1..d0ef1ab9b 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "115.3.7", + [string] $CefVersion = "115.3.11", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index faff0805e..06958072c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 115.3.70-CI{build} +version: 115.3.110-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 4633c5769..c3c46790f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "115.3.70", + [string] $Version = "115.3.110", [Parameter(Position = 2)] - [string] $AssemblyVersion = "115.3.70", + [string] $AssemblyVersion = "115.3.110", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From e65d05e3d33d438701e4841662e4dcc06c07af67 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 30 Jul 2023 18:18:54 +1000 Subject: [PATCH 277/543] DevTools Client - Upgrade to 115.0.5790.114 --- .../DevTools/DevToolsClient.Generated.cs | 1058 +++++++++++++---- .../DevToolsClient.Generated.netcore.cs | 984 +++++++++++---- 2 files changed, 1564 insertions(+), 478 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index e7138c39c..1b954e9f4 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 114.0.5735.110 +// CHROMIUM VERSION 115.0.5790.114 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2277,103 +2277,6 @@ internal string type } } - /// - /// TwaQualityEnforcementViolationType - /// - public enum TwaQualityEnforcementViolationType - { - /// - /// kHttpError - /// - [EnumMember(Value = ("kHttpError"))] - KHttpError, - /// - /// kUnavailableOffline - /// - [EnumMember(Value = ("kUnavailableOffline"))] - KUnavailableOffline, - /// - /// kDigitalAssetLinks - /// - [EnumMember(Value = ("kDigitalAssetLinks"))] - KDigitalAssetLinks - } - - /// - /// TrustedWebActivityIssueDetails - /// - [System.Runtime.Serialization.DataContractAttribute] - public partial class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// The url that triggers the violation. - /// - [DataMember(Name = ("url"), IsRequired = (true))] - public string Url - { - get; - set; - } - - /// - /// ViolationType - /// - public CefSharp.DevTools.Audits.TwaQualityEnforcementViolationType ViolationType - { - get - { - return (CefSharp.DevTools.Audits.TwaQualityEnforcementViolationType)(StringToEnum(typeof(CefSharp.DevTools.Audits.TwaQualityEnforcementViolationType), violationType)); - } - - set - { - this.violationType = (EnumToString(value)); - } - } - - /// - /// ViolationType - /// - [DataMember(Name = ("violationType"), IsRequired = (true))] - internal string violationType - { - get; - set; - } - - /// - /// HttpStatusCode - /// - [DataMember(Name = ("httpStatusCode"), IsRequired = (false))] - public int? HttpStatusCode - { - get; - set; - } - - /// - /// The package name of the Trusted Web Activity client app. This field is - /// only used when violation type is kDigitalAssetLinks. - /// - [DataMember(Name = ("packageName"), IsRequired = (false))] - public string PackageName - { - get; - set; - } - - /// - /// The signature of the Trusted Web Activity client app. This field is only - /// used when violation type is kDigitalAssetLinks. - /// - [DataMember(Name = ("signature"), IsRequired = (false))] - public string Signature - { - get; - set; - } - } - /// /// LowTextContrastIssueDetails /// @@ -2576,11 +2479,6 @@ public enum AttributionReportingIssueType [EnumMember(Value = ("InvalidRegisterTriggerHeader"))] InvalidRegisterTriggerHeader, /// - /// InvalidEligibleHeader - /// - [EnumMember(Value = ("InvalidEligibleHeader"))] - InvalidEligibleHeader, - /// /// SourceAndTriggerHeaders /// [EnumMember(Value = ("SourceAndTriggerHeaders"))] @@ -3183,7 +3081,12 @@ public enum FederatedAuthRequestIssueReason /// RpPageNotVisible /// [EnumMember(Value = ("RpPageNotVisible"))] - RpPageNotVisible + RpPageNotVisible, + /// + /// SilentMediationFailure + /// + [EnumMember(Value = ("SilentMediationFailure"))] + SilentMediationFailure } /// @@ -3268,11 +3171,6 @@ public enum InspectorIssueCode [EnumMember(Value = ("SharedArrayBufferIssue"))] SharedArrayBufferIssue, /// - /// TrustedWebActivityIssue - /// - [EnumMember(Value = ("TrustedWebActivityIssue"))] - TrustedWebActivityIssue, - /// /// LowTextContrastIssue /// [EnumMember(Value = ("LowTextContrastIssue"))] @@ -3392,16 +3290,6 @@ public CefSharp.DevTools.Audits.SharedArrayBufferIssueDetails SharedArrayBufferI set; } - /// - /// TwaQualityEnforcementDetails - /// - [DataMember(Name = ("twaQualityEnforcementDetails"), IsRequired = (false))] - public CefSharp.DevTools.Audits.TrustedWebActivityIssueDetails TwaQualityEnforcementDetails - { - get; - set; - } - /// /// LowTextContrastIssueDetails /// @@ -3575,6 +3463,66 @@ public CefSharp.DevTools.Audits.InspectorIssue Issue } } +namespace CefSharp.DevTools.Autofill +{ + /// + /// CreditCard + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CreditCard : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// 16-digit credit card number. + /// + [DataMember(Name = ("number"), IsRequired = (true))] + public string Number + { + get; + set; + } + + /// + /// Name of the credit card owner. + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// 2-digit expiry month. + /// + [DataMember(Name = ("expiryMonth"), IsRequired = (true))] + public string ExpiryMonth + { + get; + set; + } + + /// + /// 4-digit expiry year. + /// + [DataMember(Name = ("expiryYear"), IsRequired = (true))] + public string ExpiryYear + { + get; + set; + } + + /// + /// 3-digit card verification code. + /// + [DataMember(Name = ("cvc"), IsRequired = (true))] + public string Cvc + { + get; + set; + } + } +} + namespace CefSharp.DevTools.BackgroundService { /// @@ -4548,6 +4496,55 @@ public CefSharp.DevTools.CSS.SourceRange Range get; set; } + + /// + /// Specificity of the selector. + /// + [DataMember(Name = ("specificity"), IsRequired = (false))] + public CefSharp.DevTools.CSS.Specificity Specificity + { + get; + set; + } + } + + /// + /// Specificity: + /// https://drafts.csswg.org/selectors/#specificity-rules + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class Specificity : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The a component, which represents the number of ID selectors. + /// + [DataMember(Name = ("a"), IsRequired = (true))] + public int A + { + get; + set; + } + + /// + /// The b component, which represents the number of class selectors, attributes selectors, and + /// pseudo-classes. + /// + [DataMember(Name = ("b"), IsRequired = (true))] + public int B + { + get; + set; + } + + /// + /// The c component, which represents the number of type selectors and pseudo-elements. + /// + [DataMember(Name = ("c"), IsRequired = (true))] + public int C + { + get; + set; + } } /// @@ -6356,6 +6353,16 @@ public string StorageKey set; } + /// + /// Storage bucket of the cache. + /// + [DataMember(Name = ("storageBucket"), IsRequired = (false))] + public CefSharp.DevTools.Storage.StorageBucket StorageBucket + { + get; + set; + } + /// /// The name of the cache. /// @@ -24055,10 +24062,10 @@ public enum StorageBucketsDurability } /// - /// StorageBucketInfo + /// StorageBucket /// [System.Runtime.Serialization.DataContractAttribute] - public partial class StorageBucketInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StorageBucket : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// StorageKey @@ -24071,30 +24078,37 @@ public string StorageKey } /// - /// Id + /// If not specified, it is the default bucket of the storageKey. /// - [DataMember(Name = ("id"), IsRequired = (true))] - public string Id + [DataMember(Name = ("name"), IsRequired = (false))] + public string Name { get; set; } + } + /// + /// StorageBucketInfo + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class StorageBucketInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { /// - /// Name + /// Bucket /// - [DataMember(Name = ("name"), IsRequired = (true))] - public string Name + [DataMember(Name = ("bucket"), IsRequired = (true))] + public CefSharp.DevTools.Storage.StorageBucket Bucket { get; set; } /// - /// IsDefault + /// Id /// - [DataMember(Name = ("isDefault"), IsRequired = (true))] - public bool IsDefault + [DataMember(Name = ("id"), IsRequired = (true))] + public string Id { get; set; @@ -24183,6 +24197,16 @@ public string StorageKey private set; } + /// + /// Storage bucket to update. + /// + [DataMember(Name = ("bucketId"), IsRequired = (true))] + public string BucketId + { + get; + private set; + } + /// /// Name of cache in origin. /// @@ -24219,6 +24243,16 @@ public string StorageKey get; private set; } + + /// + /// Storage bucket to update. + /// + [DataMember(Name = ("bucketId"), IsRequired = (true))] + public string BucketId + { + get; + private set; + } } /// @@ -24247,6 +24281,16 @@ public string StorageKey private set; } + /// + /// Storage bucket to update. + /// + [DataMember(Name = ("bucketId"), IsRequired = (true))] + public string BucketId + { + get; + private set; + } + /// /// Database to update. /// @@ -24293,6 +24337,16 @@ public string StorageKey get; private set; } + + /// + /// Storage bucket to update. + /// + [DataMember(Name = ("bucketId"), IsRequired = (true))] + public string BucketId + { + get; + private set; + } } /// @@ -24440,10 +24494,10 @@ public CefSharp.DevTools.Storage.SharedStorageAccessParams Params public class StorageBucketCreatedOrUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// Bucket + /// BucketInfo /// - [DataMember(Name = ("bucket"), IsRequired = (true))] - public CefSharp.DevTools.Storage.StorageBucketInfo Bucket + [DataMember(Name = ("bucketInfo"), IsRequired = (true))] + public CefSharp.DevTools.Storage.StorageBucketInfo BucketInfo { get; private set; @@ -27926,6 +27980,45 @@ public string SourceText set; } + /// + /// A speculation rule set is either added through an inline + /// <script> tag or through an external resource via the + /// 'Speculation-Rules' HTTP header. For the first case, we include + /// the BackendNodeId of the relevant <script> tag. For the second + /// case, we include the external URL where the rule set was loaded + /// from, and also RequestId if Network domain is enabled. + /// + /// See also: + /// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script + /// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header + /// + [DataMember(Name = ("backendNodeId"), IsRequired = (false))] + public int? BackendNodeId + { + get; + set; + } + + /// + /// Url + /// + [DataMember(Name = ("url"), IsRequired = (false))] + public string Url + { + get; + set; + } + + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (false))] + public string RequestId + { + get; + set; + } + /// /// Error information /// `errorMessage` is null iff `errorType` is null. @@ -28451,38 +28544,6 @@ public enum PrerenderFinalStatus MemoryPressureAfterTriggered } - /// - /// PreloadEnabledState - /// - public enum PreloadEnabledState - { - /// - /// Enabled - /// - [EnumMember(Value = ("Enabled"))] - Enabled, - /// - /// DisabledByDataSaver - /// - [EnumMember(Value = ("DisabledByDataSaver"))] - DisabledByDataSaver, - /// - /// DisabledByBatterySaver - /// - [EnumMember(Value = ("DisabledByBatterySaver"))] - DisabledByBatterySaver, - /// - /// DisabledByPreference - /// - [EnumMember(Value = ("DisabledByPreference"))] - DisabledByPreference, - /// - /// NotSupported - /// - [EnumMember(Value = ("NotSupported"))] - NotSupported - } - /// /// Preloading status values, see also PreloadingTriggeringOutcome. This /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. @@ -28521,6 +28582,164 @@ public enum PreloadingStatus NotSupported } + /// + /// TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and + /// filter out the ones that aren't necessary to the developers. + /// + public enum PrefetchStatus + { + /// + /// PrefetchAllowed + /// + [EnumMember(Value = ("PrefetchAllowed"))] + PrefetchAllowed, + /// + /// PrefetchFailedIneligibleRedirect + /// + [EnumMember(Value = ("PrefetchFailedIneligibleRedirect"))] + PrefetchFailedIneligibleRedirect, + /// + /// PrefetchFailedInvalidRedirect + /// + [EnumMember(Value = ("PrefetchFailedInvalidRedirect"))] + PrefetchFailedInvalidRedirect, + /// + /// PrefetchFailedMIMENotSupported + /// + [EnumMember(Value = ("PrefetchFailedMIMENotSupported"))] + PrefetchFailedMIMENotSupported, + /// + /// PrefetchFailedNetError + /// + [EnumMember(Value = ("PrefetchFailedNetError"))] + PrefetchFailedNetError, + /// + /// PrefetchFailedNon2XX + /// + [EnumMember(Value = ("PrefetchFailedNon2XX"))] + PrefetchFailedNon2XX, + /// + /// PrefetchFailedPerPageLimitExceeded + /// + [EnumMember(Value = ("PrefetchFailedPerPageLimitExceeded"))] + PrefetchFailedPerPageLimitExceeded, + /// + /// PrefetchEvicted + /// + [EnumMember(Value = ("PrefetchEvicted"))] + PrefetchEvicted, + /// + /// PrefetchHeldback + /// + [EnumMember(Value = ("PrefetchHeldback"))] + PrefetchHeldback, + /// + /// PrefetchIneligibleRetryAfter + /// + [EnumMember(Value = ("PrefetchIneligibleRetryAfter"))] + PrefetchIneligibleRetryAfter, + /// + /// PrefetchIsPrivacyDecoy + /// + [EnumMember(Value = ("PrefetchIsPrivacyDecoy"))] + PrefetchIsPrivacyDecoy, + /// + /// PrefetchIsStale + /// + [EnumMember(Value = ("PrefetchIsStale"))] + PrefetchIsStale, + /// + /// PrefetchNotEligibleBrowserContextOffTheRecord + /// + [EnumMember(Value = ("PrefetchNotEligibleBrowserContextOffTheRecord"))] + PrefetchNotEligibleBrowserContextOffTheRecord, + /// + /// PrefetchNotEligibleDataSaverEnabled + /// + [EnumMember(Value = ("PrefetchNotEligibleDataSaverEnabled"))] + PrefetchNotEligibleDataSaverEnabled, + /// + /// PrefetchNotEligibleExistingProxy + /// + [EnumMember(Value = ("PrefetchNotEligibleExistingProxy"))] + PrefetchNotEligibleExistingProxy, + /// + /// PrefetchNotEligibleHostIsNonUnique + /// + [EnumMember(Value = ("PrefetchNotEligibleHostIsNonUnique"))] + PrefetchNotEligibleHostIsNonUnique, + /// + /// PrefetchNotEligibleNonDefaultStoragePartition + /// + [EnumMember(Value = ("PrefetchNotEligibleNonDefaultStoragePartition"))] + PrefetchNotEligibleNonDefaultStoragePartition, + /// + /// PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy + /// + [EnumMember(Value = ("PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy"))] + PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy, + /// + /// PrefetchNotEligibleSchemeIsNotHttps + /// + [EnumMember(Value = ("PrefetchNotEligibleSchemeIsNotHttps"))] + PrefetchNotEligibleSchemeIsNotHttps, + /// + /// PrefetchNotEligibleUserHasCookies + /// + [EnumMember(Value = ("PrefetchNotEligibleUserHasCookies"))] + PrefetchNotEligibleUserHasCookies, + /// + /// PrefetchNotEligibleUserHasServiceWorker + /// + [EnumMember(Value = ("PrefetchNotEligibleUserHasServiceWorker"))] + PrefetchNotEligibleUserHasServiceWorker, + /// + /// PrefetchNotEligibleBatterySaverEnabled + /// + [EnumMember(Value = ("PrefetchNotEligibleBatterySaverEnabled"))] + PrefetchNotEligibleBatterySaverEnabled, + /// + /// PrefetchNotEligiblePreloadingDisabled + /// + [EnumMember(Value = ("PrefetchNotEligiblePreloadingDisabled"))] + PrefetchNotEligiblePreloadingDisabled, + /// + /// PrefetchNotFinishedInTime + /// + [EnumMember(Value = ("PrefetchNotFinishedInTime"))] + PrefetchNotFinishedInTime, + /// + /// PrefetchNotStarted + /// + [EnumMember(Value = ("PrefetchNotStarted"))] + PrefetchNotStarted, + /// + /// PrefetchNotUsedCookiesChanged + /// + [EnumMember(Value = ("PrefetchNotUsedCookiesChanged"))] + PrefetchNotUsedCookiesChanged, + /// + /// PrefetchProxyNotAvailable + /// + [EnumMember(Value = ("PrefetchProxyNotAvailable"))] + PrefetchProxyNotAvailable, + /// + /// PrefetchResponseUsed + /// + [EnumMember(Value = ("PrefetchResponseUsed"))] + PrefetchResponseUsed, + /// + /// PrefetchSuccessfulButNotUsed + /// + [EnumMember(Value = ("PrefetchSuccessfulButNotUsed"))] + PrefetchSuccessfulButNotUsed, + /// + /// PrefetchNotUsedProbeFailed + /// + [EnumMember(Value = ("PrefetchNotUsedProbeFailed"))] + PrefetchNotUsedProbeFailed + } + /// /// Upsert. Currently, it is only emitted when a rule set added. /// @@ -28636,26 +28855,30 @@ public string DisallowedApiMethod public class PreloadEnabledStateUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// State + /// DisabledByPreference /// - public CefSharp.DevTools.Preload.PreloadEnabledState State + [DataMember(Name = ("disabledByPreference"), IsRequired = (true))] + public bool DisabledByPreference { - get - { - return (CefSharp.DevTools.Preload.PreloadEnabledState)(StringToEnum(typeof(CefSharp.DevTools.Preload.PreloadEnabledState), state)); - } + get; + private set; + } - set - { - this.state = (EnumToString(value)); - } + /// + /// DisabledByDataSaver + /// + [DataMember(Name = ("disabledByDataSaver"), IsRequired = (true))] + public bool DisabledByDataSaver + { + get; + private set; } /// - /// State + /// DisabledByBatterySaver /// - [DataMember(Name = ("state"), IsRequired = (true))] - internal string state + [DataMember(Name = ("disabledByBatterySaver"), IsRequired = (true))] + public bool DisabledByBatterySaver { get; private set; @@ -28723,6 +28946,32 @@ internal string status get; private set; } + + /// + /// PrefetchStatus + /// + public CefSharp.DevTools.Preload.PrefetchStatus PrefetchStatus + { + get + { + return (CefSharp.DevTools.Preload.PrefetchStatus)(StringToEnum(typeof(CefSharp.DevTools.Preload.PrefetchStatus), prefetchStatus)); + } + + set + { + this.prefetchStatus = (EnumToString(value)); + } + } + + /// + /// PrefetchStatus + /// + [DataMember(Name = ("prefetchStatus"), IsRequired = (true))] + internal string prefetchStatus + { + get; + private set; + } } /// @@ -28742,46 +28991,52 @@ public CefSharp.DevTools.Preload.PreloadingAttemptKey Key } /// - /// The frame id of the frame initiating prerender. + /// Status /// - [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] - public string InitiatingFrameId + public CefSharp.DevTools.Preload.PreloadingStatus Status { - get; - private set; + get + { + return (CefSharp.DevTools.Preload.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Preload.PreloadingStatus), status)); + } + + set + { + this.status = (EnumToString(value)); + } } /// - /// PrerenderingUrl + /// Status /// - [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] - public string PrerenderingUrl + [DataMember(Name = ("status"), IsRequired = (true))] + internal string status { get; private set; } /// - /// Status + /// PrerenderStatus /// - public CefSharp.DevTools.Preload.PreloadingStatus Status + public CefSharp.DevTools.Preload.PrerenderFinalStatus? PrerenderStatus { get { - return (CefSharp.DevTools.Preload.PreloadingStatus)(StringToEnum(typeof(CefSharp.DevTools.Preload.PreloadingStatus), status)); + return (CefSharp.DevTools.Preload.PrerenderFinalStatus? )(StringToEnum(typeof(CefSharp.DevTools.Preload.PrerenderFinalStatus? ), prerenderStatus)); } set { - this.status = (EnumToString(value)); + this.prerenderStatus = (EnumToString(value)); } } /// - /// Status + /// PrerenderStatus /// - [DataMember(Name = ("status"), IsRequired = (true))] - internal string status + [DataMember(Name = ("prerenderStatus"), IsRequired = (false))] + internal string prerenderStatus { get; private set; @@ -28836,6 +29091,23 @@ public enum LoginState SignUp } + /// + /// Whether the dialog shown is an account chooser or an auto re-authentication dialog. + /// + public enum DialogType + { + /// + /// AccountChooser + /// + [EnumMember(Value = ("AccountChooser"))] + AccountChooser, + /// + /// AutoReauthn + /// + [EnumMember(Value = ("AutoReauthn"))] + AutoReauthn + } + /// /// Corresponds to IdentityRequestAccount /// @@ -28975,6 +29247,32 @@ public string DialogId private set; } + /// + /// DialogType + /// + public CefSharp.DevTools.FedCm.DialogType DialogType + { + get + { + return (CefSharp.DevTools.FedCm.DialogType)(StringToEnum(typeof(CefSharp.DevTools.FedCm.DialogType), dialogType)); + } + + set + { + this.dialogType = (EnumToString(value)); + } + } + + /// + /// DialogType + /// + [DataMember(Name = ("dialogType"), IsRequired = (true))] + internal string dialogType + { + get; + private set; + } + /// /// Accounts /// @@ -30782,9 +31080,75 @@ public System.Collections.Generic.IList - /// WebDriverValueType + /// SerializationOptionsSerialization /// - public enum WebDriverValueType + public enum SerializationOptionsSerialization + { + /// + /// deep + /// + [EnumMember(Value = ("deep"))] + Deep, + /// + /// json + /// + [EnumMember(Value = ("json"))] + Json, + /// + /// idOnly + /// + [EnumMember(Value = ("idOnly"))] + IdOnly + } + + /// + /// Represents options for serialization. Overrides `generatePreview`, `returnByValue` and + /// `generateWebDriverValue`. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SerializationOptions : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Serialization + /// + public CefSharp.DevTools.Runtime.SerializationOptionsSerialization Serialization + { + get + { + return (CefSharp.DevTools.Runtime.SerializationOptionsSerialization)(StringToEnum(typeof(CefSharp.DevTools.Runtime.SerializationOptionsSerialization), serialization)); + } + + set + { + this.serialization = (EnumToString(value)); + } + } + + /// + /// Serialization + /// + [DataMember(Name = ("serialization"), IsRequired = (true))] + internal string serialization + { + get; + set; + } + + /// + /// Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode. + /// + [DataMember(Name = ("maxDepth"), IsRequired = (false))] + public int? MaxDepth + { + get; + set; + } + } + + /// + /// DeepSerializedValueType + /// + public enum DeepSerializedValueType { /// /// undefined @@ -30904,20 +31268,19 @@ public enum WebDriverValueType } /// - /// Represents the value serialiazed by the WebDriver BiDi specification - /// https://w3c.github.io/webdriver-bidi. + /// Represents deep serialized value. /// [System.Runtime.Serialization.DataContractAttribute] - public partial class WebDriverValue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DeepSerializedValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type /// - public CefSharp.DevTools.Runtime.WebDriverValueType Type + public CefSharp.DevTools.Runtime.DeepSerializedValueType Type { get { - return (CefSharp.DevTools.Runtime.WebDriverValueType)(StringToEnum(typeof(CefSharp.DevTools.Runtime.WebDriverValueType), type)); + return (CefSharp.DevTools.Runtime.DeepSerializedValueType)(StringToEnum(typeof(CefSharp.DevTools.Runtime.DeepSerializedValueType), type)); } set @@ -30955,6 +31318,18 @@ public string ObjectId get; set; } + + /// + /// Set if value reference met more then once during serialization. In such + /// case, value is provided only to one of the serialized values. Unique + /// per value in the scope of one CDP call. + /// + [DataMember(Name = ("weakLocalObjectReference"), IsRequired = (false))] + public int? WeakLocalObjectReference + { + get; + set; + } } /// @@ -31212,10 +31587,20 @@ public string Description } /// - /// WebDriver BiDi representation of the value. + /// Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value. /// [DataMember(Name = ("webDriverValue"), IsRequired = (false))] - public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue + public CefSharp.DevTools.Runtime.DeepSerializedValue WebDriverValue + { + get; + set; + } + + /// + /// Deep serialized value. + /// + [DataMember(Name = ("deepSerializedValue"), IsRequired = (false))] + public CefSharp.DevTools.Runtime.DeepSerializedValue DeepSerializedValue { get; set; @@ -33459,6 +33844,34 @@ public int EncodedSize } } +namespace CefSharp.DevTools.Audits +{ + /// + /// CheckFormsIssuesResponse + /// + [DataContract] + public class CheckFormsIssuesResponse : DevToolsDomainResponseBase + { + [DataMember] + internal System.Collections.Generic.IList formIssues + { + get; + set; + } + + /// + /// formIssues + /// + public System.Collections.Generic.IList FormIssues + { + get + { + return formIssues; + } + } + } +} + namespace CefSharp.DevTools.Audits { using System.Linq; @@ -33584,6 +33997,61 @@ public System.Threading.Tasks.Task CheckContrastAsync(bo return _client.ExecuteDevToolsMethodAsync("Audits.checkContrast", dict); } + + /// + /// Runs the form issues check for the target page. Found issues are reported + /// using Audits.issueAdded event. + /// + /// returns System.Threading.Tasks.Task<CheckFormsIssuesResponse> + public System.Threading.Tasks.Task CheckFormsIssuesAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Audits.checkFormsIssues", dict); + } + } +} + +namespace CefSharp.DevTools.Autofill +{ + using System.Linq; + + /// + /// Defines commands and events for Autofill. + /// + public partial class AutofillClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// Autofill + /// + /// DevToolsClient + public AutofillClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateTrigger(int fieldId, CefSharp.DevTools.Autofill.CreditCard card, string frameId = null); + /// + /// Trigger autofill on a form identified by the fieldId. + /// If the field and related form cannot be autofilled, returns an error. + /// + /// Identifies a field that serves as an anchor for autofill. + /// Credit card information to fill out the form. Credit card data is not saved. + /// Identifies the frame that field belongs to. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TriggerAsync(int fieldId, CefSharp.DevTools.Autofill.CreditCard card, string frameId = null) + { + ValidateTrigger(fieldId, card, frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("fieldId", fieldId); + dict.Add("card", card.ToDictionary()); + if (!(string.IsNullOrEmpty(frameId))) + { + dict.Add("frameId", frameId); + } + + return _client.ExecuteDevToolsMethodAsync("Autofill.trigger", dict); + } } } @@ -34341,6 +34809,21 @@ public System.Threading.Tasks.Task ExecuteBrowserCommand dict.Add("commandId", EnumToString(commandId)); return _client.ExecuteDevToolsMethodAsync("Browser.executeBrowserCommand", dict); } + + partial void ValidateAddPrivacySandboxEnrollmentOverride(string url); + /// + /// Allows a site to use privacy sandbox features that require enrollment + /// without the site actually being enrolled. Only supported on page targets. + /// + /// url + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task AddPrivacySandboxEnrollmentOverrideAsync(string url) + { + ValidateAddPrivacySandboxEnrollmentOverride(url); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxEnrollmentOverride", dict); + } } } @@ -35865,16 +36348,17 @@ public System.Threading.Tasks.Task DeleteEntryAsync(stri return _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteEntry", dict); } - partial void ValidateRequestCacheNames(string securityOrigin = null, string storageKey = null); + partial void ValidateRequestCacheNames(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests cache names. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestCacheNamesResponse> - public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateRequestCacheNames(securityOrigin, storageKey); + ValidateRequestCacheNames(securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(securityOrigin))) { @@ -35886,6 +36370,11 @@ public System.Threading.Tasks.Task RequestCacheNamesA dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCacheNames", dict); } @@ -40057,18 +40546,19 @@ public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateClearObjectStore(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); + partial void ValidateClearObjectStore(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Clears all entries from an object store. /// /// Database name. /// Object store name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ClearObjectStoreAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task ClearObjectStoreAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateClearObjectStore(databaseName, objectStoreName, securityOrigin, storageKey); + ValidateClearObjectStore(databaseName, objectStoreName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -40082,20 +40572,26 @@ public System.Threading.Tasks.Task ClearObjectStoreAsync dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); } - partial void ValidateDeleteDatabase(string databaseName, string securityOrigin = null, string storageKey = null); + partial void ValidateDeleteDatabase(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Deletes a database. /// /// Database name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task DeleteDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateDeleteDatabase(databaseName, securityOrigin, storageKey); + ValidateDeleteDatabase(databaseName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) @@ -40108,22 +40604,28 @@ public System.Threading.Tasks.Task DeleteDatabaseAsync(s dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); } - partial void ValidateDeleteObjectStoreEntries(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null); + partial void ValidateDeleteObjectStoreEntries(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Delete a range of entries from an object store /// /// databaseName /// objectStoreName /// Range of entry keys to delete - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateDeleteObjectStoreEntries(databaseName, objectStoreName, keyRange, securityOrigin, storageKey); + ValidateDeleteObjectStoreEntries(databaseName, objectStoreName, keyRange, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -40138,6 +40640,11 @@ public System.Threading.Tasks.Task DeleteObjectStoreEntr dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteObjectStoreEntries", dict); } @@ -40161,7 +40668,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); } - partial void ValidateRequestData(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); + partial void ValidateRequestData(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); /// /// Requests data from object store or index. /// @@ -40170,13 +40677,14 @@ public System.Threading.Tasks.Task EnableAsync() /// Index name, empty string for object store data requests. /// Number of records to skip. /// Number of records to fetch. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// Key range. /// returns System.Threading.Tasks.Task<RequestDataResponse> - public System.Threading.Tasks.Task RequestDataAsync(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) + public System.Threading.Tasks.Task RequestDataAsync(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) { - ValidateRequestData(databaseName, objectStoreName, indexName, skipCount, pageSize, securityOrigin, storageKey, keyRange); + ValidateRequestData(databaseName, objectStoreName, indexName, skipCount, pageSize, securityOrigin, storageKey, storageBucket, keyRange); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -40193,6 +40701,11 @@ public System.Threading.Tasks.Task RequestDataAsync(string dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + if ((keyRange) != (null)) { dict.Add("keyRange", keyRange.ToDictionary()); @@ -40201,18 +40714,19 @@ public System.Threading.Tasks.Task RequestDataAsync(string return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); } - partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); + partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Gets metadata of an object store. /// /// Database name. /// Object store name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<GetMetadataResponse> - public System.Threading.Tasks.Task GetMetadataAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task GetMetadataAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateGetMetadata(databaseName, objectStoreName, securityOrigin, storageKey); + ValidateGetMetadata(databaseName, objectStoreName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -40226,20 +40740,26 @@ public System.Threading.Tasks.Task GetMetadataAsync(string dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); } - partial void ValidateRequestDatabase(string databaseName, string securityOrigin = null, string storageKey = null); + partial void ValidateRequestDatabase(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests database with given name in given frame. /// /// Database name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> - public System.Threading.Tasks.Task RequestDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task RequestDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateRequestDatabase(databaseName, securityOrigin, storageKey); + ValidateRequestDatabase(databaseName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) @@ -40252,19 +40772,25 @@ public System.Threading.Tasks.Task RequestDatabaseAsync dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); } - partial void ValidateRequestDatabaseNames(string securityOrigin = null, string storageKey = null); + partial void ValidateRequestDatabaseNames(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests database names for given security origin. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestDatabaseNamesResponse> - public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateRequestDatabaseNames(securityOrigin, storageKey); + ValidateRequestDatabaseNames(securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(securityOrigin))) { @@ -40276,6 +40802,11 @@ public System.Threading.Tasks.Task RequestDatabase dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabaseNames", dict); } } @@ -47298,19 +47829,17 @@ public System.Threading.Tasks.Task SetStorageBucketTrack return _client.ExecuteDevToolsMethodAsync("Storage.setStorageBucketTracking", dict); } - partial void ValidateDeleteStorageBucket(string storageKey, string bucketName); + partial void ValidateDeleteStorageBucket(CefSharp.DevTools.Storage.StorageBucket bucket); /// /// Deletes the Storage Bucket with the given storage key and bucket name. /// - /// storageKey - /// bucketName + /// bucket /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteStorageBucketAsync(string storageKey, string bucketName) + public System.Threading.Tasks.Task DeleteStorageBucketAsync(CefSharp.DevTools.Storage.StorageBucket bucket) { - ValidateDeleteStorageBucket(storageKey, bucketName); + ValidateDeleteStorageBucket(bucket); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("storageKey", storageKey); - dict.Add("bucketName", bucketName); + dict.Add("bucket", bucket.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Storage.deleteStorageBucket", dict); } @@ -52897,7 +53426,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -52906,7 +53435,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Identifier of the object to call function on. Either objectId or executionContextId shouldbe specified. /// Call arguments. All call arguments must belong to the same JavaScript world as the targetobject. /// In silent mode exceptions thrown during evaluation are not reported and do not pauseexecution. Overrides `setPauseOnException` state. - /// Whether the result is expected to be a JSON object which should be sent by value. + /// Whether the result is expected to be a JSON object which should be sent by value.Can be overriden by `serializationOptions`. /// Whether preview should be generated for the result. /// Whether execution should be treated as initiated by user in the UI. /// Whether execution should `await` for resulting value and return once awaited promise isresolved. @@ -52914,11 +53443,12 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. - /// Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. + /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. + /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -52981,6 +53511,11 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("generateWebDriverValue", generateWebDriverValue.Value); } + if ((serializationOptions) != (null)) + { + dict.Add("serializationOptions", serializationOptions.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.callFunctionOn", dict); } @@ -53040,7 +53575,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null); + partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Evaluates expression on global object. /// @@ -53059,11 +53594,12 @@ public System.Threading.Tasks.Task EnableAsync() /// Setting this flag to true enables `let` re-declaration and top-level `await`.Note that `let` variables can only be re-declared if they originate from`replMode` themselves. /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. - /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. + /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. + /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null) + public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue); + ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("expression", expression); if (!(string.IsNullOrEmpty(objectGroup))) @@ -53141,6 +53677,11 @@ public System.Threading.Tasks.Task EvaluateAsync(string expres dict.Add("generateWebDriverValue", generateWebDriverValue.Value); } + if ((serializationOptions) != (null)) + { + dict.Add("serializationOptions", serializationOptions.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.evaluate", dict); } @@ -53513,6 +54054,23 @@ public CefSharp.DevTools.Audits.AuditsClient Audits } } + private CefSharp.DevTools.Autofill.AutofillClient _Autofill; + /// + /// Defines commands and events for Autofill. + /// + public CefSharp.DevTools.Autofill.AutofillClient Autofill + { + get + { + if ((_Autofill) == (null)) + { + _Autofill = (new CefSharp.DevTools.Autofill.AutofillClient(this)); + } + + return _Autofill; + } + } + private CefSharp.DevTools.BackgroundService.BackgroundServiceClient _BackgroundService; /// /// Defines events for background web platform features. diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 24e67b3cb..6290b0731 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 114.0.5735.110 +// CHROMIUM VERSION 115.0.5790.114 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2042,87 +2042,6 @@ public CefSharp.DevTools.Audits.SharedArrayBufferIssueType Type } } - /// - /// TwaQualityEnforcementViolationType - /// - public enum TwaQualityEnforcementViolationType - { - /// - /// kHttpError - /// - [JsonPropertyName("kHttpError")] - KHttpError, - /// - /// kUnavailableOffline - /// - [JsonPropertyName("kUnavailableOffline")] - KUnavailableOffline, - /// - /// kDigitalAssetLinks - /// - [JsonPropertyName("kDigitalAssetLinks")] - KDigitalAssetLinks - } - - /// - /// TrustedWebActivityIssueDetails - /// - public partial class TrustedWebActivityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase - { - /// - /// The url that triggers the violation. - /// - [JsonPropertyName("url")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Url - { - get; - set; - } - - /// - /// ViolationType - /// - [JsonPropertyName("violationType")] - public CefSharp.DevTools.Audits.TwaQualityEnforcementViolationType ViolationType - { - get; - set; - } - - /// - /// HttpStatusCode - /// - [JsonPropertyName("httpStatusCode")] - public int? HttpStatusCode - { - get; - set; - } - - /// - /// The package name of the Trusted Web Activity client app. This field is - /// only used when violation type is kDigitalAssetLinks. - /// - [JsonPropertyName("packageName")] - public string PackageName - { - get; - set; - } - - /// - /// The signature of the Trusted Web Activity client app. This field is only - /// used when violation type is kDigitalAssetLinks. - /// - [JsonPropertyName("signature")] - public string Signature - { - get; - set; - } - } - /// /// LowTextContrastIssueDetails /// @@ -2312,11 +2231,6 @@ public enum AttributionReportingIssueType [JsonPropertyName("InvalidRegisterTriggerHeader")] InvalidRegisterTriggerHeader, /// - /// InvalidEligibleHeader - /// - [JsonPropertyName("InvalidEligibleHeader")] - InvalidEligibleHeader, - /// /// SourceAndTriggerHeaders /// [JsonPropertyName("SourceAndTriggerHeaders")] @@ -2871,7 +2785,12 @@ public enum FederatedAuthRequestIssueReason /// RpPageNotVisible /// [JsonPropertyName("RpPageNotVisible")] - RpPageNotVisible + RpPageNotVisible, + /// + /// SilentMediationFailure + /// + [JsonPropertyName("SilentMediationFailure")] + SilentMediationFailure } /// @@ -2940,11 +2859,6 @@ public enum InspectorIssueCode [JsonPropertyName("SharedArrayBufferIssue")] SharedArrayBufferIssue, /// - /// TrustedWebActivityIssue - /// - [JsonPropertyName("TrustedWebActivityIssue")] - TrustedWebActivityIssue, - /// /// LowTextContrastIssue /// [JsonPropertyName("LowTextContrastIssue")] @@ -3063,16 +2977,6 @@ public CefSharp.DevTools.Audits.SharedArrayBufferIssueDetails SharedArrayBufferI set; } - /// - /// TwaQualityEnforcementDetails - /// - [JsonPropertyName("twaQualityEnforcementDetails")] - public CefSharp.DevTools.Audits.TrustedWebActivityIssueDetails TwaQualityEnforcementDetails - { - get; - set; - } - /// /// LowTextContrastIssueDetails /// @@ -3231,6 +3135,70 @@ public CefSharp.DevTools.Audits.InspectorIssue Issue } } +namespace CefSharp.DevTools.Autofill +{ + /// + /// CreditCard + /// + public partial class CreditCard : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// 16-digit credit card number. + /// + [JsonPropertyName("number")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Number + { + get; + set; + } + + /// + /// Name of the credit card owner. + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// 2-digit expiry month. + /// + [JsonPropertyName("expiryMonth")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ExpiryMonth + { + get; + set; + } + + /// + /// 4-digit expiry year. + /// + [JsonPropertyName("expiryYear")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ExpiryYear + { + get; + set; + } + + /// + /// 3-digit card verification code. + /// + [JsonPropertyName("cvc")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Cvc + { + get; + set; + } + } +} + namespace CefSharp.DevTools.BackgroundService { /// @@ -4142,6 +4110,54 @@ public CefSharp.DevTools.CSS.SourceRange Range get; set; } + + /// + /// Specificity of the selector. + /// + [JsonPropertyName("specificity")] + public CefSharp.DevTools.CSS.Specificity Specificity + { + get; + set; + } + } + + /// + /// Specificity: + /// https://drafts.csswg.org/selectors/#specificity-rules + /// + public partial class Specificity : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The a component, which represents the number of ID selectors. + /// + [JsonPropertyName("a")] + public int A + { + get; + set; + } + + /// + /// The b component, which represents the number of class selectors, attributes selectors, and + /// pseudo-classes. + /// + [JsonPropertyName("b")] + public int B + { + get; + set; + } + + /// + /// The c component, which represents the number of type selectors and pseudo-elements. + /// + [JsonPropertyName("c")] + public int C + { + get; + set; + } } /// @@ -5851,6 +5867,16 @@ public string StorageKey set; } + /// + /// Storage bucket of the cache. + /// + [JsonPropertyName("storageBucket")] + public CefSharp.DevTools.Storage.StorageBucket StorageBucket + { + get; + set; + } + /// /// The name of the cache. /// @@ -22416,9 +22442,9 @@ public enum StorageBucketsDurability } /// - /// StorageBucketInfo + /// StorageBucket /// - public partial class StorageBucketInfo : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class StorageBucket : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// StorageKey @@ -22432,32 +22458,38 @@ public string StorageKey } /// - /// Id + /// If not specified, it is the default bucket of the storageKey. /// - [JsonPropertyName("id")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Id + [JsonPropertyName("name")] + public string Name { get; set; } + } + /// + /// StorageBucketInfo + /// + public partial class StorageBucketInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { /// - /// Name + /// Bucket /// - [JsonPropertyName("name")] + [JsonPropertyName("bucket")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string Name + public CefSharp.DevTools.Storage.StorageBucket Bucket { get; set; } /// - /// IsDefault + /// Id /// - [JsonPropertyName("isDefault")] - public bool IsDefault + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id { get; set; @@ -22533,6 +22565,18 @@ public string StorageKey private set; } + /// + /// Storage bucket to update. + /// + [JsonInclude] + [JsonPropertyName("bucketId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BucketId + { + get; + private set; + } + /// /// Name of cache in origin. /// @@ -22574,6 +22618,18 @@ public string StorageKey get; private set; } + + /// + /// Storage bucket to update. + /// + [JsonInclude] + [JsonPropertyName("bucketId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BucketId + { + get; + private set; + } } /// @@ -22605,6 +22661,18 @@ public string StorageKey private set; } + /// + /// Storage bucket to update. + /// + [JsonInclude] + [JsonPropertyName("bucketId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BucketId + { + get; + private set; + } + /// /// Database to update. /// @@ -22658,6 +22726,18 @@ public string StorageKey get; private set; } + + /// + /// Storage bucket to update. + /// + [JsonInclude] + [JsonPropertyName("bucketId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string BucketId + { + get; + private set; + } } /// @@ -22784,12 +22864,12 @@ public CefSharp.DevTools.Storage.SharedStorageAccessParams Params public class StorageBucketCreatedOrUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// Bucket + /// BucketInfo /// [JsonInclude] - [JsonPropertyName("bucket")] + [JsonPropertyName("bucketInfo")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public CefSharp.DevTools.Storage.StorageBucketInfo Bucket + public CefSharp.DevTools.Storage.StorageBucketInfo BucketInfo { get; private set; @@ -26061,6 +26141,45 @@ public string SourceText set; } + /// + /// A speculation rule set is either added through an inline + /// <script> tag or through an external resource via the + /// 'Speculation-Rules' HTTP header. For the first case, we include + /// the BackendNodeId of the relevant <script> tag. For the second + /// case, we include the external URL where the rule set was loaded + /// from, and also RequestId if Network domain is enabled. + /// + /// See also: + /// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script + /// - https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header + /// + [JsonPropertyName("backendNodeId")] + public int? BackendNodeId + { + get; + set; + } + + /// + /// Url + /// + [JsonPropertyName("url")] + public string Url + { + get; + set; + } + + /// + /// RequestId + /// + [JsonPropertyName("requestId")] + public string RequestId + { + get; + set; + } + /// /// Error information /// `errorMessage` is null iff `errorType` is null. @@ -26539,38 +26658,6 @@ public enum PrerenderFinalStatus MemoryPressureAfterTriggered } - /// - /// PreloadEnabledState - /// - public enum PreloadEnabledState - { - /// - /// Enabled - /// - [JsonPropertyName("Enabled")] - Enabled, - /// - /// DisabledByDataSaver - /// - [JsonPropertyName("DisabledByDataSaver")] - DisabledByDataSaver, - /// - /// DisabledByBatterySaver - /// - [JsonPropertyName("DisabledByBatterySaver")] - DisabledByBatterySaver, - /// - /// DisabledByPreference - /// - [JsonPropertyName("DisabledByPreference")] - DisabledByPreference, - /// - /// NotSupported - /// - [JsonPropertyName("NotSupported")] - NotSupported - } - /// /// Preloading status values, see also PreloadingTriggeringOutcome. This /// status is shared by prefetchStatusUpdated and prerenderStatusUpdated. @@ -26609,6 +26696,164 @@ public enum PreloadingStatus NotSupported } + /// + /// TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and + /// filter out the ones that aren't necessary to the developers. + /// + public enum PrefetchStatus + { + /// + /// PrefetchAllowed + /// + [JsonPropertyName("PrefetchAllowed")] + PrefetchAllowed, + /// + /// PrefetchFailedIneligibleRedirect + /// + [JsonPropertyName("PrefetchFailedIneligibleRedirect")] + PrefetchFailedIneligibleRedirect, + /// + /// PrefetchFailedInvalidRedirect + /// + [JsonPropertyName("PrefetchFailedInvalidRedirect")] + PrefetchFailedInvalidRedirect, + /// + /// PrefetchFailedMIMENotSupported + /// + [JsonPropertyName("PrefetchFailedMIMENotSupported")] + PrefetchFailedMIMENotSupported, + /// + /// PrefetchFailedNetError + /// + [JsonPropertyName("PrefetchFailedNetError")] + PrefetchFailedNetError, + /// + /// PrefetchFailedNon2XX + /// + [JsonPropertyName("PrefetchFailedNon2XX")] + PrefetchFailedNon2XX, + /// + /// PrefetchFailedPerPageLimitExceeded + /// + [JsonPropertyName("PrefetchFailedPerPageLimitExceeded")] + PrefetchFailedPerPageLimitExceeded, + /// + /// PrefetchEvicted + /// + [JsonPropertyName("PrefetchEvicted")] + PrefetchEvicted, + /// + /// PrefetchHeldback + /// + [JsonPropertyName("PrefetchHeldback")] + PrefetchHeldback, + /// + /// PrefetchIneligibleRetryAfter + /// + [JsonPropertyName("PrefetchIneligibleRetryAfter")] + PrefetchIneligibleRetryAfter, + /// + /// PrefetchIsPrivacyDecoy + /// + [JsonPropertyName("PrefetchIsPrivacyDecoy")] + PrefetchIsPrivacyDecoy, + /// + /// PrefetchIsStale + /// + [JsonPropertyName("PrefetchIsStale")] + PrefetchIsStale, + /// + /// PrefetchNotEligibleBrowserContextOffTheRecord + /// + [JsonPropertyName("PrefetchNotEligibleBrowserContextOffTheRecord")] + PrefetchNotEligibleBrowserContextOffTheRecord, + /// + /// PrefetchNotEligibleDataSaverEnabled + /// + [JsonPropertyName("PrefetchNotEligibleDataSaverEnabled")] + PrefetchNotEligibleDataSaverEnabled, + /// + /// PrefetchNotEligibleExistingProxy + /// + [JsonPropertyName("PrefetchNotEligibleExistingProxy")] + PrefetchNotEligibleExistingProxy, + /// + /// PrefetchNotEligibleHostIsNonUnique + /// + [JsonPropertyName("PrefetchNotEligibleHostIsNonUnique")] + PrefetchNotEligibleHostIsNonUnique, + /// + /// PrefetchNotEligibleNonDefaultStoragePartition + /// + [JsonPropertyName("PrefetchNotEligibleNonDefaultStoragePartition")] + PrefetchNotEligibleNonDefaultStoragePartition, + /// + /// PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy + /// + [JsonPropertyName("PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy")] + PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy, + /// + /// PrefetchNotEligibleSchemeIsNotHttps + /// + [JsonPropertyName("PrefetchNotEligibleSchemeIsNotHttps")] + PrefetchNotEligibleSchemeIsNotHttps, + /// + /// PrefetchNotEligibleUserHasCookies + /// + [JsonPropertyName("PrefetchNotEligibleUserHasCookies")] + PrefetchNotEligibleUserHasCookies, + /// + /// PrefetchNotEligibleUserHasServiceWorker + /// + [JsonPropertyName("PrefetchNotEligibleUserHasServiceWorker")] + PrefetchNotEligibleUserHasServiceWorker, + /// + /// PrefetchNotEligibleBatterySaverEnabled + /// + [JsonPropertyName("PrefetchNotEligibleBatterySaverEnabled")] + PrefetchNotEligibleBatterySaverEnabled, + /// + /// PrefetchNotEligiblePreloadingDisabled + /// + [JsonPropertyName("PrefetchNotEligiblePreloadingDisabled")] + PrefetchNotEligiblePreloadingDisabled, + /// + /// PrefetchNotFinishedInTime + /// + [JsonPropertyName("PrefetchNotFinishedInTime")] + PrefetchNotFinishedInTime, + /// + /// PrefetchNotStarted + /// + [JsonPropertyName("PrefetchNotStarted")] + PrefetchNotStarted, + /// + /// PrefetchNotUsedCookiesChanged + /// + [JsonPropertyName("PrefetchNotUsedCookiesChanged")] + PrefetchNotUsedCookiesChanged, + /// + /// PrefetchProxyNotAvailable + /// + [JsonPropertyName("PrefetchProxyNotAvailable")] + PrefetchProxyNotAvailable, + /// + /// PrefetchResponseUsed + /// + [JsonPropertyName("PrefetchResponseUsed")] + PrefetchResponseUsed, + /// + /// PrefetchSuccessfulButNotUsed + /// + [JsonPropertyName("PrefetchSuccessfulButNotUsed")] + PrefetchSuccessfulButNotUsed, + /// + /// PrefetchNotUsedProbeFailed + /// + [JsonPropertyName("PrefetchNotUsedProbeFailed")] + PrefetchNotUsedProbeFailed + } + /// /// Upsert. Currently, it is only emitted when a rule set added. /// @@ -26716,11 +26961,33 @@ public string DisallowedApiMethod public class PreloadEnabledStateUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { /// - /// State + /// DisabledByPreference /// [JsonInclude] - [JsonPropertyName("state")] - public CefSharp.DevTools.Preload.PreloadEnabledState State + [JsonPropertyName("disabledByPreference")] + public bool DisabledByPreference + { + get; + private set; + } + + /// + /// DisabledByDataSaver + /// + [JsonInclude] + [JsonPropertyName("disabledByDataSaver")] + public bool DisabledByDataSaver + { + get; + private set; + } + + /// + /// DisabledByBatterySaver + /// + [JsonInclude] + [JsonPropertyName("disabledByBatterySaver")] + public bool DisabledByBatterySaver { get; private set; @@ -26778,6 +27045,17 @@ public CefSharp.DevTools.Preload.PreloadingStatus Status get; private set; } + + /// + /// PrefetchStatus + /// + [JsonInclude] + [JsonPropertyName("prefetchStatus")] + public CefSharp.DevTools.Preload.PrefetchStatus PrefetchStatus + { + get; + private set; + } } /// @@ -26798,35 +27076,22 @@ public CefSharp.DevTools.Preload.PreloadingAttemptKey Key } /// - /// The frame id of the frame initiating prerender. - /// - [JsonInclude] - [JsonPropertyName("initiatingFrameId")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrerenderingUrl + /// Status /// [JsonInclude] - [JsonPropertyName("prerenderingUrl")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PrerenderingUrl + [JsonPropertyName("status")] + public CefSharp.DevTools.Preload.PreloadingStatus Status { get; private set; } /// - /// Status + /// PrerenderStatus /// [JsonInclude] - [JsonPropertyName("status")] - public CefSharp.DevTools.Preload.PreloadingStatus Status + [JsonPropertyName("prerenderStatus")] + public CefSharp.DevTools.Preload.PrerenderFinalStatus? PrerenderStatus { get; private set; @@ -26884,6 +27149,23 @@ public enum LoginState SignUp } + /// + /// Whether the dialog shown is an account chooser or an auto re-authentication dialog. + /// + public enum DialogType + { + /// + /// AccountChooser + /// + [JsonPropertyName("AccountChooser")] + AccountChooser, + /// + /// AutoReauthn + /// + [JsonPropertyName("AutoReauthn")] + AutoReauthn + } + /// /// Corresponds to IdentityRequestAccount /// @@ -27014,6 +27296,17 @@ public string DialogId private set; } + /// + /// DialogType + /// + [JsonInclude] + [JsonPropertyName("dialogType")] + public CefSharp.DevTools.FedCm.DialogType DialogType + { + get; + private set; + } + /// /// Accounts /// @@ -28805,9 +29098,58 @@ public System.Collections.Generic.IList - /// WebDriverValueType + /// SerializationOptionsSerialization + /// + public enum SerializationOptionsSerialization + { + /// + /// deep + /// + [JsonPropertyName("deep")] + Deep, + /// + /// json + /// + [JsonPropertyName("json")] + Json, + /// + /// idOnly + /// + [JsonPropertyName("idOnly")] + IdOnly + } + + /// + /// Represents options for serialization. Overrides `generatePreview`, `returnByValue` and + /// `generateWebDriverValue`. + /// + public partial class SerializationOptions : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Serialization + /// + [JsonPropertyName("serialization")] + public CefSharp.DevTools.Runtime.SerializationOptionsSerialization Serialization + { + get; + set; + } + + /// + /// Deep serialization depth. Default is full depth. Respected only in `deep` serialization mode. + /// + [JsonPropertyName("maxDepth")] + public int? MaxDepth + { + get; + set; + } + } + + /// + /// DeepSerializedValueType /// - public enum WebDriverValueType + public enum DeepSerializedValueType { /// /// undefined @@ -28927,16 +29269,15 @@ public enum WebDriverValueType } /// - /// Represents the value serialiazed by the WebDriver BiDi specification - /// https://w3c.github.io/webdriver-bidi. + /// Represents deep serialized value. /// - public partial class WebDriverValue : CefSharp.DevTools.DevToolsDomainEntityBase + public partial class DeepSerializedValue : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Type /// [JsonPropertyName("type")] - public CefSharp.DevTools.Runtime.WebDriverValueType Type + public CefSharp.DevTools.Runtime.DeepSerializedValueType Type { get; set; @@ -28961,6 +29302,18 @@ public string ObjectId get; set; } + + /// + /// Set if value reference met more then once during serialization. In such + /// case, value is provided only to one of the serialized values. Unique + /// per value in the scope of one CDP call. + /// + [JsonPropertyName("weakLocalObjectReference")] + public int? WeakLocalObjectReference + { + get; + set; + } } /// @@ -29183,10 +29536,20 @@ public string Description } /// - /// WebDriver BiDi representation of the value. + /// Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value. /// [JsonPropertyName("webDriverValue")] - public CefSharp.DevTools.Runtime.WebDriverValue WebDriverValue + public CefSharp.DevTools.Runtime.DeepSerializedValue WebDriverValue + { + get; + set; + } + + /// + /// Deep serialized value. + /// + [JsonPropertyName("deepSerializedValue")] + public CefSharp.DevTools.Runtime.DeepSerializedValue DeepSerializedValue { get; set; @@ -31280,6 +31643,26 @@ public int EncodedSize } } +namespace CefSharp.DevTools.Audits +{ + /// + /// CheckFormsIssuesResponse + /// + public class CheckFormsIssuesResponse : DevToolsDomainResponseBase + { + /// + /// formIssues + /// + [JsonInclude] + [JsonPropertyName("formIssues")] + public System.Collections.Generic.IList FormIssues + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Audits { using System.Linq; @@ -31405,6 +31788,61 @@ public System.Threading.Tasks.Task CheckContrastAsync(bo return _client.ExecuteDevToolsMethodAsync("Audits.checkContrast", dict); } + + /// + /// Runs the form issues check for the target page. Found issues are reported + /// using Audits.issueAdded event. + /// + /// returns System.Threading.Tasks.Task<CheckFormsIssuesResponse> + public System.Threading.Tasks.Task CheckFormsIssuesAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Audits.checkFormsIssues", dict); + } + } +} + +namespace CefSharp.DevTools.Autofill +{ + using System.Linq; + + /// + /// Defines commands and events for Autofill. + /// + public partial class AutofillClient : DevToolsDomainBase + { + private CefSharp.DevTools.IDevToolsClient _client; + /// + /// Autofill + /// + /// DevToolsClient + public AutofillClient(CefSharp.DevTools.IDevToolsClient client) + { + _client = (client); + } + + partial void ValidateTrigger(int fieldId, CefSharp.DevTools.Autofill.CreditCard card, string frameId = null); + /// + /// Trigger autofill on a form identified by the fieldId. + /// If the field and related form cannot be autofilled, returns an error. + /// + /// Identifies a field that serves as an anchor for autofill. + /// Credit card information to fill out the form. Credit card data is not saved. + /// Identifies the frame that field belongs to. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task TriggerAsync(int fieldId, CefSharp.DevTools.Autofill.CreditCard card, string frameId = null) + { + ValidateTrigger(fieldId, card, frameId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("fieldId", fieldId); + dict.Add("card", card.ToDictionary()); + if (!(string.IsNullOrEmpty(frameId))) + { + dict.Add("frameId", frameId); + } + + return _client.ExecuteDevToolsMethodAsync("Autofill.trigger", dict); + } } } @@ -32079,6 +32517,21 @@ public System.Threading.Tasks.Task ExecuteBrowserCommand dict.Add("commandId", EnumToString(commandId)); return _client.ExecuteDevToolsMethodAsync("Browser.executeBrowserCommand", dict); } + + partial void ValidateAddPrivacySandboxEnrollmentOverride(string url); + /// + /// Allows a site to use privacy sandbox features that require enrollment + /// without the site actually being enrolled. Only supported on page targets. + /// + /// url + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task AddPrivacySandboxEnrollmentOverrideAsync(string url) + { + ValidateAddPrivacySandboxEnrollmentOverride(url); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("url", url); + return _client.ExecuteDevToolsMethodAsync("Browser.addPrivacySandboxEnrollmentOverride", dict); + } } } @@ -33312,16 +33765,17 @@ public System.Threading.Tasks.Task DeleteEntryAsync(stri return _client.ExecuteDevToolsMethodAsync("CacheStorage.deleteEntry", dict); } - partial void ValidateRequestCacheNames(string securityOrigin = null, string storageKey = null); + partial void ValidateRequestCacheNames(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests cache names. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestCacheNamesResponse> - public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task RequestCacheNamesAsync(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateRequestCacheNames(securityOrigin, storageKey); + ValidateRequestCacheNames(securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(securityOrigin))) { @@ -33333,6 +33787,11 @@ public System.Threading.Tasks.Task RequestCacheNamesA dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("CacheStorage.requestCacheNames", dict); } @@ -37092,18 +37551,19 @@ public IndexedDBClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } - partial void ValidateClearObjectStore(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); + partial void ValidateClearObjectStore(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Clears all entries from an object store. /// /// Database name. /// Object store name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ClearObjectStoreAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task ClearObjectStoreAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateClearObjectStore(databaseName, objectStoreName, securityOrigin, storageKey); + ValidateClearObjectStore(databaseName, objectStoreName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -37117,20 +37577,26 @@ public System.Threading.Tasks.Task ClearObjectStoreAsync dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.clearObjectStore", dict); } - partial void ValidateDeleteDatabase(string databaseName, string securityOrigin = null, string storageKey = null); + partial void ValidateDeleteDatabase(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Deletes a database. /// /// Database name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task DeleteDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateDeleteDatabase(databaseName, securityOrigin, storageKey); + ValidateDeleteDatabase(databaseName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) @@ -37143,22 +37609,28 @@ public System.Threading.Tasks.Task DeleteDatabaseAsync(s dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteDatabase", dict); } - partial void ValidateDeleteObjectStoreEntries(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null); + partial void ValidateDeleteObjectStoreEntries(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Delete a range of entries from an object store /// /// databaseName /// objectStoreName /// Range of entry keys to delete - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task DeleteObjectStoreEntriesAsync(string databaseName, string objectStoreName, CefSharp.DevTools.IndexedDB.KeyRange keyRange, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateDeleteObjectStoreEntries(databaseName, objectStoreName, keyRange, securityOrigin, storageKey); + ValidateDeleteObjectStoreEntries(databaseName, objectStoreName, keyRange, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -37173,6 +37645,11 @@ public System.Threading.Tasks.Task DeleteObjectStoreEntr dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.deleteObjectStoreEntries", dict); } @@ -37196,7 +37673,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("IndexedDB.enable", dict); } - partial void ValidateRequestData(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); + partial void ValidateRequestData(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null); /// /// Requests data from object store or index. /// @@ -37205,13 +37682,14 @@ public System.Threading.Tasks.Task EnableAsync() /// Index name, empty string for object store data requests. /// Number of records to skip. /// Number of records to fetch. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// Key range. /// returns System.Threading.Tasks.Task<RequestDataResponse> - public System.Threading.Tasks.Task RequestDataAsync(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) + public System.Threading.Tasks.Task RequestDataAsync(string databaseName, string objectStoreName, string indexName, int skipCount, int pageSize, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null, CefSharp.DevTools.IndexedDB.KeyRange keyRange = null) { - ValidateRequestData(databaseName, objectStoreName, indexName, skipCount, pageSize, securityOrigin, storageKey, keyRange); + ValidateRequestData(databaseName, objectStoreName, indexName, skipCount, pageSize, securityOrigin, storageKey, storageBucket, keyRange); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -37228,6 +37706,11 @@ public System.Threading.Tasks.Task RequestDataAsync(string dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + if ((keyRange) != (null)) { dict.Add("keyRange", keyRange.ToDictionary()); @@ -37236,18 +37719,19 @@ public System.Threading.Tasks.Task RequestDataAsync(string return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestData", dict); } - partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null); + partial void ValidateGetMetadata(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Gets metadata of an object store. /// /// Database name. /// Object store name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<GetMetadataResponse> - public System.Threading.Tasks.Task GetMetadataAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task GetMetadataAsync(string databaseName, string objectStoreName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateGetMetadata(databaseName, objectStoreName, securityOrigin, storageKey); + ValidateGetMetadata(databaseName, objectStoreName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); dict.Add("objectStoreName", objectStoreName); @@ -37261,20 +37745,26 @@ public System.Threading.Tasks.Task GetMetadataAsync(string dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.getMetadata", dict); } - partial void ValidateRequestDatabase(string databaseName, string securityOrigin = null, string storageKey = null); + partial void ValidateRequestDatabase(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests database with given name in given frame. /// /// Database name. - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestDatabaseResponse> - public System.Threading.Tasks.Task RequestDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task RequestDatabaseAsync(string databaseName, string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateRequestDatabase(databaseName, securityOrigin, storageKey); + ValidateRequestDatabase(databaseName, securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); dict.Add("databaseName", databaseName); if (!(string.IsNullOrEmpty(securityOrigin))) @@ -37287,19 +37777,25 @@ public System.Threading.Tasks.Task RequestDatabaseAsync dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabase", dict); } - partial void ValidateRequestDatabaseNames(string securityOrigin = null, string storageKey = null); + partial void ValidateRequestDatabaseNames(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null); /// /// Requests database names for given security origin. /// - /// At least and at most one of securityOrigin, storageKey must be specified.Security origin. + /// At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.Security origin. /// Storage key. + /// Storage bucket. If not specified, it uses the default bucket. /// returns System.Threading.Tasks.Task<RequestDatabaseNamesResponse> - public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin = null, string storageKey = null) + public System.Threading.Tasks.Task RequestDatabaseNamesAsync(string securityOrigin = null, string storageKey = null, CefSharp.DevTools.Storage.StorageBucket storageBucket = null) { - ValidateRequestDatabaseNames(securityOrigin, storageKey); + ValidateRequestDatabaseNames(securityOrigin, storageKey, storageBucket); var dict = new System.Collections.Generic.Dictionary(); if (!(string.IsNullOrEmpty(securityOrigin))) { @@ -37311,6 +37807,11 @@ public System.Threading.Tasks.Task RequestDatabase dict.Add("storageKey", storageKey); } + if ((storageBucket) != (null)) + { + dict.Add("storageBucket", storageBucket.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("IndexedDB.requestDatabaseNames", dict); } } @@ -43771,19 +44272,17 @@ public System.Threading.Tasks.Task SetStorageBucketTrack return _client.ExecuteDevToolsMethodAsync("Storage.setStorageBucketTracking", dict); } - partial void ValidateDeleteStorageBucket(string storageKey, string bucketName); + partial void ValidateDeleteStorageBucket(CefSharp.DevTools.Storage.StorageBucket bucket); /// /// Deletes the Storage Bucket with the given storage key and bucket name. /// - /// storageKey - /// bucketName + /// bucket /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DeleteStorageBucketAsync(string storageKey, string bucketName) + public System.Threading.Tasks.Task DeleteStorageBucketAsync(CefSharp.DevTools.Storage.StorageBucket bucket) { - ValidateDeleteStorageBucket(storageKey, bucketName); + ValidateDeleteStorageBucket(bucket); var dict = new System.Collections.Generic.Dictionary(); - dict.Add("storageKey", storageKey); - dict.Add("bucketName", bucketName); + dict.Add("bucket", bucket.ToDictionary()); return _client.ExecuteDevToolsMethodAsync("Storage.deleteStorageBucket", dict); } @@ -48751,7 +49250,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -48760,7 +49259,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Identifier of the object to call function on. Either objectId or executionContextId shouldbe specified. /// Call arguments. All call arguments must belong to the same JavaScript world as the targetobject. /// In silent mode exceptions thrown during evaluation are not reported and do not pauseexecution. Overrides `setPauseOnException` state. - /// Whether the result is expected to be a JSON object which should be sent by value. + /// Whether the result is expected to be a JSON object which should be sent by value.Can be overriden by `serializationOptions`. /// Whether preview should be generated for the result. /// Whether execution should be treated as initiated by user in the UI. /// Whether execution should `await` for resulting value and return once awaited promise isresolved. @@ -48768,11 +49267,12 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. - /// Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. + /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. + /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -48835,6 +49335,11 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("generateWebDriverValue", generateWebDriverValue.Value); } + if ((serializationOptions) != (null)) + { + dict.Add("serializationOptions", serializationOptions.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.callFunctionOn", dict); } @@ -48894,7 +49399,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null); + partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Evaluates expression on global object. /// @@ -48913,11 +49418,12 @@ public System.Threading.Tasks.Task EnableAsync() /// Setting this flag to true enables `let` re-declaration and top-level `await`.Note that `let` variables can only be re-declared if they originate from`replMode` themselves. /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. - /// Whether the result should be serialized according to https://w3c.github.io/webdriver-bidi. + /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. + /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null) + public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue); + ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("expression", expression); if (!(string.IsNullOrEmpty(objectGroup))) @@ -48995,6 +49501,11 @@ public System.Threading.Tasks.Task EvaluateAsync(string expres dict.Add("generateWebDriverValue", generateWebDriverValue.Value); } + if ((serializationOptions) != (null)) + { + dict.Add("serializationOptions", serializationOptions.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("Runtime.evaluate", dict); } @@ -49367,6 +49878,23 @@ public CefSharp.DevTools.Audits.AuditsClient Audits } } + private CefSharp.DevTools.Autofill.AutofillClient _Autofill; + /// + /// Defines commands and events for Autofill. + /// + public CefSharp.DevTools.Autofill.AutofillClient Autofill + { + get + { + if ((_Autofill) == (null)) + { + _Autofill = (new CefSharp.DevTools.Autofill.AutofillClient(this)); + } + + return _Autofill; + } + } + private CefSharp.DevTools.BackgroundService.BackgroundServiceClient _BackgroundService; /// /// Defines events for background web platform features. From 960c515df119bd2d94b5e61096ab0a4fc99f4eda Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 31 Jul 2023 19:38:20 +1000 Subject: [PATCH 278/543] Test - Remove diagnostic orderer --- CefSharp.Test/Properties/AssemblyInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.Test/Properties/AssemblyInfo.cs b/CefSharp.Test/Properties/AssemblyInfo.cs index 4d3495199..7948f084c 100644 --- a/CefSharp.Test/Properties/AssemblyInfo.cs +++ b/CefSharp.Test/Properties/AssemblyInfo.cs @@ -19,4 +19,4 @@ [assembly: CLSCompliant(AssemblyInfo.ClsCompliant)] [assembly: CollectionBehavior(DisableTestParallelization = true, MaxParallelThreads = 1)] -[assembly: TestCaseOrderer("CefSharp.Test.CefSharpTestCaseOrderer", "CefSharp.Test")] +//[assembly: TestCaseOrderer("CefSharp.Test.CefSharpTestCaseOrderer", "CefSharp.Test")] From c26c69a61e1b903b106907b99c878d3bf8de7965 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 1 Aug 2023 05:45:43 +1000 Subject: [PATCH 279/543] Net Core - Update Ref assembly #4518 --- .../CefSharp.Core.Runtime.netcore.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index 812e7ff1e..c60c816bf 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -123,7 +123,6 @@ public CefSettingsBase() { } public int UncaughtExceptionStackSize { get { throw null; } set { } } public string UserAgent { get { throw null; } set { } } public string UserAgentProduct { get { throw null; } set { } } - public string UserDataPath { get { throw null; } set { } } public bool WindowlessRenderingEnabled { get { throw null; } set { } } public void Dispose() { } protected void Dispose(bool A_0) { } From 8d5790eaafd2c48f016cd9e8e87a72ac83c77416 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 1 Aug 2023 05:46:10 +1000 Subject: [PATCH 280/543] Test - ShouldWorkWhenLoadingRequestWithPostData add extra logging --- CefSharp.Test/OffScreen/OffScreenBrowserTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CefSharp.Test/OffScreen/OffScreenBrowserTests.cs b/CefSharp.Test/OffScreen/OffScreenBrowserTests.cs index 93df75d5b..3766ac206 100644 --- a/CefSharp.Test/OffScreen/OffScreenBrowserTests.cs +++ b/CefSharp.Test/OffScreen/OffScreenBrowserTests.cs @@ -57,7 +57,7 @@ public async Task ShouldWorkWhenLoadingRequestWithPostData(string url) { var response = await browser.WaitForInitialLoadAsync(); - Assert.True(response.Success); + Assert.True(response.Success, $"Initial Load Error Code: {response.ErrorCode.ToString()} Http Status Code: {response.HttpStatusCode}"); var request = new Request { @@ -80,7 +80,7 @@ public async Task ShouldWorkWhenLoadingRequestWithPostData(string url) var navEntry = await browser.GetVisibleNavigationEntryAsync(); Assert.Equal((int)HttpStatusCode.OK, navEntry.HttpStatusCode); - Assert.True(navEntry.HasPostData); + Assert.True(navEntry.HasPostData, "Has PostData"); var source = await browser.GetTextAsync(); From ab078cfa837f2d5b319d46fd324c9ca7404e1c6d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 1 Aug 2023 06:30:35 +1000 Subject: [PATCH 281/543] README.md - Update in preparation of M115 release --- .github/ISSUE_TEMPLATE/bug_report.yml | 6 +++--- CONTRIBUTING.md | 6 +++--- README.md | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 1ce6e7a01..5969d33c4 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -21,8 +21,8 @@ body: id: cefsharp-version attributes: label: CefSharp Version - description: What version are you using? Please only open an issue if you can reproduce the problem with version 112.3.0 or later. - placeholder: 112.3.0 + description: What version are you using? Please only open an issue if you can reproduce the problem with version 114.2.120 or later. + placeholder: 114.2.120 validations: required: true - type: dropdown @@ -120,7 +120,7 @@ body: attributes: value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. - 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windowsarm64_client.tar.bz2). + 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windowsarm64_client.tar.bz2). 2. Extract tar.bz2 file 3. Execute cefclient.exe using the **command line args below**: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5c427fe07..0085b4099 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_112.3.0%2Bgb09c4ca%2Bchromium-112.0.5615.165_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 6dc208e10..6203966c3 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,10 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5615 | 2019* | 4.6.2** | Development | -| [cefsharp/113](https://github.com/cefsharp/CefSharp/tree/cefsharp/113)| 5615 | 2019* | 4.5.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5790 | 2019* | 4.6.2** | Development | +| [cefsharp/115](https://github.com/cefsharp/CefSharp/tree/cefsharp/115)| 5790 | 2019* | 4.6.2** | **Release** | +| [cefsharp/114](https://github.com/cefsharp/CefSharp/tree/cefsharp/114)| 5735 | 2019* | 4.5.2** | Unsupported | +| [cefsharp/113](https://github.com/cefsharp/CefSharp/tree/cefsharp/113)| 5615 | 2019* | 4.5.2** | Unsupported | | [cefsharp/112](https://github.com/cefsharp/CefSharp/tree/cefsharp/112)| 5615 | 2019* | 4.5.2** | Unsupported | | [cefsharp/111](https://github.com/cefsharp/CefSharp/tree/cefsharp/111)| 5563 | 2019* | 4.5.2** | Unsupported | | [cefsharp/110](https://github.com/cefsharp/CefSharp/tree/cefsharp/110)| 5481 | 2019* | 4.5.2** | Unsupported | From 124a7822090d8c52bbffc06b2f576c3b04fbddd8 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 3 Aug 2023 06:02:48 +1000 Subject: [PATCH 282/543] Update some 4.5.2 references to 4.6.2 Issue #4433 --- .vsconfig | 2 +- CefSharp.shfbproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vsconfig b/.vsconfig index 8dff97930..52754163d 100644 --- a/.vsconfig +++ b/.vsconfig @@ -10,7 +10,7 @@ "Microsoft.Net.ComponentGroup.DevelopmentPrerequisites", "Microsoft.Component.MSBuild", "Microsoft.VisualStudio.Component.ManagedDesktop.Core", - "Microsoft.Net.Component.4.5.2.TargetingPack", + "Microsoft.Net.Component.4.6.2.TargetingPack", "Microsoft.VisualStudio.Component.IntelliCode", "Microsoft.Net.ComponentGroup.TargetingPacks.Common", "Microsoft.VisualStudio.Component.Debugger.JustInTime", diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index e98addc53..c1d8fec4a 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -13,7 +13,7 @@ Documentation Documentation - .NET Framework 4.5.2 + .NET Framework 4.6.2 .\Help\ Documentation en-US From d9ca0513a386a2e7655a9d5bbbc8c988da92e20f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 3 Aug 2023 06:08:00 +1000 Subject: [PATCH 283/543] Revert "Don't check for presence of "d3dcompiler_47.dll" when running as ARM64, because that file isn't present in the CEF Redist for this architecture. (#3841)" This reverts commit 0812ea938ab8525e9b9d4ec3066b15ff935813fc. Resolves https://github.com/cefsharp/CefSharp/issues/4515 --- CefSharp/DependencyChecker.cs | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/CefSharp/DependencyChecker.cs b/CefSharp/DependencyChecker.cs index 79475ac79..25e8c09d8 100644 --- a/CefSharp/DependencyChecker.cs +++ b/CefSharp/DependencyChecker.cs @@ -5,13 +5,7 @@ using System; using System.Collections.Generic; using System.IO; -#if NETCOREAPP -using System.Linq; -#endif using System.Reflection; -#if NETCOREAPP -using System.Runtime.InteropServices; -#endif using System.Text; namespace CefSharp @@ -27,11 +21,6 @@ public static class DependencyChecker /// public const string LocalesPackFile = @"locales\en-US.pak"; - /// - /// File name of the Direct3D Compiler DLL. - /// - private const string D3DCompilerDll = "d3dcompiler_47.dll"; - /// /// List of Cef Dependencies /// @@ -71,8 +60,7 @@ public static class DependencyChecker // Note: Without these components HTML5 accelerated content like 2D canvas, 3D CSS and WebGL will not function. "libEGL.dll", "libGLESv2.dll", - // The D3D Compiler isn't included in the win-arm64 redist; we remove it in the static constructor. - D3DCompilerDll, + "d3dcompiler_47.dll", //Crashpad support "chrome_elf.dll" }; @@ -111,17 +99,6 @@ public static class DependencyChecker #endif }; -#if NETCOREAPP - static DependencyChecker() - { - // win-arm64 doesn't ship with a copy of the D3D Compiler, it's included with the OS. - if (RuntimeInformation.ProcessArchitecture is Architecture.Arm64) - { - CefOptionalDependencies = CefOptionalDependencies.Where(x => x != D3DCompilerDll).ToArray(); - } - } -#endif - /// /// CheckDependencies iterates through the list of Cef and CefSharp dependencines /// relative to the path provided and returns a list of missing ones From f75b991898ca0f1602a62e406f451c0675dd70e6 Mon Sep 17 00:00:00 2001 From: developersthinksmartbox Date: Thu, 3 Aug 2023 21:24:59 +0100 Subject: [PATCH 284/543] NetCore - Generate Reference Assemblies building with VS2022 (#4559) * Ensure reference assemblies are copied to output folders The .NET 6.0 SDK introduced a breaking change meaning that reference assemblies are no longer automatically copied from the intermediate build directory to the output directory. An additional MsBuild property is now required. * Specify VS2022 for reference assembly copy condition --------- Co-authored-by: Bernard Mason --- CefSharp.Core/CefSharp.Core.netcore.csproj | 1 + CefSharp.OffScreen/CefSharp.OffScreen.netcore.csproj | 1 + CefSharp.WinForms/CefSharp.WinForms.netcore.csproj | 1 + CefSharp.Wpf/CefSharp.Wpf.netcore.csproj | 1 + CefSharp/CefSharp.netcore.csproj | 1 + 5 files changed, 5 insertions(+) diff --git a/CefSharp.Core/CefSharp.Core.netcore.csproj b/CefSharp.Core/CefSharp.Core.netcore.csproj index e3e11764f..6b470f4e5 100644 --- a/CefSharp.Core/CefSharp.Core.netcore.csproj +++ b/CefSharp.Core/CefSharp.Core.netcore.csproj @@ -24,6 +24,7 @@ true + true True embedded diff --git a/CefSharp.OffScreen/CefSharp.OffScreen.netcore.csproj b/CefSharp.OffScreen/CefSharp.OffScreen.netcore.csproj index 3d166dd0d..d3287d161 100644 --- a/CefSharp.OffScreen/CefSharp.OffScreen.netcore.csproj +++ b/CefSharp.OffScreen/CefSharp.OffScreen.netcore.csproj @@ -24,6 +24,7 @@ true + true True embedded diff --git a/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj b/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj index c300cebd5..b01dfd882 100644 --- a/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj +++ b/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj @@ -25,6 +25,7 @@ true + true True embedded diff --git a/CefSharp.Wpf/CefSharp.Wpf.netcore.csproj b/CefSharp.Wpf/CefSharp.Wpf.netcore.csproj index 0cd3a1056..1ec37c76c 100644 --- a/CefSharp.Wpf/CefSharp.Wpf.netcore.csproj +++ b/CefSharp.Wpf/CefSharp.Wpf.netcore.csproj @@ -25,6 +25,7 @@ true + true True embedded diff --git a/CefSharp/CefSharp.netcore.csproj b/CefSharp/CefSharp.netcore.csproj index e898cdf74..418f4dd32 100644 --- a/CefSharp/CefSharp.netcore.csproj +++ b/CefSharp/CefSharp.netcore.csproj @@ -22,6 +22,7 @@ true + true True embedded From 4d27210cf1f0740e8e6ca64b13f043f2f9547f26 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Wed, 9 Aug 2023 18:51:23 +1000 Subject: [PATCH 285/543] Upgrade to 115.3.13+g749b4d4+chromium-115.0.5790.171 / Chromium 115.0.5790.171 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 510a72224..42491a6ea 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index a564c561f..7bfe3696a 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 6d6048f20..7f80881eb 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 115,3,110 - PRODUCTVERSION 115,3,110 + FILEVERSION 115,3,130 + PRODUCTVERSION 115,3,130 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "115.3.110" + VALUE "FileVersion", "115.3.130" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "115.3.110" + VALUE "ProductVersion", "115.3.130" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index b95967401..c81c62c47 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index a22a90b04..c662b67e7 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index afcd9abd4..19c1fe778 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index d5097252f..fc547be10 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index c87c03f5f..08cc1cf31 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 5cc64942f..284b136e6 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 115,3,110 - PRODUCTVERSION 115,3,110 + FILEVERSION 115,3,130 + PRODUCTVERSION 115,3,130 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "115.3.110" + VALUE "FileVersion", "115.3.130" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "115.3.110" + VALUE "ProductVersion", "115.3.130" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index b95967401..c81c62c47 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index a22a90b04..c662b67e7 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 360e684ab..d8a28fdb3 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 5b509f244..f69c47b91 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index f932dad86..fad5a5cd7 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index ce096c3d8..ed00bd603 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 7b675820b..eb0a17b7f 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 0fd359cd7..f83529a4c 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index e98370280..ed073d280 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index f447bf10b..e1b5ece04 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index fb419f444..5750c2d6f 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 06782adcb..78bfea081 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 5f67f40be..357611fca 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index c1d8fec4a..0693ed994 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 115.3.110 + 115.3.130 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 115.3.110 + Version 115.3.130 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index df79daf2a..815931c0b 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "115.3.110"; - public const string AssemblyFileVersion = "115.3.110.0"; + public const string AssemblyVersion = "115.3.130"; + public const string AssemblyFileVersion = "115.3.130.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 881fe1df3..1196a3a18 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index d697ec74a..469dd7f2e 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 754617bf4..4635841cf 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index d0ef1ab9b..5a7dba70b 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "115.3.11", + [string] $CefVersion = "115.3.13", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 06958072c..4397dd7cc 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 115.3.110-CI{build} +version: 115.3.130-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index c3c46790f..fbfbd12d2 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "115.3.110", + [string] $Version = "115.3.130", [Parameter(Position = 2)] - [string] $AssemblyVersion = "115.3.110", + [string] $AssemblyVersion = "115.3.130", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 5bf2303591ee17c6bb50fae67a48f7ca61fb7084 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 17 Aug 2023 06:03:07 +1000 Subject: [PATCH 286/543] Upgrade to 116.0.11+g31fb97a+chromium-116.0.5845.82 / Chromium 116.0.5845.82 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 42491a6ea..d53ba65d1 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 7bfe3696a..4a760add0 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 7f80881eb..9388c1206 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 115,3,130 - PRODUCTVERSION 115,3,130 + FILEVERSION 116,0,110 + PRODUCTVERSION 116,0,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "115.3.130" + VALUE "FileVersion", "116.0.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "115.3.130" + VALUE "ProductVersion", "116.0.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index c81c62c47..c3ce88121 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index c662b67e7..8d838237c 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 19c1fe778..1287022c3 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index fc547be10..8549fa6a0 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 08cc1cf31..1d498ea6e 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 284b136e6..0f043b1f1 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 115,3,130 - PRODUCTVERSION 115,3,130 + FILEVERSION 116,0,110 + PRODUCTVERSION 116,0,110 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "115.3.130" + VALUE "FileVersion", "116.0.110" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "115.3.130" + VALUE "ProductVersion", "116.0.110" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index c81c62c47..c3ce88121 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index c662b67e7..8d838237c 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index d8a28fdb3..f67dab901 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index f69c47b91..6f017d561 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index fad5a5cd7..a6c95ac16 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index ed00bd603..58d65490c 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index eb0a17b7f..95105d293 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index f83529a4c..47092962a 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index ed073d280..35bd2fbc9 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index e1b5ece04..c0652d7ad 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 5750c2d6f..4a68c3aa1 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 78bfea081..ba9108f75 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 357611fca..65d00599a 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 0693ed994..5aa332d8f 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 115.3.130 + 116.0.110 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 115.3.130 + Version 116.0.110 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 815931c0b..59d8bb158 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "115.3.130"; - public const string AssemblyFileVersion = "115.3.130.0"; + public const string AssemblyVersion = "116.0.110"; + public const string AssemblyFileVersion = "116.0.110.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 1196a3a18..fe30d7ce8 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 469dd7f2e..0e1a7e4e5 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 4635841cf..97f54abf6 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 5a7dba70b..7985cd980 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "115.3.13", + [string] $CefVersion = "116.0.11", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 4397dd7cc..53efe1022 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 115.3.130-CI{build} +version: 116.0.110-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index fbfbd12d2..42e13cbd3 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "115.3.130", + [string] $Version = "116.0.110", [Parameter(Position = 2)] - [string] $AssemblyVersion = "115.3.130", + [string] $AssemblyVersion = "116.0.110", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 1328732a4a7579136c1ce497d6c8217e6165a126 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 20 Aug 2023 05:41:20 +1000 Subject: [PATCH 287/543] Upgrade to 116.0.13+g557a56f+chromium-116.0.5845.97 / Chromium 116.0.5845.97 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index d53ba65d1..0b3ac73e0 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 4a760add0..13919d4eb 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 9388c1206..97fabd3c7 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 116,0,110 - PRODUCTVERSION 116,0,110 + FILEVERSION 116,0,130 + PRODUCTVERSION 116,0,130 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "116.0.110" + VALUE "FileVersion", "116.0.130" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "116.0.110" + VALUE "ProductVersion", "116.0.130" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index c3ce88121..9be36eba3 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 8d838237c..3481ddde2 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 1287022c3..c6031438f 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 8549fa6a0..5f87debc1 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 1d498ea6e..b516213c3 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 0f043b1f1..25fff71d0 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 116,0,110 - PRODUCTVERSION 116,0,110 + FILEVERSION 116,0,130 + PRODUCTVERSION 116,0,130 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "116.0.110" + VALUE "FileVersion", "116.0.130" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "116.0.110" + VALUE "ProductVersion", "116.0.130" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index c3ce88121..9be36eba3 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 8d838237c..3481ddde2 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index f67dab901..3f1a80c1a 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 6f017d561..b564d5947 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index a6c95ac16..f1826b554 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 58d65490c..3138e56ad 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 95105d293..350869078 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 47092962a..fe43817f3 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 35bd2fbc9..81b664ff4 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index c0652d7ad..55328b5b5 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 4a68c3aa1..6cf851177 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index ba9108f75..62b25f5f3 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 65d00599a..a85ec3e41 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 5aa332d8f..d877da4e3 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 116.0.110 + 116.0.130 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 116.0.110 + Version 116.0.130 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 59d8bb158..49f1f350a 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "116.0.110"; - public const string AssemblyFileVersion = "116.0.110.0"; + public const string AssemblyVersion = "116.0.130"; + public const string AssemblyFileVersion = "116.0.130.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index fe30d7ce8..4151e9db8 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 0e1a7e4e5..11e206704 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 97f54abf6..9554d6f1d 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 7985cd980..ca7623b3a 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "116.0.11", + [string] $CefVersion = "116.0.13", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 53efe1022..0e20f90d0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 116.0.110-CI{build} +version: 116.0.130-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 42e13cbd3..04ed3a885 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "116.0.110", + [string] $Version = "116.0.130", [Parameter(Position = 2)] - [string] $AssemblyVersion = "116.0.110", + [string] $AssemblyVersion = "116.0.130", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 65eef56c58e5bca395e8644ea2b851add6b24c5c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 20 Aug 2023 08:53:22 +1000 Subject: [PATCH 288/543] Add support for Synchronous Bindings when Self Hosting BrowserSubProcess Resolves #4562 --- .../BrowserSubprocessExecutable.h | 3 ++- .../WcfBrowserSubprocessExecutable.h | 18 ++++++++++++++++++ CefSharp.Core/BrowserSubprocess/SelfHost.cs | 5 +++-- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h b/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h index 7d624dc59..f4f9ca45b 100644 --- a/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h +++ b/CefSharp.BrowserSubprocess.Core/BrowserSubprocessExecutable.h @@ -28,12 +28,12 @@ namespace CefSharp } +#ifdef NETCOREAPP /// /// This function should be called from the application entry point function (typically Program.Main) /// to execute a secondary process e.g. gpu, renderer, utility /// This overload is specifically used for .Net Core. For hosting your own BrowserSubProcess /// it's preferable to use the Main method provided by this class. - /// - Obtains the command line args via a call to Environment::GetCommandLineArgs /// /// /// If called for the browser process (identified by no "type" command-line value) it will return immediately @@ -45,6 +45,7 @@ namespace CefSharp auto subProcess = gcnew BrowserSubprocessExecutable(); return subProcess->Main(args, nullptr); } +#endif /// /// This function should be called from the application entry point function (typically Program.Main) diff --git a/CefSharp.BrowserSubprocess.Core/WcfBrowserSubprocessExecutable.h b/CefSharp.BrowserSubprocess.Core/WcfBrowserSubprocessExecutable.h index 761e5344f..18291ddd4 100644 --- a/CefSharp.BrowserSubprocess.Core/WcfBrowserSubprocessExecutable.h +++ b/CefSharp.BrowserSubprocess.Core/WcfBrowserSubprocessExecutable.h @@ -31,6 +31,24 @@ namespace CefSharp { } + + /// + /// This function should be called from the application entry point function (typically Program.Main) + /// to execute a secondary process e.g. gpu, renderer, utility + /// This overload is specifically used for .Net 4.x. For hosting your own BrowserSubProcess + /// it's preferable to use the Main method provided by this class. + /// + /// + /// If called for the browser process (identified by no "type" command-line value) it will return immediately + /// with a value of -1. If called for a recognized secondary process it will block until the process should exit + /// and then return the process exit code. + /// ^ args) + { + auto subProcess = gcnew WcfBrowserSubprocessExecutable(); + return subProcess->Main(args, nullptr); + } + protected: SubProcess^ GetSubprocess(IEnumerable^ args, int parentProcessId, IRenderProcessHandler^ handler) override { diff --git a/CefSharp.Core/BrowserSubprocess/SelfHost.cs b/CefSharp.Core/BrowserSubprocess/SelfHost.cs index 76355bee0..f97c16eaf 100644 --- a/CefSharp.Core/BrowserSubprocess/SelfHost.cs +++ b/CefSharp.Core/BrowserSubprocess/SelfHost.cs @@ -77,12 +77,13 @@ public static int Main(string[] args) browserSubprocessDllPath = Path.Combine(Path.GetDirectoryName(typeof(CefSharp.Core.BrowserSettings).Assembly.Location), "CefSharp.BrowserSubprocess.Core.dll"); } var browserSubprocessDll = System.Runtime.Loader.AssemblyLoadContext.Default.LoadFromAssemblyPath(browserSubprocessDllPath); + var browserSubprocessExecutableType = browserSubprocessDll.GetType("CefSharp.BrowserSubprocess.BrowserSubprocessExecutable"); #else var browserSubprocessDllPath = Path.Combine(Path.GetDirectoryName(typeof(CefSharp.Core.BrowserSettings).Assembly.Location), "CefSharp.BrowserSubprocess.Core.dll"); var browserSubprocessDll = System.Reflection.Assembly.LoadFrom(browserSubprocessDllPath); - + var browserSubprocessExecutableType = browserSubprocessDll.GetType("CefSharp.BrowserSubprocess.WcfBrowserSubprocessExecutable"); #endif - var browserSubprocessExecutableType = browserSubprocessDll.GetType("CefSharp.BrowserSubprocess.BrowserSubprocessExecutable"); + var browserSubprocessExecutable = Activator.CreateInstance(browserSubprocessExecutableType); var mainMethod = browserSubprocessExecutableType.GetMethod("MainSelfHost", System.Reflection.BindingFlags.Static | System.Reflection.BindingFlags.Public); From c09f10092d39be4f785b572a97f8e854aa78cf7c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 21 Aug 2023 06:24:17 +1000 Subject: [PATCH 289/543] DevTools Client - Upgrade to 116.0.5845.97 --- .../DevTools/DevToolsClient.Generated.cs | 467 +++++++++++++++++- .../DevToolsClient.Generated.netcore.cs | 420 +++++++++++++++- 2 files changed, 847 insertions(+), 40 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 1b954e9f4..5484db5c4 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 115.0.5790.114 +// CHROMIUM VERSION 116.0.5845.97 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -3086,7 +3086,99 @@ public enum FederatedAuthRequestIssueReason /// SilentMediationFailure /// [EnumMember(Value = ("SilentMediationFailure"))] - SilentMediationFailure + SilentMediationFailure, + /// + /// ThirdPartyCookiesBlocked + /// + [EnumMember(Value = ("ThirdPartyCookiesBlocked"))] + ThirdPartyCookiesBlocked + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class FederatedAuthUserInfoRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FederatedAuthUserInfoRequestIssueReason + /// + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason FederatedAuthUserInfoRequestIssueReason + { + get + { + return (CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason), federatedAuthUserInfoRequestIssueReason)); + } + + set + { + this.federatedAuthUserInfoRequestIssueReason = (EnumToString(value)); + } + } + + /// + /// FederatedAuthUserInfoRequestIssueReason + /// + [DataMember(Name = ("federatedAuthUserInfoRequestIssueReason"), IsRequired = (true))] + internal string federatedAuthUserInfoRequestIssueReason + { + get; + set; + } + } + + /// + /// Represents the failure reason when a getUserInfo() call fails. + /// Should be updated alongside FederatedAuthUserInfoRequestResult in + /// third_party/blink/public/mojom/devtools/inspector_issue.mojom. + /// + public enum FederatedAuthUserInfoRequestIssueReason + { + /// + /// NotSameOrigin + /// + [EnumMember(Value = ("NotSameOrigin"))] + NotSameOrigin, + /// + /// NotIframe + /// + [EnumMember(Value = ("NotIframe"))] + NotIframe, + /// + /// NotPotentiallyTrustworthy + /// + [EnumMember(Value = ("NotPotentiallyTrustworthy"))] + NotPotentiallyTrustworthy, + /// + /// NoApiPermission + /// + [EnumMember(Value = ("NoApiPermission"))] + NoApiPermission, + /// + /// NotSignedInWithIdp + /// + [EnumMember(Value = ("NotSignedInWithIdp"))] + NotSignedInWithIdp, + /// + /// NoAccountSharingPermission + /// + [EnumMember(Value = ("NoAccountSharingPermission"))] + NoAccountSharingPermission, + /// + /// InvalidConfigOrWellKnown + /// + [EnumMember(Value = ("InvalidConfigOrWellKnown"))] + InvalidConfigOrWellKnown, + /// + /// InvalidAccountsResponse + /// + [EnumMember(Value = ("InvalidAccountsResponse"))] + InvalidAccountsResponse, + /// + /// NoReturningUserFromFetchedAccounts + /// + [EnumMember(Value = ("NoReturningUserFromFetchedAccounts"))] + NoReturningUserFromFetchedAccounts } /// @@ -3133,6 +3225,113 @@ internal string clientHintIssueReason } } + /// + /// FailedRequestInfo + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class FailedRequestInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The URL that failed to load. + /// + [DataMember(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + set; + } + + /// + /// The failure message for the failed request. + /// + [DataMember(Name = ("failureMessage"), IsRequired = (true))] + public string FailureMessage + { + get; + set; + } + + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (false))] + public string RequestId + { + get; + set; + } + } + + /// + /// StyleSheetLoadingIssueReason + /// + public enum StyleSheetLoadingIssueReason + { + /// + /// LateImportRule + /// + [EnumMember(Value = ("LateImportRule"))] + LateImportRule, + /// + /// RequestFailed + /// + [EnumMember(Value = ("RequestFailed"))] + RequestFailed + } + + /// + /// This issue warns when a referenced stylesheet couldn't be loaded. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class StylesheetLoadingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source code position that referenced the failing stylesheet. + /// + [DataMember(Name = ("sourceCodeLocation"), IsRequired = (true))] + public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation + { + get; + set; + } + + /// + /// Reason why the stylesheet couldn't be loaded. + /// + public CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason StyleSheetLoadingIssueReason + { + get + { + return (CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason), styleSheetLoadingIssueReason)); + } + + set + { + this.styleSheetLoadingIssueReason = (EnumToString(value)); + } + } + + /// + /// Reason why the stylesheet couldn't be loaded. + /// + [DataMember(Name = ("styleSheetLoadingIssueReason"), IsRequired = (true))] + internal string styleSheetLoadingIssueReason + { + get; + set; + } + + /// + /// Contains additional info when the failure was due to a request. + /// + [DataMember(Name = ("failedRequestInfo"), IsRequired = (false))] + public CefSharp.DevTools.Audits.FailedRequestInfo FailedRequestInfo + { + get; + set; + } + } + /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -3219,7 +3418,17 @@ public enum InspectorIssueCode /// BounceTrackingIssue /// [EnumMember(Value = ("BounceTrackingIssue"))] - BounceTrackingIssue + BounceTrackingIssue, + /// + /// StylesheetLoadingIssue + /// + [EnumMember(Value = ("StylesheetLoadingIssue"))] + StylesheetLoadingIssue, + /// + /// FederatedAuthUserInfoRequestIssue + /// + [EnumMember(Value = ("FederatedAuthUserInfoRequestIssue"))] + FederatedAuthUserInfoRequestIssue } /// @@ -3389,6 +3598,26 @@ public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDe get; set; } + + /// + /// StylesheetLoadingIssueDetails + /// + [DataMember(Name = ("stylesheetLoadingIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.StylesheetLoadingIssueDetails StylesheetLoadingIssueDetails + { + get; + set; + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + [DataMember(Name = ("federatedAuthUserInfoRequestIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueDetails FederatedAuthUserInfoRequestIssueDetails + { + get; + set; + } } /// @@ -3521,6 +3750,50 @@ public string Cvc set; } } + + /// + /// AddressField + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AddressField : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// address field name, for example GIVEN_NAME. + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// address field name, for example Jon Doe. + /// + [DataMember(Name = ("value"), IsRequired = (true))] + public string Value + { + get; + set; + } + } + + /// + /// Address + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class Address : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// fields and values defining a test address. + /// + [DataMember(Name = ("fields"), IsRequired = (true))] + public System.Collections.Generic.IList Fields + { + get; + set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -9610,7 +9883,7 @@ internal string format } /// - /// Compression quality from range [0..100] (jpeg only). + /// Compression quality from range [0..100] (jpeg and webp only). /// [DataMember(Name = ("quality"), IsRequired = (false))] public int? Quality @@ -11681,6 +11954,16 @@ public double PushEnd set; } + /// + /// Started receiving response headers. + /// + [DataMember(Name = ("receiveHeadersStart"), IsRequired = (true))] + public double ReceiveHeadersStart + { + get; + set; + } + /// /// Finished receiving response headers. /// @@ -14949,6 +15232,76 @@ public string ReportOnlyReportingEndpoint } } + /// + /// ContentSecurityPolicySource + /// + public enum ContentSecurityPolicySource + { + /// + /// HTTP + /// + [EnumMember(Value = ("HTTP"))] + HTTP, + /// + /// Meta + /// + [EnumMember(Value = ("Meta"))] + Meta + } + + /// + /// ContentSecurityPolicyStatus + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ContentSecurityPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// EffectiveDirectives + /// + [DataMember(Name = ("effectiveDirectives"), IsRequired = (true))] + public string EffectiveDirectives + { + get; + set; + } + + /// + /// IsEnforced + /// + [DataMember(Name = ("isEnforced"), IsRequired = (true))] + public bool IsEnforced + { + get; + set; + } + + /// + /// Source + /// + public CefSharp.DevTools.Network.ContentSecurityPolicySource Source + { + get + { + return (CefSharp.DevTools.Network.ContentSecurityPolicySource)(StringToEnum(typeof(CefSharp.DevTools.Network.ContentSecurityPolicySource), source)); + } + + set + { + this.source = (EnumToString(value)); + } + } + + /// + /// Source + /// + [DataMember(Name = ("source"), IsRequired = (true))] + internal string source + { + get; + set; + } + } + /// /// SecurityIsolationStatus /// @@ -14974,6 +15327,16 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep get; set; } + + /// + /// Csp + /// + [DataMember(Name = ("csp"), IsRequired = (false))] + public System.Collections.Generic.IList Csp + { + get; + set; + } } /// @@ -16568,6 +16931,11 @@ public enum TrustTokenOperationDoneStatus [EnumMember(Value = ("InvalidArgument"))] InvalidArgument, /// + /// MissingIssuerKeys + /// + [EnumMember(Value = ("MissingIssuerKeys"))] + MissingIssuerKeys, + /// /// FailedPrecondition /// [EnumMember(Value = ("FailedPrecondition"))] @@ -18344,11 +18712,6 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("ch-ua-mobile"))] ChUaMobile, /// - /// ch-ua-full - /// - [EnumMember(Value = ("ch-ua-full"))] - ChUaFull, - /// /// ch-ua-full-version /// [EnumMember(Value = ("ch-ua-full-version"))] @@ -18364,11 +18727,6 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("ch-ua-platform-version"))] ChUaPlatformVersion, /// - /// ch-ua-reduced - /// - [EnumMember(Value = ("ch-ua-reduced"))] - ChUaReduced, - /// /// ch-ua-wow64 /// [EnumMember(Value = ("ch-ua-wow64"))] @@ -20568,6 +20926,16 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("FencedFramesEmbedder"))] FencedFramesEmbedder, /// + /// CookieDisabled + /// + [EnumMember(Value = ("CookieDisabled"))] + CookieDisabled, + /// + /// HTTPAuthRequired + /// + [EnumMember(Value = ("HTTPAuthRequired"))] + HTTPAuthRequired, + /// /// WebSocket /// [EnumMember(Value = ("WebSocket"))] @@ -20793,10 +21161,25 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("Dummy"))] Dummy, /// - /// AuthorizationHeader + /// JsNetworkRequestReceivedCacheControlNoStoreResource /// - [EnumMember(Value = ("AuthorizationHeader"))] - AuthorizationHeader, + [EnumMember(Value = ("JsNetworkRequestReceivedCacheControlNoStoreResource"))] + JsNetworkRequestReceivedCacheControlNoStoreResource, + /// + /// WebRTCSticky + /// + [EnumMember(Value = ("WebRTCSticky"))] + WebRTCSticky, + /// + /// WebTransportSticky + /// + [EnumMember(Value = ("WebTransportSticky"))] + WebTransportSticky, + /// + /// WebSocketSticky + /// + [EnumMember(Value = ("WebSocketSticky"))] + WebSocketSticky, /// /// ContentSecurityHandler /// @@ -28541,7 +28924,17 @@ public enum PrerenderFinalStatus /// MemoryPressureAfterTriggered /// [EnumMember(Value = ("MemoryPressureAfterTriggered"))] - MemoryPressureAfterTriggered + MemoryPressureAfterTriggered, + /// + /// PrerenderingDisabledByDevTools + /// + [EnumMember(Value = ("PrerenderingDisabledByDevTools"))] + PrerenderingDisabledByDevTools, + /// + /// ResourceLoadBlockedByClient + /// + [EnumMember(Value = ("ResourceLoadBlockedByClient"))] + ResourceLoadBlockedByClient } /// @@ -34052,6 +34445,20 @@ public System.Threading.Tasks.Task TriggerAsync(int fiel return _client.ExecuteDevToolsMethodAsync("Autofill.trigger", dict); } + + partial void ValidateSetAddresses(System.Collections.Generic.IList addresses); + /// + /// Set addresses so that developers can verify their forms implementation. + /// + /// addresses + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAddressesAsync(System.Collections.Generic.IList addresses) + { + ValidateSetAddresses(addresses); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("addresses", addresses.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("Autofill.setAddresses", dict); + } } } @@ -46445,6 +46852,26 @@ public System.Threading.Tasks.Task SetInterceptFileChoos dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); } + + partial void ValidateSetPrerenderingAllowed(bool isAllowed); + /// + /// Enable/disable prerendering manually. + /// + /// This command is a short-term solution for https://crbug.com/1440085. + /// See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA + /// for more details. + /// + /// TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets. + /// + /// isAllowed + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetPrerenderingAllowedAsync(bool isAllowed) + { + ValidateSetPrerenderingAllowed(isAllowed); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("isAllowed", isAllowed); + return _client.ExecuteDevToolsMethodAsync("Page.setPrerenderingAllowed", dict); + } } } @@ -53444,7 +53871,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { @@ -53595,7 +54022,7 @@ public System.Threading.Tasks.Task EnableAsync() /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 6290b0731..76e6d71a5 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 115.0.5790.114 +// CHROMIUM VERSION 116.0.5845.97 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2790,7 +2790,82 @@ public enum FederatedAuthRequestIssueReason /// SilentMediationFailure /// [JsonPropertyName("SilentMediationFailure")] - SilentMediationFailure + SilentMediationFailure, + /// + /// ThirdPartyCookiesBlocked + /// + [JsonPropertyName("ThirdPartyCookiesBlocked")] + ThirdPartyCookiesBlocked + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + public partial class FederatedAuthUserInfoRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FederatedAuthUserInfoRequestIssueReason + /// + [JsonPropertyName("federatedAuthUserInfoRequestIssueReason")] + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason FederatedAuthUserInfoRequestIssueReason + { + get; + set; + } + } + + /// + /// Represents the failure reason when a getUserInfo() call fails. + /// Should be updated alongside FederatedAuthUserInfoRequestResult in + /// third_party/blink/public/mojom/devtools/inspector_issue.mojom. + /// + public enum FederatedAuthUserInfoRequestIssueReason + { + /// + /// NotSameOrigin + /// + [JsonPropertyName("NotSameOrigin")] + NotSameOrigin, + /// + /// NotIframe + /// + [JsonPropertyName("NotIframe")] + NotIframe, + /// + /// NotPotentiallyTrustworthy + /// + [JsonPropertyName("NotPotentiallyTrustworthy")] + NotPotentiallyTrustworthy, + /// + /// NoApiPermission + /// + [JsonPropertyName("NoApiPermission")] + NoApiPermission, + /// + /// NotSignedInWithIdp + /// + [JsonPropertyName("NotSignedInWithIdp")] + NotSignedInWithIdp, + /// + /// NoAccountSharingPermission + /// + [JsonPropertyName("NoAccountSharingPermission")] + NoAccountSharingPermission, + /// + /// InvalidConfigOrWellKnown + /// + [JsonPropertyName("InvalidConfigOrWellKnown")] + InvalidConfigOrWellKnown, + /// + /// InvalidAccountsResponse + /// + [JsonPropertyName("InvalidAccountsResponse")] + InvalidAccountsResponse, + /// + /// NoReturningUserFromFetchedAccounts + /// + [JsonPropertyName("NoReturningUserFromFetchedAccounts")] + NoReturningUserFromFetchedAccounts } /// @@ -2821,6 +2896,98 @@ public CefSharp.DevTools.Audits.ClientHintIssueReason ClientHintIssueReason } } + /// + /// FailedRequestInfo + /// + public partial class FailedRequestInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The URL that failed to load. + /// + [JsonPropertyName("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// The failure message for the failed request. + /// + [JsonPropertyName("failureMessage")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FailureMessage + { + get; + set; + } + + /// + /// RequestId + /// + [JsonPropertyName("requestId")] + public string RequestId + { + get; + set; + } + } + + /// + /// StyleSheetLoadingIssueReason + /// + public enum StyleSheetLoadingIssueReason + { + /// + /// LateImportRule + /// + [JsonPropertyName("LateImportRule")] + LateImportRule, + /// + /// RequestFailed + /// + [JsonPropertyName("RequestFailed")] + RequestFailed + } + + /// + /// This issue warns when a referenced stylesheet couldn't be loaded. + /// + public partial class StylesheetLoadingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source code position that referenced the failing stylesheet. + /// + [JsonPropertyName("sourceCodeLocation")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation + { + get; + set; + } + + /// + /// Reason why the stylesheet couldn't be loaded. + /// + [JsonPropertyName("styleSheetLoadingIssueReason")] + public CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason StyleSheetLoadingIssueReason + { + get; + set; + } + + /// + /// Contains additional info when the failure was due to a request. + /// + [JsonPropertyName("failedRequestInfo")] + public CefSharp.DevTools.Audits.FailedRequestInfo FailedRequestInfo + { + get; + set; + } + } + /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -2907,7 +3074,17 @@ public enum InspectorIssueCode /// BounceTrackingIssue /// [JsonPropertyName("BounceTrackingIssue")] - BounceTrackingIssue + BounceTrackingIssue, + /// + /// StylesheetLoadingIssue + /// + [JsonPropertyName("StylesheetLoadingIssue")] + StylesheetLoadingIssue, + /// + /// FederatedAuthUserInfoRequestIssue + /// + [JsonPropertyName("FederatedAuthUserInfoRequestIssue")] + FederatedAuthUserInfoRequestIssue } /// @@ -3076,6 +3253,26 @@ public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDe get; set; } + + /// + /// StylesheetLoadingIssueDetails + /// + [JsonPropertyName("stylesheetLoadingIssueDetails")] + public CefSharp.DevTools.Audits.StylesheetLoadingIssueDetails StylesheetLoadingIssueDetails + { + get; + set; + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + [JsonPropertyName("federatedAuthUserInfoRequestIssueDetails")] + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueDetails FederatedAuthUserInfoRequestIssueDetails + { + get; + set; + } } /// @@ -3197,6 +3394,51 @@ public string Cvc set; } } + + /// + /// AddressField + /// + public partial class AddressField : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// address field name, for example GIVEN_NAME. + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// address field name, for example Jon Doe. + /// + [JsonPropertyName("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } + + /// + /// Address + /// + public partial class Address : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// fields and values defining a test address. + /// + [JsonPropertyName("fields")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Fields + { + get; + set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -9046,7 +9288,7 @@ public CefSharp.DevTools.HeadlessExperimental.ScreenshotParamsFormat? Format } /// - /// Compression quality from range [0..100] (jpeg only). + /// Compression quality from range [0..100] (jpeg and webp only). /// [JsonPropertyName("quality")] public int? Quality @@ -11016,6 +11258,16 @@ public double PushEnd set; } + /// + /// Started receiving response headers. + /// + [JsonPropertyName("receiveHeadersStart")] + public double ReceiveHeadersStart + { + get; + set; + } + /// /// Finished receiving response headers. /// @@ -13806,6 +14058,60 @@ public string ReportOnlyReportingEndpoint } } + /// + /// ContentSecurityPolicySource + /// + public enum ContentSecurityPolicySource + { + /// + /// HTTP + /// + [JsonPropertyName("HTTP")] + HTTP, + /// + /// Meta + /// + [JsonPropertyName("Meta")] + Meta + } + + /// + /// ContentSecurityPolicyStatus + /// + public partial class ContentSecurityPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// EffectiveDirectives + /// + [JsonPropertyName("effectiveDirectives")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EffectiveDirectives + { + get; + set; + } + + /// + /// IsEnforced + /// + [JsonPropertyName("isEnforced")] + public bool IsEnforced + { + get; + set; + } + + /// + /// Source + /// + [JsonPropertyName("source")] + public CefSharp.DevTools.Network.ContentSecurityPolicySource Source + { + get; + set; + } + } + /// /// SecurityIsolationStatus /// @@ -13830,6 +14136,16 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep get; set; } + + /// + /// Csp + /// + [JsonPropertyName("csp")] + public System.Collections.Generic.IList Csp + { + get; + set; + } } /// @@ -15406,6 +15722,11 @@ public enum TrustTokenOperationDoneStatus [JsonPropertyName("InvalidArgument")] InvalidArgument, /// + /// MissingIssuerKeys + /// + [JsonPropertyName("MissingIssuerKeys")] + MissingIssuerKeys, + /// /// FailedPrecondition /// [JsonPropertyName("FailedPrecondition")] @@ -17087,11 +17408,6 @@ public enum PermissionsPolicyFeature [JsonPropertyName("ch-ua-mobile")] ChUaMobile, /// - /// ch-ua-full - /// - [JsonPropertyName("ch-ua-full")] - ChUaFull, - /// /// ch-ua-full-version /// [JsonPropertyName("ch-ua-full-version")] @@ -17107,11 +17423,6 @@ public enum PermissionsPolicyFeature [JsonPropertyName("ch-ua-platform-version")] ChUaPlatformVersion, /// - /// ch-ua-reduced - /// - [JsonPropertyName("ch-ua-reduced")] - ChUaReduced, - /// /// ch-ua-wow64 /// [JsonPropertyName("ch-ua-wow64")] @@ -19158,6 +19469,16 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("FencedFramesEmbedder")] FencedFramesEmbedder, /// + /// CookieDisabled + /// + [JsonPropertyName("CookieDisabled")] + CookieDisabled, + /// + /// HTTPAuthRequired + /// + [JsonPropertyName("HTTPAuthRequired")] + HTTPAuthRequired, + /// /// WebSocket /// [JsonPropertyName("WebSocket")] @@ -19383,10 +19704,25 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("Dummy")] Dummy, /// - /// AuthorizationHeader + /// JsNetworkRequestReceivedCacheControlNoStoreResource + /// + [JsonPropertyName("JsNetworkRequestReceivedCacheControlNoStoreResource")] + JsNetworkRequestReceivedCacheControlNoStoreResource, + /// + /// WebRTCSticky + /// + [JsonPropertyName("WebRTCSticky")] + WebRTCSticky, + /// + /// WebTransportSticky /// - [JsonPropertyName("AuthorizationHeader")] - AuthorizationHeader, + [JsonPropertyName("WebTransportSticky")] + WebTransportSticky, + /// + /// WebSocketSticky + /// + [JsonPropertyName("WebSocketSticky")] + WebSocketSticky, /// /// ContentSecurityHandler /// @@ -26655,7 +26991,17 @@ public enum PrerenderFinalStatus /// MemoryPressureAfterTriggered /// [JsonPropertyName("MemoryPressureAfterTriggered")] - MemoryPressureAfterTriggered + MemoryPressureAfterTriggered, + /// + /// PrerenderingDisabledByDevTools + /// + [JsonPropertyName("PrerenderingDisabledByDevTools")] + PrerenderingDisabledByDevTools, + /// + /// ResourceLoadBlockedByClient + /// + [JsonPropertyName("ResourceLoadBlockedByClient")] + ResourceLoadBlockedByClient } /// @@ -31843,6 +32189,20 @@ public System.Threading.Tasks.Task TriggerAsync(int fiel return _client.ExecuteDevToolsMethodAsync("Autofill.trigger", dict); } + + partial void ValidateSetAddresses(System.Collections.Generic.IList addresses); + /// + /// Set addresses so that developers can verify their forms implementation. + /// + /// addresses + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAddressesAsync(System.Collections.Generic.IList addresses) + { + ValidateSetAddresses(addresses); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("addresses", addresses.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("Autofill.setAddresses", dict); + } } } @@ -42989,6 +43349,26 @@ public System.Threading.Tasks.Task SetInterceptFileChoos dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); } + + partial void ValidateSetPrerenderingAllowed(bool isAllowed); + /// + /// Enable/disable prerendering manually. + /// + /// This command is a short-term solution for https://crbug.com/1440085. + /// See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA + /// for more details. + /// + /// TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets. + /// + /// isAllowed + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetPrerenderingAllowedAsync(bool isAllowed) + { + ValidateSetPrerenderingAllowed(isAllowed); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("isAllowed", isAllowed); + return _client.ExecuteDevToolsMethodAsync("Page.setPrerenderingAllowed", dict); + } } } @@ -49268,7 +49648,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { @@ -49419,7 +49799,7 @@ public System.Threading.Tasks.Task EnableAsync() /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { From 2e2b53f8a1a3ee4839c7d1d18be8fa8b0269139f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 26 Aug 2023 07:46:25 +1000 Subject: [PATCH 290/543] Core - DownloadUrlAsync add optional UrlReqestFlags param Discussion #4578 --- CefSharp.Core/WebBrowserExtensionsEx.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core/WebBrowserExtensionsEx.cs b/CefSharp.Core/WebBrowserExtensionsEx.cs index 537f7cba3..d6d770f18 100644 --- a/CefSharp.Core/WebBrowserExtensionsEx.cs +++ b/CefSharp.Core/WebBrowserExtensionsEx.cs @@ -99,9 +99,15 @@ public static void DownloadUrl(this IFrame frame, string url, Action /// valid frame /// url to download + /// control caching policy /// A task that can be awaited to get the representing the Url - public static Task DownloadUrlAsync(this IFrame frame, string url) + public static Task DownloadUrlAsync(this IFrame frame, string url, UrlRequestFlags urlRequestFlags = UrlRequestFlags.None) { + if (frame == null) + { + throw new ArgumentNullException(nameof(frame)); + } + if (!frame.IsValid) { throw new Exception("Frame is invalid, unable to continue."); @@ -116,6 +122,7 @@ public static Task DownloadUrlAsync(this IFrame frame, string url) request.Method = "GET"; request.Url = url; + request.Flags = urlRequestFlags; var memoryStream = new MemoryStream(); From becbb9e21d1edda3944c844d2d432c581edd1084 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 2 Sep 2023 19:24:32 +1000 Subject: [PATCH 291/543] WPF - Exception on wakeup from sleep Issue #4426 --- .../Rendering/WritableBitmapRenderHandler.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs b/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs index b0f14f2f6..d914469bb 100644 --- a/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs +++ b/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs @@ -160,6 +160,14 @@ protected override void CreateOrUpdateBitmap(bool isPopup, Rect dirtyRect, IntPt return; } + var sourceBufferPtr = sourceBuffer.DangerousGetHandle(); + + // Issue https://github.com/cefsharp/CefSharp/issues/4426 + if (sourceBufferPtr == IntPtr.Zero) + { + return; + } + //By default we'll only update the dirty rect, for those that run into a MILERR_WIN32ERROR Exception (#2035) //it's desirably to either upgrade to a newer .Net version (only client runtime needs to be installed, not compiled //against a newer version. Or invalidate the whole bitmap @@ -169,7 +177,7 @@ protected override void CreateOrUpdateBitmap(bool isPopup, Rect dirtyRect, IntPt var sourceRect = new Int32Rect(dirtyRect.X, dirtyRect.Y, dirtyRect.Width, dirtyRect.Height); bitmap.Lock(); - bitmap.WritePixels(sourceRect, sourceBuffer.DangerousGetHandle(), noOfBytes, stride, dirtyRect.X, dirtyRect.Y); + bitmap.WritePixels(sourceRect, sourceBufferPtr, noOfBytes, stride, dirtyRect.X, dirtyRect.Y); bitmap.Unlock(); } else @@ -178,7 +186,7 @@ protected override void CreateOrUpdateBitmap(bool isPopup, Rect dirtyRect, IntPt var sourceRect = new Int32Rect(0, 0, width, height); bitmap.Lock(); - bitmap.WritePixels(sourceRect, sourceBuffer.DangerousGetHandle(), noOfBytes, stride); + bitmap.WritePixels(sourceRect, sourceBufferPtr, noOfBytes, stride); bitmap.Unlock(); } } From 43350c87877064484f8d4863f420de1d9472b7e0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 23 Sep 2023 07:03:31 +1000 Subject: [PATCH 292/543] Update CONTRIBUTING.md and bug_report.yml --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- CONTRIBUTING.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 5969d33c4..59835232f 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -120,7 +120,7 @@ body: attributes: value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. - 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windowsarm64_client.tar.bz2). + 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windowsarm64_client.tar.bz2). 2. Extract tar.bz2 file 3. Execute cefclient.exe using the **command line args below**: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0085b4099..9f3d41088 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_115.3.11%2Bga61da9b%2Bchromium-115.0.5790.114_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` From a2d3b0ae9eeba7a12aa09788bfa0b080d25fc1d3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 25 Sep 2023 06:15:37 +1000 Subject: [PATCH 293/543] Upgrade to 117.1.4+ga26f38b+chromium-117.0.5938.92 / Chromium 117.0.5938.92 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 0b3ac73e0..5b31d23f0 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 13919d4eb..5e9b1a79f 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 97fabd3c7..909073b43 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 116,0,130 - PRODUCTVERSION 116,0,130 + FILEVERSION 117,1,40 + PRODUCTVERSION 117,1,40 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "116.0.130" + VALUE "FileVersion", "117.1.40" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "116.0.130" + VALUE "ProductVersion", "117.1.40" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 9be36eba3..d72ef8ad3 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 3481ddde2..962bc3180 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index c6031438f..9e8ea3608 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 5f87debc1..96481e856 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index b516213c3..9b32e2b19 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 25fff71d0..a33b5185a 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 116,0,130 - PRODUCTVERSION 116,0,130 + FILEVERSION 117,1,40 + PRODUCTVERSION 117,1,40 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "116.0.130" + VALUE "FileVersion", "117.1.40" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "116.0.130" + VALUE "ProductVersion", "117.1.40" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 9be36eba3..d72ef8ad3 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 3481ddde2..962bc3180 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 3f1a80c1a..765b3e0a8 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index b564d5947..19b71659a 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index f1826b554..f558afe7e 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 3138e56ad..7f2701e78 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 350869078..a189ff219 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index fe43817f3..5cc674640 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 81b664ff4..ab95453d6 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 55328b5b5..eecbee307 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 6cf851177..0d004ef07 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 62b25f5f3..b679ad907 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index a85ec3e41..73ea61529 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index d877da4e3..d09a8f710 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 116.0.130 + 117.1.40 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 116.0.130 + Version 117.1.40 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 49f1f350a..77cb15a93 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "116.0.130"; - public const string AssemblyFileVersion = "116.0.130.0"; + public const string AssemblyVersion = "117.1.40"; + public const string AssemblyFileVersion = "117.1.40.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 4151e9db8..5e3c2ffee 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 11e206704..10a375692 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 9554d6f1d..ba25e6a4e 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index ca7623b3a..e96ab6043 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "116.0.13", + [string] $CefVersion = "117.1.4", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 0e20f90d0..77472af7b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 116.0.130-CI{build} +version: 117.1.40-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 04ed3a885..7a3a792dd 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "116.0.130", + [string] $Version = "117.1.40", [Parameter(Position = 2)] - [string] $AssemblyVersion = "116.0.130", + [string] $AssemblyVersion = "117.1.40", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 1e371d47acfb6c0d7505712a4df6f51d5228494f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 25 Sep 2023 19:30:32 +1000 Subject: [PATCH 294/543] Upgrade to C++17 - Upstream changes now require C++17 https://github.com/chromiumembedded/cef/commit/57d7d89b53edb233c76b40d93825945c754e9f44#diff-58af91ac84808ba9356ca7821c283cf622d8d67e12751a6781a8465248d10a60 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 6 ++++++ .../CefSharp.BrowserSubprocess.Core.vcxproj | 4 ++++ CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj | 6 ++++++ CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 4 ++++ 4 files changed, 20 insertions(+) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 5b31d23f0..953c36c37 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -153,6 +153,7 @@ Use true true + stdcpp17 true @@ -172,6 +173,7 @@ _DEBUG;EXPORT;NETCOREAPP;%(PreprocessorDefinitions) Use true + stdcpp17 true @@ -191,6 +193,7 @@ _DEBUG;EXPORT;NETCOREAPP;%(PreprocessorDefinitions) Use true + stdcpp17 true @@ -210,6 +213,7 @@ Use true true + stdcpp17 true @@ -227,6 +231,7 @@ NDEBUG;EXPORT;NETCOREAPP;%(PreprocessorDefinitions) Use true + stdcpp17 true @@ -244,6 +249,7 @@ NDEBUG;EXPORT;NETCOREAPP;%(PreprocessorDefinitions) Use true + stdcpp17 true diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 5e9b1a79f..682739d7b 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -111,6 +111,7 @@ true true true + stdcpp17 true @@ -128,6 +129,7 @@ Use true true + stdcpp17 true @@ -144,6 +146,7 @@ Use true true + stdcpp17 true @@ -158,6 +161,7 @@ WIN32;NDEBUG;EXPORT;%(PreprocessorDefinitions) Use true + stdcpp17 true diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 96481e856..8dfffb6b9 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -177,6 +177,7 @@ Stdafx.h true true + stdcpp17 false @@ -210,6 +211,7 @@ ProgramDatabase Stdafx.h true + stdcpp17 false @@ -240,6 +242,7 @@ ProgramDatabase Stdafx.h true + stdcpp17 false @@ -269,6 +272,7 @@ true true true + stdcpp17 libcef.lib;libcef_dll_wrapper.lib;%(AdditionalDependencies) @@ -292,6 +296,7 @@ ProgramDatabase true true + stdcpp17 libcef.lib;libcef_dll_wrapper.lib;%(AdditionalDependencies) @@ -313,6 +318,7 @@ ProgramDatabase true true + stdcpp17 libcef.lib;libcef_dll_wrapper.lib;%(AdditionalDependencies) diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 9b32e2b19..ad53be007 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -130,6 +130,7 @@ Stdafx.h true true + stdcpp17 false @@ -160,6 +161,7 @@ ProgramDatabase Stdafx.h true + stdcpp17 false @@ -186,6 +188,7 @@ true true true + stdcpp17 opengl32.lib;glu32.lib;libcef.lib;libcef_dll_wrapper.lib;%(AdditionalDependencies) @@ -206,6 +209,7 @@ ProgramDatabase true true + stdcpp17 opengl32.lib;glu32.lib;libcef.lib;libcef_dll_wrapper.lib;%(AdditionalDependencies) From 0b388197c9dd62d3cb0d91a8ca64144d1e8068c7 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 28 Sep 2023 05:55:56 +1000 Subject: [PATCH 295/543] DevTools Client - Upgrade to 117.0.5938.92 --- .../DevTools/DevToolsClient.Generated.cs | 693 ++++++++++++++++-- .../DevToolsClient.Generated.netcore.cs | 659 +++++++++++++++-- 2 files changed, 1246 insertions(+), 106 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 5484db5c4..a2b3cc9a3 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 116.0.5845.97 +// CHROMIUM VERSION 117.0.5938.92 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -267,7 +267,7 @@ public bool? Superseded } /// - /// The native markup source for this value, e.g. a <label> element. + /// The native markup source for this value, e.g. a `<label>` element. /// public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource { @@ -283,7 +283,7 @@ public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource } /// - /// The native markup source for this value, e.g. a <label> element. + /// The native markup source for this value, e.g. a `<label>` element. /// [DataMember(Name = ("nativeSource"), IsRequired = (false))] internal string nativeSource @@ -1334,7 +1334,12 @@ public enum CookieExclusionReason /// ExcludeThirdPartyCookieBlockedInFirstPartySet /// [EnumMember(Value = ("ExcludeThirdPartyCookieBlockedInFirstPartySet"))] - ExcludeThirdPartyCookieBlockedInFirstPartySet + ExcludeThirdPartyCookieBlockedInFirstPartySet, + /// + /// ExcludeThirdPartyPhaseout + /// + [EnumMember(Value = ("ExcludeThirdPartyPhaseout"))] + ExcludeThirdPartyPhaseout } /// @@ -1391,7 +1396,12 @@ public enum CookieWarningReason /// WarnDomainNonASCII /// [EnumMember(Value = ("WarnDomainNonASCII"))] - WarnDomainNonASCII + WarnDomainNonASCII, + /// + /// WarnThirdPartyPhaseout + /// + [EnumMember(Value = ("WarnThirdPartyPhaseout"))] + WarnThirdPartyPhaseout } /// @@ -2522,7 +2532,12 @@ public enum AttributionReportingIssueType /// NoWebOrOsSupport /// [EnumMember(Value = ("NoWebOrOsSupport"))] - NoWebOrOsSupport + NoWebOrOsSupport, + /// + /// NavigationRegistrationWithoutTransientUserActivation + /// + [EnumMember(Value = ("NavigationRegistrationWithoutTransientUserActivation"))] + NavigationRegistrationWithoutTransientUserActivation } /// @@ -2734,7 +2749,12 @@ public enum GenericIssueErrorType /// FormInputHasWrongButWellIntendedAutocompleteValueError /// [EnumMember(Value = ("FormInputHasWrongButWellIntendedAutocompleteValueError"))] - FormInputHasWrongButWellIntendedAutocompleteValueError + FormInputHasWrongButWellIntendedAutocompleteValueError, + /// + /// ResponseWasBlockedByORB + /// + [EnumMember(Value = ("ResponseWasBlockedByORB"))] + ResponseWasBlockedByORB } /// @@ -2798,6 +2818,16 @@ public string ViolatingNodeAttribute get; set; } + + /// + /// Request + /// + [DataMember(Name = ("request"), IsRequired = (false))] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } } /// @@ -4975,7 +5005,7 @@ public bool IsInline /// /// Whether this stylesheet is mutable. Inline stylesheets become mutable /// after they have been modified via CSSOM API. - /// <link> element's stylesheets become mutable only if DevTools modifies them. + /// `<link>` element's stylesheets become mutable only if DevTools modifies them. /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. /// [DataMember(Name = ("isMutable"), IsRequired = (true))] @@ -5184,6 +5214,70 @@ public System.Collections.Generic.IList Scopes get; set; } + + /// + /// The array keeps the types of ancestor CSSRules from the innermost going outwards. + /// + public CefSharp.DevTools.CSS.CSSRuleType[] RuleTypes + { + get + { + return (CefSharp.DevTools.CSS.CSSRuleType[])(StringToEnum(typeof(CefSharp.DevTools.CSS.CSSRuleType[]), ruleTypes)); + } + + set + { + this.ruleTypes = (EnumToString(value)); + } + } + + /// + /// The array keeps the types of ancestor CSSRules from the innermost going outwards. + /// + [DataMember(Name = ("ruleTypes"), IsRequired = (false))] + internal string ruleTypes + { + get; + set; + } + } + + /// + /// Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors. + /// This list only contains rule types that are collected during the ancestor rule collection. + /// + public enum CSSRuleType + { + /// + /// MediaRule + /// + [EnumMember(Value = ("MediaRule"))] + MediaRule, + /// + /// SupportsRule + /// + [EnumMember(Value = ("SupportsRule"))] + SupportsRule, + /// + /// ContainerRule + /// + [EnumMember(Value = ("ContainerRule"))] + ContainerRule, + /// + /// LayerRule + /// + [EnumMember(Value = ("LayerRule"))] + LayerRule, + /// + /// ScopeRule + /// + [EnumMember(Value = ("ScopeRule"))] + ScopeRule, + /// + /// StyleRule + /// + [EnumMember(Value = ("StyleRule"))] + StyleRule } /// @@ -12764,7 +12858,27 @@ public enum CorsError /// NoCorsRedirectModeNotFollow /// [EnumMember(Value = ("NoCorsRedirectModeNotFollow"))] - NoCorsRedirectModeNotFollow + NoCorsRedirectModeNotFollow, + /// + /// PreflightMissingPrivateNetworkAccessId + /// + [EnumMember(Value = ("PreflightMissingPrivateNetworkAccessId"))] + PreflightMissingPrivateNetworkAccessId, + /// + /// PreflightMissingPrivateNetworkAccessName + /// + [EnumMember(Value = ("PreflightMissingPrivateNetworkAccessName"))] + PreflightMissingPrivateNetworkAccessName, + /// + /// PrivateNetworkAccessPermissionUnavailable + /// + [EnumMember(Value = ("PrivateNetworkAccessPermissionUnavailable"))] + PrivateNetworkAccessPermissionUnavailable, + /// + /// PrivateNetworkAccessPermissionDenied + /// + [EnumMember(Value = ("PrivateNetworkAccessPermissionDenied"))] + PrivateNetworkAccessPermissionDenied } /// @@ -13918,7 +14032,12 @@ public enum SetCookieBlockedReason /// NameValuePairExceedsMaxSize /// [EnumMember(Value = ("NameValuePairExceedsMaxSize"))] - NameValuePairExceedsMaxSize + NameValuePairExceedsMaxSize, + /// + /// DisallowedCharacter + /// + [EnumMember(Value = ("DisallowedCharacter"))] + DisallowedCharacter } /// @@ -14699,7 +14818,7 @@ public System.Collections.Generic.IList - /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". + /// Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`. /// [DataMember(Name = ("headerIntegrity"), IsRequired = (true))] public string HeaderIntegrity @@ -14865,7 +14984,12 @@ public enum ContentEncoding /// br /// [EnumMember(Value = ("br"))] - Br + Br, + /// + /// zstd + /// + [EnumMember(Value = ("zstd"))] + Zstd } /// @@ -15849,17 +15973,6 @@ public double EncodedDataLength get; private set; } - - /// - /// Set when 1) response was blocked by Cross-Origin Read Blocking and also - /// 2) this needs to be reported to the DevTools console. - /// - [DataMember(Name = ("shouldReportCorbBlocking"), IsRequired = (false))] - public bool? ShouldReportCorbBlocking - { - get; - private set; - } } /// @@ -18712,6 +18825,11 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("ch-ua-mobile"))] ChUaMobile, /// + /// ch-ua-form-factor + /// + [EnumMember(Value = ("ch-ua-form-factor"))] + ChUaFormFactor, + /// /// ch-ua-full-version /// [EnumMember(Value = ("ch-ua-full-version"))] @@ -20936,6 +21054,11 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("HTTPAuthRequired"))] HTTPAuthRequired, /// + /// CookieFlushed + /// + [EnumMember(Value = ("CookieFlushed"))] + CookieFlushed, + /// /// WebSocket /// [EnumMember(Value = ("WebSocket"))] @@ -20991,11 +21114,6 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("OutstandingNetworkRequestOthers"))] OutstandingNetworkRequestOthers, /// - /// OutstandingIndexedDBTransaction - /// - [EnumMember(Value = ("OutstandingIndexedDBTransaction"))] - OutstandingIndexedDBTransaction, - /// /// RequestedMIDIPermission /// [EnumMember(Value = ("RequestedMIDIPermission"))] @@ -21026,11 +21144,6 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("BroadcastChannel"))] BroadcastChannel, /// - /// IndexedDBConnection - /// - [EnumMember(Value = ("IndexedDBConnection"))] - IndexedDBConnection, - /// /// WebXR /// [EnumMember(Value = ("WebXR"))] @@ -21514,7 +21627,7 @@ internal string mode } /// - /// Input node id. Only present for file choosers opened via an <input type="file" > element. + /// Input node id. Only present for file choosers opened via an `<input type="file" >` element. /// [DataMember(Name = ("backendNodeId"), IsRequired = (false))] public int? BackendNodeId @@ -24554,6 +24667,297 @@ internal string durability } } + /// + /// AttributionReportingSourceType + /// + public enum AttributionReportingSourceType + { + /// + /// navigation + /// + [EnumMember(Value = ("navigation"))] + Navigation, + /// + /// event + /// + [EnumMember(Value = ("event"))] + Event + } + + /// + /// AttributionReportingFilterDataEntry + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingFilterDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + set; + } + + /// + /// Values + /// + [DataMember(Name = ("values"), IsRequired = (true))] + public string[] Values + { + get; + set; + } + } + + /// + /// AttributionReportingAggregationKeysEntry + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingAggregationKeysEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + set; + } + + /// + /// Value + /// + [DataMember(Name = ("value"), IsRequired = (true))] + public string Value + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistration + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingSourceRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Time + /// + [DataMember(Name = ("time"), IsRequired = (true))] + public double Time + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("expiry"), IsRequired = (false))] + public int? Expiry + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("eventReportWindow"), IsRequired = (false))] + public int? EventReportWindow + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("aggregatableReportWindow"), IsRequired = (false))] + public int? AggregatableReportWindow + { + get; + set; + } + + /// + /// Type + /// + public CefSharp.DevTools.Storage.AttributionReportingSourceType Type + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingSourceType)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingSourceType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [DataMember(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + set; + } + + /// + /// SourceOrigin + /// + [DataMember(Name = ("sourceOrigin"), IsRequired = (true))] + public string SourceOrigin + { + get; + set; + } + + /// + /// ReportingOrigin + /// + [DataMember(Name = ("reportingOrigin"), IsRequired = (true))] + public string ReportingOrigin + { + get; + set; + } + + /// + /// DestinationSites + /// + [DataMember(Name = ("destinationSites"), IsRequired = (true))] + public string[] DestinationSites + { + get; + set; + } + + /// + /// EventId + /// + [DataMember(Name = ("eventId"), IsRequired = (true))] + public string EventId + { + get; + set; + } + + /// + /// Priority + /// + [DataMember(Name = ("priority"), IsRequired = (true))] + public string Priority + { + get; + set; + } + + /// + /// FilterData + /// + [DataMember(Name = ("filterData"), IsRequired = (true))] + public System.Collections.Generic.IList FilterData + { + get; + set; + } + + /// + /// AggregationKeys + /// + [DataMember(Name = ("aggregationKeys"), IsRequired = (true))] + public System.Collections.Generic.IList AggregationKeys + { + get; + set; + } + + /// + /// DebugKey + /// + [DataMember(Name = ("debugKey"), IsRequired = (false))] + public string DebugKey + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistrationResult + /// + public enum AttributionReportingSourceRegistrationResult + { + /// + /// success + /// + [EnumMember(Value = ("success"))] + Success, + /// + /// internalError + /// + [EnumMember(Value = ("internalError"))] + InternalError, + /// + /// insufficientSourceCapacity + /// + [EnumMember(Value = ("insufficientSourceCapacity"))] + InsufficientSourceCapacity, + /// + /// insufficientUniqueDestinationCapacity + /// + [EnumMember(Value = ("insufficientUniqueDestinationCapacity"))] + InsufficientUniqueDestinationCapacity, + /// + /// excessiveReportingOrigins + /// + [EnumMember(Value = ("excessiveReportingOrigins"))] + ExcessiveReportingOrigins, + /// + /// prohibitedByBrowserPolicy + /// + [EnumMember(Value = ("prohibitedByBrowserPolicy"))] + ProhibitedByBrowserPolicy, + /// + /// successNoised + /// + [EnumMember(Value = ("successNoised"))] + SuccessNoised, + /// + /// destinationReportingLimitReached + /// + [EnumMember(Value = ("destinationReportingLimitReached"))] + DestinationReportingLimitReached, + /// + /// destinationGlobalLimitReached + /// + [EnumMember(Value = ("destinationGlobalLimitReached"))] + DestinationGlobalLimitReached, + /// + /// destinationBothLimitsReached + /// + [EnumMember(Value = ("destinationBothLimitsReached"))] + DestinationBothLimitsReached, + /// + /// reportingOriginsPerSiteLimitReached + /// + [EnumMember(Value = ("reportingOriginsPerSiteLimitReached"))] + ReportingOriginsPerSiteLimitReached, + /// + /// exceedsMaxChannelCapacity + /// + [EnumMember(Value = ("exceedsMaxChannelCapacity"))] + ExceedsMaxChannelCapacity + } + /// /// A cache's contents have been modified. /// @@ -24903,6 +25307,50 @@ public string BucketId private set; } } + + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AttributionReportingSourceRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registration + /// + [DataMember(Name = ("registration"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistration Registration + { + get; + private set; + } + + /// + /// Result + /// + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult Result + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult), result)); + } + + set + { + this.result = (EnumToString(value)); + } + } + + /// + /// Result + /// + [DataMember(Name = ("result"), IsRequired = (true))] + internal string result + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -26391,6 +26839,11 @@ public string Password /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// [System.Runtime.Serialization.DataContractAttribute] public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase @@ -28349,7 +28802,7 @@ public string LoaderId /// /// Source text of JSON representing the rule set. If it comes from - /// <script> tag, it is the textContent of the node. Note that it is + /// `<script>` tag, it is the textContent of the node. Note that it is /// a JSON for valid case. /// /// See also: @@ -28365,9 +28818,9 @@ public string SourceText /// /// A speculation rule set is either added through an inline - /// <script> tag or through an external resource via the + /// `<script>` tag or through an external resource via the /// 'Speculation-Rules' HTTP header. For the first case, we include - /// the BackendNodeId of the relevant <script> tag. For the second + /// the BackendNodeId of the relevant `<script>` tag. For the second /// case, we include the external URL where the rule set was loaded /// from, and also RequestId if Network domain is enabled. /// @@ -28766,11 +29219,6 @@ public enum PrerenderFinalStatus [EnumMember(Value = ("TriggerBackgrounded"))] TriggerBackgrounded, /// - /// EmbedderTriggeredAndCrossOriginRedirected - /// - [EnumMember(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] - EmbedderTriggeredAndCrossOriginRedirected, - /// /// MemoryLimitExceeded /// [EnumMember(Value = ("MemoryLimitExceeded"))] @@ -28934,7 +29382,17 @@ public enum PrerenderFinalStatus /// ResourceLoadBlockedByClient /// [EnumMember(Value = ("ResourceLoadBlockedByClient"))] - ResourceLoadBlockedByClient + ResourceLoadBlockedByClient, + /// + /// SpeculationRuleRemoved + /// + [EnumMember(Value = ("SpeculationRuleRemoved"))] + SpeculationRuleRemoved, + /// + /// ActivatedWithAuxiliaryBrowsingContexts + /// + [EnumMember(Value = ("ActivatedWithAuxiliaryBrowsingContexts"))] + ActivatedWithAuxiliaryBrowsingContexts } /// @@ -29276,6 +29734,26 @@ public bool DisabledByBatterySaver get; private set; } + + /// + /// DisabledByHoldbackPrefetchSpeculationRules + /// + [DataMember(Name = ("disabledByHoldbackPrefetchSpeculationRules"), IsRequired = (true))] + public bool DisabledByHoldbackPrefetchSpeculationRules + { + get; + private set; + } + + /// + /// DisabledByHoldbackPrerenderSpeculationRules + /// + [DataMember(Name = ("disabledByHoldbackPrerenderSpeculationRules"), IsRequired = (true))] + public bool DisabledByHoldbackPrerenderSpeculationRules + { + get; + private set; + } } /// @@ -29365,6 +29843,16 @@ internal string prefetchStatus get; private set; } + + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } } /// @@ -29434,6 +29922,17 @@ internal string prerenderStatus get; private set; } + + /// + /// This is used to give users more information about the name of Mojo interface + /// that is incompatible with prerender and has caused the cancellation of the attempt. + /// + [DataMember(Name = ("disallowedMojoInterface"), IsRequired = (false))] + public string DisallowedMojoInterface + { + get; + private set; + } } /// @@ -31536,6 +32035,18 @@ public int? MaxDepth get; set; } + + /// + /// Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM + /// serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`. + /// Values can be only of type string or integer. + /// + [DataMember(Name = ("additionalParameters"), IsRequired = (false))] + public object AdditionalParameters + { + get; + set; + } } /// @@ -37837,8 +38348,8 @@ public enum EnableIncludeWhitespace /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public partial class DOMClient : DevToolsDomainBase { @@ -41703,6 +42214,16 @@ public System.Threading.Tasks.Task DispatchTouchEventAsy return _client.ExecuteDevToolsMethodAsync("Input.dispatchTouchEvent", dict); } + /// + /// Cancels any active dragging in the page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task CancelDraggingAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Input.cancelDragging", dict); + } + partial void ValidateEmulateTouchFromMouseEvent(CefSharp.DevTools.Input.EmulateTouchFromMouseEventType type, int x, int y, CefSharp.DevTools.Input.MouseButton button, double? timestamp = null, double? deltaX = null, double? deltaY = null, int? modifiers = null, int? clickCount = null); /// /// Emulates touch event from the mouse event parameters. @@ -45997,17 +46518,18 @@ public event System.EventHandler CompilationC } } - partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null); + partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null); /// /// Evaluates given script in every frame upon creation (before loading frame's scripts). /// /// source /// If specified, creates an isolated world with the given name and evaluates given script in it.This world name will be used as the ExecutionContextDescription::name when the correspondingevent is emitted. /// Specifies whether command line API should be available to the script, defaultsto false. + /// If true, runs the script immediately on existing execution contexts or worlds.Default: false. /// returns System.Threading.Tasks.Task<AddScriptToEvaluateOnNewDocumentResponse> - public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null) + public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null) { - ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI); + ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI, runImmediately); var dict = new System.Collections.Generic.Dictionary(); dict.Add("source", source); if (!(string.IsNullOrEmpty(worldName))) @@ -46020,6 +46542,11 @@ public System.Threading.Tasks.Task Add dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); } + if (runImmediately.HasValue) + { + dict.Add("runImmediately", runImmediately.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.addScriptToEvaluateOnNewDocument", dict); } @@ -46329,7 +46856,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null); /// /// Print page as PDF. /// @@ -46348,10 +46875,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// HTML template for the print footer. Should use the same format as the `headerTemplate`. /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream + /// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -46428,6 +46956,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("transferMode", EnumToString(transferMode)); } + if (generateTaggedPDF.HasValue) + { + dict.Add("generateTaggedPDF", generateTaggedPDF.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); } @@ -47826,6 +48359,23 @@ public event System.EventHandler StorageBucketDel } } + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + public event System.EventHandler AttributionReportingSourceRegistered + { + add + { + _client.AddEventHandler("Storage.attributionReportingSourceRegistered", value); + } + + remove + { + _client.RemoveEventHandler("Storage.attributionReportingSourceRegistered", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -48279,6 +48829,34 @@ public System.Threading.Tasks.Task RunBoun System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.runBounceTrackingMitigations", dict); } + + partial void ValidateSetAttributionReportingLocalTestingMode(bool enabled); + /// + /// https://wicg.github.io/attribution-reporting-api/ + /// + /// If enabled, noise is suppressed and reports are sent immediately. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingLocalTestingModeAsync(bool enabled) + { + ValidateSetAttributionReportingLocalTestingMode(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingLocalTestingMode", dict); + } + + partial void ValidateSetAttributionReportingTracking(bool enable); + /// + /// Enables/disables issuing of Attribution Reporting events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingTrackingAsync(bool enable) + { + ValidateSetAttributionReportingTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingTracking", dict); + } } } @@ -49644,6 +50222,11 @@ public FetchClient(CefSharp.DevTools.IDevToolsClient client) /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// public event System.EventHandler RequestPaused { @@ -49874,6 +50457,10 @@ public System.Threading.Tasks.Task ContinueResponseAsync /// takeResponseBodyForInterceptionAsStream. Calling other methods that /// affect the request or disabling fetch domain before body is received /// results in an undefined behavior. + /// Note that the response body is not available for redirects. Requests + /// paused in the _redirect received_ state may be differentiated by + /// `responseCode` and presence of `location` response header, see + /// comments to `requestPaused` for details. /// /// Identifier for the intercepted request to get body for. /// returns System.Threading.Tasks.Task<GetResponseBodyResponse> @@ -54596,8 +55183,8 @@ public CefSharp.DevTools.Cast.CastClient Cast /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public CefSharp.DevTools.DOM.DOMClient DOM { diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 76e6d71a5..062ba7254 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 116.0.5845.97 +// CHROMIUM VERSION 117.0.5938.92 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -250,7 +250,7 @@ public bool? Superseded } /// - /// The native markup source for this value, e.g. a <label> element. + /// The native markup source for this value, e.g. a `<label>` element. /// [JsonPropertyName("nativeSource")] public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource @@ -1263,7 +1263,12 @@ public enum CookieExclusionReason /// ExcludeThirdPartyCookieBlockedInFirstPartySet /// [JsonPropertyName("ExcludeThirdPartyCookieBlockedInFirstPartySet")] - ExcludeThirdPartyCookieBlockedInFirstPartySet + ExcludeThirdPartyCookieBlockedInFirstPartySet, + /// + /// ExcludeThirdPartyPhaseout + /// + [JsonPropertyName("ExcludeThirdPartyPhaseout")] + ExcludeThirdPartyPhaseout } /// @@ -1320,7 +1325,12 @@ public enum CookieWarningReason /// WarnDomainNonASCII /// [JsonPropertyName("WarnDomainNonASCII")] - WarnDomainNonASCII + WarnDomainNonASCII, + /// + /// WarnThirdPartyPhaseout + /// + [JsonPropertyName("WarnThirdPartyPhaseout")] + WarnThirdPartyPhaseout } /// @@ -2274,7 +2284,12 @@ public enum AttributionReportingIssueType /// NoWebOrOsSupport /// [JsonPropertyName("NoWebOrOsSupport")] - NoWebOrOsSupport + NoWebOrOsSupport, + /// + /// NavigationRegistrationWithoutTransientUserActivation + /// + [JsonPropertyName("NavigationRegistrationWithoutTransientUserActivation")] + NavigationRegistrationWithoutTransientUserActivation } /// @@ -2471,7 +2486,12 @@ public enum GenericIssueErrorType /// FormInputHasWrongButWellIntendedAutocompleteValueError /// [JsonPropertyName("FormInputHasWrongButWellIntendedAutocompleteValueError")] - FormInputHasWrongButWellIntendedAutocompleteValueError + FormInputHasWrongButWellIntendedAutocompleteValueError, + /// + /// ResponseWasBlockedByORB + /// + [JsonPropertyName("ResponseWasBlockedByORB")] + ResponseWasBlockedByORB } /// @@ -2518,6 +2538,16 @@ public string ViolatingNodeAttribute get; set; } + + /// + /// Request + /// + [JsonPropertyName("request")] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } } /// @@ -4545,7 +4575,7 @@ public bool IsInline /// /// Whether this stylesheet is mutable. Inline stylesheets become mutable /// after they have been modified via CSSOM API. - /// <link> element's stylesheets become mutable only if DevTools modifies them. + /// `<link>` element's stylesheets become mutable only if DevTools modifies them. /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. /// [JsonPropertyName("isMutable")] @@ -4739,6 +4769,54 @@ public System.Collections.Generic.IList Scopes get; set; } + + /// + /// The array keeps the types of ancestor CSSRules from the innermost going outwards. + /// + [JsonPropertyName("ruleTypes")] + public CefSharp.DevTools.CSS.CSSRuleType[] RuleTypes + { + get; + set; + } + } + + /// + /// Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors. + /// This list only contains rule types that are collected during the ancestor rule collection. + /// + public enum CSSRuleType + { + /// + /// MediaRule + /// + [JsonPropertyName("MediaRule")] + MediaRule, + /// + /// SupportsRule + /// + [JsonPropertyName("SupportsRule")] + SupportsRule, + /// + /// ContainerRule + /// + [JsonPropertyName("ContainerRule")] + ContainerRule, + /// + /// LayerRule + /// + [JsonPropertyName("LayerRule")] + LayerRule, + /// + /// ScopeRule + /// + [JsonPropertyName("ScopeRule")] + ScopeRule, + /// + /// StyleRule + /// + [JsonPropertyName("StyleRule")] + StyleRule } /// @@ -12017,7 +12095,27 @@ public enum CorsError /// NoCorsRedirectModeNotFollow /// [JsonPropertyName("NoCorsRedirectModeNotFollow")] - NoCorsRedirectModeNotFollow + NoCorsRedirectModeNotFollow, + /// + /// PreflightMissingPrivateNetworkAccessId + /// + [JsonPropertyName("PreflightMissingPrivateNetworkAccessId")] + PreflightMissingPrivateNetworkAccessId, + /// + /// PreflightMissingPrivateNetworkAccessName + /// + [JsonPropertyName("PreflightMissingPrivateNetworkAccessName")] + PreflightMissingPrivateNetworkAccessName, + /// + /// PrivateNetworkAccessPermissionUnavailable + /// + [JsonPropertyName("PrivateNetworkAccessPermissionUnavailable")] + PrivateNetworkAccessPermissionUnavailable, + /// + /// PrivateNetworkAccessPermissionDenied + /// + [JsonPropertyName("PrivateNetworkAccessPermissionDenied")] + PrivateNetworkAccessPermissionDenied } /// @@ -12999,7 +13097,12 @@ public enum SetCookieBlockedReason /// NameValuePairExceedsMaxSize /// [JsonPropertyName("NameValuePairExceedsMaxSize")] - NameValuePairExceedsMaxSize + NameValuePairExceedsMaxSize, + /// + /// DisallowedCharacter + /// + [JsonPropertyName("DisallowedCharacter")] + DisallowedCharacter } /// @@ -13640,7 +13743,7 @@ public System.Collections.Generic.IList - /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". + /// Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`. /// [JsonPropertyName("headerIntegrity")] [System.Diagnostics.CodeAnalysis.DisallowNull] @@ -13791,7 +13894,12 @@ public enum ContentEncoding /// br /// [JsonPropertyName("br")] - Br + Br, + /// + /// zstd + /// + [JsonPropertyName("zstd")] + Zstd } /// @@ -14636,18 +14744,6 @@ public double EncodedDataLength get; private set; } - - /// - /// Set when 1) response was blocked by Cross-Origin Read Blocking and also - /// 2) this needs to be reported to the DevTools console. - /// - [JsonInclude] - [JsonPropertyName("shouldReportCorbBlocking")] - public bool? ShouldReportCorbBlocking - { - get; - private set; - } } /// @@ -17408,6 +17504,11 @@ public enum PermissionsPolicyFeature [JsonPropertyName("ch-ua-mobile")] ChUaMobile, /// + /// ch-ua-form-factor + /// + [JsonPropertyName("ch-ua-form-factor")] + ChUaFormFactor, + /// /// ch-ua-full-version /// [JsonPropertyName("ch-ua-full-version")] @@ -19479,6 +19580,11 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("HTTPAuthRequired")] HTTPAuthRequired, /// + /// CookieFlushed + /// + [JsonPropertyName("CookieFlushed")] + CookieFlushed, + /// /// WebSocket /// [JsonPropertyName("WebSocket")] @@ -19534,11 +19640,6 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("OutstandingNetworkRequestOthers")] OutstandingNetworkRequestOthers, /// - /// OutstandingIndexedDBTransaction - /// - [JsonPropertyName("OutstandingIndexedDBTransaction")] - OutstandingIndexedDBTransaction, - /// /// RequestedMIDIPermission /// [JsonPropertyName("RequestedMIDIPermission")] @@ -19569,11 +19670,6 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("BroadcastChannel")] BroadcastChannel, /// - /// IndexedDBConnection - /// - [JsonPropertyName("IndexedDBConnection")] - IndexedDBConnection, - /// /// WebXR /// [JsonPropertyName("WebXR")] @@ -20012,7 +20108,7 @@ public CefSharp.DevTools.Page.FileChooserOpenedMode Mode } /// - /// Input node id. Only present for file choosers opened via an <input type="file" > element. + /// Input node id. Only present for file choosers opened via an `<input type="file" >` element. /// [JsonInclude] [JsonPropertyName("backendNodeId")] @@ -22872,6 +22968,289 @@ public CefSharp.DevTools.Storage.StorageBucketsDurability Durability } } + /// + /// AttributionReportingSourceType + /// + public enum AttributionReportingSourceType + { + /// + /// navigation + /// + [JsonPropertyName("navigation")] + Navigation, + /// + /// event + /// + [JsonPropertyName("event")] + Event + } + + /// + /// AttributionReportingFilterDataEntry + /// + public partial class AttributionReportingFilterDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [JsonPropertyName("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + set; + } + + /// + /// Values + /// + [JsonPropertyName("values")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Values + { + get; + set; + } + } + + /// + /// AttributionReportingAggregationKeysEntry + /// + public partial class AttributionReportingAggregationKeysEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [JsonPropertyName("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + set; + } + + /// + /// Value + /// + [JsonPropertyName("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistration + /// + public partial class AttributionReportingSourceRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Time + /// + [JsonPropertyName("time")] + public double Time + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("expiry")] + public int? Expiry + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("eventReportWindow")] + public int? EventReportWindow + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("aggregatableReportWindow")] + public int? AggregatableReportWindow + { + get; + set; + } + + /// + /// Type + /// + [JsonPropertyName("type")] + public CefSharp.DevTools.Storage.AttributionReportingSourceType Type + { + get; + set; + } + + /// + /// SourceOrigin + /// + [JsonPropertyName("sourceOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceOrigin + { + get; + set; + } + + /// + /// ReportingOrigin + /// + [JsonPropertyName("reportingOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ReportingOrigin + { + get; + set; + } + + /// + /// DestinationSites + /// + [JsonPropertyName("destinationSites")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] DestinationSites + { + get; + set; + } + + /// + /// EventId + /// + [JsonPropertyName("eventId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EventId + { + get; + set; + } + + /// + /// Priority + /// + [JsonPropertyName("priority")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Priority + { + get; + set; + } + + /// + /// FilterData + /// + [JsonPropertyName("filterData")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList FilterData + { + get; + set; + } + + /// + /// AggregationKeys + /// + [JsonPropertyName("aggregationKeys")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList AggregationKeys + { + get; + set; + } + + /// + /// DebugKey + /// + [JsonPropertyName("debugKey")] + public string DebugKey + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistrationResult + /// + public enum AttributionReportingSourceRegistrationResult + { + /// + /// success + /// + [JsonPropertyName("success")] + Success, + /// + /// internalError + /// + [JsonPropertyName("internalError")] + InternalError, + /// + /// insufficientSourceCapacity + /// + [JsonPropertyName("insufficientSourceCapacity")] + InsufficientSourceCapacity, + /// + /// insufficientUniqueDestinationCapacity + /// + [JsonPropertyName("insufficientUniqueDestinationCapacity")] + InsufficientUniqueDestinationCapacity, + /// + /// excessiveReportingOrigins + /// + [JsonPropertyName("excessiveReportingOrigins")] + ExcessiveReportingOrigins, + /// + /// prohibitedByBrowserPolicy + /// + [JsonPropertyName("prohibitedByBrowserPolicy")] + ProhibitedByBrowserPolicy, + /// + /// successNoised + /// + [JsonPropertyName("successNoised")] + SuccessNoised, + /// + /// destinationReportingLimitReached + /// + [JsonPropertyName("destinationReportingLimitReached")] + DestinationReportingLimitReached, + /// + /// destinationGlobalLimitReached + /// + [JsonPropertyName("destinationGlobalLimitReached")] + DestinationGlobalLimitReached, + /// + /// destinationBothLimitsReached + /// + [JsonPropertyName("destinationBothLimitsReached")] + DestinationBothLimitsReached, + /// + /// reportingOriginsPerSiteLimitReached + /// + [JsonPropertyName("reportingOriginsPerSiteLimitReached")] + ReportingOriginsPerSiteLimitReached, + /// + /// exceedsMaxChannelCapacity + /// + [JsonPropertyName("exceedsMaxChannelCapacity")] + ExceedsMaxChannelCapacity + } + /// /// A cache's contents have been modified. /// @@ -23229,6 +23608,36 @@ public string BucketId private set; } } + + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + public class AttributionReportingSourceRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registration + /// + [JsonInclude] + [JsonPropertyName("registration")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistration Registration + { + get; + private set; + } + + /// + /// Result + /// + [JsonInclude] + [JsonPropertyName("result")] + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult Result + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -24608,6 +25017,11 @@ public string Password /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { @@ -26462,7 +26876,7 @@ public string LoaderId /// /// Source text of JSON representing the rule set. If it comes from - /// <script> tag, it is the textContent of the node. Note that it is + /// `<script>` tag, it is the textContent of the node. Note that it is /// a JSON for valid case. /// /// See also: @@ -26479,9 +26893,9 @@ public string SourceText /// /// A speculation rule set is either added through an inline - /// <script> tag or through an external resource via the + /// `<script>` tag or through an external resource via the /// 'Speculation-Rules' HTTP header. For the first case, we include - /// the BackendNodeId of the relevant <script> tag. For the second + /// the BackendNodeId of the relevant `<script>` tag. For the second /// case, we include the external URL where the rule set was loaded /// from, and also RequestId if Network domain is enabled. /// @@ -26833,11 +27247,6 @@ public enum PrerenderFinalStatus [JsonPropertyName("TriggerBackgrounded")] TriggerBackgrounded, /// - /// EmbedderTriggeredAndCrossOriginRedirected - /// - [JsonPropertyName("EmbedderTriggeredAndCrossOriginRedirected")] - EmbedderTriggeredAndCrossOriginRedirected, - /// /// MemoryLimitExceeded /// [JsonPropertyName("MemoryLimitExceeded")] @@ -27001,7 +27410,17 @@ public enum PrerenderFinalStatus /// ResourceLoadBlockedByClient /// [JsonPropertyName("ResourceLoadBlockedByClient")] - ResourceLoadBlockedByClient + ResourceLoadBlockedByClient, + /// + /// SpeculationRuleRemoved + /// + [JsonPropertyName("SpeculationRuleRemoved")] + SpeculationRuleRemoved, + /// + /// ActivatedWithAuxiliaryBrowsingContexts + /// + [JsonPropertyName("ActivatedWithAuxiliaryBrowsingContexts")] + ActivatedWithAuxiliaryBrowsingContexts } /// @@ -27338,6 +27757,28 @@ public bool DisabledByBatterySaver get; private set; } + + /// + /// DisabledByHoldbackPrefetchSpeculationRules + /// + [JsonInclude] + [JsonPropertyName("disabledByHoldbackPrefetchSpeculationRules")] + public bool DisabledByHoldbackPrefetchSpeculationRules + { + get; + private set; + } + + /// + /// DisabledByHoldbackPrerenderSpeculationRules + /// + [JsonInclude] + [JsonPropertyName("disabledByHoldbackPrerenderSpeculationRules")] + public bool DisabledByHoldbackPrerenderSpeculationRules + { + get; + private set; + } } /// @@ -27402,6 +27843,18 @@ public CefSharp.DevTools.Preload.PrefetchStatus PrefetchStatus get; private set; } + + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } } /// @@ -27442,6 +27895,18 @@ public CefSharp.DevTools.Preload.PrerenderFinalStatus? PrerenderStatus get; private set; } + + /// + /// This is used to give users more information about the name of Mojo interface + /// that is incompatible with prerender and has caused the cancellation of the attempt. + /// + [JsonInclude] + [JsonPropertyName("disallowedMojoInterface")] + public string DisallowedMojoInterface + { + get; + private set; + } } /// @@ -29490,6 +29955,18 @@ public int? MaxDepth get; set; } + + /// + /// Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM + /// serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`. + /// Values can be only of type string or integer. + /// + [JsonPropertyName("additionalParameters")] + public object AdditionalParameters + { + get; + set; + } } /// @@ -34963,8 +35440,8 @@ public enum EnableIncludeWhitespace /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public partial class DOMClient : DevToolsDomainBase { @@ -38661,6 +39138,16 @@ public System.Threading.Tasks.Task DispatchTouchEventAsy return _client.ExecuteDevToolsMethodAsync("Input.dispatchTouchEvent", dict); } + /// + /// Cancels any active dragging in the page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task CancelDraggingAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Input.cancelDragging", dict); + } + partial void ValidateEmulateTouchFromMouseEvent(CefSharp.DevTools.Input.EmulateTouchFromMouseEventType type, int x, int y, CefSharp.DevTools.Input.MouseButton button, double? timestamp = null, double? deltaX = null, double? deltaY = null, int? modifiers = null, int? clickCount = null); /// /// Emulates touch event from the mouse event parameters. @@ -42494,17 +42981,18 @@ public event System.EventHandler CompilationC } } - partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null); + partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null); /// /// Evaluates given script in every frame upon creation (before loading frame's scripts). /// /// source /// If specified, creates an isolated world with the given name and evaluates given script in it.This world name will be used as the ExecutionContextDescription::name when the correspondingevent is emitted. /// Specifies whether command line API should be available to the script, defaultsto false. + /// If true, runs the script immediately on existing execution contexts or worlds.Default: false. /// returns System.Threading.Tasks.Task<AddScriptToEvaluateOnNewDocumentResponse> - public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null) + public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null) { - ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI); + ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI, runImmediately); var dict = new System.Collections.Generic.Dictionary(); dict.Add("source", source); if (!(string.IsNullOrEmpty(worldName))) @@ -42517,6 +43005,11 @@ public System.Threading.Tasks.Task Add dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); } + if (runImmediately.HasValue) + { + dict.Add("runImmediately", runImmediately.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.addScriptToEvaluateOnNewDocument", dict); } @@ -42826,7 +43319,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null); /// /// Print page as PDF. /// @@ -42845,10 +43338,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// HTML template for the print footer. Should use the same format as the `headerTemplate`. /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream + /// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -42925,6 +43419,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("transferMode", EnumToString(transferMode)); } + if (generateTaggedPDF.HasValue) + { + dict.Add("generateTaggedPDF", generateTaggedPDF.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); } @@ -44222,6 +44721,23 @@ public event System.EventHandler StorageBucketDel } } + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + public event System.EventHandler AttributionReportingSourceRegistered + { + add + { + _client.AddEventHandler("Storage.attributionReportingSourceRegistered", value); + } + + remove + { + _client.RemoveEventHandler("Storage.attributionReportingSourceRegistered", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -44675,6 +45191,34 @@ public System.Threading.Tasks.Task RunBoun System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.runBounceTrackingMitigations", dict); } + + partial void ValidateSetAttributionReportingLocalTestingMode(bool enabled); + /// + /// https://wicg.github.io/attribution-reporting-api/ + /// + /// If enabled, noise is suppressed and reports are sent immediately. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingLocalTestingModeAsync(bool enabled) + { + ValidateSetAttributionReportingLocalTestingMode(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingLocalTestingMode", dict); + } + + partial void ValidateSetAttributionReportingTracking(bool enable); + /// + /// Enables/disables issuing of Attribution Reporting events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingTrackingAsync(bool enable) + { + ValidateSetAttributionReportingTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingTracking", dict); + } } } @@ -45885,6 +46429,11 @@ public FetchClient(CefSharp.DevTools.IDevToolsClient client) /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// public event System.EventHandler RequestPaused { @@ -46115,6 +46664,10 @@ public System.Threading.Tasks.Task ContinueResponseAsync /// takeResponseBodyForInterceptionAsStream. Calling other methods that /// affect the request or disabling fetch domain before body is received /// results in an undefined behavior. + /// Note that the response body is not available for redirects. Requests + /// paused in the _redirect received_ state may be differentiated by + /// `responseCode` and presence of `location` response header, see + /// comments to `requestPaused` for details. /// /// Identifier for the intercepted request to get body for. /// returns System.Threading.Tasks.Task<GetResponseBodyResponse> @@ -50373,8 +50926,8 @@ public CefSharp.DevTools.Cast.CastClient Cast /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public CefSharp.DevTools.DOM.DOMClient DOM { From 2cb81aa943ed3a9787709bfa1764e91abf2bfbe3 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 7 Oct 2023 15:43:50 +1000 Subject: [PATCH 296/543] Tests - Wpf/WaitForRenderIdleTests lower expected time - Page is now rendered quicker than before. --- CefSharp.Test/Wpf/WaitForRenderIdleTests.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs index 8ba04724c..96c20809c 100644 --- a/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs +++ b/CefSharp.Test/Wpf/WaitForRenderIdleTests.cs @@ -27,8 +27,6 @@ public WaitForRenderIdleTests(ITestOutputHelper output, CefSharpFixture fixture) [WpfFact] public async Task ShouldWork() { - const int expected = 500; - using (var browser = new ChromiumWebBrowser(null, CefExample.DefaultUrl, new Size(1024, 786))) { var start = DateTime.Now; @@ -39,7 +37,7 @@ public async Task ShouldWork() var time = (end - start).TotalMilliseconds; Assert.True(end > start); - Assert.True(time > expected, $"Executed in {time}ms"); + Assert.True(time > 400, $"Executed in {time}ms"); output.WriteLine("Time {0}ms", time); From deb406f0b79d2f4633c28f882d8a906d08e5a87f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Thu, 26 Oct 2023 19:38:35 +1000 Subject: [PATCH 297/543] Upgrade to 118.6.6+g3cffa57+chromium-118.0.5993.96 / Chromium 118.0.5993.96 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 953c36c37..372c96342 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 682739d7b..b3b35f4b6 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 909073b43..740a092ef 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 117,1,40 - PRODUCTVERSION 117,1,40 + FILEVERSION 118,6,60 + PRODUCTVERSION 118,6,60 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "117.1.40" + VALUE "FileVersion", "118.6.60" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "117.1.40" + VALUE "ProductVersion", "118.6.60" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index d72ef8ad3..41b4a6c64 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 962bc3180..e48a3b0bf 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 9e8ea3608..4e6398963 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 8dfffb6b9..246002d72 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index ad53be007..8b8acc827 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index a33b5185a..fd7347fc1 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 117,1,40 - PRODUCTVERSION 117,1,40 + FILEVERSION 118,6,60 + PRODUCTVERSION 118,6,60 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "117.1.40" + VALUE "FileVersion", "118.6.60" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "117.1.40" + VALUE "ProductVersion", "118.6.60" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index d72ef8ad3..41b4a6c64 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 962bc3180..e48a3b0bf 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 765b3e0a8..549be4dfe 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 19b71659a..9e82b5722 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index f558afe7e..f6e816bed 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 7f2701e78..4c219e074 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index a189ff219..7651ef8d0 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 5cc674640..a60cb1897 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index ab95453d6..1e599806e 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index eecbee307..d2a6f1476 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 0d004ef07..7c07a5997 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index b679ad907..3c71ac403 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 73ea61529..55b94f2aa 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index d09a8f710..7c523a21c 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 117.1.40 + 118.6.60 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 117.1.40 + Version 118.6.60 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 77cb15a93..1e2e1f13d 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "117.1.40"; - public const string AssemblyFileVersion = "117.1.40.0"; + public const string AssemblyVersion = "118.6.60"; + public const string AssemblyFileVersion = "118.6.60.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 5e3c2ffee..cd164a8eb 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 10a375692..f5d424510 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index ba25e6a4e..d1b11a169 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index e96ab6043..17fa26ddb 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "117.1.4", + [string] $CefVersion = "118.6.6", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 77472af7b..44f060a2e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 117.1.40-CI{build} +version: 118.6.60-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 7a3a792dd..14dde6ff7 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "117.1.40", + [string] $Version = "118.6.60", [Parameter(Position = 2)] - [string] $AssemblyVersion = "117.1.40", + [string] $AssemblyVersion = "118.6.60", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 30b9a2c4b4b56de269cca871208353a63ce2d163 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 27 Oct 2023 06:31:49 +1000 Subject: [PATCH 298/543] Remove BrowserSettings.AcceptLanguageList Resolves #4614 --- CefSharp.Core.Runtime/BrowserSettings.h | 14 -------------- CefSharp.Core/BrowserSettings.cs | 7 ------- CefSharp/IBrowserSettings.cs | 10 ---------- 3 files changed, 31 deletions(-) diff --git a/CefSharp.Core.Runtime/BrowserSettings.h b/CefSharp.Core.Runtime/BrowserSettings.h index 279f4421b..2ccb7ac6e 100644 --- a/CefSharp.Core.Runtime/BrowserSettings.h +++ b/CefSharp.Core.Runtime/BrowserSettings.h @@ -314,20 +314,6 @@ namespace CefSharp void set(uint32_t value) { _browserSettings->background_color = value; } } - /// - /// Comma delimited ordered list of language codes without any whitespace that - /// will be used in the "Accept-Language" HTTP header. May be overridden on a - /// per-browser basis using the CefBrowserSettings.AcceptLanguageList value. - /// If both values are empty then "en-US,en" will be used. Can be overridden - /// for individual RequestContext instances via the - /// RequestContextSettings.AcceptLanguageList value. - /// - virtual property String^ AcceptLanguageList - { - String^ get() { return StringUtils::ToClr(_browserSettings->accept_language_list); } - void set(String^ value) { StringUtils::AssignNativeFromClr(_browserSettings->accept_language_list, value); } - } - /// /// The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint /// will be called for a windowless browser. The actual fps may be lower if diff --git a/CefSharp.Core/BrowserSettings.cs b/CefSharp.Core/BrowserSettings.cs index 8368aecaa..6308417fe 100644 --- a/CefSharp.Core/BrowserSettings.cs +++ b/CefSharp.Core/BrowserSettings.cs @@ -185,13 +185,6 @@ public uint BackgroundColor set { settings.BackgroundColor = value; } } - /// - public string AcceptLanguageList - { - get { return settings.AcceptLanguageList; } - set { settings.AcceptLanguageList = value; } - } - /// public int WindowlessFrameRate { diff --git a/CefSharp/IBrowserSettings.cs b/CefSharp/IBrowserSettings.cs index 91183b531..24fa41f58 100644 --- a/CefSharp/IBrowserSettings.cs +++ b/CefSharp/IBrowserSettings.cs @@ -155,16 +155,6 @@ public interface IBrowserSettings : IDisposable /// uint BackgroundColor { get; set; } - /// - /// Comma delimited ordered list of language codes without any whitespace that - /// will be used in the "Accept-Language" HTTP header. May be overridden on a - /// per-browser basis using the CefBrowserSettings.AcceptLanguageList value. - /// If both values are empty then "en-US,en" will be used. Can be overridden - /// for individual RequestContext instances via the - /// RequestContextSettings.AcceptLanguageList value. - /// - string AcceptLanguageList { get; set; } - /// /// The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint /// will be called for a windowless browser. The actual fps may be lower if From eedb2ba507ff5ead904d7b2aa2c90054ae5ab826 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 27 Oct 2023 19:32:38 +1000 Subject: [PATCH 299/543] DevTools Client - Upgrade to 118.0.5993.96 --- .../DevTools/DevToolsClient.Generated.cs | 422 +++++++++++++++++- .../DevToolsClient.Generated.netcore.cs | 384 +++++++++++++++- 2 files changed, 798 insertions(+), 8 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index a2b3cc9a3..077296537 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 117.0.5938.92 +// CHROMIUM VERSION 118.0.5993.96 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -3798,7 +3798,7 @@ public string Name } /// - /// address field name, for example Jon Doe. + /// address field value, for example Jon Doe. /// [DataMember(Name = ("value"), IsRequired = (true))] public string Value @@ -3808,6 +3808,23 @@ public string Value } } + /// + /// A list of address fields. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AddressFields : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Fields + /// + [DataMember(Name = ("fields"), IsRequired = (true))] + public System.Collections.Generic.IList Fields + { + get; + set; + } + } + /// /// Address /// @@ -3815,7 +3832,7 @@ public string Value public partial class Address : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// fields and values defining a test address. + /// fields and values defining an address. /// [DataMember(Name = ("fields"), IsRequired = (true))] public System.Collections.Generic.IList Fields @@ -3824,6 +3841,157 @@ public System.Collections.Generic.IList set; } } + + /// + /// Defines how an address can be displayed like in chrome://settings/addresses. + /// Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such. + /// The following address UI for instance: + /// [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]] + /// should allow the receiver to render: + /// Jon Doe + /// Munich 81456 + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AddressUI : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// A two dimension array containing the repesentation of values from an address profile. + /// + [DataMember(Name = ("addressFields"), IsRequired = (true))] + public System.Collections.Generic.IList AddressFields + { + get; + set; + } + } + + /// + /// Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics. + /// + public enum FillingStrategy + { + /// + /// autocompleteAttribute + /// + [EnumMember(Value = ("autocompleteAttribute"))] + AutocompleteAttribute, + /// + /// autofillInferred + /// + [EnumMember(Value = ("autofillInferred"))] + AutofillInferred + } + + /// + /// FilledField + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class FilledField : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The type of the field, e.g text, password etc. + /// + [DataMember(Name = ("htmlType"), IsRequired = (true))] + public string HtmlType + { + get; + set; + } + + /// + /// the html id + /// + [DataMember(Name = ("id"), IsRequired = (true))] + public string Id + { + get; + set; + } + + /// + /// the html name + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// the field value + /// + [DataMember(Name = ("value"), IsRequired = (true))] + public string Value + { + get; + set; + } + + /// + /// The actual field type, e.g FAMILY_NAME + /// + [DataMember(Name = ("autofillType"), IsRequired = (true))] + public string AutofillType + { + get; + set; + } + + /// + /// The filling strategy + /// + public CefSharp.DevTools.Autofill.FillingStrategy FillingStrategy + { + get + { + return (CefSharp.DevTools.Autofill.FillingStrategy)(StringToEnum(typeof(CefSharp.DevTools.Autofill.FillingStrategy), fillingStrategy)); + } + + set + { + this.fillingStrategy = (EnumToString(value)); + } + } + + /// + /// The filling strategy + /// + [DataMember(Name = ("fillingStrategy"), IsRequired = (true))] + internal string fillingStrategy + { + get; + set; + } + } + + /// + /// Emitted when an address form is filled. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AddressFormFilledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Information about the fields that were filled + /// + [DataMember(Name = ("filledFields"), IsRequired = (true))] + public System.Collections.Generic.IList FilledFields + { + get; + private set; + } + + /// + /// An UI representation of the address used to fill the form. + /// Consists of a 2D array where each child represents an address/profile line. + /// + [DataMember(Name = ("addressUi"), IsRequired = (true))] + public CefSharp.DevTools.Autofill.AddressUI AddressUi + { + get; + private set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -6371,6 +6539,117 @@ public System.Collections.Generic.IList K } } + /// + /// Representation of a custom property registration through CSS.registerProperty + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSPropertyRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// PropertyName + /// + [DataMember(Name = ("propertyName"), IsRequired = (true))] + public string PropertyName + { + get; + set; + } + + /// + /// InitialValue + /// + [DataMember(Name = ("initialValue"), IsRequired = (false))] + public CefSharp.DevTools.CSS.Value InitialValue + { + get; + set; + } + + /// + /// Inherits + /// + [DataMember(Name = ("inherits"), IsRequired = (true))] + public bool Inherits + { + get; + set; + } + + /// + /// Syntax + /// + [DataMember(Name = ("syntax"), IsRequired = (true))] + public string Syntax + { + get; + set; + } + } + + /// + /// CSS property at-rule representation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSPropertyRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] + public string StyleSheetId + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get + { + return (CefSharp.DevTools.CSS.StyleSheetOrigin)(StringToEnum(typeof(CefSharp.DevTools.CSS.StyleSheetOrigin), origin)); + } + + set + { + this.origin = (EnumToString(value)); + } + } + + /// + /// Parent stylesheet's origin. + /// + [DataMember(Name = ("origin"), IsRequired = (true))] + internal string origin + { + get; + set; + } + + /// + /// Associated property name. + /// + [DataMember(Name = ("propertyName"), IsRequired = (true))] + public CefSharp.DevTools.CSS.Value PropertyName + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [DataMember(Name = ("style"), IsRequired = (true))] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + /// /// CSS keyframe rule representation. /// @@ -18785,6 +19064,11 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("ch-prefers-reduced-motion"))] ChPrefersReducedMotion, /// + /// ch-prefers-reduced-transparency + /// + [EnumMember(Value = ("ch-prefers-reduced-transparency"))] + ChPrefersReducedTransparency, + /// /// ch-rtt /// [EnumMember(Value = ("ch-rtt"))] @@ -24738,6 +25022,33 @@ public string Value } } + /// + /// AttributionReportingEventReportWindows + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingEventReportWindows : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// duration in seconds + /// + [DataMember(Name = ("start"), IsRequired = (true))] + public int Start + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("ends"), IsRequired = (true))] + public int[] Ends + { + get; + set; + } + } + /// /// AttributionReportingSourceRegistration /// @@ -24765,6 +25076,7 @@ public int? Expiry } /// + /// eventReportWindow and eventReportWindows are mutually exclusive /// duration in seconds /// [DataMember(Name = ("eventReportWindow"), IsRequired = (false))] @@ -24774,6 +25086,16 @@ public int? EventReportWindow set; } + /// + /// EventReportWindows + /// + [DataMember(Name = ("eventReportWindows"), IsRequired = (false))] + public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows + { + get; + set; + } + /// /// duration in seconds /// @@ -29997,7 +30319,12 @@ public enum DialogType /// AutoReauthn /// [EnumMember(Value = ("AutoReauthn"))] - AutoReauthn + AutoReauthn, + /// + /// ConfirmIdpSignin + /// + [EnumMember(Value = ("ConfirmIdpSignin"))] + ConfirmIdpSignin } /// @@ -34934,6 +35261,22 @@ public AutofillClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } + /// + /// Emitted when an address form is filled. + /// + public event System.EventHandler AddressFormFilled + { + add + { + _client.AddEventHandler("Autofill.addressFormFilled", value); + } + + remove + { + _client.RemoveEventHandler("Autofill.addressFormFilled", value); + } + } + partial void ValidateTrigger(int fieldId, CefSharp.DevTools.Autofill.CreditCard card, string frameId = null); /// /// Trigger autofill on a form identified by the fieldId. @@ -34970,6 +35313,26 @@ public System.Threading.Tasks.Task SetAddressesAsync(Sys dict.Add("addresses", addresses.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Autofill.setAddresses", dict); } + + /// + /// Disables autofill domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Autofill.disable", dict); + } + + /// + /// Enables autofill domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Autofill.enable", dict); + } } } @@ -36119,6 +36482,42 @@ public System.Collections.Generic.IList cssPropertyRules + { + get; + set; + } + + /// + /// cssPropertyRules + /// + public System.Collections.Generic.IList CssPropertyRules + { + get + { + return cssPropertyRules; + } + } + + [DataMember] + internal System.Collections.Generic.IList cssPropertyRegistrations + { + get; + set; + } + + /// + /// cssPropertyRegistrations + /// + public System.Collections.Generic.IList CssPropertyRegistrations + { + get + { + return cssPropertyRegistrations; + } + } + [DataMember] internal int? parentLayoutNodeId { @@ -51572,6 +51971,21 @@ public System.Threading.Tasks.Task SelectAccountAsync(st return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); } + partial void ValidateConfirmIdpSignin(string dialogId); + /// + /// Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had + /// clicked the continue button. + /// + /// dialogId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ConfirmIdpSigninAsync(string dialogId) + { + ValidateConfirmIdpSignin(dialogId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpSignin", dict); + } + partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); /// /// DismissDialog diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 062ba7254..0517ee10a 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 117.0.5938.92 +// CHROMIUM VERSION 118.0.5993.96 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -3442,7 +3442,7 @@ public string Name } /// - /// address field name, for example Jon Doe. + /// address field value, for example Jon Doe. /// [JsonPropertyName("value")] [System.Diagnostics.CodeAnalysis.DisallowNull] @@ -3453,13 +3453,30 @@ public string Value } } + /// + /// A list of address fields. + /// + public partial class AddressFields : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Fields + /// + [JsonPropertyName("fields")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Fields + { + get; + set; + } + } + /// /// Address /// public partial class Address : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// fields and values defining a test address. + /// fields and values defining an address. /// [JsonPropertyName("fields")] [System.Diagnostics.CodeAnalysis.DisallowNull] @@ -3469,6 +3486,148 @@ public System.Collections.Generic.IList set; } } + + /// + /// Defines how an address can be displayed like in chrome://settings/addresses. + /// Address UI is a two dimensional array, each inner array is an "address information line", and when rendered in a UI surface should be displayed as such. + /// The following address UI for instance: + /// [[{name: "GIVE_NAME", value: "Jon"}, {name: "FAMILY_NAME", value: "Doe"}], [{name: "CITY", value: "Munich"}, {name: "ZIP", value: "81456"}]] + /// should allow the receiver to render: + /// Jon Doe + /// Munich 81456 + /// + public partial class AddressUI : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// A two dimension array containing the repesentation of values from an address profile. + /// + [JsonPropertyName("addressFields")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList AddressFields + { + get; + set; + } + } + + /// + /// Specified whether a filled field was done so by using the html autocomplete attribute or autofill heuristics. + /// + public enum FillingStrategy + { + /// + /// autocompleteAttribute + /// + [JsonPropertyName("autocompleteAttribute")] + AutocompleteAttribute, + /// + /// autofillInferred + /// + [JsonPropertyName("autofillInferred")] + AutofillInferred + } + + /// + /// FilledField + /// + public partial class FilledField : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The type of the field, e.g text, password etc. + /// + [JsonPropertyName("htmlType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string HtmlType + { + get; + set; + } + + /// + /// the html id + /// + [JsonPropertyName("id")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Id + { + get; + set; + } + + /// + /// the html name + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// the field value + /// + [JsonPropertyName("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + + /// + /// The actual field type, e.g FAMILY_NAME + /// + [JsonPropertyName("autofillType")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string AutofillType + { + get; + set; + } + + /// + /// The filling strategy + /// + [JsonPropertyName("fillingStrategy")] + public CefSharp.DevTools.Autofill.FillingStrategy FillingStrategy + { + get; + set; + } + } + + /// + /// Emitted when an address form is filled. + /// + public class AddressFormFilledEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Information about the fields that were filled + /// + [JsonInclude] + [JsonPropertyName("filledFields")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList FilledFields + { + get; + private set; + } + + /// + /// An UI representation of the address used to fill the form. + /// Consists of a 2D array where each child represents an address/profile line. + /// + [JsonInclude] + [JsonPropertyName("addressUi")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Autofill.AddressUI AddressUi + { + get; + private set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -5858,6 +6017,103 @@ public System.Collections.Generic.IList K } } + /// + /// Representation of a custom property registration through CSS.registerProperty + /// + public partial class CSSPropertyRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// PropertyName + /// + [JsonPropertyName("propertyName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PropertyName + { + get; + set; + } + + /// + /// InitialValue + /// + [JsonPropertyName("initialValue")] + public CefSharp.DevTools.CSS.Value InitialValue + { + get; + set; + } + + /// + /// Inherits + /// + [JsonPropertyName("inherits")] + public bool Inherits + { + get; + set; + } + + /// + /// Syntax + /// + [JsonPropertyName("syntax")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Syntax + { + get; + set; + } + } + + /// + /// CSS property at-rule representation. + /// + public partial class CSSPropertyRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [JsonPropertyName("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + [JsonPropertyName("origin")] + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get; + set; + } + + /// + /// Associated property name. + /// + [JsonPropertyName("propertyName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.Value PropertyName + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [JsonPropertyName("style")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + /// /// CSS keyframe rule representation. /// @@ -17464,6 +17720,11 @@ public enum PermissionsPolicyFeature [JsonPropertyName("ch-prefers-reduced-motion")] ChPrefersReducedMotion, /// + /// ch-prefers-reduced-transparency + /// + [JsonPropertyName("ch-prefers-reduced-transparency")] + ChPrefersReducedTransparency, + /// /// ch-rtt /// [JsonPropertyName("ch-rtt")] @@ -23041,6 +23302,32 @@ public string Value } } + /// + /// AttributionReportingEventReportWindows + /// + public partial class AttributionReportingEventReportWindows : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// duration in seconds + /// + [JsonPropertyName("start")] + public int Start + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("ends")] + public int[] Ends + { + get; + set; + } + } + /// /// AttributionReportingSourceRegistration /// @@ -23067,6 +23354,7 @@ public int? Expiry } /// + /// eventReportWindow and eventReportWindows are mutually exclusive /// duration in seconds /// [JsonPropertyName("eventReportWindow")] @@ -23076,6 +23364,16 @@ public int? EventReportWindow set; } + /// + /// EventReportWindows + /// + [JsonPropertyName("eventReportWindows")] + public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows + { + get; + set; + } + /// /// duration in seconds /// @@ -27974,7 +28272,12 @@ public enum DialogType /// AutoReauthn /// [JsonPropertyName("AutoReauthn")] - AutoReauthn + AutoReauthn, + /// + /// ConfirmIdpSignin + /// + [JsonPropertyName("ConfirmIdpSignin")] + ConfirmIdpSignin } /// @@ -32644,6 +32947,22 @@ public AutofillClient(CefSharp.DevTools.IDevToolsClient client) _client = (client); } + /// + /// Emitted when an address form is filled. + /// + public event System.EventHandler AddressFormFilled + { + add + { + _client.AddEventHandler("Autofill.addressFormFilled", value); + } + + remove + { + _client.RemoveEventHandler("Autofill.addressFormFilled", value); + } + } + partial void ValidateTrigger(int fieldId, CefSharp.DevTools.Autofill.CreditCard card, string frameId = null); /// /// Trigger autofill on a form identified by the fieldId. @@ -32680,6 +32999,26 @@ public System.Threading.Tasks.Task SetAddressesAsync(Sys dict.Add("addresses", addresses.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Autofill.setAddresses", dict); } + + /// + /// Disables autofill domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Autofill.disable", dict); + } + + /// + /// Enables autofill domain notifications. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task EnableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Autofill.enable", dict); + } } } @@ -33620,6 +33959,28 @@ public System.Collections.Generic.IList + /// cssPropertyRules + /// + [JsonInclude] + [JsonPropertyName("cssPropertyRules")] + public System.Collections.Generic.IList CssPropertyRules + { + get; + private set; + } + + /// + /// cssPropertyRegistrations + /// + [JsonInclude] + [JsonPropertyName("cssPropertyRegistrations")] + public System.Collections.Generic.IList CssPropertyRegistrations + { + get; + private set; + } + /// /// parentLayoutNodeId /// @@ -47747,6 +48108,21 @@ public System.Threading.Tasks.Task SelectAccountAsync(st return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); } + partial void ValidateConfirmIdpSignin(string dialogId); + /// + /// Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had + /// clicked the continue button. + /// + /// dialogId + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task ConfirmIdpSigninAsync(string dialogId) + { + ValidateConfirmIdpSignin(dialogId); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("dialogId", dialogId); + return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpSignin", dict); + } + partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); /// /// DismissDialog From 0961934eed6e3cdcb62fa0fd37a11a163ae8a80d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 28 Oct 2023 06:58:42 +1000 Subject: [PATCH 300/543] Upgrade to 118.6.8+ge44bee1+chromium-118.0.5993.117 / Chromium 118.0.5993.117 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 372c96342..cfb390c22 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index b3b35f4b6..aa3dff308 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 740a092ef..8fb26daf4 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 118,6,60 - PRODUCTVERSION 118,6,60 + FILEVERSION 118,6,80 + PRODUCTVERSION 118,6,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "118.6.60" + VALUE "FileVersion", "118.6.80" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "118.6.60" + VALUE "ProductVersion", "118.6.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 41b4a6c64..d64bb8c1f 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index e48a3b0bf..78e867805 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 4e6398963..942d72546 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 246002d72..2136cc1ac 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 8b8acc827..8a621d088 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index fd7347fc1..7ca590094 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 118,6,60 - PRODUCTVERSION 118,6,60 + FILEVERSION 118,6,80 + PRODUCTVERSION 118,6,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "118.6.60" + VALUE "FileVersion", "118.6.80" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "118.6.60" + VALUE "ProductVersion", "118.6.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 41b4a6c64..d64bb8c1f 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index e48a3b0bf..78e867805 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 549be4dfe..bb500b969 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 9e82b5722..43d4e0c2e 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index f6e816bed..4f67cc33d 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 4c219e074..9deab0efa 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 7651ef8d0..0363a59b8 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index a60cb1897..7568b8273 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 1e599806e..7cd3dc5a4 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index d2a6f1476..564d03173 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 7c07a5997..80bdd56d8 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 3c71ac403..10a1f40c5 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 55b94f2aa..4b8d77613 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 7c523a21c..b3978ed2e 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 118.6.60 + 118.6.80 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 118.6.60 + Version 118.6.80 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 1e2e1f13d..3906eae1c 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "118.6.60"; - public const string AssemblyFileVersion = "118.6.60.0"; + public const string AssemblyVersion = "118.6.80"; + public const string AssemblyFileVersion = "118.6.80.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index cd164a8eb..600c871e5 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index f5d424510..8e8f5d1f5 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index d1b11a169..29669e00c 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 17fa26ddb..1e2020ac6 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "118.6.6", + [string] $CefVersion = "118.6.8", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 44f060a2e..b33c097ff 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 118.6.60-CI{build} +version: 118.6.80-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 14dde6ff7..d86872d9d 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "118.6.60", + [string] $Version = "118.6.80", [Parameter(Position = 2)] - [string] $AssemblyVersion = "118.6.60", + [string] $AssemblyVersion = "118.6.80", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From b4ee60a77800d9b229a1d2865013a12931598849 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 28 Oct 2023 07:10:44 +1000 Subject: [PATCH 301/543] README.md - Update to M118 --- .github/ISSUE_TEMPLATE/bug_report.yml | 6 +++--- CONTRIBUTING.md | 6 +++--- README.md | 7 +++++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 59835232f..b60828bf5 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -21,8 +21,8 @@ body: id: cefsharp-version attributes: label: CefSharp Version - description: What version are you using? Please only open an issue if you can reproduce the problem with version 114.2.120 or later. - placeholder: 114.2.120 + description: What version are you using? Please only open an issue if you can reproduce the problem with version 117.2.40 or later. + placeholder: 117.2.40 validations: required: true - type: dropdown @@ -120,7 +120,7 @@ body: attributes: value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. - 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windowsarm64_client.tar.bz2). + 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windowsarm64_client.tar.bz2). 2. Extract tar.bz2 file 3. Execute cefclient.exe using the **command line args below**: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9f3d41088..d667dc18c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_116.0.27%2Bgd8c85ac%2Bchromium-116.0.5845.190_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 6203966c3..8d0d3257c 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,11 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5790 | 2019* | 4.6.2** | Development | -| [cefsharp/115](https://github.com/cefsharp/CefSharp/tree/cefsharp/115)| 5790 | 2019* | 4.6.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 5993 | 2019* | 4.6.2** | Development | +| [cefsharp/118](https://github.com/cefsharp/CefSharp/tree/cefsharp/118)| 5993 | 2019* | 4.6.2** | **Release** | +| [cefsharp/117](https://github.com/cefsharp/CefSharp/tree/cefsharp/117)| 5938 | 2019* | 4.6.2** | Unsupported | +| [cefsharp/116](https://github.com/cefsharp/CefSharp/tree/cefsharp/116)| 5845 | 2019* | 4.6.2** | Unsupported | +| [cefsharp/115](https://github.com/cefsharp/CefSharp/tree/cefsharp/115)| 5790 | 2019* | 4.6.2** | Unsupported | | [cefsharp/114](https://github.com/cefsharp/CefSharp/tree/cefsharp/114)| 5735 | 2019* | 4.5.2** | Unsupported | | [cefsharp/113](https://github.com/cefsharp/CefSharp/tree/cefsharp/113)| 5615 | 2019* | 4.5.2** | Unsupported | | [cefsharp/112](https://github.com/cefsharp/CefSharp/tree/cefsharp/112)| 5615 | 2019* | 4.5.2** | Unsupported | From cbc89802ef632c62e5c39be96dcaa00a75734ea8 Mon Sep 17 00:00:00 2001 From: Andrew Bushnell Date: Tue, 31 Oct 2023 16:14:36 -0400 Subject: [PATCH 302/543] WPF - WritableBitmapRenderHandler Avoid null bitmap references upon wakeup. (#4619) Force initial bitmap creation upon wakeup when the image.source is null... Happens if sizing etc. rapidly and the UI thread short circuits when CreateNewBitMap is true and the first wake up occurs with it 'false' amd image.Source is still null... --- CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs b/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs index d914469bb..204e018e8 100644 --- a/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs +++ b/CefSharp.Wpf/Rendering/WritableBitmapRenderHandler.cs @@ -134,7 +134,7 @@ protected override void CreateOrUpdateBitmap(bool isPopup, Rect dirtyRect, IntPt return; } - if (createNewBitmap) + if (createNewBitmap || image.Source is null) { if (image.Source != null) { From 0bab1b93040d347a99632681cafdb3f6411cff6f Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 3 Nov 2023 19:21:10 +1000 Subject: [PATCH 303/543] Upgrade to 119.1.2+g2677830+chromium-119.0.6045.105 / Chromium 119.0.6045.105 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index cfb390c22..446ecc3fe 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index aa3dff308..ca75ca810 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 8fb26daf4..d0e70f740 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 118,6,80 - PRODUCTVERSION 118,6,80 + FILEVERSION 119,1,20 + PRODUCTVERSION 119,1,20 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "118.6.80" + VALUE "FileVersion", "119.1.20" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "118.6.80" + VALUE "ProductVersion", "119.1.20" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index d64bb8c1f..4430920fb 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 78e867805..c4712e731 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 942d72546..7143116e9 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 2136cc1ac..25ef9e725 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 8a621d088..ef76816ab 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 7ca590094..f9ea444bd 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 118,6,80 - PRODUCTVERSION 118,6,80 + FILEVERSION 119,1,20 + PRODUCTVERSION 119,1,20 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "118.6.80" + VALUE "FileVersion", "119.1.20" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "118.6.80" + VALUE "ProductVersion", "119.1.20" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index d64bb8c1f..4430920fb 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 78e867805..c4712e731 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index bb500b969..0ef493e5e 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 43d4e0c2e..db9c15c0c 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 4f67cc33d..47cc4e29d 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 9deab0efa..4b88fb6cb 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 0363a59b8..01ccd0088 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 7568b8273..e51329783 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 7cd3dc5a4..b351739d7 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 564d03173..0db056bf9 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 80bdd56d8..35b73bf17 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index 10a1f40c5..a5d14f26b 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 4b8d77613..872ccb24f 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index b3978ed2e..3ed0d64f8 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 118.6.80 + 119.1.20 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 118.6.80 + Version 119.1.20 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 3906eae1c..b273cb312 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "118.6.80"; - public const string AssemblyFileVersion = "118.6.80.0"; + public const string AssemblyVersion = "119.1.20"; + public const string AssemblyFileVersion = "119.1.20.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 600c871e5..3f9c5ce6a 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 8e8f5d1f5..38509f69a 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 29669e00c..f512ff5b2 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 1e2020ac6..1deadbfda 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "118.6.8", + [string] $CefVersion = "119.1.2", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index b33c097ff..da9c88ddb 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 118.6.80-CI{build} +version: 119.1.20-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index d86872d9d..2f508f049 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "118.6.80", + [string] $Version = "119.1.20", [Parameter(Position = 2)] - [string] $AssemblyVersion = "118.6.80", + [string] $AssemblyVersion = "119.1.20", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From d5a7084c21c77717a102be5250ade53434d78e31 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 4 Nov 2023 06:33:57 +1000 Subject: [PATCH 304/543] DevTools Client - Upgrade to 119.0.6045.105 --- .../DevTools/DevToolsClient.Generated.cs | 423 +++++++++++------- .../DevToolsClient.Generated.netcore.cs | 390 +++++++++------- 2 files changed, 478 insertions(+), 335 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 077296537..21b21f936 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 118.0.5993.96 +// CHROMIUM VERSION 119.0.6045.105 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -3362,6 +3362,87 @@ public CefSharp.DevTools.Audits.FailedRequestInfo FailedRequestInfo } } + /// + /// PropertyRuleIssueReason + /// + public enum PropertyRuleIssueReason + { + /// + /// InvalidSyntax + /// + [EnumMember(Value = ("InvalidSyntax"))] + InvalidSyntax, + /// + /// InvalidInitialValue + /// + [EnumMember(Value = ("InvalidInitialValue"))] + InvalidInitialValue, + /// + /// InvalidInherits + /// + [EnumMember(Value = ("InvalidInherits"))] + InvalidInherits, + /// + /// InvalidName + /// + [EnumMember(Value = ("InvalidName"))] + InvalidName + } + + /// + /// This issue warns about errors in property rules that lead to property + /// registrations being ignored. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class PropertyRuleIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source code position of the property rule. + /// + [DataMember(Name = ("sourceCodeLocation"), IsRequired = (true))] + public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation + { + get; + set; + } + + /// + /// Reason why the property rule was discarded. + /// + public CefSharp.DevTools.Audits.PropertyRuleIssueReason PropertyRuleIssueReason + { + get + { + return (CefSharp.DevTools.Audits.PropertyRuleIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.PropertyRuleIssueReason), propertyRuleIssueReason)); + } + + set + { + this.propertyRuleIssueReason = (EnumToString(value)); + } + } + + /// + /// Reason why the property rule was discarded. + /// + [DataMember(Name = ("propertyRuleIssueReason"), IsRequired = (true))] + internal string propertyRuleIssueReason + { + get; + set; + } + + /// + /// The value of the property rule property that failed to parse + /// + [DataMember(Name = ("propertyValue"), IsRequired = (false))] + public string PropertyValue + { + get; + set; + } + } + /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -3458,7 +3539,12 @@ public enum InspectorIssueCode /// FederatedAuthUserInfoRequestIssue /// [EnumMember(Value = ("FederatedAuthUserInfoRequestIssue"))] - FederatedAuthUserInfoRequestIssue + FederatedAuthUserInfoRequestIssue, + /// + /// PropertyRuleIssue + /// + [EnumMember(Value = ("PropertyRuleIssue"))] + PropertyRuleIssue } /// @@ -3639,6 +3725,16 @@ public CefSharp.DevTools.Audits.StylesheetLoadingIssueDetails StylesheetLoadingI set; } + /// + /// PropertyRuleIssueDetails + /// + [DataMember(Name = ("propertyRuleIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.PropertyRuleIssueDetails PropertyRuleIssueDetails + { + get; + set; + } + /// /// FederatedAuthUserInfoRequestIssueDetails /// @@ -14248,6 +14344,11 @@ public enum SetCookieBlockedReason [EnumMember(Value = ("UserPreferences"))] UserPreferences, /// + /// ThirdPartyPhaseout + /// + [EnumMember(Value = ("ThirdPartyPhaseout"))] + ThirdPartyPhaseout, + /// /// ThirdPartyBlockedInFirstPartySet /// [EnumMember(Value = ("ThirdPartyBlockedInFirstPartySet"))] @@ -14316,7 +14417,12 @@ public enum SetCookieBlockedReason /// DisallowedCharacter /// [EnumMember(Value = ("DisallowedCharacter"))] - DisallowedCharacter + DisallowedCharacter, + /// + /// NoCookieContent + /// + [EnumMember(Value = ("NoCookieContent"))] + NoCookieContent } /// @@ -14365,6 +14471,11 @@ public enum CookieBlockedReason [EnumMember(Value = ("UserPreferences"))] UserPreferences, /// + /// ThirdPartyPhaseout + /// + [EnumMember(Value = ("ThirdPartyPhaseout"))] + ThirdPartyPhaseout, + /// /// ThirdPartyBlockedInFirstPartySet /// [EnumMember(Value = ("ThirdPartyBlockedInFirstPartySet"))] @@ -24365,7 +24476,22 @@ public enum InterestGroupAccessType /// win /// [EnumMember(Value = ("win"))] - Win + Win, + /// + /// additionalBid + /// + [EnumMember(Value = ("additionalBid"))] + AdditionalBid, + /// + /// additionalBidWin + /// + [EnumMember(Value = ("additionalBidWin"))] + AdditionalBidWin, + /// + /// clear + /// + [EnumMember(Value = ("clear"))] + Clear } /// @@ -24375,10 +24501,10 @@ public enum InterestGroupAccessType public partial class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// RenderUrl + /// RenderURL /// - [DataMember(Name = ("renderUrl"), IsRequired = (true))] - public string RenderUrl + [DataMember(Name = ("renderURL"), IsRequired = (true))] + public string RenderURL { get; set; @@ -24442,40 +24568,40 @@ public string JoiningOrigin } /// - /// BiddingUrl + /// BiddingLogicURL /// - [DataMember(Name = ("biddingUrl"), IsRequired = (false))] - public string BiddingUrl + [DataMember(Name = ("biddingLogicURL"), IsRequired = (false))] + public string BiddingLogicURL { get; set; } /// - /// BiddingWasmHelperUrl + /// BiddingWasmHelperURL /// - [DataMember(Name = ("biddingWasmHelperUrl"), IsRequired = (false))] - public string BiddingWasmHelperUrl + [DataMember(Name = ("biddingWasmHelperURL"), IsRequired = (false))] + public string BiddingWasmHelperURL { get; set; } /// - /// UpdateUrl + /// UpdateURL /// - [DataMember(Name = ("updateUrl"), IsRequired = (false))] - public string UpdateUrl + [DataMember(Name = ("updateURL"), IsRequired = (false))] + public string UpdateURL { get; set; } /// - /// TrustedBiddingSignalsUrl + /// TrustedBiddingSignalsURL /// - [DataMember(Name = ("trustedBiddingSignalsUrl"), IsRequired = (false))] - public string TrustedBiddingSignalsUrl + [DataMember(Name = ("trustedBiddingSignalsURL"), IsRequired = (false))] + public string TrustedBiddingSignalsURL { get; set; @@ -29426,11 +29552,6 @@ public enum PrerenderFinalStatus [EnumMember(Value = ("InvalidSchemeNavigation"))] InvalidSchemeNavigation, /// - /// InProgressNavigation - /// - [EnumMember(Value = ("InProgressNavigation"))] - InProgressNavigation, - /// /// NavigationRequestBlockedByCsp /// [EnumMember(Value = ("NavigationRequestBlockedByCsp"))] @@ -29486,11 +29607,6 @@ public enum PrerenderFinalStatus [EnumMember(Value = ("NavigationRequestNetworkError"))] NavigationRequestNetworkError, /// - /// MaxNumOfRunningPrerendersExceeded - /// - [EnumMember(Value = ("MaxNumOfRunningPrerendersExceeded"))] - MaxNumOfRunningPrerendersExceeded, - /// /// CancelAllHostsForTesting /// [EnumMember(Value = ("CancelAllHostsForTesting"))] @@ -29546,20 +29662,15 @@ public enum PrerenderFinalStatus [EnumMember(Value = ("MemoryLimitExceeded"))] MemoryLimitExceeded, /// - /// FailToGetMemoryUsage - /// - [EnumMember(Value = ("FailToGetMemoryUsage"))] - FailToGetMemoryUsage, - /// /// DataSaverEnabled /// [EnumMember(Value = ("DataSaverEnabled"))] DataSaverEnabled, /// - /// HasEffectiveUrl + /// TriggerUrlHasEffectiveUrl /// - [EnumMember(Value = ("HasEffectiveUrl"))] - HasEffectiveUrl, + [EnumMember(Value = ("TriggerUrlHasEffectiveUrl"))] + TriggerUrlHasEffectiveUrl, /// /// ActivatedBeforeStarted /// @@ -29714,7 +29825,37 @@ public enum PrerenderFinalStatus /// ActivatedWithAuxiliaryBrowsingContexts /// [EnumMember(Value = ("ActivatedWithAuxiliaryBrowsingContexts"))] - ActivatedWithAuxiliaryBrowsingContexts + ActivatedWithAuxiliaryBrowsingContexts, + /// + /// MaxNumOfRunningEagerPrerendersExceeded + /// + [EnumMember(Value = ("MaxNumOfRunningEagerPrerendersExceeded"))] + MaxNumOfRunningEagerPrerendersExceeded, + /// + /// MaxNumOfRunningNonEagerPrerendersExceeded + /// + [EnumMember(Value = ("MaxNumOfRunningNonEagerPrerendersExceeded"))] + MaxNumOfRunningNonEagerPrerendersExceeded, + /// + /// MaxNumOfRunningEmbedderPrerendersExceeded + /// + [EnumMember(Value = ("MaxNumOfRunningEmbedderPrerendersExceeded"))] + MaxNumOfRunningEmbedderPrerendersExceeded, + /// + /// PrerenderingUrlHasEffectiveUrl + /// + [EnumMember(Value = ("PrerenderingUrlHasEffectiveUrl"))] + PrerenderingUrlHasEffectiveUrl, + /// + /// RedirectedPrerenderingUrlHasEffectiveUrl + /// + [EnumMember(Value = ("RedirectedPrerenderingUrlHasEffectiveUrl"))] + RedirectedPrerenderingUrlHasEffectiveUrl, + /// + /// ActivationUrlHasEffectiveUrl + /// + [EnumMember(Value = ("ActivationUrlHasEffectiveUrl"))] + ActivationUrlHasEffectiveUrl } /// @@ -29947,80 +30088,6 @@ public string Id } } - /// - /// Fired when a prerender attempt is completed. - /// - [System.Runtime.Serialization.DataContractAttribute] - public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// Key - /// - [DataMember(Name = ("key"), IsRequired = (true))] - public CefSharp.DevTools.Preload.PreloadingAttemptKey Key - { - get; - private set; - } - - /// - /// The frame id of the frame initiating prerendering. - /// - [DataMember(Name = ("initiatingFrameId"), IsRequired = (true))] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrerenderingUrl - /// - [DataMember(Name = ("prerenderingUrl"), IsRequired = (true))] - public string PrerenderingUrl - { - get; - private set; - } - - /// - /// FinalStatus - /// - public CefSharp.DevTools.Preload.PrerenderFinalStatus FinalStatus - { - get - { - return (CefSharp.DevTools.Preload.PrerenderFinalStatus)(StringToEnum(typeof(CefSharp.DevTools.Preload.PrerenderFinalStatus), finalStatus)); - } - - set - { - this.finalStatus = (EnumToString(value)); - } - } - - /// - /// FinalStatus - /// - [DataMember(Name = ("finalStatus"), IsRequired = (true))] - internal string finalStatus - { - get; - private set; - } - - /// - /// This is used to give users more information about the name of the API call - /// that is incompatible with prerender and has caused the cancellation of the attempt - /// - [DataMember(Name = ("disallowedApiMethod"), IsRequired = (false))] - public string DisallowedApiMethod - { - get; - private set; - } - } - /// /// Fired when a preload enabled state is updated. /// @@ -30321,10 +30388,10 @@ public enum DialogType [EnumMember(Value = ("AutoReauthn"))] AutoReauthn, /// - /// ConfirmIdpSignin + /// ConfirmIdpLogin /// - [EnumMember(Value = ("ConfirmIdpSignin"))] - ConfirmIdpSignin + [EnumMember(Value = ("ConfirmIdpLogin"))] + ConfirmIdpLogin } /// @@ -30394,10 +30461,10 @@ public string IdpConfigUrl } /// - /// IdpSigninUrl + /// IdpLoginUrl /// - [DataMember(Name = ("idpSigninUrl"), IsRequired = (true))] - public string IdpSigninUrl + [DataMember(Name = ("idpLoginUrl"), IsRequired = (true))] + public string IdpLoginUrl { get; set; @@ -32321,8 +32388,7 @@ public enum SerializationOptionsSerialization } /// - /// Represents options for serialization. Overrides `generatePreview`, `returnByValue` and - /// `generateWebDriverValue`. + /// Represents options for serialization. Overrides `generatePreview` and `returnByValue`. /// [System.Runtime.Serialization.DataContractAttribute] public partial class SerializationOptions : CefSharp.DevTools.DevToolsDomainEntityBase @@ -32495,7 +32561,12 @@ public enum DeepSerializedValueType /// window /// [EnumMember(Value = ("window"))] - Window + Window, + /// + /// generator + /// + [EnumMember(Value = ("generator"))] + Generator } /// @@ -32817,16 +32888,6 @@ public string Description set; } - /// - /// Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value. - /// - [DataMember(Name = ("webDriverValue"), IsRequired = (false))] - public CefSharp.DevTools.Runtime.DeepSerializedValue WebDriverValue - { - get; - set; - } - /// /// Deep serialized value. /// @@ -36678,6 +36739,34 @@ public int[] NodeIds } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetPropertyRulePropertyNameResponse + /// + [DataContract] + public class SetPropertyRulePropertyNameResponse : DevToolsDomainResponseBase + { + [DataMember] + internal CefSharp.DevTools.CSS.Value propertyName + { + get; + set; + } + + /// + /// propertyName + /// + public CefSharp.DevTools.CSS.Value PropertyName + { + get + { + return propertyName; + } + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -37328,6 +37417,24 @@ public System.Threading.Tasks.Task SetEffectivePropertyV return _client.ExecuteDevToolsMethodAsync("CSS.setEffectivePropertyValueForNode", dict); } + partial void ValidateSetPropertyRulePropertyName(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string propertyName); + /// + /// Modifies the property rule property name. + /// + /// styleSheetId + /// range + /// propertyName + /// returns System.Threading.Tasks.Task<SetPropertyRulePropertyNameResponse> + public System.Threading.Tasks.Task SetPropertyRulePropertyNameAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string propertyName) + { + ValidateSetPropertyRulePropertyName(styleSheetId, range, propertyName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("propertyName", propertyName); + return _client.ExecuteDevToolsMethodAsync("CSS.setPropertyRulePropertyName", dict); + } + partial void ValidateSetKeyframeKey(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string keyText); /// /// Modifies the keyframe rule key text. @@ -51790,22 +51897,6 @@ public event System.EventHandler RuleSetRemoved } } - /// - /// Fired when a prerender attempt is completed. - /// - public event System.EventHandler PrerenderAttemptCompleted - { - add - { - _client.AddEventHandler("Preload.prerenderAttemptCompleted", value); - } - - remove - { - _client.RemoveEventHandler("Preload.prerenderAttemptCompleted", value); - } - } - /// /// Fired when a preload enabled state is updated. /// @@ -51971,19 +52062,19 @@ public System.Threading.Tasks.Task SelectAccountAsync(st return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); } - partial void ValidateConfirmIdpSignin(string dialogId); + partial void ValidateConfirmIdpLogin(string dialogId); /// - /// Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had + /// Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had /// clicked the continue button. /// /// dialogId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ConfirmIdpSigninAsync(string dialogId) + public System.Threading.Tasks.Task ConfirmIdpLoginAsync(string dialogId) { - ValidateConfirmIdpSignin(dialogId); + ValidateConfirmIdpLogin(dialogId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); - return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpSignin", dict); + return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpLogin", dict); } partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); @@ -54854,7 +54945,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -54871,12 +54962,11 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. - /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview` and `returnByValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue, serializationOptions); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -54934,11 +55024,6 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("uniqueContextId", uniqueContextId); } - if (generateWebDriverValue.HasValue) - { - dict.Add("generateWebDriverValue", generateWebDriverValue.Value); - } - if ((serializationOptions) != (null)) { dict.Add("serializationOptions", serializationOptions.ToDictionary()); @@ -55003,7 +55088,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); + partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Evaluates expression on global object. /// @@ -55022,12 +55107,11 @@ public System.Threading.Tasks.Task EnableAsync() /// Setting this flag to true enables `let` re-declaration and top-level `await`.Note that `let` variables can only be re-declared if they originate from`replMode` themselves. /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. - /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview` and `returnByValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) + public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue, serializationOptions); + ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("expression", expression); if (!(string.IsNullOrEmpty(objectGroup))) @@ -55100,11 +55184,6 @@ public System.Threading.Tasks.Task EvaluateAsync(string expres dict.Add("uniqueContextId", uniqueContextId); } - if (generateWebDriverValue.HasValue) - { - dict.Add("generateWebDriverValue", generateWebDriverValue.Value); - } - if ((serializationOptions) != (null)) { dict.Add("serializationOptions", serializationOptions.ToDictionary()); diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 0517ee10a..e9f1a23e0 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 118.0.5993.96 +// CHROMIUM VERSION 119.0.6045.105 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -3018,6 +3018,71 @@ public CefSharp.DevTools.Audits.FailedRequestInfo FailedRequestInfo } } + /// + /// PropertyRuleIssueReason + /// + public enum PropertyRuleIssueReason + { + /// + /// InvalidSyntax + /// + [JsonPropertyName("InvalidSyntax")] + InvalidSyntax, + /// + /// InvalidInitialValue + /// + [JsonPropertyName("InvalidInitialValue")] + InvalidInitialValue, + /// + /// InvalidInherits + /// + [JsonPropertyName("InvalidInherits")] + InvalidInherits, + /// + /// InvalidName + /// + [JsonPropertyName("InvalidName")] + InvalidName + } + + /// + /// This issue warns about errors in property rules that lead to property + /// registrations being ignored. + /// + public partial class PropertyRuleIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source code position of the property rule. + /// + [JsonPropertyName("sourceCodeLocation")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation + { + get; + set; + } + + /// + /// Reason why the property rule was discarded. + /// + [JsonPropertyName("propertyRuleIssueReason")] + public CefSharp.DevTools.Audits.PropertyRuleIssueReason PropertyRuleIssueReason + { + get; + set; + } + + /// + /// The value of the property rule property that failed to parse + /// + [JsonPropertyName("propertyValue")] + public string PropertyValue + { + get; + set; + } + } + /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -3114,7 +3179,12 @@ public enum InspectorIssueCode /// FederatedAuthUserInfoRequestIssue /// [JsonPropertyName("FederatedAuthUserInfoRequestIssue")] - FederatedAuthUserInfoRequestIssue + FederatedAuthUserInfoRequestIssue, + /// + /// PropertyRuleIssue + /// + [JsonPropertyName("PropertyRuleIssue")] + PropertyRuleIssue } /// @@ -3294,6 +3364,16 @@ public CefSharp.DevTools.Audits.StylesheetLoadingIssueDetails StylesheetLoadingI set; } + /// + /// PropertyRuleIssueDetails + /// + [JsonPropertyName("propertyRuleIssueDetails")] + public CefSharp.DevTools.Audits.PropertyRuleIssueDetails PropertyRuleIssueDetails + { + get; + set; + } + /// /// FederatedAuthUserInfoRequestIssueDetails /// @@ -13290,6 +13370,11 @@ public enum SetCookieBlockedReason [JsonPropertyName("UserPreferences")] UserPreferences, /// + /// ThirdPartyPhaseout + /// + [JsonPropertyName("ThirdPartyPhaseout")] + ThirdPartyPhaseout, + /// /// ThirdPartyBlockedInFirstPartySet /// [JsonPropertyName("ThirdPartyBlockedInFirstPartySet")] @@ -13358,7 +13443,12 @@ public enum SetCookieBlockedReason /// DisallowedCharacter /// [JsonPropertyName("DisallowedCharacter")] - DisallowedCharacter + DisallowedCharacter, + /// + /// NoCookieContent + /// + [JsonPropertyName("NoCookieContent")] + NoCookieContent } /// @@ -13407,6 +13497,11 @@ public enum CookieBlockedReason [JsonPropertyName("UserPreferences")] UserPreferences, /// + /// ThirdPartyPhaseout + /// + [JsonPropertyName("ThirdPartyPhaseout")] + ThirdPartyPhaseout, + /// /// ThirdPartyBlockedInFirstPartySet /// [JsonPropertyName("ThirdPartyBlockedInFirstPartySet")] @@ -22652,7 +22747,22 @@ public enum InterestGroupAccessType /// win /// [JsonPropertyName("win")] - Win + Win, + /// + /// additionalBid + /// + [JsonPropertyName("additionalBid")] + AdditionalBid, + /// + /// additionalBidWin + /// + [JsonPropertyName("additionalBidWin")] + AdditionalBidWin, + /// + /// clear + /// + [JsonPropertyName("clear")] + Clear } /// @@ -22661,11 +22771,11 @@ public enum InterestGroupAccessType public partial class InterestGroupAd : CefSharp.DevTools.DevToolsDomainEntityBase { /// - /// RenderUrl + /// RenderURL /// - [JsonPropertyName("renderUrl")] + [JsonPropertyName("renderURL")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string RenderUrl + public string RenderURL { get; set; @@ -22731,40 +22841,40 @@ public string JoiningOrigin } /// - /// BiddingUrl + /// BiddingLogicURL /// - [JsonPropertyName("biddingUrl")] - public string BiddingUrl + [JsonPropertyName("biddingLogicURL")] + public string BiddingLogicURL { get; set; } /// - /// BiddingWasmHelperUrl + /// BiddingWasmHelperURL /// - [JsonPropertyName("biddingWasmHelperUrl")] - public string BiddingWasmHelperUrl + [JsonPropertyName("biddingWasmHelperURL")] + public string BiddingWasmHelperURL { get; set; } /// - /// UpdateUrl + /// UpdateURL /// - [JsonPropertyName("updateUrl")] - public string UpdateUrl + [JsonPropertyName("updateURL")] + public string UpdateURL { get; set; } /// - /// TrustedBiddingSignalsUrl + /// TrustedBiddingSignalsURL /// - [JsonPropertyName("trustedBiddingSignalsUrl")] - public string TrustedBiddingSignalsUrl + [JsonPropertyName("trustedBiddingSignalsURL")] + public string TrustedBiddingSignalsURL { get; set; @@ -27430,11 +27540,6 @@ public enum PrerenderFinalStatus [JsonPropertyName("InvalidSchemeNavigation")] InvalidSchemeNavigation, /// - /// InProgressNavigation - /// - [JsonPropertyName("InProgressNavigation")] - InProgressNavigation, - /// /// NavigationRequestBlockedByCsp /// [JsonPropertyName("NavigationRequestBlockedByCsp")] @@ -27490,11 +27595,6 @@ public enum PrerenderFinalStatus [JsonPropertyName("NavigationRequestNetworkError")] NavigationRequestNetworkError, /// - /// MaxNumOfRunningPrerendersExceeded - /// - [JsonPropertyName("MaxNumOfRunningPrerendersExceeded")] - MaxNumOfRunningPrerendersExceeded, - /// /// CancelAllHostsForTesting /// [JsonPropertyName("CancelAllHostsForTesting")] @@ -27550,20 +27650,15 @@ public enum PrerenderFinalStatus [JsonPropertyName("MemoryLimitExceeded")] MemoryLimitExceeded, /// - /// FailToGetMemoryUsage - /// - [JsonPropertyName("FailToGetMemoryUsage")] - FailToGetMemoryUsage, - /// /// DataSaverEnabled /// [JsonPropertyName("DataSaverEnabled")] DataSaverEnabled, /// - /// HasEffectiveUrl + /// TriggerUrlHasEffectiveUrl /// - [JsonPropertyName("HasEffectiveUrl")] - HasEffectiveUrl, + [JsonPropertyName("TriggerUrlHasEffectiveUrl")] + TriggerUrlHasEffectiveUrl, /// /// ActivatedBeforeStarted /// @@ -27718,7 +27813,37 @@ public enum PrerenderFinalStatus /// ActivatedWithAuxiliaryBrowsingContexts /// [JsonPropertyName("ActivatedWithAuxiliaryBrowsingContexts")] - ActivatedWithAuxiliaryBrowsingContexts + ActivatedWithAuxiliaryBrowsingContexts, + /// + /// MaxNumOfRunningEagerPrerendersExceeded + /// + [JsonPropertyName("MaxNumOfRunningEagerPrerendersExceeded")] + MaxNumOfRunningEagerPrerendersExceeded, + /// + /// MaxNumOfRunningNonEagerPrerendersExceeded + /// + [JsonPropertyName("MaxNumOfRunningNonEagerPrerendersExceeded")] + MaxNumOfRunningNonEagerPrerendersExceeded, + /// + /// MaxNumOfRunningEmbedderPrerendersExceeded + /// + [JsonPropertyName("MaxNumOfRunningEmbedderPrerendersExceeded")] + MaxNumOfRunningEmbedderPrerendersExceeded, + /// + /// PrerenderingUrlHasEffectiveUrl + /// + [JsonPropertyName("PrerenderingUrlHasEffectiveUrl")] + PrerenderingUrlHasEffectiveUrl, + /// + /// RedirectedPrerenderingUrlHasEffectiveUrl + /// + [JsonPropertyName("RedirectedPrerenderingUrlHasEffectiveUrl")] + RedirectedPrerenderingUrlHasEffectiveUrl, + /// + /// ActivationUrlHasEffectiveUrl + /// + [JsonPropertyName("ActivationUrlHasEffectiveUrl")] + ActivationUrlHasEffectiveUrl } /// @@ -27953,71 +28078,6 @@ public string Id } } - /// - /// Fired when a prerender attempt is completed. - /// - public class PrerenderAttemptCompletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase - { - /// - /// Key - /// - [JsonInclude] - [JsonPropertyName("key")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public CefSharp.DevTools.Preload.PreloadingAttemptKey Key - { - get; - private set; - } - - /// - /// The frame id of the frame initiating prerendering. - /// - [JsonInclude] - [JsonPropertyName("initiatingFrameId")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string InitiatingFrameId - { - get; - private set; - } - - /// - /// PrerenderingUrl - /// - [JsonInclude] - [JsonPropertyName("prerenderingUrl")] - [System.Diagnostics.CodeAnalysis.DisallowNull] - public string PrerenderingUrl - { - get; - private set; - } - - /// - /// FinalStatus - /// - [JsonInclude] - [JsonPropertyName("finalStatus")] - public CefSharp.DevTools.Preload.PrerenderFinalStatus FinalStatus - { - get; - private set; - } - - /// - /// This is used to give users more information about the name of the API call - /// that is incompatible with prerender and has caused the cancellation of the attempt - /// - [JsonInclude] - [JsonPropertyName("disallowedApiMethod")] - public string DisallowedApiMethod - { - get; - private set; - } - } - /// /// Fired when a preload enabled state is updated. /// @@ -28274,10 +28334,10 @@ public enum DialogType [JsonPropertyName("AutoReauthn")] AutoReauthn, /// - /// ConfirmIdpSignin + /// ConfirmIdpLogin /// - [JsonPropertyName("ConfirmIdpSignin")] - ConfirmIdpSignin + [JsonPropertyName("ConfirmIdpLogin")] + ConfirmIdpLogin } /// @@ -28352,11 +28412,11 @@ public string IdpConfigUrl } /// - /// IdpSigninUrl + /// IdpLoginUrl /// - [JsonPropertyName("idpSigninUrl")] + [JsonPropertyName("idpLoginUrl")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public string IdpSigninUrl + public string IdpLoginUrl { get; set; @@ -30234,8 +30294,7 @@ public enum SerializationOptionsSerialization } /// - /// Represents options for serialization. Overrides `generatePreview`, `returnByValue` and - /// `generateWebDriverValue`. + /// Represents options for serialization. Overrides `generatePreview` and `returnByValue`. /// public partial class SerializationOptions : CefSharp.DevTools.DevToolsDomainEntityBase { @@ -30391,7 +30450,12 @@ public enum DeepSerializedValueType /// window /// [JsonPropertyName("window")] - Window + Window, + /// + /// generator + /// + [JsonPropertyName("generator")] + Generator } /// @@ -30661,16 +30725,6 @@ public string Description set; } - /// - /// Deprecated. Use `deepSerializedValue` instead. WebDriver BiDi representation of the value. - /// - [JsonPropertyName("webDriverValue")] - public CefSharp.DevTools.Runtime.DeepSerializedValue WebDriverValue - { - get; - set; - } - /// /// Deep serialized value. /// @@ -34094,6 +34148,26 @@ public int[] NodeIds } } +namespace CefSharp.DevTools.CSS +{ + /// + /// SetPropertyRulePropertyNameResponse + /// + public class SetPropertyRulePropertyNameResponse : DevToolsDomainResponseBase + { + /// + /// propertyName + /// + [JsonInclude] + [JsonPropertyName("propertyName")] + public CefSharp.DevTools.CSS.Value PropertyName + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.CSS { /// @@ -34657,6 +34731,24 @@ public System.Threading.Tasks.Task SetEffectivePropertyV return _client.ExecuteDevToolsMethodAsync("CSS.setEffectivePropertyValueForNode", dict); } + partial void ValidateSetPropertyRulePropertyName(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string propertyName); + /// + /// Modifies the property rule property name. + /// + /// styleSheetId + /// range + /// propertyName + /// returns System.Threading.Tasks.Task<SetPropertyRulePropertyNameResponse> + public System.Threading.Tasks.Task SetPropertyRulePropertyNameAsync(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string propertyName) + { + ValidateSetPropertyRulePropertyName(styleSheetId, range, propertyName); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("styleSheetId", styleSheetId); + dict.Add("range", range.ToDictionary()); + dict.Add("propertyName", propertyName); + return _client.ExecuteDevToolsMethodAsync("CSS.setPropertyRulePropertyName", dict); + } + partial void ValidateSetKeyframeKey(string styleSheetId, CefSharp.DevTools.CSS.SourceRange range, string keyText); /// /// Modifies the keyframe rule key text. @@ -47927,22 +48019,6 @@ public event System.EventHandler RuleSetRemoved } } - /// - /// Fired when a prerender attempt is completed. - /// - public event System.EventHandler PrerenderAttemptCompleted - { - add - { - _client.AddEventHandler("Preload.prerenderAttemptCompleted", value); - } - - remove - { - _client.RemoveEventHandler("Preload.prerenderAttemptCompleted", value); - } - } - /// /// Fired when a preload enabled state is updated. /// @@ -48108,19 +48184,19 @@ public System.Threading.Tasks.Task SelectAccountAsync(st return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); } - partial void ValidateConfirmIdpSignin(string dialogId); + partial void ValidateConfirmIdpLogin(string dialogId); /// - /// Only valid if the dialog type is ConfirmIdpSignin. Acts as if the user had + /// Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had /// clicked the continue button. /// /// dialogId /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ConfirmIdpSigninAsync(string dialogId) + public System.Threading.Tasks.Task ConfirmIdpLoginAsync(string dialogId) { - ValidateConfirmIdpSignin(dialogId); + ValidateConfirmIdpLogin(dialogId); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); - return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpSignin", dict); + return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpLogin", dict); } partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); @@ -50559,7 +50635,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin return _client.ExecuteDevToolsMethodAsync("Runtime.awaitPromise", dict); } - partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); + partial void ValidateCallFunctionOn(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Calls function with given declaration on the given object. Object group of the result is /// inherited from the target object. @@ -50576,12 +50652,11 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Symbolic group name that can be used to release multiple objects. If objectGroup is notspecified and objectId is, objectGroup will be inherited from object. /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. - /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview` and `returnByValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> - public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) + public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, generateWebDriverValue, serializationOptions); + ValidateCallFunctionOn(functionDeclaration, objectId, arguments, silent, returnByValue, generatePreview, userGesture, awaitPromise, executionContextId, objectGroup, throwOnSideEffect, uniqueContextId, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("functionDeclaration", functionDeclaration); if (!(string.IsNullOrEmpty(objectId))) @@ -50639,11 +50714,6 @@ public System.Threading.Tasks.Task CallFunctionOnAsync(s dict.Add("uniqueContextId", uniqueContextId); } - if (generateWebDriverValue.HasValue) - { - dict.Add("generateWebDriverValue", generateWebDriverValue.Value); - } - if ((serializationOptions) != (null)) { dict.Add("serializationOptions", serializationOptions.ToDictionary()); @@ -50708,7 +50778,7 @@ public System.Threading.Tasks.Task EnableAsync() return _client.ExecuteDevToolsMethodAsync("Runtime.enable", dict); } - partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); + partial void ValidateEvaluate(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null); /// /// Evaluates expression on global object. /// @@ -50727,12 +50797,11 @@ public System.Threading.Tasks.Task EnableAsync() /// Setting this flag to true enables `let` re-declaration and top-level `await`.Note that `let` variables can only be re-declared if they originate from`replMode` themselves. /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. - /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview` and `returnByValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> - public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) + public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { - ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, generateWebDriverValue, serializationOptions); + ValidateEvaluate(expression, objectGroup, includeCommandLineAPI, silent, contextId, returnByValue, generatePreview, userGesture, awaitPromise, throwOnSideEffect, timeout, disableBreaks, replMode, allowUnsafeEvalBlockedByCSP, uniqueContextId, serializationOptions); var dict = new System.Collections.Generic.Dictionary(); dict.Add("expression", expression); if (!(string.IsNullOrEmpty(objectGroup))) @@ -50805,11 +50874,6 @@ public System.Threading.Tasks.Task EvaluateAsync(string expres dict.Add("uniqueContextId", uniqueContextId); } - if (generateWebDriverValue.HasValue) - { - dict.Add("generateWebDriverValue", generateWebDriverValue.Value); - } - if ((serializationOptions) != (null)) { dict.Add("serializationOptions", serializationOptions.ToDictionary()); From e45890a0f991d2f713b166be39d5f6b9eaa43267 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 11 Nov 2023 10:37:23 +1000 Subject: [PATCH 305/543] WPF/OffScreen - WaitForRenderIdleAsync possible ObjectDisposedException - Potentially the call to the Stop/Start the Timer in the Paint event handler may result in an ObjectDisposedException as the Timer was disposed on a different thread. Resolves #4597 --- CefSharp.OffScreen/ChromiumWebBrowser.cs | 13 +++++++++++-- CefSharp.Wpf/ChromiumWebBrowser.cs | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/CefSharp.OffScreen/ChromiumWebBrowser.cs b/CefSharp.OffScreen/ChromiumWebBrowser.cs index 8d0d17644..50bbbff05 100644 --- a/CefSharp.OffScreen/ChromiumWebBrowser.cs +++ b/CefSharp.OffScreen/ChromiumWebBrowser.cs @@ -727,8 +727,17 @@ public async Task WaitForRenderIdleAsync(int idleTimeInMs = 500, TimeSpan? timeo //Every time Paint is called we reset our timer handler = (s, args) => { - idleTimer.Stop(); - idleTimer.Start(); + try + { + idleTimer?.Stop(); + idleTimer?.Start(); + } + catch (ObjectDisposedException) + { + // NOTE: When the Elapsed (or Timeout) and Paint are fire at almost exactly + // the same time, the timer maybe Disposed on a different thread. + // https://github.com/cefsharp/CefSharp/issues/4597 + } }; idleTimer.Start(); diff --git a/CefSharp.Wpf/ChromiumWebBrowser.cs b/CefSharp.Wpf/ChromiumWebBrowser.cs index ea8151c2c..b93c6642d 100644 --- a/CefSharp.Wpf/ChromiumWebBrowser.cs +++ b/CefSharp.Wpf/ChromiumWebBrowser.cs @@ -2711,8 +2711,17 @@ public async Task WaitForRenderIdleAsync(int idleTimeInMs = 500, TimeSpan? timeo //Every time Paint is called we reset our timer handler = (s, args) => { - idleTimer.Stop(); - idleTimer.Start(); + try + { + idleTimer?.Stop(); + idleTimer?.Start(); + } + catch (ObjectDisposedException) + { + // NOTE: When the Elapsed (or Timeout) and Paint are fire at almost exactly + // the same time, the timer maybe Disposed on a different thread. + // https://github.com/cefsharp/CefSharp/issues/4597 + } }; idleTimer.Start(); From 42c150406bf69ce07a3ee678173aeef0c0470754 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 21 Nov 2023 19:36:50 +1000 Subject: [PATCH 306/543] Core - EvaluateScriptAsync no longer returns meaningful error messages Resolves #4629 --- CefSharp.Core.Runtime/Internals/StringUtils.h | 4 ++-- CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CefSharp.Core.Runtime/Internals/StringUtils.h b/CefSharp.Core.Runtime/Internals/StringUtils.h index f34375893..3b819c0f8 100644 --- a/CefSharp.Core.Runtime/Internals/StringUtils.h +++ b/CefSharp.Core.Runtime/Internals/StringUtils.h @@ -133,10 +133,10 @@ namespace CefSharp if (exception.get()) { std::wstringstream logMessageBuilder; - logMessageBuilder << exception->GetMessage().c_str() << L"\n@ "; + logMessageBuilder << exception->GetMessage().ToWString() << L"\n@ "; if (!exception->GetScriptResourceName().empty()) { - logMessageBuilder << exception->GetScriptResourceName().c_str(); + logMessageBuilder << exception->GetScriptResourceName().ToWString(); } logMessageBuilder << L":" << exception->GetLineNumber() << L":" << exception->GetStartColumn(); return CefString(logMessageBuilder.str()); diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs index 8e033d9cc..f8f4cace5 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs @@ -216,6 +216,18 @@ public async Task CanEvaluateScriptAsyncReturnPartiallyEmptyArrays(string javasc Assert.Equal(expected, result.Result); } + [Theory] + [InlineData("return", "Uncaught SyntaxError: Illegal return statement\n@ about:blank:1:0")] + public async Task CanEvaluateScriptAsyncReturnError(string javascript, string expected) + { + AssertInitialLoadComplete(); + + var result = await Browser.EvaluateScriptAsync(javascript); + + Assert.False(result.Success); + Assert.Equal(expected, result.Message); + } + /// /// Use the EvaluateScriptAsync (IWebBrowser, String,Object[]) overload and pass in string params /// that require encoding. Test case for https://github.com/cefsharp/CefSharp/issues/2339 From 081a56fe423b9674f014d102a7c2a621341e229d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 15 Dec 2023 20:02:47 +1000 Subject: [PATCH 307/543] Upgrade to 120.1.8+ge6b45b0+chromium-120.0.6099.109 / Chromium 120.0.6099.109 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 446ecc3fe..3ebd4c002 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index ca75ca810..9e39dffd1 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index d0e70f740..3af40bd70 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 119,1,20 - PRODUCTVERSION 119,1,20 + FILEVERSION 120,1,80 + PRODUCTVERSION 120,1,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "119.1.20" + VALUE "FileVersion", "120.1.80" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "119.1.20" + VALUE "ProductVersion", "120.1.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 4430920fb..fb5cb6b6e 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index c4712e731..01ed35f0c 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 7143116e9..7dd40dd5c 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 25ef9e725..0a8f3da3c 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index ef76816ab..d6d8e85a5 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index f9ea444bd..02b77957f 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 119,1,20 - PRODUCTVERSION 119,1,20 + FILEVERSION 120,1,80 + PRODUCTVERSION 120,1,80 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "119.1.20" + VALUE "FileVersion", "120.1.80" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "119.1.20" + VALUE "ProductVersion", "120.1.80" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 4430920fb..fb5cb6b6e 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index c4712e731..01ed35f0c 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index 0ef493e5e..fd436a906 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index db9c15c0c..2c1c7ebd5 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 47cc4e29d..146312817 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 4b88fb6cb..d2af32f3d 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 01ccd0088..2f5357be0 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index e51329783..6b6d1c4c2 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index b351739d7..0d0d38d58 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index 0db056bf9..ea08390be 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 35b73bf17..f915c8b15 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index a5d14f26b..d859b70c6 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 872ccb24f..96cf64689 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 3ed0d64f8..39b97aa81 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 119.1.20 + 120.1.80 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 119.1.20 + Version 120.1.80 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index b273cb312..86fdb7910 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "119.1.20"; - public const string AssemblyFileVersion = "119.1.20.0"; + public const string AssemblyVersion = "120.1.80"; + public const string AssemblyFileVersion = "120.1.80.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 3f9c5ce6a..8623b3f35 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 38509f69a..8e1c18d11 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index f512ff5b2..19908dbff 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 1deadbfda..2ac1fcc3e 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "119.1.2", + [string] $CefVersion = "120.1.8", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index da9c88ddb..ad146177f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 119.1.20-CI{build} +version: 120.1.80-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 2f508f049..519761070 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "119.1.20", + [string] $Version = "120.1.80", [Parameter(Position = 2)] - [string] $AssemblyVersion = "119.1.20", + [string] $AssemblyVersion = "120.1.80", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From fed03c32f39bfc1a86a5540c4d5bbb2c080cc9ef Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 15 Dec 2023 20:07:06 +1000 Subject: [PATCH 308/543] Update README.md - Upcoming M120 release --- .github/ISSUE_TEMPLATE/bug_report.yml | 6 +++--- CONTRIBUTING.md | 6 +++--- README.md | 6 ++++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b60828bf5..acf35350e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -21,8 +21,8 @@ body: id: cefsharp-version attributes: label: CefSharp Version - description: What version are you using? Please only open an issue if you can reproduce the problem with version 117.2.40 or later. - placeholder: 117.2.40 + description: What version are you using? Please only open an issue if you can reproduce the problem with version 120.1.80 or later. + placeholder: 120.1.80 validations: required: true - type: dropdown @@ -120,7 +120,7 @@ body: attributes: value: | To help determine where the problem needs to be fixed please download and test using the `CEF Sample Application(cefclient)`. - 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windowsarm64_client.tar.bz2). + 1. Download for [x86](https://cef-builds.spotifycdn.com/cef_binary_120.1.8%2Bge6b45b0%2Bchromium-120.0.6099.109_windows32_client.tar.bz2) or [x64](https://cef-builds.spotifycdn.com/cef_binary_120.1.8%2Bge6b45b0%2Bchromium-120.0.6099.109_windows64_client.tar.bz2) or [arm64](https://cef-builds.spotifycdn.com/cef_binary_120.1.8%2Bge6b45b0%2Bchromium-120.0.6099.109_windowsarm64_client.tar.bz2). 2. Extract tar.bz2 file 3. Execute cefclient.exe using the **command line args below**: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d667dc18c..c059563e0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -19,9 +19,9 @@ The upstream [`CEF` forum](http://magpcss.org/ceforum/) is a valuable resource, It maybe helpful to run the `cefclient` application and compare output with `CefSharp`. The `WinForms` and `WPF` versions use two different rendering modes, `WPF` uses Offscreen Rendering (`OSR`). `OffScreen` also uses `OSR` mode. - Download one of the following: - - For x86 download https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows32_client.tar.bz2 - - For x64 download https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windows64_client.tar.bz2 - - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_118.6.8%2Bge44bee1%2Bchromium-118.0.5993.117_windowsarm64_client.tar.bz2 + - For x86 download https://cef-builds.spotifycdn.com/cef_binary_120.1.8%2Bge6b45b0%2Bchromium-120.0.6099.109_windows32_client.tar.bz2 + - For x64 download https://cef-builds.spotifycdn.com/cef_binary_120.1.8%2Bge6b45b0%2Bchromium-120.0.6099.109_windows64_client.tar.bz2 + - For arm64 download https://cef-builds.spotifycdn.com/cef_binary_120.1.8%2Bge6b45b0%2Bchromium-120.0.6099.109_windowsarm64_client.tar.bz2 - Extract and run cefclient.exe - If you are using WPF/OffScreen run ``` diff --git a/README.md b/README.md index 8d0d3257c..a08f39e3d 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,10 @@ If you're new to `CefSharp` and are downloading the source to check it out, plea | Branch | CEF Version | VC++ Version | .Net Version | Status | |-----------------------------------------------------------------------|------|-------|---------|-----------------| -| [master](https://github.com/cefsharp/CefSharp/) | 5993 | 2019* | 4.6.2** | Development | -| [cefsharp/118](https://github.com/cefsharp/CefSharp/tree/cefsharp/118)| 5993 | 2019* | 4.6.2** | **Release** | +| [master](https://github.com/cefsharp/CefSharp/) | 6099 | 2019* | 4.6.2** | Development | +| [cefsharp/120](https://github.com/cefsharp/CefSharp/tree/cefsharp/120)| 6099 | 2019* | 4.6.2** | **Release** | +| [cefsharp/119](https://github.com/cefsharp/CefSharp/tree/cefsharp/119)| 6045 | 2019* | 4.6.2** | Unsupported | +| [cefsharp/118](https://github.com/cefsharp/CefSharp/tree/cefsharp/118)| 5993 | 2019* | 4.6.2** | Unsupported | | [cefsharp/117](https://github.com/cefsharp/CefSharp/tree/cefsharp/117)| 5938 | 2019* | 4.6.2** | Unsupported | | [cefsharp/116](https://github.com/cefsharp/CefSharp/tree/cefsharp/116)| 5845 | 2019* | 4.6.2** | Unsupported | | [cefsharp/115](https://github.com/cefsharp/CefSharp/tree/cefsharp/115)| 5790 | 2019* | 4.6.2** | Unsupported | From 89922587f2438224e7f88d650a26e9dc03e7fccf Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 15 Dec 2023 20:16:17 +1000 Subject: [PATCH 309/543] Update CefErrorCode to https://raw.githubusercontent.com/chromium/chromium/120.0.6099.109/net/base/net_error_list.h --- CefSharp/Enums/CefErrorCode.cs | 40 +++++++++++++++++----------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/CefSharp/Enums/CefErrorCode.cs b/CefSharp/Enums/CefErrorCode.cs index bd4ea2a15..113c596b7 100644 --- a/CefSharp/Enums/CefErrorCode.cs +++ b/CefSharp/Enums/CefErrorCode.cs @@ -1121,16 +1121,11 @@ public enum CefErrorCode /// Http2RstStreamNoErrorReceived = -372, - /// - /// The pushed stream claimed by the request is no longer available. - /// - Http2PushedStreamNotAvailable = -373, + // Obsolete. HTTP/2 push is removed. + // NET_ERROR(HTTP2_PUSHED_STREAM_NOT_AVAILABLE, -373) - /// - /// A pushed stream was claimed and later reset by the server. When this happens, - /// the request should be retried. - /// - Http2ClaimedPushedStreamResetByServer = -374, + // Obsolete. HTTP/2 push is removed. + // NET_ERROR(HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER, -374) /// /// An HTTP transaction was retried too many times due for authentication or @@ -1145,21 +1140,16 @@ public enum CefErrorCode /// Http2StreamClosed = -376, - /// - /// Client is refusing an HTTP/2 stream. - /// - Http2ClientRefusedStream = -377, + // Obsolete. HTTP/2 push is removed. + // NET_ERROR(HTTP2_CLIENT_REFUSED_STREAM, -377) - /// - /// A pushed HTTP/2 stream was claimed by a request based on matching URL and - /// request headers, but the pushed response headers do not match the request. - /// - Http2PushedResponseDoesNotMatch = -378, + // Obsolete. HTTP/2 push is removed. + // NET_ERROR(HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH, -378) /// /// The server returned a non-2xx HTTP response code. /// - /// Not that this error is only used by certain APIs that interpret the HTTP + /// Note that this error is only used by certain APIs that interpret the HTTP /// response itself. URLRequest for instance just passes most non-2xx /// response back as success. /// @@ -1191,7 +1181,7 @@ public enum CefErrorCode InconsistentIpAddressSpace = -383, /// - /// The IP address space of the cached remote endpoint is blocked by local + /// The IP address space of the cached remote endpoint is blocked by private /// network access check. /// CachedIpAddressSpaceBlockedByLocalNetworkAccessPolicy = -384, @@ -1436,6 +1426,11 @@ public enum CefErrorCode // Error -715 was removed (CHANNEL_ID_IMPORT_FAILED) + /// + /// The certificate verifier configuration changed in some way. + /// + CertVerifierChanged = -716, + // DNS error codes. /// @@ -1508,5 +1503,10 @@ public enum CefErrorCode /// alpn values of supported protocols, but did not. /// DnsNoMatchingSupportedAlpn = -811, + + /// + /// The compression dictionary cannot be loaded. + /// + DictionaryLoadFailed = -812, }; } From ad2213bbc3cf6d9276188652fa817c9f128e2409 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 16 Dec 2023 10:49:22 +1000 Subject: [PATCH 310/543] DevTools Client - Upgrade to 120.0.6099.109 --- .../DevTools/DevToolsClient.Generated.cs | 616 ++++++++++++++++-- .../DevToolsClient.Generated.netcore.cs | 582 +++++++++++++++-- 2 files changed, 1073 insertions(+), 125 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 21b21f936..8cc82001d 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 119.0.6045.105 +// CHROMIUM VERSION 120.0.6099.109 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1401,7 +1401,12 @@ public enum CookieWarningReason /// WarnThirdPartyPhaseout /// [EnumMember(Value = ("WarnThirdPartyPhaseout"))] - WarnThirdPartyPhaseout + WarnThirdPartyPhaseout, + /// + /// WarnCrossSiteRedirectDowngradeChangesInclusion + /// + [EnumMember(Value = ("WarnCrossSiteRedirectDowngradeChangesInclusion"))] + WarnCrossSiteRedirectDowngradeChangesInclusion } /// @@ -2889,6 +2894,27 @@ public string[] TrackingSites } } + /// + /// This issue warns about third-party sites that are accessing cookies on the + /// current page, and have been permitted due to having a global metadata grant. + /// Note that in this context 'site' means eTLD+1. For example, if the URL + /// `https://example.test:80/web_page` was accessing cookies, the site reported + /// would be `example.test`. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CookieDeprecationMetadataIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// AllowedSites + /// + [DataMember(Name = ("allowedSites"), IsRequired = (true))] + public string[] AllowedSites + { + get; + set; + } + } + /// /// ClientHintIssueReason /// @@ -3088,6 +3114,16 @@ public enum FederatedAuthRequestIssueReason [EnumMember(Value = ("IdTokenInvalidResponse"))] IdTokenInvalidResponse, /// + /// IdTokenIdpErrorResponse + /// + [EnumMember(Value = ("IdTokenIdpErrorResponse"))] + IdTokenIdpErrorResponse, + /// + /// IdTokenCrossSiteIdpErrorResponse + /// + [EnumMember(Value = ("IdTokenCrossSiteIdpErrorResponse"))] + IdTokenCrossSiteIdpErrorResponse, + /// /// IdTokenInvalidRequest /// [EnumMember(Value = ("IdTokenInvalidRequest"))] @@ -3121,7 +3157,12 @@ public enum FederatedAuthRequestIssueReason /// ThirdPartyCookiesBlocked /// [EnumMember(Value = ("ThirdPartyCookiesBlocked"))] - ThirdPartyCookiesBlocked + ThirdPartyCookiesBlocked, + /// + /// NotSignedInWithIdp + /// + [EnumMember(Value = ("NotSignedInWithIdp"))] + NotSignedInWithIdp } /// @@ -3531,6 +3572,11 @@ public enum InspectorIssueCode [EnumMember(Value = ("BounceTrackingIssue"))] BounceTrackingIssue, /// + /// CookieDeprecationMetadataIssue + /// + [EnumMember(Value = ("CookieDeprecationMetadataIssue"))] + CookieDeprecationMetadataIssue, + /// /// StylesheetLoadingIssue /// [EnumMember(Value = ("StylesheetLoadingIssue"))] @@ -3715,6 +3761,16 @@ public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDe set; } + /// + /// CookieDeprecationMetadataIssueDetails + /// + [DataMember(Name = ("cookieDeprecationMetadataIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.CookieDeprecationMetadataIssueDetails CookieDeprecationMetadataIssueDetails + { + get; + set; + } + /// /// StylesheetLoadingIssueDetails /// @@ -10277,6 +10333,234 @@ public bool? Wow64 } } + /// + /// Used to specify sensor types to emulate. + /// See https://w3c.github.io/sensors/#automation for more information. + /// + public enum SensorType + { + /// + /// absolute-orientation + /// + [EnumMember(Value = ("absolute-orientation"))] + AbsoluteOrientation, + /// + /// accelerometer + /// + [EnumMember(Value = ("accelerometer"))] + Accelerometer, + /// + /// ambient-light + /// + [EnumMember(Value = ("ambient-light"))] + AmbientLight, + /// + /// gravity + /// + [EnumMember(Value = ("gravity"))] + Gravity, + /// + /// gyroscope + /// + [EnumMember(Value = ("gyroscope"))] + Gyroscope, + /// + /// linear-acceleration + /// + [EnumMember(Value = ("linear-acceleration"))] + LinearAcceleration, + /// + /// magnetometer + /// + [EnumMember(Value = ("magnetometer"))] + Magnetometer, + /// + /// proximity + /// + [EnumMember(Value = ("proximity"))] + Proximity, + /// + /// relative-orientation + /// + [EnumMember(Value = ("relative-orientation"))] + RelativeOrientation + } + + /// + /// SensorMetadata + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SensorMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Available + /// + [DataMember(Name = ("available"), IsRequired = (false))] + public bool? Available + { + get; + set; + } + + /// + /// MinimumFrequency + /// + [DataMember(Name = ("minimumFrequency"), IsRequired = (false))] + public double? MinimumFrequency + { + get; + set; + } + + /// + /// MaximumFrequency + /// + [DataMember(Name = ("maximumFrequency"), IsRequired = (false))] + public double? MaximumFrequency + { + get; + set; + } + } + + /// + /// SensorReadingSingle + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SensorReadingSingle : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Value + /// + [DataMember(Name = ("value"), IsRequired = (true))] + public double Value + { + get; + set; + } + } + + /// + /// SensorReadingXYZ + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SensorReadingXYZ : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// X + /// + [DataMember(Name = ("x"), IsRequired = (true))] + public double X + { + get; + set; + } + + /// + /// Y + /// + [DataMember(Name = ("y"), IsRequired = (true))] + public double Y + { + get; + set; + } + + /// + /// Z + /// + [DataMember(Name = ("z"), IsRequired = (true))] + public double Z + { + get; + set; + } + } + + /// + /// SensorReadingQuaternion + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SensorReadingQuaternion : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// X + /// + [DataMember(Name = ("x"), IsRequired = (true))] + public double X + { + get; + set; + } + + /// + /// Y + /// + [DataMember(Name = ("y"), IsRequired = (true))] + public double Y + { + get; + set; + } + + /// + /// Z + /// + [DataMember(Name = ("z"), IsRequired = (true))] + public double Z + { + get; + set; + } + + /// + /// W + /// + [DataMember(Name = ("w"), IsRequired = (true))] + public double W + { + get; + set; + } + } + + /// + /// SensorReading + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class SensorReading : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Single + /// + [DataMember(Name = ("single"), IsRequired = (false))] + public CefSharp.DevTools.Emulation.SensorReadingSingle Single + { + get; + set; + } + + /// + /// Xyz + /// + [DataMember(Name = ("xyz"), IsRequired = (false))] + public CefSharp.DevTools.Emulation.SensorReadingXYZ Xyz + { + get; + set; + } + + /// + /// Quaternion + /// + [DataMember(Name = ("quaternion"), IsRequired = (false))] + public CefSharp.DevTools.Emulation.SensorReadingQuaternion Quaternion + { + get; + set; + } + } + /// /// Enum of image types that can be disabled. /// @@ -10850,7 +11134,7 @@ public double? TangentialPressure /// The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) /// [DataMember(Name = ("tiltX"), IsRequired = (false))] - public int? TiltX + public double? TiltX { get; set; @@ -10860,7 +11144,7 @@ public int? TiltX /// The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). /// [DataMember(Name = ("tiltY"), IsRequired = (false))] - public int? TiltY + public double? TiltY { get; set; @@ -18690,6 +18974,43 @@ public CefSharp.DevTools.DOM.RGBA OutlineColor } } + /// + /// Configuration for Window Controls Overlay + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class WindowControlsOverlayConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Whether the title bar CSS should be shown when emulating the Window Controls Overlay. + /// + [DataMember(Name = ("showCSS"), IsRequired = (true))] + public bool ShowCSS + { + get; + set; + } + + /// + /// Seleted platforms to show the overlay. + /// + [DataMember(Name = ("selectedPlatform"), IsRequired = (true))] + public string SelectedPlatform + { + get; + set; + } + + /// + /// The theme color defined in app manifest. + /// + [DataMember(Name = ("themeColor"), IsRequired = (true))] + public string ThemeColor + { + get; + set; + } + } + /// /// ContainerQueryHighlightConfig /// @@ -21837,6 +22158,53 @@ public enum BackForwardCacheNotRestoredReasonType Circumstantial } + /// + /// BackForwardCacheBlockingDetails + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class BackForwardCacheBlockingDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Url of the file where blockage happened. Optional because of tests. + /// + [DataMember(Name = ("url"), IsRequired = (false))] + public string Url + { + get; + set; + } + + /// + /// Function name where blockage happened. Optional because of anonymous functions and tests. + /// + [DataMember(Name = ("function"), IsRequired = (false))] + public string Function + { + get; + set; + } + + /// + /// Line number in the script (0-based). + /// + [DataMember(Name = ("lineNumber"), IsRequired = (true))] + public int LineNumber + { + get; + set; + } + + /// + /// Column number in the script (0-based). + /// + [DataMember(Name = ("columnNumber"), IsRequired = (true))] + public int ColumnNumber + { + get; + set; + } + } + /// /// BackForwardCacheNotRestoredExplanation /// @@ -21906,6 +22274,16 @@ public string Context get; set; } + + /// + /// Details + /// + [DataMember(Name = ("details"), IsRequired = (false))] + public System.Collections.Generic.IList Details + { + get; + set; + } } /// @@ -25175,6 +25553,23 @@ public int[] Ends } } + /// + /// AttributionReportingTriggerDataMatching + /// + public enum AttributionReportingTriggerDataMatching + { + /// + /// exact + /// + [EnumMember(Value = ("exact"))] + Exact, + /// + /// modulus + /// + [EnumMember(Value = ("modulus"))] + Modulus + } + /// /// AttributionReportingSourceRegistration /// @@ -25194,19 +25589,8 @@ public double Time /// /// duration in seconds /// - [DataMember(Name = ("expiry"), IsRequired = (false))] - public int? Expiry - { - get; - set; - } - - /// - /// eventReportWindow and eventReportWindows are mutually exclusive - /// duration in seconds - /// - [DataMember(Name = ("eventReportWindow"), IsRequired = (false))] - public int? EventReportWindow + [DataMember(Name = ("expiry"), IsRequired = (true))] + public int Expiry { get; set; @@ -25215,7 +25599,7 @@ public int? EventReportWindow /// /// EventReportWindows /// - [DataMember(Name = ("eventReportWindows"), IsRequired = (false))] + [DataMember(Name = ("eventReportWindows"), IsRequired = (true))] public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows { get; @@ -25225,8 +25609,8 @@ public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventRep /// /// duration in seconds /// - [DataMember(Name = ("aggregatableReportWindow"), IsRequired = (false))] - public int? AggregatableReportWindow + [DataMember(Name = ("aggregatableReportWindow"), IsRequired = (true))] + public int AggregatableReportWindow { get; set; @@ -25337,6 +25721,32 @@ public string DebugKey get; set; } + + /// + /// TriggerDataMatching + /// + public CefSharp.DevTools.Storage.AttributionReportingTriggerDataMatching TriggerDataMatching + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingTriggerDataMatching)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingTriggerDataMatching), triggerDataMatching)); + } + + set + { + this.triggerDataMatching = (EnumToString(value)); + } + } + + /// + /// TriggerDataMatching + /// + [DataMember(Name = ("triggerDataMatching"), IsRequired = (true))] + internal string triggerDataMatching + { + get; + set; + } } /// @@ -29812,11 +30222,6 @@ public enum PrerenderFinalStatus [EnumMember(Value = ("PrerenderingDisabledByDevTools"))] PrerenderingDisabledByDevTools, /// - /// ResourceLoadBlockedByClient - /// - [EnumMember(Value = ("ResourceLoadBlockedByClient"))] - ResourceLoadBlockedByClient, - /// /// SpeculationRuleRemoved /// [EnumMember(Value = ("SpeculationRuleRemoved"))] @@ -40155,20 +40560,6 @@ public System.Threading.Tasks.Task RemoveEventListenerBr return _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeEventListenerBreakpoint", dict); } - partial void ValidateRemoveInstrumentationBreakpoint(string eventName); - /// - /// Removes breakpoint on particular native event. - /// - /// Instrumentation name to stop on. - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task RemoveInstrumentationBreakpointAsync(string eventName) - { - ValidateRemoveInstrumentationBreakpoint(eventName); - var dict = new System.Collections.Generic.Dictionary(); - dict.Add("eventName", eventName); - return _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeInstrumentationBreakpoint", dict); - } - partial void ValidateRemoveXHRBreakpoint(string url); /// /// Removes breakpoint from XMLHttpRequest. @@ -40233,20 +40624,6 @@ public System.Threading.Tasks.Task SetEventListenerBreak return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setEventListenerBreakpoint", dict); } - partial void ValidateSetInstrumentationBreakpoint(string eventName); - /// - /// Sets breakpoint on particular native event. - /// - /// Instrumentation name to stop on. - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetInstrumentationBreakpointAsync(string eventName) - { - ValidateSetInstrumentationBreakpoint(eventName); - var dict = new System.Collections.Generic.Dictionary(); - dict.Add("eventName", eventName); - return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setInstrumentationBreakpoint", dict); - } - partial void ValidateSetXHRBreakpoint(string url); /// /// Sets breakpoint on XMLHttpRequest. @@ -40268,10 +40645,9 @@ namespace CefSharp.DevTools.EventBreakpoints using System.Linq; /// - /// EventBreakpoints permits setting breakpoints on particular operations and - /// events in targets that run JavaScript but do not have a DOM. - /// JavaScript execution will stop on these operations as if there was a regular - /// breakpoint set. + /// EventBreakpoints permits setting JavaScript breakpoints on operations and events + /// occurring in native code invoked from JavaScript. Once breakpoint is hit, it is + /// reported through Debugger domain, similarly to regular breakpoints being hit. /// public partial class EventBreakpointsClient : DevToolsDomainBase { @@ -40312,6 +40688,16 @@ public System.Threading.Tasks.Task RemoveInstrumentation dict.Add("eventName", eventName); return _client.ExecuteDevToolsMethodAsync("EventBreakpoints.removeInstrumentationBreakpoint", dict); } + + /// + /// Removes all breakpoints + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("EventBreakpoints.disable", dict); + } } } @@ -40894,6 +41280,34 @@ public bool Result } } +namespace CefSharp.DevTools.Emulation +{ + /// + /// GetOverriddenSensorInformationResponse + /// + [DataContract] + public class GetOverriddenSensorInformationResponse : DevToolsDomainResponseBase + { + [DataMember] + internal double requestedSamplingFrequency + { + get; + set; + } + + /// + /// requestedSamplingFrequency + /// + public double RequestedSamplingFrequency + { + get + { + return requestedSamplingFrequency; + } + } + } +} + namespace CefSharp.DevTools.Emulation { /// @@ -41315,6 +41729,63 @@ public System.Threading.Tasks.Task SetGeolocationOverrid return _client.ExecuteDevToolsMethodAsync("Emulation.setGeolocationOverride", dict); } + partial void ValidateGetOverriddenSensorInformation(CefSharp.DevTools.Emulation.SensorType type); + /// + /// GetOverriddenSensorInformation + /// + /// type + /// returns System.Threading.Tasks.Task<GetOverriddenSensorInformationResponse> + public System.Threading.Tasks.Task GetOverriddenSensorInformationAsync(CefSharp.DevTools.Emulation.SensorType type) + { + ValidateGetOverriddenSensorInformation(type); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", EnumToString(type)); + return _client.ExecuteDevToolsMethodAsync("Emulation.getOverriddenSensorInformation", dict); + } + + partial void ValidateSetSensorOverrideEnabled(bool enabled, CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorMetadata metadata = null); + /// + /// Overrides a platform sensor of a given type. If |enabled| is true, calls to + /// Sensor.start() will use a virtual sensor as backend rather than fetching + /// data from a real hardware sensor. Otherwise, existing virtual + /// sensor-backend Sensor objects will fire an error event and new calls to + /// Sensor.start() will attempt to use a real sensor instead. + /// + /// enabled + /// type + /// metadata + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSensorOverrideEnabledAsync(bool enabled, CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorMetadata metadata = null) + { + ValidateSetSensorOverrideEnabled(enabled, type, metadata); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + dict.Add("type", EnumToString(type)); + if ((metadata) != (null)) + { + dict.Add("metadata", metadata.ToDictionary()); + } + + return _client.ExecuteDevToolsMethodAsync("Emulation.setSensorOverrideEnabled", dict); + } + + partial void ValidateSetSensorOverrideReadings(CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorReading reading); + /// + /// Updates the sensor readings reported by a sensor type previously overriden + /// by setSensorOverrideEnabled. + /// + /// type + /// reading + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSensorOverrideReadingsAsync(CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorReading reading) + { + ValidateSetSensorOverrideReadings(type, reading); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", EnumToString(type)); + dict.Add("reading", reading.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("Emulation.setSensorOverrideReadings", dict); + } + partial void ValidateSetIdleOverride(bool isUserActive, bool isScreenUnlocked); /// /// Overrides the Idle state. @@ -42596,7 +43067,7 @@ public System.Threading.Tasks.Task ImeSetCompositionAsyn return _client.ExecuteDevToolsMethodAsync("Input.imeSetComposition", dict); } - partial void ValidateDispatchMouseEvent(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null); + partial void ValidateDispatchMouseEvent(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, double? tiltX = null, double? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null); /// /// Dispatches a mouse event to the page. /// @@ -42617,7 +43088,7 @@ public System.Threading.Tasks.Task ImeSetCompositionAsyn /// Y delta in CSS pixels for mouse wheel event (default: 0). /// Pointer type (default: "mouse"). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DispatchMouseEventAsync(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null) + public System.Threading.Tasks.Task DispatchMouseEventAsync(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, double? tiltX = null, double? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null) { ValidateDispatchMouseEvent(type, x, y, modifiers, timestamp, button, buttons, clickCount, force, tangentialPressure, tiltX, tiltY, twist, deltaX, deltaY, pointerType); var dict = new System.Collections.Generic.Dictionary(); @@ -45801,6 +46272,24 @@ public System.Threading.Tasks.Task SetShowIsolatedElemen dict.Add("isolatedElementHighlightConfigs", isolatedElementHighlightConfigs.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowIsolatedElements", dict); } + + partial void ValidateSetShowWindowControlsOverlay(CefSharp.DevTools.Overlay.WindowControlsOverlayConfig windowControlsOverlayConfig = null); + /// + /// Show Window Controls Overlay for PWA + /// + /// Window Controls Overlay data, null means hide Window Controls Overlay + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetShowWindowControlsOverlayAsync(CefSharp.DevTools.Overlay.WindowControlsOverlayConfig windowControlsOverlayConfig = null) + { + ValidateSetShowWindowControlsOverlay(windowControlsOverlayConfig); + var dict = new System.Collections.Generic.Dictionary(); + if ((windowControlsOverlayConfig) != (null)) + { + dict.Add("windowControlsOverlayConfig", windowControlsOverlayConfig.ToDictionary()); + } + + return _client.ExecuteDevToolsMethodAsync("Overlay.setShowWindowControlsOverlay", dict); + } } } @@ -55712,10 +56201,9 @@ public CefSharp.DevTools.DOMDebugger.DOMDebuggerClient DOMDebugger private CefSharp.DevTools.EventBreakpoints.EventBreakpointsClient _EventBreakpoints; /// - /// EventBreakpoints permits setting breakpoints on particular operations and - /// events in targets that run JavaScript but do not have a DOM. - /// JavaScript execution will stop on these operations as if there was a regular - /// breakpoint set. + /// EventBreakpoints permits setting JavaScript breakpoints on operations and events + /// occurring in native code invoked from JavaScript. Once breakpoint is hit, it is + /// reported through Debugger domain, similarly to regular breakpoints being hit. /// public CefSharp.DevTools.EventBreakpoints.EventBreakpointsClient EventBreakpoints { diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index e9f1a23e0..c5e3cc064 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 119.0.6045.105 +// CHROMIUM VERSION 120.0.6099.109 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1330,7 +1330,12 @@ public enum CookieWarningReason /// WarnThirdPartyPhaseout /// [JsonPropertyName("WarnThirdPartyPhaseout")] - WarnThirdPartyPhaseout + WarnThirdPartyPhaseout, + /// + /// WarnCrossSiteRedirectDowngradeChangesInclusion + /// + [JsonPropertyName("WarnCrossSiteRedirectDowngradeChangesInclusion")] + WarnCrossSiteRedirectDowngradeChangesInclusion } /// @@ -2610,6 +2615,27 @@ public string[] TrackingSites } } + /// + /// This issue warns about third-party sites that are accessing cookies on the + /// current page, and have been permitted due to having a global metadata grant. + /// Note that in this context 'site' means eTLD+1. For example, if the URL + /// `https://example.test:80/web_page` was accessing cookies, the site reported + /// would be `example.test`. + /// + public partial class CookieDeprecationMetadataIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// AllowedSites + /// + [JsonPropertyName("allowedSites")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] AllowedSites + { + get; + set; + } + } + /// /// ClientHintIssueReason /// @@ -2792,6 +2818,16 @@ public enum FederatedAuthRequestIssueReason [JsonPropertyName("IdTokenInvalidResponse")] IdTokenInvalidResponse, /// + /// IdTokenIdpErrorResponse + /// + [JsonPropertyName("IdTokenIdpErrorResponse")] + IdTokenIdpErrorResponse, + /// + /// IdTokenCrossSiteIdpErrorResponse + /// + [JsonPropertyName("IdTokenCrossSiteIdpErrorResponse")] + IdTokenCrossSiteIdpErrorResponse, + /// /// IdTokenInvalidRequest /// [JsonPropertyName("IdTokenInvalidRequest")] @@ -2825,7 +2861,12 @@ public enum FederatedAuthRequestIssueReason /// ThirdPartyCookiesBlocked /// [JsonPropertyName("ThirdPartyCookiesBlocked")] - ThirdPartyCookiesBlocked + ThirdPartyCookiesBlocked, + /// + /// NotSignedInWithIdp + /// + [JsonPropertyName("NotSignedInWithIdp")] + NotSignedInWithIdp } /// @@ -3171,6 +3212,11 @@ public enum InspectorIssueCode [JsonPropertyName("BounceTrackingIssue")] BounceTrackingIssue, /// + /// CookieDeprecationMetadataIssue + /// + [JsonPropertyName("CookieDeprecationMetadataIssue")] + CookieDeprecationMetadataIssue, + /// /// StylesheetLoadingIssue /// [JsonPropertyName("StylesheetLoadingIssue")] @@ -3354,6 +3400,16 @@ public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDe set; } + /// + /// CookieDeprecationMetadataIssueDetails + /// + [JsonPropertyName("cookieDeprecationMetadataIssueDetails")] + public CefSharp.DevTools.Audits.CookieDeprecationMetadataIssueDetails CookieDeprecationMetadataIssueDetails + { + get; + set; + } + /// /// StylesheetLoadingIssueDetails /// @@ -9644,6 +9700,229 @@ public bool? Wow64 } } + /// + /// Used to specify sensor types to emulate. + /// See https://w3c.github.io/sensors/#automation for more information. + /// + public enum SensorType + { + /// + /// absolute-orientation + /// + [JsonPropertyName("absolute-orientation")] + AbsoluteOrientation, + /// + /// accelerometer + /// + [JsonPropertyName("accelerometer")] + Accelerometer, + /// + /// ambient-light + /// + [JsonPropertyName("ambient-light")] + AmbientLight, + /// + /// gravity + /// + [JsonPropertyName("gravity")] + Gravity, + /// + /// gyroscope + /// + [JsonPropertyName("gyroscope")] + Gyroscope, + /// + /// linear-acceleration + /// + [JsonPropertyName("linear-acceleration")] + LinearAcceleration, + /// + /// magnetometer + /// + [JsonPropertyName("magnetometer")] + Magnetometer, + /// + /// proximity + /// + [JsonPropertyName("proximity")] + Proximity, + /// + /// relative-orientation + /// + [JsonPropertyName("relative-orientation")] + RelativeOrientation + } + + /// + /// SensorMetadata + /// + public partial class SensorMetadata : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Available + /// + [JsonPropertyName("available")] + public bool? Available + { + get; + set; + } + + /// + /// MinimumFrequency + /// + [JsonPropertyName("minimumFrequency")] + public double? MinimumFrequency + { + get; + set; + } + + /// + /// MaximumFrequency + /// + [JsonPropertyName("maximumFrequency")] + public double? MaximumFrequency + { + get; + set; + } + } + + /// + /// SensorReadingSingle + /// + public partial class SensorReadingSingle : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Value + /// + [JsonPropertyName("value")] + public double Value + { + get; + set; + } + } + + /// + /// SensorReadingXYZ + /// + public partial class SensorReadingXYZ : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// X + /// + [JsonPropertyName("x")] + public double X + { + get; + set; + } + + /// + /// Y + /// + [JsonPropertyName("y")] + public double Y + { + get; + set; + } + + /// + /// Z + /// + [JsonPropertyName("z")] + public double Z + { + get; + set; + } + } + + /// + /// SensorReadingQuaternion + /// + public partial class SensorReadingQuaternion : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// X + /// + [JsonPropertyName("x")] + public double X + { + get; + set; + } + + /// + /// Y + /// + [JsonPropertyName("y")] + public double Y + { + get; + set; + } + + /// + /// Z + /// + [JsonPropertyName("z")] + public double Z + { + get; + set; + } + + /// + /// W + /// + [JsonPropertyName("w")] + public double W + { + get; + set; + } + } + + /// + /// SensorReading + /// + public partial class SensorReading : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Single + /// + [JsonPropertyName("single")] + public CefSharp.DevTools.Emulation.SensorReadingSingle Single + { + get; + set; + } + + /// + /// Xyz + /// + [JsonPropertyName("xyz")] + public CefSharp.DevTools.Emulation.SensorReadingXYZ Xyz + { + get; + set; + } + + /// + /// Quaternion + /// + [JsonPropertyName("quaternion")] + public CefSharp.DevTools.Emulation.SensorReadingQuaternion Quaternion + { + get; + set; + } + } + /// /// Enum of image types that can be disabled. /// @@ -10170,7 +10449,7 @@ public double? TangentialPressure /// The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0) /// [JsonPropertyName("tiltX")] - public int? TiltX + public double? TiltX { get; set; @@ -10180,7 +10459,7 @@ public int? TiltX /// The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0). /// [JsonPropertyName("tiltY")] - public int? TiltY + public double? TiltY { get; set; @@ -17363,6 +17642,44 @@ public CefSharp.DevTools.DOM.RGBA OutlineColor } } + /// + /// Configuration for Window Controls Overlay + /// + public partial class WindowControlsOverlayConfig : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Whether the title bar CSS should be shown when emulating the Window Controls Overlay. + /// + [JsonPropertyName("showCSS")] + public bool ShowCSS + { + get; + set; + } + + /// + /// Seleted platforms to show the overlay. + /// + [JsonPropertyName("selectedPlatform")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SelectedPlatform + { + get; + set; + } + + /// + /// The theme color defined in app manifest. + /// + [JsonPropertyName("themeColor")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ThemeColor + { + get; + set; + } + } + /// /// ContainerQueryHighlightConfig /// @@ -20324,6 +20641,52 @@ public enum BackForwardCacheNotRestoredReasonType Circumstantial } + /// + /// BackForwardCacheBlockingDetails + /// + public partial class BackForwardCacheBlockingDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Url of the file where blockage happened. Optional because of tests. + /// + [JsonPropertyName("url")] + public string Url + { + get; + set; + } + + /// + /// Function name where blockage happened. Optional because of anonymous functions and tests. + /// + [JsonPropertyName("function")] + public string Function + { + get; + set; + } + + /// + /// Line number in the script (0-based). + /// + [JsonPropertyName("lineNumber")] + public int LineNumber + { + get; + set; + } + + /// + /// Column number in the script (0-based). + /// + [JsonPropertyName("columnNumber")] + public int ColumnNumber + { + get; + set; + } + } + /// /// BackForwardCacheNotRestoredExplanation /// @@ -20360,6 +20723,16 @@ public string Context get; set; } + + /// + /// Details + /// + [JsonPropertyName("details")] + public System.Collections.Generic.IList Details + { + get; + set; + } } /// @@ -23438,6 +23811,23 @@ public int[] Ends } } + /// + /// AttributionReportingTriggerDataMatching + /// + public enum AttributionReportingTriggerDataMatching + { + /// + /// exact + /// + [JsonPropertyName("exact")] + Exact, + /// + /// modulus + /// + [JsonPropertyName("modulus")] + Modulus + } + /// /// AttributionReportingSourceRegistration /// @@ -23457,18 +23847,7 @@ public double Time /// duration in seconds /// [JsonPropertyName("expiry")] - public int? Expiry - { - get; - set; - } - - /// - /// eventReportWindow and eventReportWindows are mutually exclusive - /// duration in seconds - /// - [JsonPropertyName("eventReportWindow")] - public int? EventReportWindow + public int Expiry { get; set; @@ -23478,6 +23857,7 @@ public int? EventReportWindow /// EventReportWindows /// [JsonPropertyName("eventReportWindows")] + [System.Diagnostics.CodeAnalysis.DisallowNull] public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows { get; @@ -23488,7 +23868,7 @@ public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventRep /// duration in seconds /// [JsonPropertyName("aggregatableReportWindow")] - public int? AggregatableReportWindow + public int AggregatableReportWindow { get; set; @@ -23590,6 +23970,16 @@ public string DebugKey get; set; } + + /// + /// TriggerDataMatching + /// + [JsonPropertyName("triggerDataMatching")] + public CefSharp.DevTools.Storage.AttributionReportingTriggerDataMatching TriggerDataMatching + { + get; + set; + } } /// @@ -27800,11 +28190,6 @@ public enum PrerenderFinalStatus [JsonPropertyName("PrerenderingDisabledByDevTools")] PrerenderingDisabledByDevTools, /// - /// ResourceLoadBlockedByClient - /// - [JsonPropertyName("ResourceLoadBlockedByClient")] - ResourceLoadBlockedByClient, - /// /// SpeculationRuleRemoved /// [JsonPropertyName("SpeculationRuleRemoved")] @@ -37186,20 +37571,6 @@ public System.Threading.Tasks.Task RemoveEventListenerBr return _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeEventListenerBreakpoint", dict); } - partial void ValidateRemoveInstrumentationBreakpoint(string eventName); - /// - /// Removes breakpoint on particular native event. - /// - /// Instrumentation name to stop on. - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task RemoveInstrumentationBreakpointAsync(string eventName) - { - ValidateRemoveInstrumentationBreakpoint(eventName); - var dict = new System.Collections.Generic.Dictionary(); - dict.Add("eventName", eventName); - return _client.ExecuteDevToolsMethodAsync("DOMDebugger.removeInstrumentationBreakpoint", dict); - } - partial void ValidateRemoveXHRBreakpoint(string url); /// /// Removes breakpoint from XMLHttpRequest. @@ -37264,20 +37635,6 @@ public System.Threading.Tasks.Task SetEventListenerBreak return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setEventListenerBreakpoint", dict); } - partial void ValidateSetInstrumentationBreakpoint(string eventName); - /// - /// Sets breakpoint on particular native event. - /// - /// Instrumentation name to stop on. - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetInstrumentationBreakpointAsync(string eventName) - { - ValidateSetInstrumentationBreakpoint(eventName); - var dict = new System.Collections.Generic.Dictionary(); - dict.Add("eventName", eventName); - return _client.ExecuteDevToolsMethodAsync("DOMDebugger.setInstrumentationBreakpoint", dict); - } - partial void ValidateSetXHRBreakpoint(string url); /// /// Sets breakpoint on XMLHttpRequest. @@ -37299,10 +37656,9 @@ namespace CefSharp.DevTools.EventBreakpoints using System.Linq; /// - /// EventBreakpoints permits setting breakpoints on particular operations and - /// events in targets that run JavaScript but do not have a DOM. - /// JavaScript execution will stop on these operations as if there was a regular - /// breakpoint set. + /// EventBreakpoints permits setting JavaScript breakpoints on operations and events + /// occurring in native code invoked from JavaScript. Once breakpoint is hit, it is + /// reported through Debugger domain, similarly to regular breakpoints being hit. /// public partial class EventBreakpointsClient : DevToolsDomainBase { @@ -37343,6 +37699,16 @@ public System.Threading.Tasks.Task RemoveInstrumentation dict.Add("eventName", eventName); return _client.ExecuteDevToolsMethodAsync("EventBreakpoints.removeInstrumentationBreakpoint", dict); } + + /// + /// Removes all breakpoints + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task DisableAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("EventBreakpoints.disable", dict); + } } } @@ -37864,6 +38230,26 @@ public bool Result } } +namespace CefSharp.DevTools.Emulation +{ + /// + /// GetOverriddenSensorInformationResponse + /// + public class GetOverriddenSensorInformationResponse : DevToolsDomainResponseBase + { + /// + /// requestedSamplingFrequency + /// + [JsonInclude] + [JsonPropertyName("requestedSamplingFrequency")] + public double RequestedSamplingFrequency + { + get; + private set; + } + } +} + namespace CefSharp.DevTools.Emulation { /// @@ -38277,6 +38663,63 @@ public System.Threading.Tasks.Task SetGeolocationOverrid return _client.ExecuteDevToolsMethodAsync("Emulation.setGeolocationOverride", dict); } + partial void ValidateGetOverriddenSensorInformation(CefSharp.DevTools.Emulation.SensorType type); + /// + /// GetOverriddenSensorInformation + /// + /// type + /// returns System.Threading.Tasks.Task<GetOverriddenSensorInformationResponse> + public System.Threading.Tasks.Task GetOverriddenSensorInformationAsync(CefSharp.DevTools.Emulation.SensorType type) + { + ValidateGetOverriddenSensorInformation(type); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", EnumToString(type)); + return _client.ExecuteDevToolsMethodAsync("Emulation.getOverriddenSensorInformation", dict); + } + + partial void ValidateSetSensorOverrideEnabled(bool enabled, CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorMetadata metadata = null); + /// + /// Overrides a platform sensor of a given type. If |enabled| is true, calls to + /// Sensor.start() will use a virtual sensor as backend rather than fetching + /// data from a real hardware sensor. Otherwise, existing virtual + /// sensor-backend Sensor objects will fire an error event and new calls to + /// Sensor.start() will attempt to use a real sensor instead. + /// + /// enabled + /// type + /// metadata + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSensorOverrideEnabledAsync(bool enabled, CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorMetadata metadata = null) + { + ValidateSetSensorOverrideEnabled(enabled, type, metadata); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + dict.Add("type", EnumToString(type)); + if ((metadata) != (null)) + { + dict.Add("metadata", metadata.ToDictionary()); + } + + return _client.ExecuteDevToolsMethodAsync("Emulation.setSensorOverrideEnabled", dict); + } + + partial void ValidateSetSensorOverrideReadings(CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorReading reading); + /// + /// Updates the sensor readings reported by a sensor type previously overriden + /// by setSensorOverrideEnabled. + /// + /// type + /// reading + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetSensorOverrideReadingsAsync(CefSharp.DevTools.Emulation.SensorType type, CefSharp.DevTools.Emulation.SensorReading reading) + { + ValidateSetSensorOverrideReadings(type, reading); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("type", EnumToString(type)); + dict.Add("reading", reading.ToDictionary()); + return _client.ExecuteDevToolsMethodAsync("Emulation.setSensorOverrideReadings", dict); + } + partial void ValidateSetIdleOverride(bool isUserActive, bool isScreenUnlocked); /// /// Overrides the Idle state. @@ -39467,7 +39910,7 @@ public System.Threading.Tasks.Task ImeSetCompositionAsyn return _client.ExecuteDevToolsMethodAsync("Input.imeSetComposition", dict); } - partial void ValidateDispatchMouseEvent(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null); + partial void ValidateDispatchMouseEvent(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, double? tiltX = null, double? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null); /// /// Dispatches a mouse event to the page. /// @@ -39488,7 +39931,7 @@ public System.Threading.Tasks.Task ImeSetCompositionAsyn /// Y delta in CSS pixels for mouse wheel event (default: 0). /// Pointer type (default: "mouse"). /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task DispatchMouseEventAsync(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, int? tiltX = null, int? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null) + public System.Threading.Tasks.Task DispatchMouseEventAsync(CefSharp.DevTools.Input.DispatchMouseEventType type, double x, double y, int? modifiers = null, double? timestamp = null, CefSharp.DevTools.Input.MouseButton? button = null, int? buttons = null, int? clickCount = null, double? force = null, double? tangentialPressure = null, double? tiltX = null, double? tiltY = null, int? twist = null, double? deltaX = null, double? deltaY = null, CefSharp.DevTools.Input.DispatchMouseEventPointerType? pointerType = null) { ValidateDispatchMouseEvent(type, x, y, modifiers, timestamp, button, buttons, clickCount, force, tangentialPressure, tiltX, tiltY, twist, deltaX, deltaY, pointerType); var dict = new System.Collections.Generic.Dictionary(); @@ -42453,6 +42896,24 @@ public System.Threading.Tasks.Task SetShowIsolatedElemen dict.Add("isolatedElementHighlightConfigs", isolatedElementHighlightConfigs.Select(x => x.ToDictionary())); return _client.ExecuteDevToolsMethodAsync("Overlay.setShowIsolatedElements", dict); } + + partial void ValidateSetShowWindowControlsOverlay(CefSharp.DevTools.Overlay.WindowControlsOverlayConfig windowControlsOverlayConfig = null); + /// + /// Show Window Controls Overlay for PWA + /// + /// Window Controls Overlay data, null means hide Window Controls Overlay + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetShowWindowControlsOverlayAsync(CefSharp.DevTools.Overlay.WindowControlsOverlayConfig windowControlsOverlayConfig = null) + { + ValidateSetShowWindowControlsOverlay(windowControlsOverlayConfig); + var dict = new System.Collections.Generic.Dictionary(); + if ((windowControlsOverlayConfig) != (null)) + { + dict.Add("windowControlsOverlayConfig", windowControlsOverlayConfig.ToDictionary()); + } + + return _client.ExecuteDevToolsMethodAsync("Overlay.setShowWindowControlsOverlay", dict); + } } } @@ -51402,10 +51863,9 @@ public CefSharp.DevTools.DOMDebugger.DOMDebuggerClient DOMDebugger private CefSharp.DevTools.EventBreakpoints.EventBreakpointsClient _EventBreakpoints; /// - /// EventBreakpoints permits setting breakpoints on particular operations and - /// events in targets that run JavaScript but do not have a DOM. - /// JavaScript execution will stop on these operations as if there was a regular - /// breakpoint set. + /// EventBreakpoints permits setting JavaScript breakpoints on operations and events + /// occurring in native code invoked from JavaScript. Once breakpoint is hit, it is + /// reported through Debugger domain, similarly to regular breakpoints being hit. /// public CefSharp.DevTools.EventBreakpoints.EventBreakpointsClient EventBreakpoints { From 23c90909207824c72b81955ff2d45645bb9f9b86 Mon Sep 17 00:00:00 2001 From: Mike Bragg <17732407+mbragg12@users.noreply.github.com> Date: Fri, 15 Dec 2023 19:50:33 -0500 Subject: [PATCH 311/543] Add in file paths data to DragData (#4649) * Add in file paths data to DragData * Update of CefSharp.Core.Runtime.netcore.cs for adding DragData FilePaths and removal of AcceptLanguageList --------- Co-authored-by: Michael Bragg --- .../CefSharp.Core.Runtime.netcore.cs | 2 +- CefSharp.Core.Runtime/DragData.h | 12 ++++++++++++ CefSharp/IDragData.cs | 5 +++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs index c60c816bf..8b9e33ecf 100644 --- a/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs +++ b/CefSharp.Core.Runtime.RefAssembly/CefSharp.Core.Runtime.netcore.cs @@ -14,7 +14,6 @@ public partial class BrowserSettings : CefSharp.IBrowserSettings { public BrowserSettings() { } public BrowserSettings(bool autoDispose) { } - public virtual string AcceptLanguageList { get { throw null; } set { } } public virtual bool AutoDispose { get { throw null; } } public virtual uint BackgroundColor { get { throw null; } set { } } public virtual string CursiveFontFamily { get { throw null; } set { } } @@ -135,6 +134,7 @@ public partial class DragData : CefSharp.Internals.CefWrapper, CefSharp.IDragDat internal DragData() { } public virtual string FileName { get { throw null; } set { } } public virtual System.Collections.Generic.IList FileNames { get { throw null; } } + public virtual System.Collections.Generic.IList FilePaths { get { throw null; } } public virtual string FragmentBaseUrl { get { throw null; } set { } } public virtual string FragmentHtml { get { throw null; } set { } } public virtual string FragmentText { get { throw null; } set { } } diff --git a/CefSharp.Core.Runtime/DragData.h b/CefSharp.Core.Runtime/DragData.h index ea9b6791c..48aa18fe2 100644 --- a/CefSharp.Core.Runtime/DragData.h +++ b/CefSharp.Core.Runtime/DragData.h @@ -90,6 +90,18 @@ namespace CefSharp } } + //TODO: Vector is a pointer, so can potentially be updated (items may be possibly removed) + virtual property IList^ FilePaths + { + IList^ get() + { + auto paths = vector(); + _wrappedDragData->GetFilePaths(paths); + + return StringUtils::ToClr(paths); + } + } + virtual property String^ FragmentBaseUrl { String^ get() diff --git a/CefSharp/IDragData.cs b/CefSharp/IDragData.cs index 1445a9ed8..2c3f73526 100644 --- a/CefSharp/IDragData.cs +++ b/CefSharp/IDragData.cs @@ -35,6 +35,11 @@ public interface IDragData : IDisposable /// IList FileNames { get; } + /// + /// Retrieve the list of file paths that are being dragged into the browser window + /// + IList FilePaths { get; } + /// /// Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be empty. /// From 56c9f3cd2819153822f07615ca1ae97f9565b25b Mon Sep 17 00:00:00 2001 From: campersau Date: Sat, 16 Dec 2023 01:58:43 +0100 Subject: [PATCH 312/543] Start timer after initialization (#4654) --- CefSharp/Internals/TaskExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CefSharp/Internals/TaskExtensions.cs b/CefSharp/Internals/TaskExtensions.cs index 6b64d0d4d..ef341fc44 100644 --- a/CefSharp/Internals/TaskExtensions.cs +++ b/CefSharp/Internals/TaskExtensions.cs @@ -17,10 +17,9 @@ public static class TaskExtensions { public static TaskCompletionSource WithTimeout(this TaskCompletionSource taskCompletionSource, TimeSpan timeout, Action cancelled) { - Timer timer = null; - timer = new Timer(state => + var timer = new Timer(state => { - timer.Dispose(); + ((Timer)state).Dispose(); if (taskCompletionSource.Task.Status != TaskStatus.RanToCompletion) { taskCompletionSource.TrySetCanceled(); @@ -29,7 +28,8 @@ public static TaskCompletionSource WithTimeout(this TaskComple cancelled(); } } - }, null, timeout, TimeSpan.FromMilliseconds(-1)); + }); + timer.Change(timeout, Timeout.InfiniteTimeSpan); return taskCompletionSource; } From ed1763ee9510dca9e54ab766ea7cf305f71d2aa2 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 16 Dec 2023 11:12:45 +1000 Subject: [PATCH 313/543] Add EvaluateScriptAsyncTests.ShouldTimeout test Follow up to #4654 --- .../Javascript/EvaluateScriptAsyncTests.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs index f8f4cace5..2a5ffee19 100644 --- a/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs +++ b/CefSharp.Test/Javascript/EvaluateScriptAsyncTests.cs @@ -252,5 +252,18 @@ public async Task CanEvaluateScriptAsyncWithEncodedStringArguments() output.WriteLine("{0} passes {1}", test, javascriptResponse.Result); } } + + [Theory] + [InlineData("(async () => { function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }; await sleep(2000); return true; })();")] + public async Task ShouldTimeout(string script) + { + AssertInitialLoadComplete(); + + var exception = await Assert.ThrowsAsync( + async () => await Browser.EvaluateScriptAsync(script, timeout: TimeSpan.FromMilliseconds(100))); + + Assert.NotNull(exception); + Assert.IsType(exception); + } } } From ae272a9b6864f6809047e87c6f9f7e8d329e9bb2 Mon Sep 17 00:00:00 2001 From: campersau Date: Sun, 31 Dec 2023 23:03:31 +0100 Subject: [PATCH 314/543] OffScreen - Check if browser is not null in GetScreenInfo/GetViewRect (#4661) --- CefSharp.OffScreen/DefaultRenderHandler.cs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/CefSharp.OffScreen/DefaultRenderHandler.cs b/CefSharp.OffScreen/DefaultRenderHandler.cs index 0de95d32a..791938c09 100644 --- a/CefSharp.OffScreen/DefaultRenderHandler.cs +++ b/CefSharp.OffScreen/DefaultRenderHandler.cs @@ -98,7 +98,14 @@ public void Dispose() /// Return null if no screenInfo structure is provided. public virtual ScreenInfo? GetScreenInfo() { - var screenInfo = new ScreenInfo { DeviceScaleFactor = browser.DeviceScaleFactor }; + var deviceScaleFactor = browser?.DeviceScaleFactor; + + if (deviceScaleFactor == null) + { + return null; + } + + var screenInfo = new ScreenInfo { DeviceScaleFactor = deviceScaleFactor.Value }; return screenInfo; } @@ -111,9 +118,14 @@ public void Dispose() public virtual Rect GetViewRect() { //TODO: See if this can be refactored and remove browser reference - var size = browser.Size; + var size = browser?.Size; + + if (size == null) + { + return new Rect(0, 0, 1, 1); + } - var viewRect = new Rect(0, 0, size.Width, size.Height); + var viewRect = new Rect(0, 0, size.Value.Width, size.Value.Height); return viewRect; } From e329cdc1fbf6367d6de2d24d1c5d4bc2d5bc65e2 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 13 Jan 2024 13:23:01 +1000 Subject: [PATCH 315/543] Core - Add IBrowserProcessHandler.OnAlreadyRunningAppRelaunch Issue #4668 --- CefSharp.Core.Runtime/Internals/CefSharpApp.h | 30 +++++++++++++++ CefSharp/Handler/BrowserProcessHandler.cs | 38 +++++++++++++++++++ CefSharp/Handler/IBrowserProcessHandler.cs | 29 ++++++++++++++ 3 files changed, 97 insertions(+) diff --git a/CefSharp.Core.Runtime/Internals/CefSharpApp.h b/CefSharp.Core.Runtime/Internals/CefSharpApp.h index 794f52325..f4cfffc7f 100644 --- a/CefSharp.Core.Runtime/Internals/CefSharpApp.h +++ b/CefSharp.Core.Runtime/Internals/CefSharpApp.h @@ -121,6 +121,36 @@ namespace CefSharp _app->BrowserProcessHandler->OnScheduleMessagePumpWork(delay_ms); } + virtual bool OnAlreadyRunningAppRelaunch(CefRefPtr commandLine, const CefString& currentDirectory) override + { + if (Object::ReferenceEquals(_app, nullptr) || Object::ReferenceEquals(_app->BrowserProcessHandler, nullptr)) + { + return false; + } + + auto managedArgs = gcnew Dictionary(); + + CefCommandLine::ArgumentList args; + commandLine->GetArguments(args); + + for (auto arg : args) + { + managedArgs->Add(StringUtils::ToClr(arg), String::Empty); + } + + CefCommandLine::SwitchMap switches; + commandLine->GetSwitches(switches); + + for (auto s : switches) + { + managedArgs->Add(StringUtils::ToClr(s.first), StringUtils::ToClr(s.second)); + } + + auto readOnlyArgs = gcnew System::Collections::ObjectModel::ReadOnlyDictionary(managedArgs); + + return _app->BrowserProcessHandler->OnAlreadyRunningAppRelaunch(readOnlyArgs, StringUtils::ToClr(currentDirectory)); + } + virtual void OnBeforeChildProcessLaunch(CefRefPtr commandLine) override { #ifndef NETCOREAPP diff --git a/CefSharp/Handler/BrowserProcessHandler.cs b/CefSharp/Handler/BrowserProcessHandler.cs index ea2d8f1fe..3605cfde3 100644 --- a/CefSharp/Handler/BrowserProcessHandler.cs +++ b/CefSharp/Handler/BrowserProcessHandler.cs @@ -3,6 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; +using System.Collections.Generic; namespace CefSharp.Handler { @@ -55,6 +56,43 @@ protected virtual void OnScheduleMessagePumpWork(long delay) } + /// + bool IBrowserProcessHandler.OnAlreadyRunningAppRelaunch(IReadOnlyDictionary commandLine, string currentDirectory) + { + return OnAlreadyRunningAppRelaunch(commandLine, currentDirectory); + } + + /// + /// Implement this method to provide app-specific behavior when an already + /// running app is relaunched with the same CefSettings.RootCachePath value. + /// For example, activate an existing app window or create a new app window. + /// + /// To avoid cache corruption only a single app instance is allowed to run for + /// a given CefSettings.RootCachePath value. On relaunch the app checks a + /// process singleton lock and then forwards the new launch arguments to the + /// already running app process before exiting early. Client apps should + /// therefore check the Cef.Initialize() return value for early exit before + /// proceeding. + /// + /// It's important to note that this method will be called on a CEF UI thread, + /// which by default is not the same as your application UI thread. + /// + /// + /// Command line arugments/switches + /// current directory (optional) + /// + /// Return true if the relaunch is handled or false for default relaunch + /// behavior. Default behavior will create a new default styled Chrome window. + /// + /// + /// The dictionary may contain keys that have empty string values + /// (arugments). + /// + protected virtual bool OnAlreadyRunningAppRelaunch(IReadOnlyDictionary commandLine, string currentDirectory) + { + return false; + } + /// /// IsDisposed /// diff --git a/CefSharp/Handler/IBrowserProcessHandler.cs b/CefSharp/Handler/IBrowserProcessHandler.cs index d5b968899..7d5a63558 100644 --- a/CefSharp/Handler/IBrowserProcessHandler.cs +++ b/CefSharp/Handler/IBrowserProcessHandler.cs @@ -3,6 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System; +using System.Collections.Generic; namespace CefSharp { @@ -34,5 +35,33 @@ public interface IBrowserProcessHandler : IDisposable /// specified delay and any currently pending scheduled call should be /// cancelled. void OnScheduleMessagePumpWork(long delay); + + /// + /// Implement this method to provide app-specific behavior when an already + /// running app is relaunched with the same CefSettings.RootCachePath value. + /// For example, activate an existing app window or create a new app window. + /// + /// To avoid cache corruption only a single app instance is allowed to run for + /// a given CefSettings.RootCachePath value. On relaunch the app checks a + /// process singleton lock and then forwards the new launch arguments to the + /// already running app process before exiting early. Client apps should + /// therefore check the Cef.Initialize() return value for early exit before + /// proceeding. + /// + /// It's important to note that this method will be called on a CEF UI thread, + /// which by default is not the same as your application UI thread. + /// + /// + /// Readonly command line args + /// current directory (optional) + /// + /// Return true if the relaunch is handled or false for default relaunch + /// behavior. Default behavior will create a new default styled Chrome window. + /// + /// + /// The dictionary may contain keys that have empty string values + /// (arugments). + /// + bool OnAlreadyRunningAppRelaunch(IReadOnlyDictionary commandLine, string currentDirectory); } } From 14dba5457c2cd0843317c512296ee12962d8fe8a Mon Sep 17 00:00:00 2001 From: feliciwithme <386216768@qq.com> Date: Wed, 17 Jan 2024 17:04:47 +0800 Subject: [PATCH 316/543] WPF - Fix the Chinese IMEs (such as "sogou pinyin", "qq...") window position is incorrect in Winform form embedded wpf control. (#4678) WPF - Fix chinese IMEs ( such as "sogou pinyin", "qq pinyin" etc. ) input window position, In Winform embedded wpf borwser mode. * Update WpfIMEKeyboardHandler.cs --- .../Experimental/WpfIMEKeyboardHandler.cs | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs b/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs index a5b1c05bc..852a056ea 100644 --- a/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs +++ b/CefSharp.Wpf/Experimental/WpfIMEKeyboardHandler.cs @@ -10,6 +10,7 @@ using CefSharp.Internals; using CefSharp.Structs; using CefSharp.Wpf.Internals; +using System.Windows.Media; using Point = System.Windows.Point; using Range = CefSharp.Structs.Range; using Rect = CefSharp.Structs.Rect; @@ -38,8 +39,8 @@ public class WpfImeKeyboardHandler : WpfKeyboardHandler /// The owner. public WpfImeKeyboardHandler(ChromiumWebBrowser owner) : base(owner) { - } - + } + /// /// Change composition range. /// @@ -60,8 +61,15 @@ public void ChangeCompositionRange(Range selectionRange, Rect[] characterBounds) owner.UiThreadRunAsync(() => { //TODO: Getting the root window for every composition range change seems expensive, - //we should cache the position and update it on window move. - var parentWindow = Window.GetWindow(owner); + //we should cache the position and update it on window move. + var parentWindow = (FrameworkElement)Window.GetWindow(owner); + + //In Winform embedded wpf borwser mode, Window.GetWindow(owner) is null, so use a custom function to get the outermost visual element. + if(parentWindow == null) + { + parentWindow = GetOutermostElement(owner); + } + if (parentWindow != null) { //TODO: What are we calculating here exactly??? @@ -440,5 +448,24 @@ private void UpdateCaretPosition(int index) { MoveImeWindow(source.Handle); } + + /// + /// Get the outermost element of the browser + /// + /// The browser + /// The outermost element + private FrameworkElement GetOutermostElement(FrameworkElement control) + { + DependencyObject parent = VisualTreeHelper.GetParent(control); + DependencyObject current = control; + + while (parent != null) + { + current = parent; + parent = VisualTreeHelper.GetParent(current); + } + + return current as FrameworkElement; + } } } From fb24fd22e520ff40fdb51412416c6336448cfecf Mon Sep 17 00:00:00 2001 From: "Mitch Capper (they, them)" Date: Wed, 17 Jan 2024 01:07:32 -0800 Subject: [PATCH 317/543] fix: actually support vswhere not finding something (#4682) By default vswhere returns a non-zero error code making our error handling fail --- build.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.ps1 b/build.ps1 index 519761070..6a3e5b588 100644 --- a/build.ps1 +++ b/build.ps1 @@ -183,13 +183,17 @@ function VSX $versionSearchStr = "[$VS_VER.0," + ($VS_VER+1) + ".0)" + $ErrorActionPreference="SilentlyContinue" $VSInstallPath = & $VSWherePath -version $versionSearchStr -property installationPath $VS_PRE + $ErrorActionPreference="Stop" Write-Diagnostic "$($VS_OFFICIAL_VER)InstallPath: $VSInstallPath" if( -not $VSInstallPath -or -not (Test-Path $VSInstallPath)) { + $ErrorActionPreference="SilentlyContinue" $VSInstallPath = & $VSwherePath -version $versionSearchStr -property installationPath $VS_PRE -products 'Microsoft.VisualStudio.Product.BuildTools' + $ErrorActionPreference="Stop" Write-Diagnostic "BuildTools $($VS_OFFICIAL_VER)InstallPath: $VSInstallPath" if( -not $VSInstallPath -or -not (Test-Path $VSInstallPath)) From bbe7260fe8d0fa4507cf0e36dea36ffe63b35f91 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 19 Jan 2024 20:13:51 +1000 Subject: [PATCH 318/543] NetCore - Initializer additional checks to locate libcef.dll - When running from a library with no RuntimeIdentifier specified, check relative to CefSharp.Core.dll in runtimes folder --- CefSharp.Core/Initializer.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/CefSharp.Core/Initializer.cs b/CefSharp.Core/Initializer.cs index d73df0e12..d4d275a0a 100644 --- a/CefSharp.Core/Initializer.cs +++ b/CefSharp.Core/Initializer.cs @@ -34,7 +34,7 @@ internal static void ModuleInitializer() //https://docs.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getentryassembly?view=net-5.0 if (executingAssembly == null) { - currentFolder = Path.GetDirectoryName(typeof(Initializer).Assembly.Location); + currentFolder = GetCefSharpCoreAssemblyLocation(); } else { @@ -66,6 +66,16 @@ internal static void ModuleInitializer() var arch = RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant(); var archFolder = $"runtimes\\win-{arch}\\native"; libCefPath = Path.Combine(currentFolder, archFolder, "libcef.dll"); + + if (!File.Exists(libCefPath)) + { + // For cases where the library is dynamically loaded and no RuntimeIdentifier + // specified, attempt to locate libcef.dll next to CefSharp.Core.dll + currentFolder = GetCefSharpCoreAssemblyLocation(); + + libCefPath = Path.Combine(currentFolder, archFolder, "libcef.dll"); + } + if (File.Exists(libCefPath)) { LibCefLoaded = NativeLibrary.TryLoad(libCefPath, out IntPtr handle); @@ -86,5 +96,10 @@ internal static void ModuleInitializer() } } } + + private static string GetCefSharpCoreAssemblyLocation() + { + return Path.GetDirectoryName(typeof(Initializer).Assembly.Location); + } } } From 2ca02e5a69e72fdcd03f75070fb7f1f271cad18b Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 3 Feb 2024 05:57:12 +1000 Subject: [PATCH 319/543] Nuget - Change to embedded license file - LicenseUrl is deprecated --- NuGet/CefSharp.Common.nuspec | 4 +++- NuGet/CefSharp.OffScreen.nuspec | 5 +++-- NuGet/CefSharp.WinForms.nuspec | 5 +++-- NuGet/CefSharp.Wpf.nuspec | 5 +++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/NuGet/CefSharp.Common.nuspec b/NuGet/CefSharp.Common.nuspec index 80fe0e3c5..933bcfcc4 100644 --- a/NuGet/CefSharp.Common.nuspec +++ b/NuGet/CefSharp.Common.nuspec @@ -6,7 +6,7 @@ The CefSharp Authors The CefSharp Authors https://github.com/cefsharp/CefSharp - https://raw.github.com/cefsharp/CefSharp/master/LICENSE + LICENSE false The CefSharp Chromium-based browser component ('Core' and common 'Element' components, needed by both WPF and WinForms). chrome browser @@ -54,6 +54,8 @@ + + diff --git a/NuGet/CefSharp.OffScreen.nuspec b/NuGet/CefSharp.OffScreen.nuspec index 6854ff636..ec8b79591 100644 --- a/NuGet/CefSharp.OffScreen.nuspec +++ b/NuGet/CefSharp.OffScreen.nuspec @@ -6,7 +6,7 @@ The CefSharp Authors The CefSharp Authors https://github.com/cefsharp/cefsharp - https://raw.github.com/cefsharp/CefSharp/master/LICENSE + LICENSE false The CefSharp Chromium-based browser component (OffScreen control). osr chrome browser chromium-embedded cefsharp @@ -24,11 +24,12 @@ - + + diff --git a/NuGet/CefSharp.WinForms.nuspec b/NuGet/CefSharp.WinForms.nuspec index 8606d1027..bc105f836 100644 --- a/NuGet/CefSharp.WinForms.nuspec +++ b/NuGet/CefSharp.WinForms.nuspec @@ -6,7 +6,7 @@ The CefSharp Authors The CefSharp Authors https://github.com/cefsharp/cefsharp - https://raw.github.com/cefsharp/CefSharp/master/LICENSE + LICENSE false The CefSharp Chromium-based browser component (WinForms control). winforms chrome browser chromium-embedded cefsharp @@ -24,11 +24,12 @@ - + + diff --git a/NuGet/CefSharp.Wpf.nuspec b/NuGet/CefSharp.Wpf.nuspec index dabad3b01..1f5222b93 100644 --- a/NuGet/CefSharp.Wpf.nuspec +++ b/NuGet/CefSharp.Wpf.nuspec @@ -6,7 +6,7 @@ The CefSharp Authors The CefSharp Authors https://github.com/cefsharp/cefsharp - https://raw.github.com/cefsharp/CefSharp/master/LICENSE + LICENSE false The CefSharp Chromium-based browser component (WPF control). wpf chrome browser chromium-embedded cefsharp @@ -24,11 +24,12 @@ - + + From c366df0019501111851f3317c1ec51fe11989c54 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 3 Feb 2024 06:59:40 +1000 Subject: [PATCH 320/543] Nuget - Second attempt at embedding license --- NuGet/CefSharp.Common.nuspec | 2 +- NuGet/CefSharp.OffScreen.nuspec | 2 +- NuGet/CefSharp.WinForms.nuspec | 2 +- NuGet/CefSharp.Wpf.nuspec | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NuGet/CefSharp.Common.nuspec b/NuGet/CefSharp.Common.nuspec index 933bcfcc4..9b5f4d2b3 100644 --- a/NuGet/CefSharp.Common.nuspec +++ b/NuGet/CefSharp.Common.nuspec @@ -55,7 +55,7 @@ - + diff --git a/NuGet/CefSharp.OffScreen.nuspec b/NuGet/CefSharp.OffScreen.nuspec index ec8b79591..6f002d81b 100644 --- a/NuGet/CefSharp.OffScreen.nuspec +++ b/NuGet/CefSharp.OffScreen.nuspec @@ -29,7 +29,7 @@ - + diff --git a/NuGet/CefSharp.WinForms.nuspec b/NuGet/CefSharp.WinForms.nuspec index bc105f836..1f4b557ea 100644 --- a/NuGet/CefSharp.WinForms.nuspec +++ b/NuGet/CefSharp.WinForms.nuspec @@ -29,7 +29,7 @@ - + diff --git a/NuGet/CefSharp.Wpf.nuspec b/NuGet/CefSharp.Wpf.nuspec index 1f5222b93..7559f9fc6 100644 --- a/NuGet/CefSharp.Wpf.nuspec +++ b/NuGet/CefSharp.Wpf.nuspec @@ -29,7 +29,7 @@ - + From 5613f8e2792834721db27c1a49da75d3f0bd1f1d Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sun, 4 Feb 2024 07:13:19 +1000 Subject: [PATCH 321/543] Upgrade to 121.3.4+g2af7b91+chromium-121.0.6167.139 / Chromium 121.0.6167.139 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 3ebd4c002..e5912fd98 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 9e39dffd1..1c4a02692 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index 3af40bd70..d5bcd51dc 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 120,1,80 - PRODUCTVERSION 120,1,80 + FILEVERSION 121,3,40 + PRODUCTVERSION 121,3,40 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "120.1.80" + VALUE "FileVersion", "121.3.40" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "120.1.80" + VALUE "ProductVersion", "121.3.40" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index fb5cb6b6e..9f9e78a6b 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 01ed35f0c..7e740c065 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 7dd40dd5c..283046cb1 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 0a8f3da3c..1c62f9be9 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index d6d8e85a5..636cb003f 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 02b77957f..007a9534a 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 120,1,80 - PRODUCTVERSION 120,1,80 + FILEVERSION 121,3,40 + PRODUCTVERSION 121,3,40 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "120.1.80" + VALUE "FileVersion", "121.3.40" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "120.1.80" + VALUE "ProductVersion", "121.3.40" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index fb5cb6b6e..9f9e78a6b 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 01ed35f0c..7e740c065 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index fd436a906..e80f2fb16 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 2c1c7ebd5..656ff95d2 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 146312817..a36023c77 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index d2af32f3d..457262376 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 2f5357be0..eb5eb401c 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index 6b6d1c4c2..cbe7d5bf3 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 0d0d38d58..7d83892eb 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index ea08390be..b0218876b 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index f915c8b15..814883355 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index d859b70c6..acc11f824 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index 96cf64689..fc7b0c16e 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 39b97aa81..c97b4d1c9 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 120.1.80 + 121.3.40 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 120.1.80 + Version 121.3.40 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 86fdb7910..d87c3c701 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "120.1.80"; - public const string AssemblyFileVersion = "120.1.80.0"; + public const string AssemblyVersion = "121.3.40"; + public const string AssemblyFileVersion = "121.3.40.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 8623b3f35..b1e762a16 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index 8e1c18d11..b805766f9 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 19908dbff..1ddf442c7 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 2ac1fcc3e..99697a52c 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "120.1.8", + [string] $CefVersion = "121.3.4", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index ad146177f..8ac341242 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 120.1.80-CI{build} +version: 121.3.40-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 6a3e5b588..1cfebe55f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "120.1.80", + [string] $Version = "121.3.40", [Parameter(Position = 2)] - [string] $AssemblyVersion = "120.1.80", + [string] $AssemblyVersion = "121.3.40", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 08f635ea8d3c0447d42dd6c4106e730830ee0116 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Mon, 5 Feb 2024 20:06:38 +1000 Subject: [PATCH 322/543] Migrate to chromiumembeddedframework.runtime Nuget packages Issue #4704 --- NuGet/CefSharp.Common.nuspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuGet/CefSharp.Common.nuspec b/NuGet/CefSharp.Common.nuspec index 9b5f4d2b3..16945fa82 100644 --- a/NuGet/CefSharp.Common.nuspec +++ b/NuGet/CefSharp.Common.nuspec @@ -13,8 +13,8 @@ Copyright © The CefSharp Authors - - + + From 717504e33d3e9da8a6da3795f924f2126b0b537c Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 9 Feb 2024 18:54:26 +1000 Subject: [PATCH 323/543] Upgrade to 121.3.7+g82c7c57+chromium-121.0.6167.160 / Chromium 121.0.6167.160 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 30 files changed, 44 insertions(+), 44 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index e5912fd98..282dae0f7 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 1c4a02692..2841e82c3 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index d5bcd51dc..b26b5cd31 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 121,3,40 - PRODUCTVERSION 121,3,40 + FILEVERSION 121,3,70 + PRODUCTVERSION 121,3,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "121.3.40" + VALUE "FileVersion", "121.3.70" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "121.3.40" + VALUE "ProductVersion", "121.3.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index 9f9e78a6b..a9ecf0cc9 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index 7e740c065..d7c668fb3 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 283046cb1..132a37fa2 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index 1c62f9be9..c593a6ea1 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index 636cb003f..cddd4d6c5 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index 007a9534a..a067f7761 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 121,3,40 - PRODUCTVERSION 121,3,40 + FILEVERSION 121,3,70 + PRODUCTVERSION 121,3,70 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "121.3.40" + VALUE "FileVersion", "121.3.70" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "121.3.40" + VALUE "ProductVersion", "121.3.70" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index 9f9e78a6b..a9ecf0cc9 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index 7e740c065..d7c668fb3 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index e80f2fb16..ba11c4e2c 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index 656ff95d2..e5bd6f436 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index a36023c77..26469ec5b 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 457262376..2455a3240 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index eb5eb401c..0042db050 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index cbe7d5bf3..bf3bfced4 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 7d83892eb..5e9aa36c3 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index b0218876b..fc01a3ccf 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 814883355..2b268f93f 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index acc11f824..a58eec3f6 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index fc7b0c16e..fefcf7792 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index c97b4d1c9..156a7ffb5 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 121.3.40 + 121.3.70 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 121.3.40 + Version 121.3.70 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index d87c3c701..4fa6f41ff 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "121.3.40"; - public const string AssemblyFileVersion = "121.3.40.0"; + public const string AssemblyVersion = "121.3.70"; + public const string AssemblyFileVersion = "121.3.70.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index b1e762a16..00d858ee8 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index b805766f9..c8f03fa64 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 1ddf442c7..1c6900b65 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 99697a52c..3bc0b7be9 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "121.3.4", + [string] $CefVersion = "121.3.7", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index 8ac341242..f4803eed6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 121.3.40-CI{build} +version: 121.3.70-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index 1cfebe55f..feb63fac8 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "121.3.40", + [string] $Version = "121.3.70", [Parameter(Position = 2)] - [string] $AssemblyVersion = "121.3.40", + [string] $AssemblyVersion = "121.3.70", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From a66c36037c11416b3563da3430b9a24fdb888eb0 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Fri, 9 Feb 2024 20:01:32 +1000 Subject: [PATCH 324/543] DevTools Client - Upgrade to 121.0.6167.160 --- .../DevTools/DevToolsClient.Generated.cs | 410 +++++++++++++++++- .../DevToolsClient.Generated.netcore.cs | 373 +++++++++++++++- 2 files changed, 741 insertions(+), 42 deletions(-) diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 8cc82001d..67a0e4c40 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 120.0.6099.109 +// CHROMIUM VERSION 121.0.6167.160 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1701,6 +1701,11 @@ public enum MixedContentResourceType [EnumMember(Value = ("SharedWorker"))] SharedWorker, /// + /// SpeculationRules + /// + [EnumMember(Value = ("SpeculationRules"))] + SpeculationRules, + /// /// Stylesheet /// [EnumMember(Value = ("Stylesheet"))] @@ -4647,7 +4652,7 @@ public enum PermissionSetting /// /// Definition of PermissionDescriptor defined in the Permissions API: - /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. + /// https://w3c.github.io/permissions/#dom-permissiondescriptor. /// [System.Runtime.Serialization.DataContractAttribute] public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase @@ -6397,6 +6402,16 @@ public string FamilyName set; } + /// + /// Font's PostScript name reported by platform. + /// + [DataMember(Name = ("postScriptName"), IsRequired = (true))] + public string PostScriptName + { + get; + set; + } + /// /// Indicates if the font was downloaded or resolved locally. /// @@ -6738,6 +6753,70 @@ public string Syntax } } + /// + /// CSS font-palette-values rule representation. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class CSSFontPaletteValuesRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [DataMember(Name = ("styleSheetId"), IsRequired = (false))] + public string StyleSheetId + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get + { + return (CefSharp.DevTools.CSS.StyleSheetOrigin)(StringToEnum(typeof(CefSharp.DevTools.CSS.StyleSheetOrigin), origin)); + } + + set + { + this.origin = (EnumToString(value)); + } + } + + /// + /// Parent stylesheet's origin. + /// + [DataMember(Name = ("origin"), IsRequired = (true))] + internal string origin + { + get; + set; + } + + /// + /// Associated font palette name. + /// + [DataMember(Name = ("fontPaletteName"), IsRequired = (true))] + public CefSharp.DevTools.CSS.Value FontPaletteName + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [DataMember(Name = ("style"), IsRequired = (true))] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + /// /// CSS property at-rule representation. /// @@ -10146,6 +10225,56 @@ public int MaskLength } } + /// + /// Current posture of the device + /// + public enum DevicePostureType + { + /// + /// continuous + /// + [EnumMember(Value = ("continuous"))] + Continuous, + /// + /// folded + /// + [EnumMember(Value = ("folded"))] + Folded + } + + /// + /// DevicePosture + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class DevicePosture : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Current posture of the device + /// + public CefSharp.DevTools.Emulation.DevicePostureType Type + { + get + { + return (CefSharp.DevTools.Emulation.DevicePostureType)(StringToEnum(typeof(CefSharp.DevTools.Emulation.DevicePostureType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Current posture of the device + /// + [DataMember(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + set; + } + } + /// /// MediaFeature /// @@ -13771,6 +13900,23 @@ public enum AlternateProtocolUsage UnspecifiedReason } + /// + /// ServiceWorkerRouterInfo + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ServiceWorkerRouterInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// RuleIdMatched + /// + [DataMember(Name = ("ruleIdMatched"), IsRequired = (true))] + public int RuleIdMatched + { + get; + set; + } + } + /// /// HTTP response data. /// @@ -13927,6 +14073,16 @@ public bool? FromPrefetchCache set; } + /// + /// Infomation about how Service Worker Static Router was used. + /// + [DataMember(Name = ("serviceWorkerRouterInfo"), IsRequired = (false))] + public CefSharp.DevTools.Network.ServiceWorkerRouterInfo ServiceWorkerRouterInfo + { + get; + set; + } + /// /// Total number of bytes received for this request so far. /// @@ -19801,11 +19957,21 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("usb"))] Usb, /// + /// usb-unrestricted + /// + [EnumMember(Value = ("usb-unrestricted"))] + UsbUnrestricted, + /// /// vertical-scroll /// [EnumMember(Value = ("vertical-scroll"))] VerticalScroll, /// + /// web-printing + /// + [EnumMember(Value = ("web-printing"))] + WebPrinting, + /// /// web-share /// [EnumMember(Value = ("web-share"))] @@ -24549,6 +24715,16 @@ public string TargetId get; set; } + + /// + /// RouterRules + /// + [DataMember(Name = ("routerRules"), IsRequired = (false))] + public string RouterRules + { + get; + set; + } } /// @@ -25553,6 +25729,34 @@ public int[] Ends } } + /// + /// AttributionReportingTriggerSpec + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingTriggerSpec : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// number instead of integer because not all uint32 can be represented by + /// int + /// + [DataMember(Name = ("triggerData"), IsRequired = (true))] + public double[] TriggerData + { + get; + set; + } + + /// + /// EventReportWindows + /// + [DataMember(Name = ("eventReportWindows"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows + { + get; + set; + } + } + /// /// AttributionReportingTriggerDataMatching /// @@ -25597,10 +25801,10 @@ public int Expiry } /// - /// EventReportWindows + /// TriggerSpecs /// - [DataMember(Name = ("eventReportWindows"), IsRequired = (true))] - public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows + [DataMember(Name = ("triggerSpecs"), IsRequired = (true))] + public System.Collections.Generic.IList TriggerSpecs { get; set; @@ -29065,6 +29269,30 @@ public bool? IsUserVerified get; set; } + + /// + /// Credentials created by this authenticator will have the backup + /// eligibility (BE) flag set to this value. Defaults to false. + /// https://w3c.github.io/webauthn/#sctn-credential-backup + /// + [DataMember(Name = ("defaultBackupEligibility"), IsRequired = (false))] + public bool? DefaultBackupEligibility + { + get; + set; + } + + /// + /// Credentials created by this authenticator will have the backup state + /// (BS) flag set to this value. Defaults to false. + /// https://w3c.github.io/webauthn/#sctn-credential-backup + /// + [DataMember(Name = ("defaultBackupState"), IsRequired = (false))] + public bool? DefaultBackupState + { + get; + set; + } } /// @@ -30459,6 +30687,43 @@ public enum PrefetchStatus PrefetchNotUsedProbeFailed } + /// + /// Information of headers to be displayed when the header mismatch occurred. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class PrerenderMismatchedHeaders : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// HeaderName + /// + [DataMember(Name = ("headerName"), IsRequired = (true))] + public string HeaderName + { + get; + set; + } + + /// + /// InitialValue + /// + [DataMember(Name = ("initialValue"), IsRequired = (false))] + public string InitialValue + { + get; + set; + } + + /// + /// ActivationValue + /// + [DataMember(Name = ("activationValue"), IsRequired = (false))] + public string ActivationValue + { + get; + set; + } + } + /// /// Upsert. Currently, it is only emitted when a rule set added. /// @@ -30727,6 +30992,16 @@ public string DisallowedMojoInterface get; private set; } + + /// + /// MismatchedHeaders + /// + [DataMember(Name = ("mismatchedHeaders"), IsRequired = (false))] + public System.Collections.Generic.IList MismatchedHeaders + { + get; + private set; + } } /// @@ -30778,7 +31053,7 @@ public enum LoginState } /// - /// Whether the dialog shown is an account chooser or an auto re-authentication dialog. + /// The types of FedCM dialogs. /// public enum DialogType { @@ -30796,7 +31071,34 @@ public enum DialogType /// ConfirmIdpLogin /// [EnumMember(Value = ("ConfirmIdpLogin"))] - ConfirmIdpLogin + ConfirmIdpLogin, + /// + /// Error + /// + [EnumMember(Value = ("Error"))] + Error + } + + /// + /// The buttons on the FedCM dialog. + /// + public enum DialogButton + { + /// + /// ConfirmIdpLoginContinue + /// + [EnumMember(Value = ("ConfirmIdpLoginContinue"))] + ConfirmIdpLoginContinue, + /// + /// ErrorGotIt + /// + [EnumMember(Value = ("ErrorGotIt"))] + ErrorGotIt, + /// + /// ErrorMoreDetails + /// + [EnumMember(Value = ("ErrorMoreDetails"))] + ErrorMoreDetails } /// @@ -30995,6 +31297,24 @@ public string Subtitle private set; } } + + /// + /// Triggered when a dialog is closed, either by user action, JS abort, + /// or a command below. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class DialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// DialogId + /// + [DataMember(Name = ("dialogId"), IsRequired = (true))] + public string DialogId + { + get; + private set; + } + } } namespace CefSharp.DevTools.Debugger @@ -36984,6 +37304,24 @@ public System.Collections.Generic.IList + /// cssFontPaletteValuesRule + /// + public CefSharp.DevTools.CSS.CSSFontPaletteValuesRule CssFontPaletteValuesRule + { + get + { + return cssFontPaletteValuesRule; + } + } + [DataMember] internal int? parentLayoutNodeId { @@ -41536,7 +41874,7 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC return _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict); } - partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null); + partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null); /// /// Overrides the values of device screen dimensions (window.screen.width, window.screen.height, /// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media @@ -41555,10 +41893,11 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC /// Screen orientation override. /// If set, the visible area of the page will be overridden to this viewport. This viewportchange is not observed by the page, e.g. viewport-relative elements do not change positions. /// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off. + /// If set, the posture of a foldable device. If not set the posture is setto continuous. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null) + public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null) { - ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature); + ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature, devicePosture); var dict = new System.Collections.Generic.Dictionary(); dict.Add("width", width); dict.Add("height", height); @@ -41609,6 +41948,11 @@ public System.Threading.Tasks.Task SetDeviceMetricsOverr dict.Add("displayFeature", displayFeature.ToDictionary()); } + if ((devicePosture) != (null)) + { + dict.Add("devicePosture", devicePosture.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("Emulation.setDeviceMetricsOverride", dict); } @@ -41958,7 +42302,7 @@ public System.Threading.Tasks.Task SetHardwareConcurrenc /// Allows overriding user agent with the given string. /// /// User agent to use. - /// Browser langugage to emulate. + /// Browser language to emulate. /// The platform navigator.platform should return. /// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> @@ -45556,7 +45900,7 @@ public System.Threading.Tasks.Task SetAttachDebugStackAs /// Allows overriding user agent with the given string. /// /// User agent to use. - /// Browser langugage to emulate. + /// Browser language to emulate. /// The platform navigator.platform should return. /// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> @@ -47851,7 +48195,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null); /// /// Print page as PDF. /// @@ -47871,10 +48215,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream /// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. + /// Whether or not to embed the document outline into the PDF. /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF, generateDocumentOutline); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -47956,6 +48301,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("generateTaggedPDF", generateTaggedPDF.Value); } + if (generateDocumentOutline.HasValue) + { + dict.Add("generateDocumentOutline", generateDocumentOutline.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); } @@ -52507,6 +52857,23 @@ public event System.EventHandler DialogShown } } + /// + /// Triggered when a dialog is closed, either by user action, JS abort, + /// or a command below. + /// + public event System.EventHandler DialogClosed + { + add + { + _client.AddEventHandler("FedCm.dialogClosed", value); + } + + remove + { + _client.RemoveEventHandler("FedCm.dialogClosed", value); + } + } + partial void ValidateEnable(bool? disableRejectionDelay = null); /// /// Enable @@ -52551,19 +52918,20 @@ public System.Threading.Tasks.Task SelectAccountAsync(st return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); } - partial void ValidateConfirmIdpLogin(string dialogId); + partial void ValidateClickDialogButton(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton); /// - /// Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had - /// clicked the continue button. + /// ClickDialogButton /// /// dialogId + /// dialogButton /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ConfirmIdpLoginAsync(string dialogId) + public System.Threading.Tasks.Task ClickDialogButtonAsync(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton) { - ValidateConfirmIdpLogin(dialogId); + ValidateClickDialogButton(dialogId, dialogButton); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); - return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpLogin", dict); + dict.Add("dialogButton", EnumToString(dialogButton)); + return _client.ExecuteDevToolsMethodAsync("FedCm.clickDialogButton", dict); } partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index c5e3cc064..7af82177e 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 120.0.6099.109 +// CHROMIUM VERSION 121.0.6167.160 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1580,6 +1580,11 @@ public enum MixedContentResourceType [JsonPropertyName("SharedWorker")] SharedWorker, /// + /// SpeculationRules + /// + [JsonPropertyName("SpeculationRules")] + SpeculationRules, + /// /// Stylesheet /// [JsonPropertyName("Stylesheet")] @@ -4226,7 +4231,7 @@ public enum PermissionSetting /// /// Definition of PermissionDescriptor defined in the Permissions API: - /// https://w3c.github.io/permissions/#dictdef-permissiondescriptor. + /// https://w3c.github.io/permissions/#dom-permissiondescriptor. /// public partial class PermissionDescriptor : CefSharp.DevTools.DevToolsDomainEntityBase { @@ -5864,6 +5869,17 @@ public string FamilyName set; } + /// + /// Font's PostScript name reported by platform. + /// + [JsonPropertyName("postScriptName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string PostScriptName + { + get; + set; + } + /// /// Indicates if the font was downloaded or resolved locally. /// @@ -6201,6 +6217,55 @@ public string Syntax } } + /// + /// CSS font-palette-values rule representation. + /// + public partial class CSSFontPaletteValuesRule : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The css style sheet identifier (absent for user agent stylesheet and user-specified + /// stylesheet rules) this rule came from. + /// + [JsonPropertyName("styleSheetId")] + public string StyleSheetId + { + get; + set; + } + + /// + /// Parent stylesheet's origin. + /// + [JsonPropertyName("origin")] + public CefSharp.DevTools.CSS.StyleSheetOrigin Origin + { + get; + set; + } + + /// + /// Associated font palette name. + /// + [JsonPropertyName("fontPaletteName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.Value FontPaletteName + { + get; + set; + } + + /// + /// Associated style declaration. + /// + [JsonPropertyName("style")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.CSS.CSSStyle Style + { + get; + set; + } + } + /// /// CSS property at-rule representation. /// @@ -9508,6 +9573,39 @@ public int MaskLength } } + /// + /// Current posture of the device + /// + public enum DevicePostureType + { + /// + /// continuous + /// + [JsonPropertyName("continuous")] + Continuous, + /// + /// folded + /// + [JsonPropertyName("folded")] + Folded + } + + /// + /// DevicePosture + /// + public partial class DevicePosture : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Current posture of the device + /// + [JsonPropertyName("type")] + public CefSharp.DevTools.Emulation.DevicePostureType Type + { + get; + set; + } + } + /// /// MediaFeature /// @@ -12914,6 +13012,22 @@ public enum AlternateProtocolUsage UnspecifiedReason } + /// + /// ServiceWorkerRouterInfo + /// + public partial class ServiceWorkerRouterInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// RuleIdMatched + /// + [JsonPropertyName("ruleIdMatched")] + public int RuleIdMatched + { + get; + set; + } + } + /// /// HTTP response data. /// @@ -13073,6 +13187,16 @@ public bool? FromPrefetchCache set; } + /// + /// Infomation about how Service Worker Static Router was used. + /// + [JsonPropertyName("serviceWorkerRouterInfo")] + public CefSharp.DevTools.Network.ServiceWorkerRouterInfo ServiceWorkerRouterInfo + { + get; + set; + } + /// /// Total number of bytes received for this request so far. /// @@ -18437,11 +18561,21 @@ public enum PermissionsPolicyFeature [JsonPropertyName("usb")] Usb, /// + /// usb-unrestricted + /// + [JsonPropertyName("usb-unrestricted")] + UsbUnrestricted, + /// /// vertical-scroll /// [JsonPropertyName("vertical-scroll")] VerticalScroll, /// + /// web-printing + /// + [JsonPropertyName("web-printing")] + WebPrinting, + /// /// web-share /// [JsonPropertyName("web-share")] @@ -22826,6 +22960,16 @@ public string TargetId get; set; } + + /// + /// RouterRules + /// + [JsonPropertyName("routerRules")] + public string RouterRules + { + get; + set; + } } /// @@ -23811,6 +23955,34 @@ public int[] Ends } } + /// + /// AttributionReportingTriggerSpec + /// + public partial class AttributionReportingTriggerSpec : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// number instead of integer because not all uint32 can be represented by + /// int + /// + [JsonPropertyName("triggerData")] + public double[] TriggerData + { + get; + set; + } + + /// + /// EventReportWindows + /// + [JsonPropertyName("eventReportWindows")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows + { + get; + set; + } + } + /// /// AttributionReportingTriggerDataMatching /// @@ -23854,11 +24026,11 @@ public int Expiry } /// - /// EventReportWindows + /// TriggerSpecs /// - [JsonPropertyName("eventReportWindows")] + [JsonPropertyName("triggerSpecs")] [System.Diagnostics.CodeAnalysis.DisallowNull] - public CefSharp.DevTools.Storage.AttributionReportingEventReportWindows EventReportWindows + public System.Collections.Generic.IList TriggerSpecs { get; set; @@ -27074,6 +27246,30 @@ public bool? IsUserVerified get; set; } + + /// + /// Credentials created by this authenticator will have the backup + /// eligibility (BE) flag set to this value. Defaults to false. + /// https://w3c.github.io/webauthn/#sctn-credential-backup + /// + [JsonPropertyName("defaultBackupEligibility")] + public bool? DefaultBackupEligibility + { + get; + set; + } + + /// + /// Credentials created by this authenticator will have the backup state + /// (BS) flag set to this value. Defaults to false. + /// https://w3c.github.io/webauthn/#sctn-credential-backup + /// + [JsonPropertyName("defaultBackupState")] + public bool? DefaultBackupState + { + get; + set; + } } /// @@ -28427,6 +28623,43 @@ public enum PrefetchStatus PrefetchNotUsedProbeFailed } + /// + /// Information of headers to be displayed when the header mismatch occurred. + /// + public partial class PrerenderMismatchedHeaders : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// HeaderName + /// + [JsonPropertyName("headerName")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string HeaderName + { + get; + set; + } + + /// + /// InitialValue + /// + [JsonPropertyName("initialValue")] + public string InitialValue + { + get; + set; + } + + /// + /// ActivationValue + /// + [JsonPropertyName("activationValue")] + public string ActivationValue + { + get; + set; + } + } + /// /// Upsert. Currently, it is only emitted when a rule set added. /// @@ -28650,6 +28883,17 @@ public string DisallowedMojoInterface get; private set; } + + /// + /// MismatchedHeaders + /// + [JsonInclude] + [JsonPropertyName("mismatchedHeaders")] + public System.Collections.Generic.IList MismatchedHeaders + { + get; + private set; + } } /// @@ -28704,7 +28948,7 @@ public enum LoginState } /// - /// Whether the dialog shown is an account chooser or an auto re-authentication dialog. + /// The types of FedCM dialogs. /// public enum DialogType { @@ -28722,7 +28966,34 @@ public enum DialogType /// ConfirmIdpLogin /// [JsonPropertyName("ConfirmIdpLogin")] - ConfirmIdpLogin + ConfirmIdpLogin, + /// + /// Error + /// + [JsonPropertyName("Error")] + Error + } + + /// + /// The buttons on the FedCM dialog. + /// + public enum DialogButton + { + /// + /// ConfirmIdpLoginContinue + /// + [JsonPropertyName("ConfirmIdpLoginContinue")] + ConfirmIdpLoginContinue, + /// + /// ErrorGotIt + /// + [JsonPropertyName("ErrorGotIt")] + ErrorGotIt, + /// + /// ErrorMoreDetails + /// + [JsonPropertyName("ErrorMoreDetails")] + ErrorMoreDetails } /// @@ -28902,6 +29173,25 @@ public string Subtitle private set; } } + + /// + /// Triggered when a dialog is closed, either by user action, JS abort, + /// or a command below. + /// + public class DialogClosedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// DialogId + /// + [JsonInclude] + [JsonPropertyName("dialogId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string DialogId + { + get; + private set; + } + } } namespace CefSharp.DevTools.Debugger @@ -34420,6 +34710,17 @@ public System.Collections.Generic.IList + /// cssFontPaletteValuesRule + /// + [JsonInclude] + [JsonPropertyName("cssFontPaletteValuesRule")] + public CefSharp.DevTools.CSS.CSSFontPaletteValuesRule CssFontPaletteValuesRule + { + get; + private set; + } + /// /// parentLayoutNodeId /// @@ -38470,7 +38771,7 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC return _client.ExecuteDevToolsMethodAsync("Emulation.setDefaultBackgroundColorOverride", dict); } - partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null); + partial void ValidateSetDeviceMetricsOverride(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null); /// /// Overrides the values of device screen dimensions (window.screen.width, window.screen.height, /// window.innerWidth, window.innerHeight, and "device-width"/"device-height"-related CSS media @@ -38489,10 +38790,11 @@ public System.Threading.Tasks.Task SetDefaultBackgroundC /// Screen orientation override. /// If set, the visible area of the page will be overridden to this viewport. This viewportchange is not observed by the page, e.g. viewport-relative elements do not change positions. /// If set, the display feature of a multi-segment screen. If not set, multi-segment supportis turned-off. + /// If set, the posture of a foldable device. If not set the posture is setto continuous. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null) + public System.Threading.Tasks.Task SetDeviceMetricsOverrideAsync(int width, int height, double deviceScaleFactor, bool mobile, double? scale = null, int? screenWidth = null, int? screenHeight = null, int? positionX = null, int? positionY = null, bool? dontSetVisibleSize = null, CefSharp.DevTools.Emulation.ScreenOrientation screenOrientation = null, CefSharp.DevTools.Page.Viewport viewport = null, CefSharp.DevTools.Emulation.DisplayFeature displayFeature = null, CefSharp.DevTools.Emulation.DevicePosture devicePosture = null) { - ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature); + ValidateSetDeviceMetricsOverride(width, height, deviceScaleFactor, mobile, scale, screenWidth, screenHeight, positionX, positionY, dontSetVisibleSize, screenOrientation, viewport, displayFeature, devicePosture); var dict = new System.Collections.Generic.Dictionary(); dict.Add("width", width); dict.Add("height", height); @@ -38543,6 +38845,11 @@ public System.Threading.Tasks.Task SetDeviceMetricsOverr dict.Add("displayFeature", displayFeature.ToDictionary()); } + if ((devicePosture) != (null)) + { + dict.Add("devicePosture", devicePosture.ToDictionary()); + } + return _client.ExecuteDevToolsMethodAsync("Emulation.setDeviceMetricsOverride", dict); } @@ -38892,7 +39199,7 @@ public System.Threading.Tasks.Task SetHardwareConcurrenc /// Allows overriding user agent with the given string. /// /// User agent to use. - /// Browser langugage to emulate. + /// Browser language to emulate. /// The platform navigator.platform should return. /// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> @@ -42204,7 +42511,7 @@ public System.Threading.Tasks.Task SetAttachDebugStackAs /// Allows overriding user agent with the given string. /// /// User agent to use. - /// Browser langugage to emulate. + /// Browser language to emulate. /// The platform navigator.platform should return. /// To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> @@ -44233,7 +44540,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null); /// /// Print page as PDF. /// @@ -44253,10 +44560,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream /// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. + /// Whether or not to embed the document outline into the PDF. /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null, bool? generateDocumentOutline = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF, generateDocumentOutline); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -44338,6 +44646,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("generateTaggedPDF", generateTaggedPDF.Value); } + if (generateDocumentOutline.HasValue) + { + dict.Add("generateDocumentOutline", generateDocumentOutline.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); } @@ -48601,6 +48914,23 @@ public event System.EventHandler DialogShown } } + /// + /// Triggered when a dialog is closed, either by user action, JS abort, + /// or a command below. + /// + public event System.EventHandler DialogClosed + { + add + { + _client.AddEventHandler("FedCm.dialogClosed", value); + } + + remove + { + _client.RemoveEventHandler("FedCm.dialogClosed", value); + } + } + partial void ValidateEnable(bool? disableRejectionDelay = null); /// /// Enable @@ -48645,19 +48975,20 @@ public System.Threading.Tasks.Task SelectAccountAsync(st return _client.ExecuteDevToolsMethodAsync("FedCm.selectAccount", dict); } - partial void ValidateConfirmIdpLogin(string dialogId); + partial void ValidateClickDialogButton(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton); /// - /// Only valid if the dialog type is ConfirmIdpLogin. Acts as if the user had - /// clicked the continue button. + /// ClickDialogButton /// /// dialogId + /// dialogButton /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task ConfirmIdpLoginAsync(string dialogId) + public System.Threading.Tasks.Task ClickDialogButtonAsync(string dialogId, CefSharp.DevTools.FedCm.DialogButton dialogButton) { - ValidateConfirmIdpLogin(dialogId); + ValidateClickDialogButton(dialogId, dialogButton); var dict = new System.Collections.Generic.Dictionary(); dict.Add("dialogId", dialogId); - return _client.ExecuteDevToolsMethodAsync("FedCm.confirmIdpLogin", dict); + dict.Add("dialogButton", EnumToString(dialogButton)); + return _client.ExecuteDevToolsMethodAsync("FedCm.clickDialogButton", dict); } partial void ValidateDismissDialog(string dialogId, bool? triggerCooldown = null); From 525e9be8c14f76ae22d6fd9466b038074ec70252 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 2 Mar 2024 12:24:44 +1000 Subject: [PATCH 325/543] Upgrade to 122.1.9+gd14e051+chromium-122.0.6261.94 / Chromium 122.0.6261.94 --- .../CefSharp.BrowserSubprocess.Core.netcore.vcxproj | 2 +- .../CefSharp.BrowserSubprocess.Core.vcxproj | 2 +- CefSharp.BrowserSubprocess.Core/Resource.rc | 8 ++++---- .../packages.CefSharp.BrowserSubprocess.Core.config | 2 +- ...es.CefSharp.BrowserSubprocess.Core.netcore.config | 2 +- CefSharp.BrowserSubprocess/app.manifest | 2 +- .../CefSharp.Core.Runtime.netcore.vcxproj | 2 +- CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj | 2 +- CefSharp.Core.Runtime/Resource.rc | 8 ++++---- .../packages.CefSharp.Core.Runtime.config | 2 +- .../packages.CefSharp.Core.Runtime.netcore.config | 2 +- .../CefSharp.OffScreen.Example.csproj | 2 +- .../CefSharp.OffScreen.Example.netcore.csproj | 2 +- CefSharp.OffScreen.Example/app.manifest | 2 +- CefSharp.Test/CefSharp.Test.csproj | 2 +- CefSharp.Test/CefSharp.Test.netcore.csproj | 2 +- .../CefSharp.WinForms.Example.csproj | 2 +- .../CefSharp.WinForms.Example.netcore.csproj | 2 +- CefSharp.WinForms.Example/app.manifest | 2 +- CefSharp.WinForms/CefSharp.WinForms.netcore.csproj | 4 ++-- CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj | 2 +- .../CefSharp.Wpf.Example.netcore.csproj | 2 +- CefSharp.Wpf.Example/app.manifest | 2 +- CefSharp.shfbproj | 4 ++-- CefSharp/Properties/AssemblyInfo.cs | 4 ++-- NuGet/CefSharp.Common.app.config.x64.transform | 2 +- NuGet/CefSharp.Common.app.config.x86.transform | 2 +- .../PackageReference/CefSharp.Common.NETCore.targets | 12 ++++++------ UpdateNugetPackages.ps1 | 2 +- appveyor.yml | 2 +- build.ps1 | 4 ++-- 31 files changed, 46 insertions(+), 46 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj index 282dae0f7..52c9c919d 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj index 2841e82c3..7e81c1745 100644 --- a/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj +++ b/CefSharp.BrowserSubprocess.Core/CefSharp.BrowserSubprocess.Core.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/Resource.rc b/CefSharp.BrowserSubprocess.Core/Resource.rc index b26b5cd31..42e252af2 100644 --- a/CefSharp.BrowserSubprocess.Core/Resource.rc +++ b/CefSharp.BrowserSubprocess.Core/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 121,3,70 - PRODUCTVERSION 121,3,70 + FILEVERSION 122,1,90 + PRODUCTVERSION 122,1,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core" - VALUE "FileVersion", "121.3.70" + VALUE "FileVersion", "122.1.90" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "121.3.70" + VALUE "ProductVersion", "122.1.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config index a9ecf0cc9..a72fb8274 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config index d7c668fb3..dbb36bb0f 100644 --- a/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config +++ b/CefSharp.BrowserSubprocess.Core/packages.CefSharp.BrowserSubprocess.Core.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.BrowserSubprocess/app.manifest b/CefSharp.BrowserSubprocess/app.manifest index 132a37fa2..a47cca7ce 100644 --- a/CefSharp.BrowserSubprocess/app.manifest +++ b/CefSharp.BrowserSubprocess/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj index c593a6ea1..6c87332ed 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.netcore.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj index cddd4d6c5..a035bee53 100644 --- a/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj +++ b/CefSharp.Core.Runtime/CefSharp.Core.Runtime.vcxproj @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/Resource.rc b/CefSharp.Core.Runtime/Resource.rc index a067f7761..c4403916e 100644 --- a/CefSharp.Core.Runtime/Resource.rc +++ b/CefSharp.Core.Runtime/Resource.rc @@ -1,8 +1,8 @@ #pragma code_page(65001) 1 VERSIONINFO - FILEVERSION 121,3,70 - PRODUCTVERSION 121,3,70 + FILEVERSION 122,1,90 + PRODUCTVERSION 122,1,90 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -18,10 +18,10 @@ BEGIN BLOCK "040904b0" BEGIN VALUE "FileDescription", "CefSharp.Core" - VALUE "FileVersion", "121.3.70" + VALUE "FileVersion", "122.1.90" VALUE "LegalCopyright", "Copyright © 2023 The CefSharp Authors" VALUE "ProductName", "CefSharp" - VALUE "ProductVersion", "121.3.70" + VALUE "ProductVersion", "122.1.90" END END BLOCK "VarFileInfo" diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config index a9ecf0cc9..a72fb8274 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config index d7c668fb3..dbb36bb0f 100644 --- a/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config +++ b/CefSharp.Core.Runtime/packages.CefSharp.Core.Runtime.netcore.config @@ -1,6 +1,6 @@  - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj index ba11c4e2c..8df4e7498 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.csproj @@ -23,7 +23,7 @@ - + diff --git a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj index e5bd6f436..caf414467 100644 --- a/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj +++ b/CefSharp.OffScreen.Example/CefSharp.OffScreen.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.OffScreen.Example/app.manifest b/CefSharp.OffScreen.Example/app.manifest index 26469ec5b..041d4e7c7 100644 --- a/CefSharp.OffScreen.Example/app.manifest +++ b/CefSharp.OffScreen.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index 2455a3240..c6b1dc1e4 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,7 +35,7 @@ - + diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index 0042db050..e6401d63c 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,7 +34,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj index bf3bfced4..664773194 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.csproj @@ -32,7 +32,7 @@ - + diff --git a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj index 5e9aa36c3..0da4a5dc0 100644 --- a/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj +++ b/CefSharp.WinForms.Example/CefSharp.WinForms.Example.netcore.csproj @@ -39,7 +39,7 @@ - + diff --git a/CefSharp.WinForms.Example/app.manifest b/CefSharp.WinForms.Example/app.manifest index fc01a3ccf..d81f54c7d 100644 --- a/CefSharp.WinForms.Example/app.manifest +++ b/CefSharp.WinForms.Example/app.manifest @@ -8,7 +8,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj b/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj index b01dfd882..9b540b0a6 100644 --- a/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj +++ b/CefSharp.WinForms/CefSharp.WinForms.netcore.csproj @@ -57,9 +57,9 @@ - + all - compile;runtime + runtime; compile diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj index 2b268f93f..4d63f07e9 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.csproj @@ -31,7 +31,7 @@ - + diff --git a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj index a58eec3f6..8d097df4c 100644 --- a/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj +++ b/CefSharp.Wpf.Example/CefSharp.Wpf.Example.netcore.csproj @@ -40,7 +40,7 @@ - + diff --git a/CefSharp.Wpf.Example/app.manifest b/CefSharp.Wpf.Example/app.manifest index fefcf7792..b64520e35 100644 --- a/CefSharp.Wpf.Example/app.manifest +++ b/CefSharp.Wpf.Example/app.manifest @@ -7,7 +7,7 @@ xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - + diff --git a/CefSharp.shfbproj b/CefSharp.shfbproj index 156a7ffb5..ce44bbce0 100644 --- a/CefSharp.shfbproj +++ b/CefSharp.shfbproj @@ -31,7 +31,7 @@ - 121.3.70 + 122.1.90 2 False C#, Managed C++ @@ -59,7 +59,7 @@ InheritedMembers, InheritedFrameworkMembers, Protected, ProtectedInternalAsProtected, EditorBrowsableNever, NonBrowsable - Version 121.3.70 + Version 122.1.90 https://raw.githubusercontent.com/cefsharp/CefSharp/master/LICENSE Interfaces, enums, structs and classes that make up the core API interface diff --git a/CefSharp/Properties/AssemblyInfo.cs b/CefSharp/Properties/AssemblyInfo.cs index 4fa6f41ff..4deccdc0e 100644 --- a/CefSharp/Properties/AssemblyInfo.cs +++ b/CefSharp/Properties/AssemblyInfo.cs @@ -26,8 +26,8 @@ public static class AssemblyInfo public const bool ComVisible = false; public const string AssemblyCompany = "The CefSharp Authors"; public const string AssemblyProduct = "CefSharp"; - public const string AssemblyVersion = "121.3.70"; - public const string AssemblyFileVersion = "121.3.70.0"; + public const string AssemblyVersion = "122.1.90"; + public const string AssemblyFileVersion = "122.1.90.0"; public const string AssemblyCopyright = "Copyright © 2023 The CefSharp Authors"; public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey; public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey; diff --git a/NuGet/CefSharp.Common.app.config.x64.transform b/NuGet/CefSharp.Common.app.config.x64.transform index 00d858ee8..5e9076350 100644 --- a/NuGet/CefSharp.Common.app.config.x64.transform +++ b/NuGet/CefSharp.Common.app.config.x64.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/CefSharp.Common.app.config.x86.transform b/NuGet/CefSharp.Common.app.config.x86.transform index c8f03fa64..6908ff3fc 100644 --- a/NuGet/CefSharp.Common.app.config.x86.transform +++ b/NuGet/CefSharp.Common.app.config.x86.transform @@ -20,7 +20,7 @@ - + diff --git a/NuGet/PackageReference/CefSharp.Common.NETCore.targets b/NuGet/PackageReference/CefSharp.Common.NETCore.targets index 1c6900b65..48e7e456e 100644 --- a/NuGet/PackageReference/CefSharp.Common.NETCore.targets +++ b/NuGet/PackageReference/CefSharp.Common.NETCore.targets @@ -143,16 +143,16 @@ - - - + + + - - - + + + diff --git a/UpdateNugetPackages.ps1 b/UpdateNugetPackages.ps1 index 3bc0b7be9..620aa6003 100644 --- a/UpdateNugetPackages.ps1 +++ b/UpdateNugetPackages.ps1 @@ -3,7 +3,7 @@ param( [Parameter(Position = 1)] - [string] $CefVersion = "121.3.7", + [string] $CefVersion = "122.1.9", [Parameter(Position = 2)] [string] $CefSharpVersion = "" ) diff --git a/appveyor.yml b/appveyor.yml index f4803eed6..a8eba471c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 121.3.70-CI{build} +version: 122.1.90-CI{build} clone_depth: 10 diff --git a/build.ps1 b/build.ps1 index feb63fac8..6b2cbcf5f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -5,9 +5,9 @@ param( [Parameter(Position = 0)] [string] $Target = "vs2019", [Parameter(Position = 1)] - [string] $Version = "121.3.70", + [string] $Version = "122.1.90", [Parameter(Position = 2)] - [string] $AssemblyVersion = "121.3.70", + [string] $AssemblyVersion = "122.1.90", [Parameter(Position = 3)] [ValidateSet("NetFramework", "NetCore", "NetFramework452", "NetCore31")] [string] $TargetFramework = "NetFramework", From 9d52314489444e653d2999d4ffd55d594b7f673e Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 2 Mar 2024 12:29:39 +1000 Subject: [PATCH 326/543] NetCore - Update System.Drawing.Common to 4.7.3 - Stop the dependency bot from complaining. 4.7.0 is only vulnerable on non-windows systems so it wasn't actually a problem as CefSharp only runs on windows --- NuGet/PackageReference/CefSharp.OffScreen.NETCore.nuspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NuGet/PackageReference/CefSharp.OffScreen.NETCore.nuspec b/NuGet/PackageReference/CefSharp.OffScreen.NETCore.nuspec index f2f8d6458..a9ab73ef1 100644 --- a/NuGet/PackageReference/CefSharp.OffScreen.NETCore.nuspec +++ b/NuGet/PackageReference/CefSharp.OffScreen.NETCore.nuspec @@ -14,7 +14,7 @@ - + From 8d7a169590ea0b7009ce65f69b2f51b7c2fbea74 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Sat, 9 Mar 2024 06:55:27 +1000 Subject: [PATCH 327/543] Change Frame identifier from Int64 to String (#4740) * Change Frame identifier from Int64 to String Issue https://github.com/cefsharp/CefSharp/issues/4737 * Fix SetCanExecuteJavascriptOnMainFrame frameId parsing * Add tests * NetCore Tests - Install missing packages --- .../BindObjectAsyncHandler.h | 4 +- .../CefAppUnmanagedWrapper.cpp | 15 ++++---- .../CefAppUnmanagedWrapper.h | 2 +- .../CefBrowserWrapper.h | 6 +-- .../JavascriptCallbackRegistry.cpp | 2 +- .../Wrapper/Browser.cpp | 16 ++++---- .../Wrapper/Browser.h | 6 +-- .../Wrapper/Frame.cpp | 4 +- .../Wrapper/Frame.h | 4 +- .../Internals/CefBrowserWrapper.cpp | 16 ++++---- .../Internals/CefBrowserWrapper.h | 6 +-- .../Internals/CefFrameWrapper.cpp | 4 +- .../Internals/CefFrameWrapper.h | 4 +- .../Internals/ClientAdapter.cpp | 8 ++-- .../Internals/JavascriptCallbackProxy.cpp | 4 +- .../Internals/JavascriptCallbackProxy.h | 2 +- .../Internals/Serialization/Primitives.cpp | 32 +++++----------- CefSharp.Test/CefSharp.Test.csproj | 2 + CefSharp.Test/CefSharp.Test.netcore.csproj | 2 + .../ConcurrentMethodRunnerQueueTest.cs | 6 +-- .../JavascritpCallbackConversionTests.cs | 30 +++++++++++++++ .../Framework/MethodRunnerQueueTests.cs | 2 +- CefSharp/Handler/FrameHandler.cs | 4 +- CefSharp/IBrowser.cs | 6 +-- CefSharp/IFrame.cs | 5 ++- CefSharp/Internals/IWebBrowserInternal.cs | 2 +- CefSharp/Internals/JavascriptCallback.cs | 37 ++++++++++++++++++- CefSharp/Internals/MethodInvocation.cs | 4 +- CefSharp/Internals/MethodInvocationResult.cs | 2 +- .../Partial/ChromiumWebBrowser.Partial.cs | 30 ++++++++++++--- 30 files changed, 173 insertions(+), 94 deletions(-) create mode 100644 CefSharp.Test/Framework/JavascritpCallbackConversionTests.cs diff --git a/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h b/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h index bbe39fe54..9ece880b2 100644 --- a/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h +++ b/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h @@ -151,14 +151,14 @@ namespace CefSharp auto rootObjectWrappers = _browserWrapper->JavascriptRootObjectWrappers; JavascriptRootObjectWrapper^ rootObject; - if (!rootObjectWrappers->TryGetValue(frame->GetIdentifier(), rootObject)) + if (!rootObjectWrappers->TryGetValue(StringUtils::ToClr(frame->GetIdentifier()), rootObject)) { #ifdef NETCOREAPP rootObject = gcnew JavascriptRootObjectWrapper(browser->GetIdentifier()); #else rootObject = gcnew JavascriptRootObjectWrapper(browser->GetIdentifier(), _browserWrapper->BrowserProcess); #endif - rootObjectWrappers->TryAdd(frame->GetIdentifier(), rootObject); + rootObjectWrappers->TryAdd(StringUtils::ToClr(frame->GetIdentifier()), rootObject); } //Cached objects only contains a list of objects not already bound diff --git a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp index 14e4c66b4..a5807c377 100644 --- a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp +++ b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp @@ -220,7 +220,7 @@ namespace CefSharp auto rootObjectWrappers = browserWrapper->JavascriptRootObjectWrappers; JavascriptRootObjectWrapper^ wrapper; - if (rootObjectWrappers->TryRemove(frame->GetIdentifier(), wrapper)) + if (rootObjectWrappers->TryRemove(StringUtils::ToClr(frame->GetIdentifier()), wrapper)) { delete wrapper; } @@ -292,7 +292,7 @@ namespace CefSharp frame->SendProcessMessage(CefProcessId::PID_BROWSER, uncaughtExceptionMessage); } - JavascriptRootObjectWrapper^ CefAppUnmanagedWrapper::GetJsRootObjectWrapper(int browserId, int64_t frameId) + JavascriptRootObjectWrapper^ CefAppUnmanagedWrapper::GetJsRootObjectWrapper(int browserId, CefString& frameId) { auto browserWrapper = FindBrowserWrapper(browserId); @@ -302,16 +302,17 @@ namespace CefSharp } auto rootObjectWrappers = browserWrapper->JavascriptRootObjectWrappers; + auto frameIdClr = StringUtils::ToClr(frameId); JavascriptRootObjectWrapper^ rootObject; - if (!rootObjectWrappers->TryGetValue(frameId, rootObject)) + if (!rootObjectWrappers->TryGetValue(frameIdClr, rootObject)) { #ifdef NETCOREAPP rootObject = gcnew JavascriptRootObjectWrapper(browserId); #else rootObject = gcnew JavascriptRootObjectWrapper(browserId, browserWrapper->BrowserProcess); #endif - rootObjectWrappers->TryAdd(frameId, rootObject); + rootObjectWrappers->TryAdd(frameIdClr, rootObject); } return rootObject; @@ -400,7 +401,7 @@ namespace CefSharp } //both messages have callbackId stored at index 0 - auto frameId = frame->GetIdentifier(); + auto frameId = StringUtils::ToClr(frame->GetIdentifier()); int64_t callbackId = GetInt64(argList, 0); if (name == kEvaluateJavascriptRequest) @@ -604,7 +605,7 @@ namespace CefSharp { auto jsCallbackId = GetInt64(argList, 0); JavascriptRootObjectWrapper^ rootObjectWrapper; - browserWrapper->JavascriptRootObjectWrappers->TryGetValue(frame->GetIdentifier(), rootObjectWrapper); + browserWrapper->JavascriptRootObjectWrappers->TryGetValue(StringUtils::ToClr(frame->GetIdentifier()), rootObjectWrapper); if (rootObjectWrapper != nullptr && rootObjectWrapper->CallbackRegistry != nullptr) { rootObjectWrapper->CallbackRegistry->Deregister(jsCallbackId); @@ -712,7 +713,7 @@ namespace CefSharp { if (frame.get() && frame->IsValid()) { - auto frameId = frame->GetIdentifier(); + auto frameId = StringUtils::ToClr(frame->GetIdentifier()); auto callbackId = GetInt64(argList, 0); JavascriptRootObjectWrapper^ rootObjectWrapper; diff --git a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h index 6ef917ec8..38f8da288 100644 --- a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.h @@ -72,7 +72,7 @@ namespace CefSharp } CefBrowserWrapper^ FindBrowserWrapper(int browserId); - JavascriptRootObjectWrapper^ GetJsRootObjectWrapper(int browserId, int64_t frameId); + JavascriptRootObjectWrapper^ GetJsRootObjectWrapper(int browserId, CefString& frameId); virtual DECL CefRefPtr GetRenderProcessHandler() override; virtual DECL void OnBrowserCreated(CefRefPtr browser, CefRefPtr extraInfo) override; diff --git a/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h b/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h index aa299d610..ef9ef6dfb 100644 --- a/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h +++ b/CefSharp.BrowserSubprocess.Core/CefBrowserWrapper.h @@ -31,7 +31,7 @@ namespace CefSharp internal: //Frame Identifier is used as Key - property ConcurrentDictionary^ JavascriptRootObjectWrappers; + property ConcurrentDictionary^ JavascriptRootObjectWrappers; public: CefBrowserWrapper(CefRefPtr cefBrowser) @@ -40,7 +40,7 @@ namespace CefSharp BrowserId = cefBrowser->GetIdentifier(); IsPopup = cefBrowser->IsPopup(); - JavascriptRootObjectWrappers = gcnew ConcurrentDictionary(); + JavascriptRootObjectWrappers = gcnew ConcurrentDictionary(); } !CefBrowserWrapper() @@ -54,7 +54,7 @@ namespace CefSharp if (JavascriptRootObjectWrappers != nullptr) { - for each (KeyValuePair entry in JavascriptRootObjectWrappers) + for each (KeyValuePair entry in JavascriptRootObjectWrappers) { delete entry.Value; } diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp b/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp index f704532f7..01f6da232 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp +++ b/CefSharp.BrowserSubprocess.Core/JavascriptCallbackRegistry.cpp @@ -21,7 +21,7 @@ namespace CefSharp auto result = gcnew JavascriptCallback(); result->Id = newId; result->BrowserId = _browserId; - result->FrameId = context->GetFrame()->GetIdentifier(); + result->FrameId = StringUtils::ToClr(context->GetFrame()->GetIdentifier()); return result; } diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp index 3f1f9852c..46777df10 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp @@ -155,9 +155,9 @@ IFrame^ Browser::FocusedFrame::get() // Returns the frame with the specified identifier, or NULL if not found. /// /*--cef(capi_name=get_frame_byident)--*/ -IFrame^ Browser::GetFrame(Int64 identifier) +IFrame^ Browser::GetFrameByIdentifier(String^ identifier) { - auto frame = _browser->GetFrame(identifier); + auto frame = _browser->GetFrameByIdentifier(StringUtils::ToNative(identifier)); if (frame.get()) { @@ -171,9 +171,9 @@ IFrame^ Browser::GetFrame(Int64 identifier) // Returns the frame with the specified name, or NULL if not found. /// /*--cef(optional_param=name)--*/ -IFrame^ Browser::GetFrame(String^ name) +IFrame^ Browser::GetFrameByName(String^ name) { - auto frame = _browser->GetFrame(StringUtils::ToNative(name)); + auto frame = _browser->GetFrameByName(StringUtils::ToNative(name)); if (frame.get()) { @@ -196,14 +196,14 @@ int Browser::GetFrameCount() // Returns the identifiers of all existing frames. /// /*--cef(count_func=identifiers:GetFrameCount)--*/ -List^ Browser::GetFrameIdentifiers() +List^ Browser::GetFrameIdentifiers() { - std::vector identifiers; + std::vector identifiers; _browser->GetFrameIdentifiers(identifiers); - List^ results = gcnew List(static_cast(identifiers.size())); + List^ results = gcnew List(static_cast(identifiers.size())); for (UINT i = 0; i < identifiers.size(); i++) { - results->Add(identifiers[i]); + results->Add(StringUtils::ToClr(identifiers[i])); } return results; } diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h index c58e23f11..64e1b5097 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h @@ -158,13 +158,13 @@ namespace CefSharp // Returns the frame with the specified identifier, or NULL if not found. /// /*--cef(capi_name=get_frame_byident)--*/ - virtual IFrame^ GetFrame(Int64 identifier); + virtual IFrame^ GetFrameByIdentifier(String^ identifier); /// // Returns the frame with the specified name, or NULL if not found. /// /*--cef(optional_param=name)--*/ - virtual IFrame^ GetFrame(String^ name); + virtual IFrame^ GetFrameByName(String^ name); /// // Returns the number of frames that currently exist. @@ -176,7 +176,7 @@ namespace CefSharp // Returns the identifiers of all existing frames. /// /*--cef(count_func=identifiers:GetFrameCount)--*/ - virtual List^ GetFrameIdentifiers(); + virtual List^ GetFrameIdentifiers(); /// // Returns the names of all existing frames. diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.cpp b/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.cpp index 09bfb02e4..c5b1b3c50 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.cpp +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.cpp @@ -205,9 +205,9 @@ String^ Frame::Name::get() // Returns the globally unique identifier for this frame. /// /*--cef()--*/ -Int64 Frame::Identifier::get() +String^ Frame::Identifier::get() { - return _frame->GetIdentifier(); + return StringUtils::ToClr(_frame->GetIdentifier()); } /// diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h b/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h index bae52645a..b38b76761 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h @@ -201,9 +201,9 @@ namespace CefSharp // Returns the globally unique identifier for this frame. /// /*--cef()--*/ - virtual property Int64 Identifier + virtual property String^ Identifier { - Int64 get(); + String^ get(); } /// diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp index db2d8023e..4e89d950d 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp @@ -192,11 +192,11 @@ IFrame^ CefBrowserWrapper::FocusedFrame::get() // Returns the frame with the specified identifier, or NULL if not found. /// /*--cef(capi_name=get_frame_byident)--*/ -IFrame^ CefBrowserWrapper::GetFrame(Int64 identifier) +IFrame^ CefBrowserWrapper::GetFrameByIdentifier(String^ identifier) { ThrowIfDisposed(); - auto frame = _browser->GetFrame(identifier); + auto frame = _browser->GetFrameByIdentifier(StringUtils::ToNative(identifier)); if (frame.get()) { @@ -210,11 +210,11 @@ IFrame^ CefBrowserWrapper::GetFrame(Int64 identifier) // Returns the frame with the specified name, or NULL if not found. /// /*--cef(optional_param=name)--*/ -IFrame^ CefBrowserWrapper::GetFrame(String^ name) +IFrame^ CefBrowserWrapper::GetFrameByName(String^ name) { ThrowIfDisposed(); - auto frame = _browser->GetFrame(StringUtils::ToNative(name)); + auto frame = _browser->GetFrameByName(StringUtils::ToNative(name)); if (frame.get()) { @@ -238,16 +238,16 @@ int CefBrowserWrapper::GetFrameCount() // Returns the identifiers of all existing frames. /// /*--cef(count_func=identifiers:GetFrameCount)--*/ -List^ CefBrowserWrapper::GetFrameIdentifiers() +List^ CefBrowserWrapper::GetFrameIdentifiers() { ThrowIfDisposed(); - std::vector identifiers; + std::vector identifiers; _browser->GetFrameIdentifiers(identifiers); - List^ results = gcnew List(static_cast(identifiers.size())); + List^ results = gcnew List(static_cast(identifiers.size())); for (UINT i = 0; i < identifiers.size(); i++) { - results->Add(identifiers[i]); + results->Add(StringUtils::ToClr(identifiers[i])); } return results; } diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h index 0d0fd8920..d89b890b4 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h @@ -166,13 +166,13 @@ namespace CefSharp // Returns the frame with the specified identifier, or NULL if not found. /// /*--cef(capi_name=get_frame_byident)--*/ - virtual IFrame^ GetFrame(Int64 identifier); + virtual IFrame^ GetFrameByIdentifier(String^ identifier); /// // Returns the frame with the specified name, or NULL if not found. /// /*--cef(optional_param=name)--*/ - virtual IFrame^ GetFrame(String^ name); + virtual IFrame^ GetFrameByName(String^ name); /// // Returns the number of frames that currently exist. @@ -184,7 +184,7 @@ namespace CefSharp // Returns the identifiers of all existing frames. /// /*--cef(count_func=identifiers:GetFrameCount)--*/ - virtual List^ GetFrameIdentifiers(); + virtual List^ GetFrameIdentifiers(); /// // Returns the names of all existing frames. diff --git a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp index 384ed5848..423be8be6 100644 --- a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.cpp @@ -307,11 +307,11 @@ String^ CefFrameWrapper::Name::get() // Returns the globally unique identifier for this frame. /// /*--cef()--*/ -Int64 CefFrameWrapper::Identifier::get() +String^ CefFrameWrapper::Identifier::get() { ThrowIfDisposed(); - return _frame->GetIdentifier(); + return StringUtils::ToClr(_frame->GetIdentifier()); } /// diff --git a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h index d588b02df..7927e1e0e 100644 --- a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h @@ -202,9 +202,9 @@ namespace CefSharp // Returns the globally unique identifier for this frame. /// /*--cef()--*/ - virtual property Int64 Identifier + virtual property String^ Identifier { - Int64 get(); + String^ get(); } /// diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index 724becec9..2816a5185 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -1351,7 +1351,7 @@ namespace CefSharp { if (frame->IsMain()) { - _browserControl->SetCanExecuteJavascriptOnMainFrame(frame->GetIdentifier(), true); + _browserControl->SetCanExecuteJavascriptOnMainFrame(StringUtils::ToClr(frame->GetIdentifier()), true); } auto handler = _browserControl->RenderProcessMessageHandler; @@ -1375,7 +1375,7 @@ namespace CefSharp { if (frame->IsMain()) { - _browserControl->SetCanExecuteJavascriptOnMainFrame(frame->GetIdentifier(), false); + _browserControl->SetCanExecuteJavascriptOnMainFrame(StringUtils::ToClr(frame->GetIdentifier()), false); } auto handler = _browserControl->RenderProcessMessageHandler; @@ -1513,7 +1513,7 @@ namespace CefSharp return true; } - auto frameId = frame->GetIdentifier(); + auto frameId = StringUtils::ToClr(frame->GetIdentifier()); auto objectId = GetInt64(argList, 0); auto callbackId = GetInt64(argList, 1); auto methodName = StringUtils::ToClr(argList->GetString(2)); @@ -1576,7 +1576,7 @@ namespace CefSharp if (cefBrowser.get()) { - auto frame = cefBrowser->GetFrame(result->FrameId); + auto frame = cefBrowser->GetFrameByIdentifier(StringUtils::ToNative(result->FrameId)); if (frame.get() && frame->IsValid()) { diff --git a/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.cpp b/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.cpp index e1de3f9de..be8f4d786 100644 --- a/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.cpp +++ b/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.cpp @@ -47,7 +47,7 @@ namespace CefSharp } argList->SetList(2, paramList); - auto frame = browserWrapper->Browser->GetFrame(_callback->FrameId); + auto frame = browserWrapper->Browser->GetFrameByIdentifier(StringUtils::ToNative(_callback->FrameId)); if (frame.get() && frame->IsValid()) { @@ -126,7 +126,7 @@ namespace CefSharp } //If the frame Id is still valid then we can attemp to execute the callback - auto frame = browser->GetFrame(_callback->FrameId); + auto frame = browser->GetFrameByIdentifier(_callback->FrameId); if (frame == nullptr) { return false; diff --git a/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.h b/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.h index 91ffaf9d0..f32ea790c 100644 --- a/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.h +++ b/CefSharp.Core.Runtime/Internals/JavascriptCallbackProxy.h @@ -48,7 +48,7 @@ namespace CefSharp if (browser != nullptr && !browser->IsDisposed) { auto browserWrapper = static_cast(browser)->Browser; - auto frame = browserWrapper->GetFrame(_callback->FrameId); + auto frame = browserWrapper->GetFrameByIdentifier(StringUtils::ToNative(_callback->FrameId)); if (frame.get() && frame->IsValid()) { frame->SendProcessMessage(CefProcessId::PID_RENDERER, CreateDestroyMessage()); diff --git a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp index 40adb0e07..fc94935ee 100644 --- a/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp +++ b/CefSharp.Core.Runtime/Internals/Serialization/Primitives.cpp @@ -94,38 +94,26 @@ namespace CefSharp template void SetJsCallback(const CefRefPtr& list, TIndex index, JavascriptCallback^ value) { - auto id = value->Id; - auto browserId = value->BrowserId; - auto frameId = value->FrameId; + auto bytes = value->ToByteArray(static_cast(PrimitiveType::JSCALLBACK)); + pin_ptr bytesPtr = &bytes[0]; - unsigned char mem[1 + sizeof(int) + sizeof(int64_t) + sizeof(int64_t)]; - mem[0] = static_cast(PrimitiveType::JSCALLBACK); - memcpy(reinterpret_cast(mem + 1), &browserId, sizeof(int)); - memcpy(reinterpret_cast(mem + 1 + sizeof(int)), &id, sizeof(int64_t)); - memcpy(reinterpret_cast(mem + 1 + sizeof(int) + sizeof(int64_t)), &frameId, sizeof(int64_t)); - - auto binaryValue = CefBinaryValue::Create(mem, sizeof(mem)); + auto binaryValue = CefBinaryValue::Create(bytesPtr, bytes->Length); list->SetBinary(index, binaryValue); } template JavascriptCallback^ GetJsCallback(const CefRefPtr& list, TIndex index) { - auto result = gcnew JavascriptCallback(); - int64_t id; - int browserId; - int64_t frameId; - auto binaryValue = list->GetBinary(index); - binaryValue->GetData(&browserId, sizeof(int), 1); - binaryValue->GetData(&id, sizeof(int64_t), 1 + sizeof(int)); - binaryValue->GetData(&frameId, sizeof(int64_t), 1 + sizeof(int) + sizeof(int64_t)); + auto bufferSize = (int)binaryValue->GetSize(); + auto buffer = gcnew cli::array(bufferSize); + pin_ptr bufferPtr = &buffer[0]; // pin pointer to first element in arr - result->Id = id; - result->BrowserId = browserId; - result->FrameId = frameId; + //TODO: We can potentially further optimise this by geting binaryValue->GetRawData + // and then reading directly from that + binaryValue->GetData(static_cast(bufferPtr), bufferSize, 0); - return result; + return JavascriptCallback::FromBytes(buffer); } template diff --git a/CefSharp.Test/CefSharp.Test.csproj b/CefSharp.Test/CefSharp.Test.csproj index c6b1dc1e4..6bb37aaaa 100644 --- a/CefSharp.Test/CefSharp.Test.csproj +++ b/CefSharp.Test/CefSharp.Test.csproj @@ -35,6 +35,7 @@ + @@ -43,6 +44,7 @@ + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/CefSharp.Test/CefSharp.Test.netcore.csproj b/CefSharp.Test/CefSharp.Test.netcore.csproj index e6401d63c..083c290c4 100644 --- a/CefSharp.Test/CefSharp.Test.netcore.csproj +++ b/CefSharp.Test/CefSharp.Test.netcore.csproj @@ -34,6 +34,7 @@ + @@ -43,6 +44,7 @@ + diff --git a/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs b/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs index 4193fbb4e..79e8082b0 100644 --- a/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs +++ b/CefSharp.Test/Framework/ConcurrentMethodRunnerQueueTest.cs @@ -70,7 +70,7 @@ public void SimulateTaskRunStartOnTaskAlreadyCompleted() [Fact] public void ShouldWorkWhenEnqueueCalledAfterDispose() { - var methodInvocation = new MethodInvocation(1, 1, 1, "Testing", 1); + var methodInvocation = new MethodInvocation(1, "1", 1, "Testing", 1); methodInvocation.Parameters.Add("Echo Me!"); var objectRepository = new JavascriptObjectRepository @@ -102,7 +102,7 @@ public async Task ShouldDisposeWhenRunningWithoutException() #else objectRepository.Register("testObject", boundObject, true, BindingOptions.DefaultBinder); #endif - var methodInvocation = new MethodInvocation(1, 1, 1, nameof(boundObject.AsyncWaitTwoSeconds), 1); + var methodInvocation = new MethodInvocation(1, "1", 1, nameof(boundObject.AsyncWaitTwoSeconds), 1); methodInvocation.Parameters.Add("Echo Me!"); var methodRunnerQueue = new ConcurrentMethodRunnerQueue(objectRepository); @@ -124,7 +124,7 @@ public async Task ShouldCallMethodAsync() var mockObjectRepository = new Mock(); mockObjectRepository.Setup(x => x.TryCallMethodAsync(1, methodName, It.IsAny())).ReturnsAsync(new TryCallMethodResult(true, expected, string.Empty)); - var methodInvocation = new MethodInvocation(1, 1, 1, methodName, 1); + var methodInvocation = new MethodInvocation(1, "1", 1, methodName, 1); methodInvocation.Parameters.Add(expected); using var methodRunnerQueue = new ConcurrentMethodRunnerQueue(mockObjectRepository.Object); diff --git a/CefSharp.Test/Framework/JavascritpCallbackConversionTests.cs b/CefSharp.Test/Framework/JavascritpCallbackConversionTests.cs new file mode 100644 index 000000000..eaa0594cd --- /dev/null +++ b/CefSharp.Test/Framework/JavascritpCallbackConversionTests.cs @@ -0,0 +1,30 @@ +using Bogus; +using Bogus.Extensions; +using CefSharp.Internals; +using Xunit; +using Xunit.Repeat; + +namespace CefSharp.Test.Framework +{ + public class JavascritpCallbackConversionTests + { + [Theory] + [Repeat(1000)] + public void CanConvertToAndFromBinary(int iteration) + { + var calbackFactory = new Faker() + .RuleFor(o => o.Id, f => f.Random.Long(1, long.MaxValue)) + .RuleFor(o => o.BrowserId, f => f.Random.Number(1, int.MaxValue)) + .RuleFor(o => o.FrameId, f => f.Random.AlphaNumeric(120).ClampLength(120, 160)); + + var exepected = calbackFactory.Generate(); + + var actual = JavascriptCallback.FromBytes(exepected.ToByteArray(1)); + + Assert.Equal(exepected.Id, actual.Id); + Assert.Equal(exepected.BrowserId, actual.BrowserId); + Assert.Equal(exepected.FrameId, actual.FrameId); + + } + } +} diff --git a/CefSharp.Test/Framework/MethodRunnerQueueTests.cs b/CefSharp.Test/Framework/MethodRunnerQueueTests.cs index e542fe1e2..ed0eda88d 100644 --- a/CefSharp.Test/Framework/MethodRunnerQueueTests.cs +++ b/CefSharp.Test/Framework/MethodRunnerQueueTests.cs @@ -12,7 +12,7 @@ public class MethodRunnerQueueTests [Fact] public void DisposeQueueThenEnqueueMethodInvocation() { - var methodInvocation = new MethodInvocation(1, 1, 1, "Testing", 1); + var methodInvocation = new MethodInvocation(1, "1", 1, "Testing", 1); methodInvocation.Parameters.Add("Echo Me!"); var objectRepository = new JavascriptObjectRepository diff --git a/CefSharp/Handler/FrameHandler.cs b/CefSharp/Handler/FrameHandler.cs index 1af656477..06409be52 100644 --- a/CefSharp/Handler/FrameHandler.cs +++ b/CefSharp/Handler/FrameHandler.cs @@ -12,7 +12,7 @@ namespace CefSharp.Handler /// public class FrameHandler : IFrameHandler { - private Dictionary frames = new Dictionary(); + private Dictionary frames = new Dictionary(); /// void IFrameHandler.OnFrameAttached(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, bool reattached) @@ -119,7 +119,7 @@ protected virtual void OnMainFrameChanged(IWebBrowser chromiumWebBrowser, IBrows } - private IFrame GetFrameById(long frameId) + private IFrame GetFrameById(string frameId) { if(frames.TryGetValue(frameId, out var frame)) { diff --git a/CefSharp/IBrowser.cs b/CefSharp/IBrowser.cs index 182167667..de8525db9 100644 --- a/CefSharp/IBrowser.cs +++ b/CefSharp/IBrowser.cs @@ -113,14 +113,14 @@ public interface IBrowser : IDisposable /// /// identifier /// frame or null - IFrame GetFrame(Int64 identifier); + IFrame GetFrameByIdentifier(string identifier); /// /// Returns the frame with the specified name, or NULL if not found. /// /// name of frame /// frame or null - IFrame GetFrame(string name); + IFrame GetFrameByName(string name); /// /// Returns the number of frames that currently exist. @@ -132,7 +132,7 @@ public interface IBrowser : IDisposable /// Returns the identifiers of all existing frames. /// /// list of frame identifiers - List GetFrameIdentifiers(); + List GetFrameIdentifiers(); /// /// Returns the names of all existing frames. diff --git a/CefSharp/IFrame.cs b/CefSharp/IFrame.cs index 0079aeb35..6757b99c7 100644 --- a/CefSharp/IFrame.cs +++ b/CefSharp/IFrame.cs @@ -148,9 +148,10 @@ public interface IFrame : IDisposable string Name { get; } /// - /// Returns the globally unique identifier for this frame or < 0 if the underlying frame does not yet exist. + /// Returns the globally unique identifier for this frame or empty if the + /// underlying frame does not yet exist. /// - Int64 Identifier { get; } + string Identifier { get; } /// /// Returns the parent of this frame or NULL if this is the main (top-level) frame. diff --git a/CefSharp/Internals/IWebBrowserInternal.cs b/CefSharp/Internals/IWebBrowserInternal.cs index 483e33e45..75b9edfed 100644 --- a/CefSharp/Internals/IWebBrowserInternal.cs +++ b/CefSharp/Internals/IWebBrowserInternal.cs @@ -18,7 +18,7 @@ public interface IWebBrowserInternal : IWebBrowser void SetLoadingStateChange(LoadingStateChangedEventArgs args); void SetTitle(TitleChangedEventArgs args); void SetTooltipText(string tooltipText); - void SetCanExecuteJavascriptOnMainFrame(long frameId, bool canExecute); + void SetCanExecuteJavascriptOnMainFrame(string frameId, bool canExecute); void SetJavascriptMessageReceived(JavascriptMessageReceivedEventArgs args); void OnFrameLoadStart(FrameLoadStartEventArgs args); diff --git a/CefSharp/Internals/JavascriptCallback.cs b/CefSharp/Internals/JavascriptCallback.cs index c69c29f56..326e57e44 100644 --- a/CefSharp/Internals/JavascriptCallback.cs +++ b/CefSharp/Internals/JavascriptCallback.cs @@ -2,6 +2,7 @@ // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. +using System; using System.Runtime.Serialization; namespace CefSharp.Internals @@ -16,6 +17,40 @@ public class JavascriptCallback public int BrowserId { get; set; } [DataMember] - public long FrameId { get; set; } + public string FrameId { get; set; } + + public byte[] ToByteArray(byte primitiveType) + { + var idBytes = BitConverter.GetBytes(Id); + var browserIdBytes = BitConverter.GetBytes(BrowserId); + var frameIdBytes = System.Text.Encoding.ASCII.GetBytes(FrameId); + + var bytes = new byte[1 + idBytes.Length + browserIdBytes.Length + frameIdBytes.Length]; + + bytes[0] = primitiveType; + idBytes.CopyTo(bytes, 1); + browserIdBytes.CopyTo(bytes, 1 + idBytes.Length); + frameIdBytes.CopyTo(bytes, 1 + idBytes.Length + browserIdBytes.Length); + + return bytes; + } + + public static JavascriptCallback FromBytes(byte[] bytes) + { + var primativeType = bytes[0]; + var frameIdLength = bytes.Length - 1 - sizeof(long) - sizeof(int); + var id = BitConverter.ToInt64(bytes, 1); + var browserId = BitConverter.ToInt32(bytes, 1 + sizeof(long)); + var frameId = System.Text.Encoding.ASCII.GetString(bytes, 1 + sizeof(long) + sizeof(int), frameIdLength); + + var callback = new JavascriptCallback + { + Id = id, + BrowserId = browserId, + FrameId = frameId + }; + + return callback; + } } } diff --git a/CefSharp/Internals/MethodInvocation.cs b/CefSharp/Internals/MethodInvocation.cs index 1317c4d32..014a6dfae 100644 --- a/CefSharp/Internals/MethodInvocation.cs +++ b/CefSharp/Internals/MethodInvocation.cs @@ -12,7 +12,7 @@ public sealed class MethodInvocation public int BrowserId { get; private set; } - public long FrameId { get; private set; } + public string FrameId { get; private set; } public long? CallbackId { get; private set; } @@ -25,7 +25,7 @@ public List Parameters get { return parameters; } } - public MethodInvocation(int browserId, long frameId, long objectId, string methodName, long? callbackId) + public MethodInvocation(int browserId, string frameId, long objectId, string methodName, long? callbackId) { BrowserId = browserId; FrameId = frameId; diff --git a/CefSharp/Internals/MethodInvocationResult.cs b/CefSharp/Internals/MethodInvocationResult.cs index 2c3b69ee9..58c0345ae 100644 --- a/CefSharp/Internals/MethodInvocationResult.cs +++ b/CefSharp/Internals/MethodInvocationResult.cs @@ -12,7 +12,7 @@ public sealed class MethodInvocationResult public long? CallbackId { get; set; } - public long FrameId { get; set; } + public string FrameId { get; set; } public string Message { get; set; } diff --git a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs index c9c00ef55..8ba735e31 100644 --- a/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs +++ b/CefSharp/Internals/Partial/ChromiumWebBrowser.Partial.cs @@ -4,6 +4,7 @@ using System; using System.ComponentModel; +using System.Numerics; using System.Threading; using System.Threading.Tasks; using CefSharp.Internals; @@ -30,7 +31,7 @@ public partial class ChromiumWebBrowser /// /// Used as workaround for issue https://github.com/cefsharp/CefSharp/issues/3021 /// - private long canExecuteJavascriptInMainFrameId; + private int canExecuteJavascriptInMainFrameChildProcessId; /// /// The browser initialized - boolean represented as 0 (false) and 1(true) as we use Interlocker to increment/reset @@ -247,7 +248,7 @@ bool IChromiumWebBrowserBase.IsBrowserInitialized get { return InternalIsBrowserInitialized(); } } - void IWebBrowserInternal.SetCanExecuteJavascriptOnMainFrame(long frameId, bool canExecute) + void IWebBrowserInternal.SetCanExecuteJavascriptOnMainFrame(string frameId, bool canExecute) { //When loading pages of a different origin the frameId changes //For the first loading of a new origin the messages from the render process @@ -256,12 +257,14 @@ void IWebBrowserInternal.SetCanExecuteJavascriptOnMainFrame(long frameId, bool c //incorrectly overrides the value //https://github.com/cefsharp/CefSharp/issues/3021 - if (frameId > canExecuteJavascriptInMainFrameId && !canExecute) + var chromiumChildProcessId = GetChromiumChildProcessId(frameId); + + if (chromiumChildProcessId > canExecuteJavascriptInMainFrameChildProcessId && !canExecute) { return; } - canExecuteJavascriptInMainFrameId = frameId; + canExecuteJavascriptInMainFrameChildProcessId = chromiumChildProcessId; CanExecuteJavascriptInMainFrame = canExecute; } @@ -427,7 +430,7 @@ public bool TryGetBrowserCoreById(int browserId, out IBrowser browser) private void InitialLoad(bool? isLoading, CefErrorCode? errorCode) { - if(IsDisposed) + if (IsDisposed) { initialLoadAction = null; @@ -537,5 +540,22 @@ private void ThrowExceptionIfDisposed() throw new ObjectDisposedException("ChromiumWebBrowser"); } } + + private int GetChromiumChildProcessId(string frameIdentifier) + { + try + { + var parts = frameIdentifier.Split('-'); + + if (int.TryParse(parts[0], out var childProcessId)) + return childProcessId; + } + catch + { + + } + + return -1; + } } } From d3e7040ff5205107b4034d36a90bb62c41aaec77 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 12 Mar 2024 06:32:54 +1000 Subject: [PATCH 328/543] Add IBrowser.GetAllFrames --- .../Wrapper/Browser.cpp | 18 ++++++++++++++++++ .../Wrapper/Browser.h | 2 ++ .../Internals/CefBrowserWrapper.cpp | 18 ++++++++++++++++++ .../Internals/CefBrowserWrapper.h | 2 ++ CefSharp/IBrowser.cs | 12 +++++------- 5 files changed, 45 insertions(+), 7 deletions(-) diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp index 46777df10..4e07c1adf 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.cpp @@ -220,6 +220,24 @@ List^ Browser::GetFrameNames() return StringUtils::ToClr(names); } +IReadOnlyCollection^ Browser::GetAllFrames() +{ + std::vector identifiers; + _browser->GetFrameIdentifiers(identifiers); + + auto results = gcnew List(static_cast(identifiers.size())); + for (UINT i = 0; i < identifiers.size(); i++) + { + auto frame = _browser->GetFrameByIdentifier(identifiers[i]); + + if (frame.get()) + { + results->Add(gcnew Frame(frame)); + } + } + return results; +} + bool Browser::IsDisposed::get() { return _disposed; diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h index 64e1b5097..a81f3d135 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/Browser.h @@ -184,6 +184,8 @@ namespace CefSharp /*--cef()--*/ virtual List^ GetFrameNames(); + virtual IReadOnlyCollection^ GetAllFrames(); + virtual property bool IsDisposed { bool get(); diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp index 4e89d950d..4d9e2af1b 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.cpp @@ -266,6 +266,24 @@ List^ CefBrowserWrapper::GetFrameNames() return StringUtils::ToClr(names); } +IReadOnlyCollection^ CefBrowserWrapper::GetAllFrames() +{ + std::vector identifiers; + _browser->GetFrameIdentifiers(identifiers); + + auto results = gcnew List(static_cast(identifiers.size())); + for (UINT i = 0; i < identifiers.size(); i++) + { + auto frame = _browser->GetFrameByIdentifier(identifiers[i]); + + if (frame.get()) + { + results->Add(gcnew CefFrameWrapper(frame)); + } + } + return results; +} + MCefRefPtr CefBrowserWrapper::Browser::get() { return _browser; diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h index d89b890b4..e7a1f5c4a 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefBrowserWrapper.h @@ -191,6 +191,8 @@ namespace CefSharp /// /*--cef()--*/ virtual List^ GetFrameNames(); + + virtual IReadOnlyCollection^ GetAllFrames(); }; } } diff --git a/CefSharp/IBrowser.cs b/CefSharp/IBrowser.cs index de8525db9..ef636127a 100644 --- a/CefSharp/IBrowser.cs +++ b/CefSharp/IBrowser.cs @@ -145,12 +145,10 @@ public interface IBrowser : IDisposable /// bool IsDisposed { get; } - // - // Send a message to the specified |target_process|. Returns true if the - // message was sent successfully. - // - /*--cef()--*/ - //virtual bool SendProcessMessage(CefProcessId target_process, - // CefRefPtr message) =0; + /// + /// Gets a collection of all the current frames. + /// + /// frames + IReadOnlyCollection