diff options
| author | Lars Ingebrigtsen | 2019-09-24 17:48:35 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-24 17:48:41 +0200 |
| commit | ea5c79f657a9e2826073896ea00e6000ccc04a8d (patch) | |
| tree | a0b3b5d4f427f4d221c8d3bfe97fac38512b8338 /doc/misc | |
| parent | 9dcdb1384df51a568af5ec35c9f0a762d3cf205b (diff) | |
| download | emacs-ea5c79f657a9e2826073896ea00e6000ccc04a8d.tar.gz emacs-ea5c79f657a9e2826073896ea00e6000ccc04a8d.zip | |
Allow controlling when to send cookies when retrieving images in shr
* lisp/net/shr.el (shr--use-cookies-p): New function.
(shr-tag-img): Use it.
(shr-cookie-policy): New variable.
(shr-save-contents): Use cookies.
* doc/misc/eww.texi (Advanced): Document it.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/eww.texi | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi index 315b4b0194d..b8821cbc299 100644 --- a/doc/misc/eww.texi +++ b/doc/misc/eww.texi | |||
| @@ -217,9 +217,22 @@ in an external browser by customizing | |||
| 217 | @findex url-cookie-list | 217 | @findex url-cookie-list |
| 218 | @kindex C | 218 | @kindex C |
| 219 | @cindex Cookies | 219 | @cindex Cookies |
| 220 | EWW handles cookies through the @ref{Top, url package, ,url}. | 220 | EWW handles cookies through the @ref{Top, url package, ,url} |
| 221 | You can list existing cookies with @kbd{C} (@code{url-cookie-list}). | 221 | package. You can list existing cookies with @kbd{C} |
| 222 | For details about the Cookie handling @xref{Cookies,,,url}. | 222 | (@code{url-cookie-list}). For details about the Cookie handling |
| 223 | @xref{Cookies,,,url}. | ||
| 224 | |||
| 225 | @vindex shr-cookie-policy | ||
| 226 | Many @acronym{HTML} pages have images embedded in them, and EWW will | ||
| 227 | download most these by default. When fetching images, cookies can be | ||
| 228 | sent and received, and these can be used to track users. To control | ||
| 229 | when to send cookies when retrieving these images, the | ||
| 230 | @code{shr-cookie-policy} variable can be used. The default value, | ||
| 231 | @code{same-origin}, means that EWW will only send cookies when | ||
| 232 | fetching images that originate from the same source as the | ||
| 233 | @acronym{HTML} page. @code{nil} means ``never send cookies when | ||
| 234 | retrieving these images'' and @code{t} means ``always send cookies | ||
| 235 | when retrieving these images''. | ||
| 223 | 236 | ||
| 224 | @vindex eww-header-line-format | 237 | @vindex eww-header-line-format |
| 225 | @cindex Header | 238 | @cindex Header |