1,742 questions
0
votes
0
answers
43
views
CefSharp initialisation problem in my WPF project
I'm trying to develop an equivalent of a webview2 using CefSharp because I need backward compatibility for systems that do not support .NET 8/10. These are the steps I performed after creating a WPF ...
0
votes
0
answers
93
views
An error occurred while validating. HRESULT = '80004005'
I'm implementing CI/CD for a couple applications using GithubActions in GHES with a self-hosted runner and I've been facing this problem "An error occurred while validating. HRESULT = '80004005'&...
0
votes
0
answers
46
views
Why should I use `Cef.GetGlobalRequestContext().RegisterSchemeHandlerFactory` instead of `CefSettings.RegisterScheme` for built-in schemes?
I want CefSharp to "serve" files from the File-System.
The documentation describes how to use CefSettings.RegisterScheme:
settings.RegisterScheme(new CefCustomScheme
{
SchemeName = "...
0
votes
0
answers
92
views
Setting the referrer
I'm using CEF-Sharp in a utility that a makes use of some Google Maps APIs. Google has recently been sending out emails whining about 'unsecured API keys'. So, on investigating, I figured the easiest &...
0
votes
1
answer
81
views
Translate property names of JavaScript objects passed to .NET in CefSharp
I am using the JavaScript Integration in CefSharp to expose a .NET class to JavaScript.
Simplified Example:
public class Transformer
{
public Rect Rotate(Rect rect)
=> new Rect { Width =...
0
votes
1
answer
160
views
WinForms are being distorted using CefSharp
I have an WinForms application in C# which is working fine. I am trying to integrate the CEF with it. As soon as I initialize the CEFSettings, all my forms get distorted. I'm new to WinForms and can't ...
0
votes
0
answers
176
views
CefSharp is crashing the Application on VDI
We have an application that uses CefSharp (131.0.6778.86) to display several quite simple html pages within a WinForms Application.
For one specific customer the application suddenly crashes with ...
0
votes
0
answers
29
views
Multi language spell suggestion cefsharp
Is anyone facing issue related to multi language spell suggestions with cefsharp? Using V134 minimum example project and not making any changes, I see the spell checker is working and showing ...
0
votes
0
answers
135
views
Usage of OnAcceleratedPaint in OSR
I'm trying to develop an application that renders the cef texture in offscreen-rendering. I don't want to render it to a form or any window. I'd like to create a texture which I'm then sharing to ...
1
vote
2
answers
100
views
СhromiumWebBrowser scaling issue when resizing application window in WPF Application
I want to scale the browser window in my application to fit the available space. However, standard methods for implementing this functionality do not work correctly, as seen in the image below.
I ...
0
votes
0
answers
77
views
C# CefSharp/Selenium Allowing pop-ups but hiding them
I'm creating a Library where you can use Puter.js's AI API but on C#, and I'm running into an issue.
Puter has this weird pop-up authentication thingy where you have to manually click "Continue&...
0
votes
0
answers
37
views
CEFSharp console.log quit showing up in Visual Studio Output after upgrade
I have an app that uses CEFSharp. In the app I use EvaluateScriptAsync a lot such as:
var script = $@"
(function() {{
var select = document.getElementsByName('{name}')[0];
if ...
0
votes
0
answers
671
views
Exception: Cef.IsInitialized was false!.Check the log file for errors!. - On around 1 out of 20 startups of the same binary
On around 1 of 20 startups of the C# WPF application and opening a window with CefSharp Control on it, I get the exception:
Cef.IsInitialized was false!.Check the log file for errors!. See
https://...
1
vote
1
answer
38
views
shadowRoot CefSharp DOM
How can we access objects in ShadowRoot (Open) using CefSharp DOM? Can you give some examples. pleace, not use javascript.
page:
<div id="host">
#shadow root (open)
<!-...
1
vote
0
answers
70
views
CefSharp multi instance/run webbrowser?
when using cefsharp in netforms/wpf and i try to start the app for a second time it opens correctly but in taskmanager the apps are in different main processes.
image
i have tried allot of different ...
0
votes
1
answer
132
views
CefSharp WPF Upgrade Needs Another Reference?
I have a CefSharp project using WPF and I'm upgrading my reference from 105.3.390 to 119.4.30 (those are specific versions I need based on the program that is hosting my code). Why I upgrade I get a ...
2
votes
0
answers
326
views
When two instance of a WPF app using Cefsharp are running, the second one can't initialyse Cef
I have a WPF application using CefSharp to have a web browser integrated in the app.
I noticed that when I start a second instance of my application, the CefSharp initialisation fail. Cef.Initialize(.....
0
votes
1
answer
86
views
CefSharp.Wpf.Hwnd Blocks Keyboard Layout Change Detection in WPF Application
I am working on a WPF application that integrates CefSharp to render web content. Initially, we used CefSharp.Wpf, and everything worked as expected, including the ability to detect keyboard layout ...
1
vote
0
answers
843
views
Cefsharp (Libcef.dll) program crashes after opening web page from WPF
I am having an issue with using CefSharp to open a web page from a WPF application.
<Grid>
<cefSharp:ChromiumWebBrowser Name="browser" Address="about:blank" ...
0
votes
0
answers
123
views
how do I get a window.parent.postMessage (can't use CefSharp.PostMessage)?
I've been reading the CefSharp documentation, and done quite a bit of googling, and I do see examples like this.
It seems that they are saying that if you want JavaScript message to your C#, start ...
0
votes
2
answers
316
views
CEFSharp with 2 browser instances and need to delete cookies separately
I have 2 WinForms, each with its own browser instance. Everything is working great but I cant seem to figure out how to clear the cookies for the chosen instance instead of globally.
To set the cache ...
0
votes
1
answer
169
views
Unable to load html into embedded CefSharp browser when Chrome bootstrap is enabled
I use CefSharp to embed a browser into my .Net 8 core Winforms app. I load custom html and javascript into the browser with:
browser.LoadHtml(htmlStr, "http://pixemail.com/");
The ...
0
votes
1
answer
395
views
CEFSharp Changing User Agent through a custom handler
UNABLE TO DELETE. Wrong approach to the problem. Use the example the code maintainer gives
Still really new to working with the cefsharp project.
I am trying to tie the User Agent to an instance ...
1
vote
0
answers
554
views
CefSharp.Offline.NetCore in a .NET 8.0 gRPC Service errors out on Cef.Initialize()
I have a .NET 6.0 gRPC service that is called from various clients to take screenshots of webpages. I am using CefSharp.Offline.NetCore to do the job. Things work great when the Target Framework of ...
1
vote
1
answer
205
views
CefSharp - Hide scrollbar and background
I am trying out cefsharp in a simple WPF test application to view a PDF that is on my local PC.
I am wondering if there is anyway to modify the background and scrollbar of the ChromiumWebBrowser, I ...
0
votes
2
answers
341
views
Is there a way to tell cefsharp which iframe to send javascript to?
I am creating my own app using cefsharp and using ExecuteScriptAsync to send javascript to the website being viewed. However, I ran into the problem where the element I need to work with is nested ...
0
votes
0
answers
115
views
Datalist behavior in browser that does not support it?
I am developing some HTML for a program which uses Chromium Embedded Framework (CEF), specifically CefSharp.
The exact functionality I want is already perfectly handled with use of datalist elements: ...
1
vote
0
answers
126
views
Cefsharp synchronous call from javascript to c#
In C#, I am using CefSharp's ChromiumWebBrowser to load a URL for a file named index.html. This file contains JavaScript files, including Monaco scripts. I want to call a C# function from within a ...
0
votes
0
answers
94
views
Inject JS code into cefsharp(inject youtube iframe)
I looked into lots of writing so I thought the code that I wrote should be working as well but it doesn't. So I need help with finding out what is wrong with my code.
private void Music_Control_JS(...
0
votes
0
answers
121
views
CefSharp.Offscreen could not load CefSharp assembly on runtime
I cannot get CefSharp.Offscreen to work in my .NET7 web api project. Strangely the exact same code works absolutely fine when I use it in a .NET7 console app. When I launch the web app I get the ...
0
votes
0
answers
187
views
Windows Form - CefSharp automatically resizes window on monitor 125%
I have 2 monitors: the main monitor has 125% of zoom (laptop display), the second one is a secondary monitor that has a standard zoom of 100%.
Now i have a Winform application (.NET Framework 4.8) ...
0
votes
0
answers
61
views
sending time from c# to youtube
I'm making a simple youtube application and I'm wondering if my application slider can send value to cefsharp
what I expect: cefsharp will be loaded with youtube video and I have slider bar that ...
0
votes
0
answers
69
views
Trying to use javascript in my cefsharp browser
I'm trying to use bind my application with youtube video playing in cefsharp browser but it's not working. I don't get what is wrong with my code:
c#
private async void Music_Play_Pause_Button_Click(...
0
votes
0
answers
133
views
Powershell: How Do I Open URL with CefSharp / Chromium
We have some SQL reports in our production environment that are currently being executed using scheduled tasks. This isn't very common. I want to streamline the process. So, I wrote a PowerShell ...
1
vote
1
answer
98
views
How do i customize headers when running with LoadUrlWithPostData
I'm using the latest v123.0.60 with CefSharp.Wpf.ChromiumWebBrowser.
I am trying to post a form with LoadUrlWithPostData with a customize headers (mykey=value).
Couldnt find anything around it in ...
1
vote
0
answers
410
views
Running three js without local server?
I am currently working with WPF project. My task is to display 3d models that generates in real-time with the help of CefSharp.
We already have the same project but in 2d. It only uses vanilla JS and ...
1
vote
0
answers
164
views
CefSharp OffScreen has wrong values for width and height in window.screen where as CefSharp WinForms has correct values
Our app is a background application which records screen using navigator.mediaDevices apis. Since it is a background application, we opted for CefSharp OffScreen. On investigation, I found out that ...
0
votes
0
answers
121
views
CefSharp WinForms 117.2.40 Getting "Trying to modify an unregistered preference" setting auth preferences
I have been struggling to implement the final part of Kerberos whitelisting. My site works fine in Chrome and Edge, but not when embedded using CefSharp. Specifically I need to set auth....
2
votes
1
answer
719
views
CEF ARM64 build compilation failing for CEF V119
I am currently attempting to create an ARM64 build of CEF 119 on my Windows 11 machine. I have successfully created the x32 and x64 binaries of this repo / CEF version. I have previously successfully ...
0
votes
0
answers
71
views
Issue with RadPane content Freezing After Resetting Layout on Floating State
My application utilizes the RadDocking control to manage layout, including a RadPane that hosts a CefSharp browser. I've observed that when this pane is docked and I reset the layout, everything ...
0
votes
1
answer
415
views
CefSharp.Core.Runtime.dll'. The specified module could not be found
Firstly, I have a bad English so I am sorry.
I develop net8.0-windows7.0 with WPF project. I didn't a problem in development environment (Visual Studio). But, I published the project. I can't open the ...
1
vote
0
answers
153
views
CEF Sharp Blazor support
we currently using Microsoft WebView2 engine and thinking to migrating to another solution due to some Windows Explorer dependencies the engine has. I was wondering if CEF sharp has similar ...
0
votes
0
answers
145
views
cefsharp.core.runtime error in Winforms NUnit .NET framework
Error - System.IO.FileLoadException: 'Could not load file or assembly 'CefSharp.Core.Runtime, Version=121.3.130.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138' or one of its dependencies. The ...
7
votes
1
answer
881
views
How to enable dark mode for CefSharp web browser in .NET?
SCENARIO
I'm very new to CefSharp, in fact, its the first time that I'm using it. And I'm using it under a net core 6.0 winforms application, but this same question and scenario applies under .NET ...
1
vote
0
answers
255
views
CefSharp - CEF (Chromium Embedded Framework) - (6261) challenging to build
I created this setup before proceeding.
I've been trying to compile CefSharp with proprietary codecs for use in my C# Forms project for a year, but I'm faced with a pyramid of new errors with each new ...
0
votes
0
answers
369
views
CefSharp - Could not load file or assembly CefSharp.BrowserSubprocess.Core.DLL or one of its dependencies
I've installed CefSharp.OffScreen (121.3.70) on my .NET Framework 4.7.2 API project, to take screenshots of certain webpages.
After installed, I saw that it was needed to specify an compiler target, I ...
0
votes
0
answers
191
views
CefSharp ChromiumBrowser looses focus when opening file picker via <input type="file">
As said in the title, given I am visiting a page, that has a simple <input type="file"> on and I open a file picker using that input, the main app (WinForms) looses focus (which is to ...
-1
votes
1
answer
237
views
Where's the CefSharp DLL that includes the "IWebBrowser" type?
I'm porting my app from Microsoft Edge WebView2 to CefSharp because of the extension support, however for some reason, IWebBrowser seems to be placed in a DLL that is either hidden or not installed.
I'...
0
votes
1
answer
186
views
CEF 120.1.8+ge6b45b0+chromium-120.0.6099.109 Windows Version
i am a little bit confused about the required Windows version.
According to https://github.com/cefsharp/CefSharp/issues/3636 only Visual C++ 2019 is required.,
no OS is mentioned.
This supports Win ...
0
votes
0
answers
85
views
Cefsharp throwing an error in console application in vs 2019
I have a VS 2019 solution that has a console application and WinForms application.
I have added cefsharp in WindowsFormApp using Package Manager. I try to build the entire solution but get an error. I ...