URLdb doesn't store 'mailto' urls, so add early exit to lookup.

This commit is contained in:
Michael Drake 2016-01-08 17:17:41 +00:00
parent 8e0e72368e
commit 58d9c98017

View File

@ -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);