From 1a2bf54a1f7a949491a8cb5b7beff27eb550100d Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Mon, 13 Aug 2012 18:44:17 +0200 Subject: Use webkit_web_frame_load_alternate_string to load error pages webkit_web_view_load_string, which was used previously, does not add the error page to the back forward list. This means that when you go back from an error page (n) you will skip directly to an older page (n-2) or not be able to go back if the error page was the first loaded. --- embed/ephy-web-view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'embed/ephy-web-view.c') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 682a98d39..26d4b2e07 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -2501,8 +2501,8 @@ ephy_web_view_load_error_page (EphyWebView *view, #ifdef HAVE_WEBKIT2 webkit_web_view_replace_content (WEBKIT_WEB_VIEW (view), html->str, uri, 0); #else - webkit_web_view_load_string (WEBKIT_WEB_VIEW (view), - html->str, "text/html", "utf8", uri); + webkit_web_frame_load_alternate_string (webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (view)), + html->str, uri, uri); #endif g_string_free (html, TRUE); } -- cgit v1.2.3