From 8d36858fcc49743f8f5a051573ff6b17f2d38fee Mon Sep 17 00:00:00 2001
From: amaitland <307872+amaitland@users.noreply.github.com>
Date: Sat, 9 Nov 2024 10:21:20 +1000
Subject: [PATCH 01/20] Upgrade SixLabors.ImageSharp (security vulnerability)
---
lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj b/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj
index 02f83ef38..cb1466914 100644
--- a/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj
+++ b/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj
@@ -35,7 +35,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
From 10a911572c3c00d8cbe26dba327c1eac0c649a6d Mon Sep 17 00:00:00 2001
From: amaitland <307872+amaitland@users.noreply.github.com>
Date: Sat, 9 Nov 2024 10:30:11 +1000
Subject: [PATCH 02/20] Upgrade to CefSharp 130.1.90
---
.../CefSharp.Dom.WinForms.Example.csproj | 2 +-
.../CefSharp.Dom.Wpf.Example.csproj | 2 +-
lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj | 2 +-
.../DevToolsContextLoaderFixture.cs | 10 ++++++++--
lib/PuppeteerSharp/CefSharp.Dom.csproj | 8 ++++----
lib/PuppeteerSharp/DevToolsConnection.cs | 2 +-
6 files changed, 16 insertions(+), 10 deletions(-)
diff --git a/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj b/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj
index a1fa3acea..cc58dacd1 100644
--- a/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj
+++ b/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj b/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj
index 9e7824e14..9374b011f 100644
--- a/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj
+++ b/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj b/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj
index cb1466914..6aa6dc742 100644
--- a/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj
+++ b/lib/PuppeteerSharp.Tests/CefSharp.Dom.Tests.csproj
@@ -37,7 +37,7 @@
-
+
diff --git a/lib/PuppeteerSharp.Tests/DevToolsContextLoaderFixture.cs b/lib/PuppeteerSharp.Tests/DevToolsContextLoaderFixture.cs
index 1d7fa075c..8a045e886 100644
--- a/lib/PuppeteerSharp.Tests/DevToolsContextLoaderFixture.cs
+++ b/lib/PuppeteerSharp.Tests/DevToolsContextLoaderFixture.cs
@@ -26,7 +26,7 @@ public DevToolsContextLoaderFixture()
private void InitializeAsyncInternal()
{
- if (!Cef.IsInitialized)
+ if (Cef.IsInitialized == null)
{
var isDefault = AppDomain.CurrentDomain.IsDefaultAppDomain();
if (!isDefault)
@@ -48,11 +48,17 @@ private void InitializeAsyncInternal()
Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);
}
+
+ if(Cef.IsInitialized == false)
+ {
+ var exitCode = Cef.GetExitCode();
+ throw new Exception($"CEF failed with exit code {exitCode}");
+ }
}
private void DisposeAsyncInternal()
{
- if (Cef.IsInitialized)
+ if (Cef.IsInitialized == true)
{
Cef.Shutdown();
}
diff --git a/lib/PuppeteerSharp/CefSharp.Dom.csproj b/lib/PuppeteerSharp/CefSharp.Dom.csproj
index 341a81a8d..6b940182b 100644
--- a/lib/PuppeteerSharp/CefSharp.Dom.csproj
+++ b/lib/PuppeteerSharp/CefSharp.Dom.csproj
@@ -16,7 +16,7 @@
CefSharp.Dom - A strongly typed DOM API for use with with CefSharp, based on PuppeteerSharp.
CefSharp.Dom
Improved DOM API
- 3.0.0
+ 4.0.0
embedded
true
@@ -30,12 +30,12 @@
-
+
-
+
@@ -47,7 +47,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/lib/PuppeteerSharp/DevToolsConnection.cs b/lib/PuppeteerSharp/DevToolsConnection.cs
index bf810a0aa..c9f3859c5 100644
--- a/lib/PuppeteerSharp/DevToolsConnection.cs
+++ b/lib/PuppeteerSharp/DevToolsConnection.cs
@@ -171,7 +171,7 @@ private void OnTransportMessageReceived(object sender, MessageReceivedEventArgs
}
catch (JsonException exc)
{
- _logger.LogError(exc, "Failed to deserialize response", response);
+ _logger.LogError(exc, "Failed to deserialize response {response}", response);
return;
}
From 18e84c7e727352a54729e2bcc96e7fc139645075 Mon Sep 17 00:00:00 2001
From: amaitland <307872+amaitland@users.noreply.github.com>
Date: Wed, 21 May 2025 19:55:33 +1000
Subject: [PATCH 03/20] Upgrade to 136
---
.../CefSharp.Dom.WinForms.Example.csproj | 2 +-
.../CefSharp.Dom.Wpf.Example.csproj | 2 +-
.../wwwroot/frames/frame.html | 5 ++
.../wwwroot/input/scrollable.html | 50 ++++++++++++-------
.../wwwroot/input/textarea.html | 2 +-
.../CefSharp.Dom.Tests.csproj | 4 +-
.../NavigationTests/FrameGoToTests.cs | 5 +-
lib/PuppeteerSharp/CefSharp.Dom.csproj | 4 +-
8 files changed, 48 insertions(+), 26 deletions(-)
diff --git a/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj b/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj
index cc58dacd1..37ec30681 100644
--- a/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj
+++ b/lib/CefSharp.Dom.WinForms.Example/CefSharp.Dom.WinForms.Example.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj b/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj
index 9374b011f..9adc35c4d 100644
--- a/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj
+++ b/lib/CefSharp.Dom.Wpf.Example/CefSharp.Dom.Wpf.Example.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/lib/PuppeteerSharp.TestServer/wwwroot/frames/frame.html b/lib/PuppeteerSharp.TestServer/wwwroot/frames/frame.html
index e6d4a2377..1aa680b38 100644
--- a/lib/PuppeteerSharp.TestServer/wwwroot/frames/frame.html
+++ b/lib/PuppeteerSharp.TestServer/wwwroot/frames/frame.html
@@ -1,3 +1,8 @@
+
Hi, I'm frame
diff --git a/lib/PuppeteerSharp.TestServer/wwwroot/input/scrollable.html b/lib/PuppeteerSharp.TestServer/wwwroot/input/scrollable.html
index 885d3739d..dc889629b 100644
--- a/lib/PuppeteerSharp.TestServer/wwwroot/input/scrollable.html
+++ b/lib/PuppeteerSharp.TestServer/wwwroot/input/scrollable.html
@@ -1,23 +1,37 @@
-
+
Scrollable test
-
-
-
-
+
-
-
\ No newline at end of file
+ button.onmouseup = event => {
+ if (![1,3,4].includes(event.button)) {
+ return;
+ }
+ event.preventDefault();
+ button.textContent = {
+ 3: 'back click',
+ 4: 'forward click',
+ 1: 'aux click',
+ }[event.button];
+ }
+ document.body.appendChild(button);
+ document.body.appendChild(document.createElement('br'));
+ }
+
+
+