Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Aug 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 28 Nov 2012 at 3:25

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 4 Jan 2013 at 10:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants