Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 10 2016 09:45
    User @amaitland unbanned @aolko
  • Oct 10 2016 09:36
    @amaitland banned @aolko
  • Feb 11 2016 05:56
    User @amaitland unbanned @miyakedev from this room
  • Feb 10 2016 19:59
    @amaitland banned @miyakedev
zygon.sisyphus
@zygon.sisyphus:matrix.org
[m]
can cef be customize ?
remove some modules ? devtools? webgl?
Alex Maitland
@amaitland

is there an room on matrix to talk about cef builds ?

@zygon.sisyphus:matrix.org Yes https://magpcss.org/ceforum/index.php

Damian Büchel
@dbuechel
@amaitland Thanks a lot!
ehavelaarsnz
@ehavelaarsnz

I'm trying to replace the System.Windows.Controls.WebBrowser control (which uses Internet Explorer) with CefSharp in a WPF application.

What I would really like to see is an example with NTLM delegation working. Authentication is working ok, but my credentials aren't getting passed through to the database which backs my SSRS report. I get this:

An error has occurred during report processing. (rsProcessingAborted)>
Cannot create a connection to data source 'MyDataSource'. (rsErrorOpeningConnection)
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

I have tried this but no joy:

    settings.CefCommandLineArgs.Add("auth-delegate-whitelist", "*.example.com");
NycroX
@Kimimlenben_twitter
guys how i can enable widevine please help me i want to watch netflix on my app..
Alex Maitland
@amaitland

What I would really like to see is an example with NTLM delegation working

@ehavelaarsnz It's not a feature that I have ever needed so it's up to the community to add an example.

For reference

If still cannot get it working then asking on ceforum is the best place to ask for help.

settings.CefCommandLineArgs.Add("auth-delegate-whitelist", "*.example.com");

I don't believe that's a valid command line arg currently. It's probably https://peter.sh/experiments/chromium-command-line-switches/#auth-server-whitelist you are after.

how i can enable widevine

@Kimimlenben_twitter Search/ask on https://magpcss.org/ceforum/index.php

anuragdmon
@anuragdmon
hey so guys i am new to this website so i might not know the rules if any so please go easy on me i have an issue i want to feed data into you a webform but i am using cefsharp i can do it with default browser in visual studio with webbrowser.document... method but i dont know how to do it with cefsharp
i am total layman on this so please any help would be ok
chrome.ExecuteScriptAsync("document.getElementById('serverIp').value = 'value'")
i tried doing this didnt work

chrome.ExecuteScriptAsync("document.getElementById('serverIp').value = 'value'")

i might be doing it wrong so please help

NycroX
@Kimimlenben_twitter
help pls
NycroX
@Kimimlenben_twitter
help me @amaitland
chacham2
@chacham2
If you are in chrome, you can test your script from the js console, by hitting [F12]. That will tell you if you're js is valid. .value = does not always work
Jiraxis
@Jiraxis_twitter
Quick question for the group. Im a new user to cefsharp and have embedded into a .Net winforms app. Basically its there becasue we need to link to a 3rd party using Oauth2 flow, etc. It involves loading the 3rd party site. Letting the user fill some stuff out, when they click save the 3rd party redirects which we are catching in the addressedChanged event so we can process. We then send back to a different URL at the 3rd party site to do some more stuff. The 2nd send back sends to a page that when it loads a popup occurs. When I paste the link into real Chrome browser it works fine. For some reason, the CefSharp browser starts looping over and over firing the AddressChanged event. My question is does CefSharp work with pages that have popups? I am assuming it would.
chacham2
@chacham2
If you want to handle popups, checkout the LifeSpanHandler. Here's a minimal VB example of hiding a popup window via LifeSpanHandler which might be of use to you.
Jiraxis
@Jiraxis_twitter
I was hoping I wouldn't really need to "handle" them. My app doesn't need to know whats going on within their page. When they are done doing whatever they need there, it redirects to a dummy URL, that we trap on in the AddressChanged to scrape some data then close the "browser" window in the app. Do I still need to do special stuff in my code to handle what they are doing in their javascript?
Alex Maitland
@amaitland
@anuragdmon When are you executing the JavaScript? Most common cause is calling the script too early. First thing is to confirm the JavaScript runs in DevTools. See https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#javascript-debugging
@Kimimlenben_twitter Ask on https://magpcss.org/ceforum/index.php
@Jiraxis_twitter Can you test with https://github.com/cefsharp/CefSharp.MinimalExample and see if the problem reproduces just navigation to your problem url
Alex Maitland
@amaitland
I'm not aware of any popup related issues. Does https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open work as expected with your app?
KalpeshMJain88
@KalpeshMJain88
@amaitland is there some way to disable samesite cookie policy in cefsharp v86 ? Chrome browser has disabled this using the flag LegacySameSitecookiebehviourenabled at enterprise level
NycroX
@Kimimlenben_twitter
what is this ?
Ekran Alıntısı.JPG
NycroX
@Kimimlenben_twitter
@amaitland
Jiraxis
@Jiraxis_twitter
@amaitland thanks for the tip. The particular site works with the minimal app example. It must be something we are doing with our app. We have things like large address space enabled even though it is an x86 app and it is built modularly with MEF. Im assuming that is causing this some issues or maybe some incompatibility with another 3rd party tool integrated in.
Alex Maitland
@amaitland
@Jiraxis_twitter What version are you using? It's unlikely a 3rd party tool or MEF are the cause. Can you modify the minimal example to reproduce your problem? Meaning when you add your code does the problem occur?
JERRYZFC
@JERRYZFC
how to integrate cefsharp vue
this.Browser.JavascriptObjectRepository.Register("callbackObj", new CallbackObjectForJs.CallbackObjectForJs(), isAsync: false, options: BindingOptions.DefaultBinder);
window.callbackObj.showMessage("message from js");

