From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#38713: 27.0.50; eww doesn't handle protocols other than https? Date: Mon, 23 Dec 2019 01:11:09 +0200 Organization: LINKOV.NET Message-ID: <87pngggdma.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223458"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) To: 38713@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 23 00:16:19 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ijASQ-000vzV-3B for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Dec 2019 00:16:18 +0100 Original-Received: from localhost ([::1]:51610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijASO-0000k2-MZ for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Dec 2019 18:16:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50949) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijASC-0000ga-4m for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2019 18:16:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijASA-0000LL-IH for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2019 18:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44391) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ijAS9-0000Gb-Sm for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2019 18:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ijAS9-0006Dw-Ng for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2019 18:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Dec 2019 23:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38713 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157705655323907 (code B ref -1); Sun, 22 Dec 2019 23:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Dec 2019 23:15:53 +0000 Original-Received: from localhost ([127.0.0.1]:50364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijAS0-0006DX-Ko for submit@debbugs.gnu.org; Sun, 22 Dec 2019 18:15:52 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:34648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ijARz-0006DQ-Ht for submit@debbugs.gnu.org; Sun, 22 Dec 2019 18:15:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50461) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ijARy-0000dv-C8 for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2019 18:15:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ijARw-0007fT-UI for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2019 18:15:49 -0500 Original-Received: from bonobo.elm.relay.mailchannels.net ([23.83.212.22]:1713) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ijARw-0007Qz-Fu for bug-gnu-emacs@gnu.org; Sun, 22 Dec 2019 18:15:48 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 73B5D3C07AB for ; Sun, 22 Dec 2019 23:15:45 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (100-96-196-67.trex.outbound.svc.cluster.local [100.96.196.67]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 06BF33C0851 for ; Sun, 22 Dec 2019 23:15:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Sun, 22 Dec 2019 23:15:45 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Arch-Spot: 3440e7b4380cee97_1577056545235_4248863399 X-MC-Loop-Signature: 1577056545234:1221622929 X-MC-Ingress-Time: 1577056545234 Original-Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id DD6A4AEDF5 for ; Sun, 22 Dec 2019 15:15:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to :subject:date:message-id:mime-version:content-type; s= linkov.net; bh=5McCl/Xm13kEqIyqeBU+sps66Vk=; b=XCEUEmc6yybhl3R+U r/Vm0kpf7QjspMd8MRbeyI3RgCNCcoklm0ua+1bxgLXqJsFVs22yXynOsnqYJMuq /wSAyMe7En9KHC2WYhZ9+JISvlSsI0RBLWtdGUVNl15csbrj+NHreesAVuaY1ZGh /cwInqAYtJq5QH2ZIzDfCYzgs8= Original-Received: from mail.jurta.org (m91-129-107-186.cust.tele2.ee [91.129.107.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTPSA id AA357AE997 for ; Sun, 22 Dec 2019 15:15:39 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a11 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvdduledgtdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvffuohffkfgfgggtsehmtderredtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrudekieenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrddukeeipdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173649 Archived-At: --=-=-= Content-Type: text/plain 0. emacs -Q 1. M-x eww RET about:protocols RET hangs with the following line: Loading http://about:protocols/... whereas after applying the following patch it displays the nicely formatted HTML page: Supported Protocols - URL vEmacs Protocol Properties Description about Synchronous N/A Default Port: 0 ... --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=eww-protocols.patch diff --git a/lisp/net/eww.el b/lisp/net/eww.el index dccaf0497f..64386921c7 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -319,7 +319,8 @@ eww--dwim-expand-url (t ;; Anything that starts with something that vaguely looks ;; like a protocol designator is interpreted as a full URL. - (if (or (string-match "\\`[A-Za-z]+:" url) + (unless (string-match-p "\\`about:" url) + (if (or (string-match-p "\\`[A-Za-z]+:" url) ;; Also try to match "naked" URLs like ;; en.wikipedia.org/wiki/Free software (string-match "\\`[A-Za-z_]+\\.[A-Za-z._]+/" url) @@ -335,7 +336,7 @@ eww--dwim-expand-url (setq url (concat url "/")))) (setq url (concat eww-search-prefix (mapconcat - #'url-hexify-string (split-string url) "+")))))) + #'url-hexify-string (split-string url) "+"))))))) url) (defun eww--preprocess-html (start end) diff --git a/lisp/url/url-about.el b/lisp/url/url-about.el index e9d9d6346e..ee79ee1aab 100644 --- a/lisp/url/url-about.el +++ b/lisp/url/url-about.el @@ -91,7 +95,7 @@ url-about (if (fboundp func) (progn (set-buffer (generate-new-buffer " *about-data*")) - (insert "Content-type: text/plain\n\n") + (insert "Content-type: text/html\n\n") (funcall func url) (current-buffer)) (error "URL does not know about `%s'" item)))) --=-=-=--