From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22671: 25.0.90; EWW: Redirects go to Firefox (rather than EWW) Date: Tue, 16 Feb 2016 17:07:40 +1100 Message-ID: <87d1rx6vdf.fsf@gnus.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455602961 27554 80.91.229.3 (16 Feb 2016 06:09:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Feb 2016 06:09:21 +0000 (UTC) Cc: 22671@debbugs.gnu.org To: raman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 16 07:09:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aVYov-0005QF-R4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Feb 2016 07:09:09 +0100 Original-Received: from localhost ([::1]:39614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVYou-0006eF-Vt for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Feb 2016 01:09:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVYor-0006e4-Ay for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 01:09:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aVYoo-0002P2-4o for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 01:09:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aVYoo-0002Oy-1B for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 01:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aVYon-000123-Rl for bug-gnu-emacs@gnu.org; Tue, 16 Feb 2016 01:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Feb 2016 06:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22671 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 22671-submit@debbugs.gnu.org id=B22671.14556028913908 (code B ref 22671); Tue, 16 Feb 2016 06:09:01 +0000 Original-Received: (at 22671) by debbugs.gnu.org; 16 Feb 2016 06:08:11 +0000 Original-Received: from localhost ([127.0.0.1]:40666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVYnz-00010y-7k for submit@debbugs.gnu.org; Tue, 16 Feb 2016 01:08:11 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:34529) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aVYnw-00010o-Cg for 22671@debbugs.gnu.org; Tue, 16 Feb 2016 01:08:10 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aVYnY-0004MP-Ro; Tue, 16 Feb 2016 07:07:45 +0100 In-Reply-To: (raman@google.com's message of "Sun, 14 Feb 2016 15:46:18 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) X-MailScanner-ID: 1aVYnY-0004MP-Ro MailScanner-NULL-Check: 1456207666.03488@T1U34qxDDBlQjtiHT5zPBA 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: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113113 Archived-At: raman writes: > Sometimes, sites send a redirect with content-type text/html but that > text/html still gets handed to Firefox -- rather than EWW. > One possible reason is that /etc/mailcap on ubuntu/trusty has this line: > text/html; firefox -private-window %s; test=test -n "$DISPLAY" > > It has that for the other xml/html related mime types as well. This has nothing to do with that, it turns out, but rather with the eww-use-external-browser-for-content-type variable. The URL redirects to something with "Content-Type: audio/mpeg", and that matches that variable, so it opens Firefox. I think that that's really confusing, though. It should just render it as a link, and then people can do what they want with it... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no