diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 10 |
1 files 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; |