diff options
Diffstat (limited to 'embed/ephy-web-view.c')
-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; |