From bbff8c5cb2d6a7627d15492ddf76dc3cbe04a0eb Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Mon, 5 Sep 2011 22:47:03 +0200 Subject: 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 file changed, 3 insertions(+), 1 deletion(-) (limited to 'embed/ephy-web-view.c') diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 80f336871..ca832276f 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; -- cgit