summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/urldb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/urldb.c b/content/urldb.c
index ff640b15c..6776ebe1a 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -2447,6 +2447,9 @@ char *urldb_get_cookie(const char *url)
assert(url != NULL);
+ /* The URL must exist in the db in order to find relevant cookies, since
+ * we search up the tree from the URL node, and cookies from further
+ * up also apply. */
urldb_add_url(url);
p = urldb_find_url(url);