DaneelM1993 / pywebkitgtk

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

How to add new-window handler? #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With Gecko and Python, the gtkmozembed module, it can use a "new-window"
handler:

  The "new-window" signal is emitted any time that a new toplevel window is
requested
  by the document. This will happen in the case of a window.open() in
JavaScript. 
  Responding to this signal allows you to surround a new toplevel window
with your 
  chrome. You should return the newly created GtkMozEmbed object via the
retval. 

The PyQt4.QtWebKit can do something similar that.
How to do in in PyWebKitGtk?

Original issue reported on code.google.com by jhuangjiahua@gmail.com on 15 Sep 2008 at 2:15

GoogleCodeExporter commented 9 years ago
Hi support for this just landed in upstream WebKit and pywebkitgtk r98. 

Git changeset is
http://repo.or.cz/w/pywebkitgtk.git?a=commit;h=58f4082c0e13ac3758a0a8fecc6b68ec1
6bc322e

You can find sample usage in demos/tabbed_browser.py.

Thanks for your bug report.

Original comment by jmalo...@gmail.com on 30 Nov 2008 at 7:17