Work around broken reloading of "alternate content"
This commit is contained in:
parent
79e278bea8
commit
5916815daf
1 changed files with 6 additions and 0 deletions
|
@ -2753,9 +2753,15 @@ midori_view_reload (MidoriView* view,
|
||||||
|
|
||||||
g_return_if_fail (MIDORI_IS_VIEW (view));
|
g_return_if_fail (MIDORI_IS_VIEW (view));
|
||||||
|
|
||||||
|
#if WEBKIT_CHECK_VERSION (1, 1, 6)
|
||||||
|
/* WebKit 1.1.6 doesn't handle "alternate content" flawlessly,
|
||||||
|
so reloading via Javascript works but not via API calls. */
|
||||||
|
title = g_strdup (_("Error"));
|
||||||
|
#else
|
||||||
/* Error pages are special, we want to try loading the destination
|
/* Error pages are special, we want to try loading the destination
|
||||||
again, not the error page which isn't even a proper page */
|
again, not the error page which isn't even a proper page */
|
||||||
title = g_strdup_printf (_("Not found - %s"), view->uri);
|
title = g_strdup_printf (_("Not found - %s"), view->uri);
|
||||||
|
#endif
|
||||||
if (view->title && strstr (title, view->title))
|
if (view->title && strstr (title, view->title))
|
||||||
webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), view->uri);
|
webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), view->uri);
|
||||||
else if (from_cache)
|
else if (from_cache)
|
||||||
|
|
Loading…
Reference in a new issue