aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-24 17:48:35 +0200
committerLars Ingebrigtsen2019-09-24 17:48:41 +0200
commitea5c79f657a9e2826073896ea00e6000ccc04a8d (patch)
treea0b3b5d4f427f4d221c8d3bfe97fac38512b8338 /doc/misc
parent9dcdb1384df51a568af5ec35c9f0a762d3cf205b (diff)
downloademacs-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.texi19
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}
221You can list existing cookies with @kbd{C} (@code{url-cookie-list}). 221package. You can list existing cookies with @kbd{C}
222For 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
227download most these by default. When fetching images, cookies can be
228sent and received, and these can be used to track users. To control
229when 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
232fetching images that originate from the same source as the
233@acronym{HTML} page. @code{nil} means ``never send cookies when
234retrieving these images'' and @code{t} means ``always send cookies
235when retrieving these images''.
223 236
224@vindex eww-header-line-format 237@vindex eww-header-line-format
225@cindex Header 238@cindex Header