yhejazi2016 / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
0 stars 0 forks source link

PopupRequest? #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Can you add an event analogous to NewWindowRequest() for popups? This is 
necessary (maybe) because in the event PopupCreated()

    e.WebKitBrowser.Url = NULL

so I can't get the address of the popup.
Thank you.

Gabriel

Original issue reported on code.google.com by fasece...@gmail.com on 30 Jan 2012 at 7:56

GoogleCodeExporter commented 8 years ago
Unfortunately webkit only provides the Url when a window is NOT a popup. And 
that's how I detect if a new window is a popup or not. If you look into the 
code you will see that only when PolicyDelegate_CreateWebViewWithRequest gives 
a null request will the PopupCreated event be fired. I will leave this issue 
open until the problem is solved inside WebKit.

Original comment by tsumalis96@gmail.com on 1 Feb 2012 at 6:39

GoogleCodeExporter commented 8 years ago
I see. Perhaps it works that way precisely to detect the popups in a simple 
way. Probably this will not change soon.
Take care and thank you for your time.

Gabriel

Original comment by fasece...@gmail.com on 2 Feb 2012 at 6:48