Get URI in CreateWindow event

Issue #29 closed
John Remos created an issue

Is there any way to get the URI in the CreateWindow event?

I noticed that CreateChromeWindow2's signature is different than older versions and doesn't accept a nsIURI parameter.

Comments (2)

  1. John Remos reporter

    I've patched the OnBeforeLinkTraversal method in WebView.WebBrowser.Glue.cs file which at least can detect the _blank target and get the Uri and chained it to a new event in WebView , while I .Cancel() every request in CreateWindow event. I won't create a PR since it is just a way around the issue but it works just fine. If you won't plan to upgrade to a newer version soon and this feature is required by anyone else let me know and I will be glad to share it.

  2. Log in to comment