[Xfce4-commits] <midori:master> Normally reload error pages with WebKitGTK+ 1.1.14
Christian Dywan
noreply at xfce.org
Sat Mar 13 15:38:02 CET 2010
Updating branch refs/heads/master
to c7ee74610e7f78ef2e5e1ccad05a3f8839a2deab (commit)
from 597dde083bb001ab621e9932239db2b8bc030b4f (commit)
commit c7ee74610e7f78ef2e5e1ccad05a3f8839a2deab
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Mar 13 15:07:02 2010 +0100
Normally reload error pages with WebKitGTK+ 1.1.14
For older versions we used a workaround for reloading
special pages like error pages. This is not needed
with recent versions of WebKitGTK+.
midori/midori-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index b6883bc..28f770f 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -4398,7 +4398,9 @@ midori_view_reload (MidoriView* view,
g_return_if_fail (MIDORI_IS_VIEW (view));
-#if WEBKIT_CHECK_VERSION (1, 1, 6)
+#if WEBKIT_CHECK_VERSION (1, 1, 14)
+ title = NULL;
+#elif 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_printf (_("Error - %s"), view->uri);
@@ -4407,7 +4409,7 @@ midori_view_reload (MidoriView* view,
again, not the error page which isn't even a proper page */
title = g_strdup_printf (_("Error - %s"), view->uri);
#endif
- if (view->title && strstr (title, view->title))
+ if (view->title && title && strstr (title, view->title))
webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), view->uri);
else if (!(view->uri && *view->uri && strncmp (view->uri, "about:", 6)))
{
More information about the Xfce4-commits
mailing list