Function may be called multiple times

Having problems with building or using the CefGlue .NET/Mono binding? Ask your questions here.

Moderator: fddima

Function may be called multiple times

Postby bigN » Wed Dec 20, 2017 7:35 am

Hello, i have very basic cefglue winform which loads an html page. By clicking on the button a XHR request sent to the CefGlue browser (ver. xilium-xilium.cefglue-cc23b14f414c).
The message is received by the browser correctly, but then interesting thing happens. If user send request the second time (click the button) then 2 requests are sent, next time 3 requests and so on.
During initialization (In program.cs) i do register once the below SchemeHandler. No other initialisation is done anywhere. Does anybody seen similar behaviour?

Code: Select all
CefRuntime.RegisterSchemeHandlerFactory("http", DumpRequestDomain, new DemoAppSchemeHandlerFactory());

Below is the actual handler.
Code: Select all
class DemoAppSchemeHandlerFactory : CefSchemeHandlerFactory
        protected override CefResourceHandler Create(CefBrowser browser, CefFrame frame, string schemeName, CefRequest request)
            return new MySchemeHandler();
Posts: 10
Joined: Fri Dec 16, 2016 2:58 am

Return to CefGlue Forum

Who is online

Users browsing this forum: No registered users and 3 guests