Problem accessing CEFSharp JavascriptObject in Popup #4459
Replies: 2 comments 5 replies
-
Bound objects are global to the Renderer Process. (They're stored in a static dictionary). Popups share the same Renderer Process as their parent.
Main (non popup) browsers that share the same origin can be isolated using a RequestContext.
The information stored in the Renderer Process is basically just meta data describing the object and it's ID. Multiple browsers sharing the same Renderer Process share the same cache(static dictionary), so you end up with a different object ID even if the rest of the meta data is the same.
If you are using a |
Beta Was this translation helpful? Give feedback.
-
I'm still having one issue with creating and returning I'm trying to work out how to allow a new renderer process. I have tried creating a new The below works exactly as expected, but in the parent process.
Not sure if this just isn't possible, or a CEFSharp/CEF issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When adding a
JavascriptObject
to a parent browser and popup, I can see the object in both.In the parent I can call it's methods and properties, but not in the popup. I get the error
Object Not Found Matching Id:1
Looking further: if I give the popup instance
JavascriptObject
a unique name, it works as expected.I'm assuming this is expected behaviour.
JavascriptObjects
are global, referenced by name?In order to have a
JavascriptObject
for each browser instance, it needs a unique name?Thanks
Beta Was this translation helpful? Give feedback.
All reactions