diff options
author | Po Lu <luangruo@yahoo.com> | 2022-08-04 15:52:03 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-08-04 15:52:03 +0800 |
commit | b49c1740105dd3715315aa433674c95f44aaeac4 (patch) | |
tree | f6820c9378e814dce219dcb62b9bd7d64daf8f60 /lisp/net/eww.el | |
parent | 78129dcf53ab2b1ce49eab28dba89dea9f687284 (diff) | |
download | emacs-b49c1740105dd3715315aa433674c95f44aaeac4.tar.gz emacs-b49c1740105dd3715315aa433674c95f44aaeac4.tar.bz2 emacs-b49c1740105dd3715315aa433674c95f44aaeac4.zip |
Fix about:protocols in EWW
* lisp/net/eww.el (eww--dwim-expand-url): Handle `about: ' URLs.
(bug#56885)
* lisp/url/url-about.el (url-about): Return correct content type
for HTML data.
* lisp/url/url-http.el (url-http--get-referer): Refrain from
looking for a referrer if the lastloc had no host.
Diffstat (limited to 'lisp/net/eww.el')
-rw-r--r-- | lisp/net/eww.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 4dbd5de2ef7..beb8e0c45d5 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -450,6 +450,9 @@ For more information, see Info node `(eww) Top'." ;; Don't mangle file: URLs at all. ((string-match-p "\\`ftp://" url) (user-error "FTP is not supported")) + ((string-match-p "\\`about:" url) + ;; Treat this as an about: url. (bug#56885) + url) (t ;; Anything that starts with something that vaguely looks ;; like a protocol designator is interpreted as a full URL. |