[epiphany/gnome-3-8] ephy-web-view: do not load the crash page for pages that have not been loaded yet



commit be039be4c0303428159c00d5d28cf5b0b4770681
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Tue May 21 01:25:06 2013 +0300

    ephy-web-view: do not load the crash page for pages that have not been loaded yet
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699211

 embed/ephy-web-view.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index c39b5cb..66a6078 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1295,10 +1295,12 @@ process_crashed_cb (WebKitWebView *web_view, gpointer user_data)
   EphyWebViewPrivate *priv = EPHY_WEB_VIEW (web_view)->priv;
 
   g_return_if_fail (priv->show_process_crash_page_id == 0);
-  priv->show_process_crash_page_id = g_idle_add_full (G_PRIORITY_LOW,
-                                                      (GSourceFunc)load_process_crashed_page_cb,
-                                                      web_view,
-                                                      NULL);
+
+  if (!ephy_embed_has_load_pending (EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW (web_view)))
+    priv->show_process_crash_page_id = g_idle_add_full (G_PRIORITY_LOW,
+                                                        (GSourceFunc)load_process_crashed_page_cb,
+                                                        web_view,
+                                                        NULL);
 }
 #endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]