From c5f63859ebe649e417377767d7461fd8c61da0af Mon Sep 17 00:00:00 2001 From: corvid Date: Wed, 2 Apr 2014 22:57:57 +0000 Subject: comment detail --- src/html.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/html.cc b/src/html.cc index 1a328f0e..15c37576 100644 --- a/src/html.cc +++ b/src/html.cc @@ -643,10 +643,12 @@ void DilloHtml::loadImages (const DilloUrl *pattern) { dReturn_if (a_Bw_expecting(bw)); - /* If the user asked for a specific URL, the user (NULL) is the requester, - * but if the user just asked for all URLs, use the page URL as the - * requester. If the possible patterns become more complex, it might be - * good to have the caller supply the requester instead. + /* If the user asked for a specific image, the user (NULL) is the requester, + * and the domain mechanism will always permit the request. But if the user + * just asked for all images (clicking "Load images"), use the page URL as + * the requester so that the domain mechanism can act as a filter. + * If the possible patterns become more complex, it might be good to have + * the caller supply the requester instead. */ const DilloUrl *requester = pattern ? NULL : this->page_url; -- cgit v1.2.3