[epiphany] ephy-web-view: fix multiple deletes in about:applications



commit bbff8c5cb2d6a7627d15492ddf76dc3cbe04a0eb
Author: Xan Lopez <xlopez igalia com>
Date:   Mon Sep 5 22:47:03 2011 +0200

    ephy-web-view: fix multiple deletes in about:applications
    
    The URI changes to about:applications? after the first one, need to
    take that into account.

 embed/ephy-web-view.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 80f3368..ca83227 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -1905,7 +1905,9 @@ load_status_cb (WebKitWebView *web_view,
 
     /* FIXME: It sucks to do this here, but it's not really possible
      * to hook the DOM actions nicely in the about: generator. */
-    if (g_str_equal (webkit_web_view_get_uri (web_view), "ephy-about:applications")) {
+    /* FIXME: it would be safer to validate this with SoupURI but
+     * 'host' is NULL for ephy-about:applications ... */
+    if (g_str_has_prefix (webkit_web_view_get_uri (web_view), "ephy-about:applications")) {
       WebKitDOMDocument *document;
       WebKitDOMNodeList *buttons;
       gulong buttons_n;



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