Page 1 of 1

Function may be called multiple times

PostPosted: Wed Dec 20, 2017 7:35 am
by bigN
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();
        }
    }