roadlabs / cefpython

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

Popup window does not load parent ClientHandler #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. popup window do not  loaded parent clientHandler

when creating new PyBrowser, this need copy the parent clientHandler
    28      Debug("GetPyBrowser(): creating new PyBrowser, browserId=%s" % browserId)
    29      pyBrowser = PyBrowser()
    30      pyBrowser.cefBrowser = cefBrowser
    31      g_pyBrowsers[browserId] = pyBrowser

my cefpython version:
$git log -1
commit 57c9686ba55171e3b484b043154ef8096be795c7
Author: Czarek Tomczak <czarek.tomczak@gmail.com>
Date:   Fri Dec 14 19:18:03 2012 -0800

    Removed pywin32 dependence from the PYD module (Issue 38).

Original issue reported on code.google.com by Luw2...@gmail.com on 18 Dec 2012 at 10:40

GoogleCodeExporter commented 9 years ago
The way PyBrowser objects are created was re-designed recently to get rid of 
client handlers limitations during browser creation (Issue 31), it was also not 
possible to uniquely identify an offscreen browser (Issue 36).

The solution for now is to create popup windows explicitily by overwriting 
"window.open" through a call to JavascriptBindings.SetFunction("open", 
CreatePopup). An example of how to create a second browser is in 
cefadvanced.py, see Python.CreateSecondBrowser().

Original comment by czarek.t...@gmail.com on 18 Dec 2012 at 4:37

GoogleCodeExporter commented 9 years ago
Fixed in revision 23dd11fb1c3a. Version 0.50 of cefpython1 released.

Original comment by czarek.t...@gmail.com on 20 Dec 2012 at 12:48