I use CEF3 don't remember version , but last source update I made was week ago
I want to implement the following model:
JS code calls use cefsimple to call winscard different methods.
the result of call (string, int or bool) pass back to JS.
STEP1) I've implemented basic flow using Functions and Window Binding example from JavaScriptIntegration document. In Basic flow I use setstring or rand calls. It works fine The result pass correctly back to JS.
STEP2) I called to SCardEstablishContext function (winscard windows library) from OnContextInitialized CefBrowserProcess method. It works fine I could see the correct result in my application. (just wanted to be sure that I can work with this library from cefsimple app)
STEP3) I tried to integrate this call in basic flow (from step1). RESULT: the code run , but ERROR is returned from winscard library.
Microsoft documentation is not 100% clear, but it seems that happens due to LACK of RENDER process run permissions.
Functionality that can be run by browser process , can not be run by render process.
Questions
1) is my understanding is correct and due to security reasons render process has no permissions that browser process has ?
2) what will be the correct solution for this ? - using IPC between both process ?
JS call will be received and interpreted by render process
then
render will call browser process to perform the call to winscard
then
browser process will call render back with the results of work it done ?
3) I use cefsimple as my application and add to the missing functionality . Was it correct decision or should I work with cefclient ?
THANK YOU for your help