I like the idea; though I think it definitely needs restricting, unconditional reloading would be very painful.
How about adding this to midori-tab.vala
enum LoadError { NONE, DELAYED, SECURITY, CRASH, NETWORK }
Set it like
midori_tab_set_load_error (MIDORI_TAB (view), MIDORI_LOAD_ERROR_NETWORK);
in webkit_web_view_load_error_cb
and reset it in midori_view_load_committed to NONE
The other suggested values aren't required for this one, I'm mentioning them for completeness if you'd like to add them as well I wouldn't mind, but just NONE and NETWORK would do.
I like the idea; though I think it definitely needs restricting, unconditional reloading would be very painful.
How about adding this to midori-tab.vala tab_set_ load_error (MIDORI_TAB (view), MIDORI_ LOAD_ERROR_ NETWORK) ; web_view_ load_error_ cb view_load_ committed to NONE
enum LoadError { NONE, DELAYED, SECURITY, CRASH, NETWORK }
Set it like
midori_
in webkit_
and reset it in midori_
The other suggested values aren't required for this one, I'm mentioning them for completeness if you'd like to add them as well I wouldn't mind, but just NONE and NETWORK would do.