diff options
author | corvid <devnull@localhost> | 2014-04-02 22:57:57 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-04-02 22:57:57 +0000 |
commit | c5f63859ebe649e417377767d7461fd8c61da0af (patch) | |
tree | c1cea6b83298162702b9f2348794b04f439c4b8a | |
parent | 488e5f9ca3b937c7aa5993a80d0e5610ef88ac42 (diff) |
comment detail
-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; |