diff options
author | Xan Lopez <xlopez@igalia.com> | 2011-09-06 04:47:03 +0800 |
---|---|---|
committer | Xan Lopez <xlopez@igalia.com> | 2011-09-06 04:47:50 +0800 |
commit | bbff8c5cb2d6a7627d15492ddf76dc3cbe04a0eb (patch) | |
tree | 783d889ea40b4c11a348278d64f1200b839234ee /embed | |
parent | aada5fcf8f175bf5efa86b304f5db29ac4675e73 (diff) | |
download | gsoc2013-epiphany-bbff8c5cb2d6a7627d15492ddf76dc3cbe04a0eb.tar.gz gsoc2013-epiphany-bbff8c5cb2d6a7627d15492ddf76dc3cbe04a0eb.tar.zst gsoc2013-epiphany-bbff8c5cb2d6a7627d15492ddf76dc3cbe04a0eb.zip |
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.
Diffstat (limited to 'embed')
-rw-r--r-- | 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 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; |