I have one thing left to get working before my proof of concept is complete, and that is the ability to veto page transitions. This is because I'm using wxWebConnect to show a UI, and instead want to redirect these would be transitions to other things.
There are two main parts to this:
- There will be some specially formatted links that are internal commands and need to be treated specially.
- Any other links will need redirecting to the users normal web-browser.
I was hoping this would be as simple as vetoing all wxEVT_WEB_LOCATIONCHANGE events, and then reading the anchor value from a wxEVT_WEB_LEFTUP event, however this is not the case. I assume this is because these events are sent as notification that XulRunner has done something, rather than an actual veto-able event
The only thing I found close to attempting this was this thread, however that isn't suitable in my case as I want to stop all transitions of the current page (something that thread doesn't solve).
Any help is appreciated.