CefSharp browser integration with avaya contact center

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

CefSharp browser integration with avaya contact center

Postby vladozoff » Thu Jun 02, 2022 4:59 am

I'm trying to integrate a browser with avaya contact center and I'm facing the same problem. When contact center launches my browser. When working in this browser, when creating new tabs, I get a js error and the page does not load. If I launch my browser separately, the same tabs open fine with no errors.
Code: Select all
      public 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)
    {
        try
        {
            TabPage tabPage = new TabPage();
            if (String.IsNullOrEmpty(targetUrl))
                targetUrl = "https://google.com";

            ChromiumWebBrowser webBrowser = new ChromiumWebBrowser(targetUrl);
           
            tabPage.Controls.Add(webBrowser);
            tabPage.Text = "New tab";


            this.tabControl.Invoke(new Action(() => this.tabControl.Controls.Add(tabPage)));
           
        }

        catch(Exception ex)
        {
            logger.Error("OnBeforePopUp= " + ex.Message + ex.StackTrace);
        }

        newBrowser = null;
        return true;
    }
vladozoff
Newbie
 
Posts: 3
Joined: Wed Apr 27, 2022 12:50 am

Re: CefSharp browser integration with avaya contact center

Postby amaitland » Thu Jun 02, 2022 3:43 pm

Same problem as what exactly?

What is the js error? Which browser generates the error?

You are canceling popup creation, if the website requires access to its opener then an exception is expected.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 14 guests