chunk-vendors.js:25985 [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'showMessage' of undefined"

found in

---> <UButton> at node_modules/uview-ui/components/u-button/u-button.vue
at pages/subMine/Setting.vue

Alex Maitland
@amaitland
@JERRYZFC For simple message passing I'd suggest using CefSharp.PostMessage see https://github.com/cefsharp/CefSharp/issues/2775#issuecomment-498454221
For your example it's likely the object hasn't actually been bound. I'd need a more detailed example to say. window.CefSharp.PostMessage should be accessible
Mike Zboray
@mzboray
Hello, I have a user with a memory leak when using CefSharp.Offscreen on a specific system. It appears to be an unmanaged memory leak, so I suspect its in libcef but if anyone here has any insights, that would be appreciated: https://magpcss.org/ceforum/viewtopic.php?f=6&t=18232
ravisoftnweb
@ravisoftnweb
System.ObjectDisposedException: 'Cannot access a disposed object. error on "POST MESSAGE TEST" with project CefSharp.Wpf.Example.netcore
I see the _disposed is true.
Thanks in Advance
-Ravi
Alex Maitland
@amaitland
@ravisoftnweb Please provide a stack trace.
ravisoftnweb
@ravisoftnweb
sure @amaitland I will provide that. One question is in my mind if I deploy the current version 88.X what if the chrome version updates do I need to give an update for the same or it will work as it is working.
Just wanted to know is it browser dependent?
ravisoftnweb
@ravisoftnweb
@amaitland System.ObjectDisposedException not hampering the overall functionality so I just avoided it from Exception settings
Alex Maitland
@amaitland
what if the chrome version updates do I need to give an update for the same
@ravisoftnweb No
You don't need Chrome installed at all
ravisoftnweb
@ravisoftnweb
Thanks, @amaitland for the quick response
ravisoftnweb
@ravisoftnweb
Hello @amaitland I have an requirement to show Embed video in CefSharp browser Do we have any other way to show videos there
Alex Maitland
@amaitland

Embed video in CefSharp browser

@ravisoftnweb See https://github.com/cefsharp/CefSharp/wiki/General-Usage#multimedia-audiovideo
If you own the content and can transcode the videos to webm then they will play. If you absolutely have to use mp4 (h264/aac) then your probably best off looking for a different browser as
you'd have to get licences and build your own copy of CEF

ravisoftnweb
@ravisoftnweb
@amaitland Highly appreciate your work and feedback. Thanks for all the clarifications.
Damian Büchel
@dbuechel
We are using IDownloadHandler.OnBeforeDownload(...) to handle the download of an XML file with a custom file extension. After updating to the current version, the handler apparently no longer gets triggered and the browser instead renders the XML file content. How can we revert to the old behavior, and if there are any further changes like this in Chromium / CEF, where can we find information about these? We found the bug in production and would like to avoid such situations in the future.