diff options
author | Fabio Natali <me@fabionatali.com> | 2024-11-05 23:52:30 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2024-12-21 10:51:45 +0200 |
commit | 31f3a760c504e76ae06805e5cc5c325b06e4a9ad (patch) | |
tree | 6b87c7455c2a0a716324ce5b9a2ea8c3ff65cf7d /lisp/emacs-lisp/comp-common.el | |
parent | 1c960bda91237c92f9f602bcb8538ad500c0bc49 (diff) | |
download | emacs-31f3a760c504e76ae06805e5cc5c325b06e4a9ad.tar.gz emacs-31f3a760c504e76ae06805e5cc5c325b06e4a9ad.tar.bz2 emacs-31f3a760c504e76ae06805e5cc5c325b06e4a9ad.zip |
Ask confirmation before EWW sends region to a search engine
With 'eww-search-words' (by default bound to 'M-s M-w') a user
can type in some search terms and get back the results of a web
search from a predefined search engine. If a region is selected,
'eww-search-words' will use that for the web search instead of
prompting the user.
In its current form, 'eww-search-words' presents a security and
usability problem. It is relatively too easy to mistakenly
launch the function and, if a region of text is selected, have
potentially sensitive data sent out to a third-party service.
This commit changes the search function's default behaviour so
that explicit confirmation is required before a region is sent
to a search engine. The behaviour can be adjusted via the
newly-introduced 'eww-search-confirm-send-region' variable,
which is set to true by default.
* lisp/net/eww.el (eww-search-confirm-send-region): Add.
(eww-search-words): Update default 'eww-search-words' behaviour
so as to ask confirmation before sending the region to a search
engine. (Bug#74218)
Diffstat (limited to 'lisp/emacs-lisp/comp-common.el')
0 files changed, 0 insertions, 0 deletions