From 58d9c9801734bcd8073c62c8b4676d1b826847ab Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 8 Jan 2016 17:17:41 +0000 Subject: [PATCH] URLdb doesn't store 'mailto' urls, so add early exit to lookup. --- content/urldb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/urldb.c b/content/urldb.c index 0c2c63955..edb49b549 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -1219,6 +1219,12 @@ static struct path_data *urldb_find_url(nsurl *url) if (scheme == NULL) return NULL; + if (lwc_string_isequal(scheme, corestring_lwc_mailto, &match) == + lwc_error_ok && match == true) { + lwc_string_unref(scheme); + return NULL; + } + host = nsurl_get_component(url, NSURL_HOST); if (host != NULL) { host_str = lwc_string_data(host);