[epiphany] web-view: Do not take snapshots of error pages



commit 59ecfd52eea922a60c755f3140757a341fda8f0e
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Sat Feb 27 09:02:59 2016 -0600

    web-view: Do not take snapshots of error pages
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761065

 embed/ephy-web-view.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 974c0ba..a777a68 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -614,7 +614,8 @@ web_view_check_snapshot (WebKitWebView *web_view)
 
   view->snapshot_timeout_id = 0;
 
-  if (ephy_snapshot_service_lookup_snapshot_path (service, url))
+  if (ephy_snapshot_service_lookup_snapshot_path (service, url) ||
+      view->error_page != EPHY_WEB_VIEW_ERROR_PAGE_NONE)
     return FALSE;
 
   data = g_new (GetSnapshotPathAsyncData, 1);


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