+ wxString wxuri = uri;
+ wxWebHandler *handler = NULL;
+ wxVector<wxWebHandler*> hanlders = webKitCtrl->GetHandlers();
+ //We are not vetoed so see if we match one of the additional handlers
+ for(wxVector<wxWebHandler*>::iterator it = hanlders.begin();
+ it != hanlders.end(); ++it)
+ {
+ if(wxuri.substr(0, (*it)->GetName().length()) == (*it)->GetName())
+ {
+ handler = (*it);
+ }
+ }
+ //If we found a handler we can then use it to load the file directly
+ //ourselves
+ if(handler)
+ {
+ wxFSFile* file = handler->GetFile(wxuri);
+ g_signal_handlers_block_by_func(view,
+ (gpointer)wxgtk_webview_webkit_navigation,
+ webKitCtrl);
+ webKitCtrl->SetPage(*file->GetStream(), wxuri);
+ g_signal_handlers_unblock_by_func(view,
+ (gpointer)wxgtk_webview_webkit_navigation,
+ webKitCtrl);
+ }