toxtli / cefpython

Automatically exported from code.google.com/p/cefpython
1 stars 0 forks source link

Introduce CurrentJavascriptContext to provide Browser/Frame objects to python funcs called from js #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When python function is called from javascript we don't know from which browser 
or frame it originates. We should pass the context as a first argument, a frame 
or both, browser and frame. Passing only frame would be enough if we had 
!GetBrowser() method in Frame object. Or should we pass "context" dictionary 
with "browser" and "frame" keys?

Original issue reported on code.google.com by czarek.t...@gmail.com on 28 Nov 2012 at 3:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
In python there is GIL (Global Interpreter Lock) that prevents more than one 
thread to be running python in the same time. We may provide context (browser, 
frame) in a way that does not break existing functionality, we could create a 
class called CurrentJavascriptContext with methods GetBrowser() & GetFrame() 
that will return the browser/frame from which current python function was 
called.

Original comment by czarek.t...@gmail.com on 4 Jan 2013 at 10:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/cefpython/issues/33

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 6:27