From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#73133: 29.2; EWW fails to render some webpages Date: Sun, 20 Oct 2024 12:17:34 -0700 Message-ID: References: <86plox4bef.fsf@gnu.org> <7eb7b048-06ea-5751-56e1-590689c8c318@gmail.com> <8e285069-6e95-de49-dd46-92ce49b94372@gmail.com> <5e49a521-a191-15db-6368-6ca0f046d68a@gmail.com> <87y12y7y2s.fsf@sebasmonia.com> <9d90789a-ef06-1f7d-c340-2bba315dda5f@gmail.com> <87ttdk90c1.fsf@sebasmonia.com> <220e88e6-cbd4-331f-f25a-abb906852f6b@gmail.com> <86sesysrxi.fsf@gnu.org> <86wmi4lem4.fsf@gnu.org> <87zfn0f03l.fsf@sebasmonia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16831"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73133@debbugs.gnu.org, ganimard@tuta.io To: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 20 21:20:08 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t2bTE-0004D9-Ak for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Oct 2024 21:20:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2bSm-0005xL-LM; Sun, 20 Oct 2024 15:19:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2bSk-0005wg-PP for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 15:19:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2bSk-0007tb-Go for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 15:19:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=8/T2v7iFy8YJbsEJZ/lbUjIajtIByr8/v+4e2Vgl4Jg=; b=mp9FTAV9KTBuB9QS4dNMGk+of2pkU+ew6CqXFr6VqaRqpwxtwXmUTckMXnCDg66fGuQRMQVH0Q0MkA2n+ZMFFQzXfFJADcrWCKg2SDdS/fLJWdFe9DheNNRpIDsRtoNkfp0zKZ9CTQeENhBBpq9PEgflbuCN9pc7aRd4IwLd+6aZlbTnqIjXgvdRETKwRp62azJRP63W8EzjxxT3aTnpnpp/GlNyuIponpGyMsTnbOm5N79erkjbYvLE0oP9rgOsxK0gdf0bSh2DXLzlaMH7io9I4zn8a9tS6trHlHxiW73aKHWbvM5IZWbAJ5GTk2CmhpvqQRvTQas110bz1tmaCg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2bT9-0008VI-T2 for bug-gnu-emacs@gnu.org; Sun, 20 Oct 2024 15:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Oct 2024 19:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73133 X-GNU-PR-Package: emacs Original-Received: via spool by 73133-submit@debbugs.gnu.org id=B73133.172945194332534 (code B ref 73133); Sun, 20 Oct 2024 19:20:03 +0000 Original-Received: (at 73133) by debbugs.gnu.org; 20 Oct 2024 19:19:03 +0000 Original-Received: from localhost ([127.0.0.1]:48543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2bSA-0008ST-HA for submit@debbugs.gnu.org; Sun, 20 Oct 2024 15:19:02 -0400 Original-Received: from mail-pj1-f51.google.com ([209.85.216.51]:58797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2bS8-0008Ru-5K for 73133@debbugs.gnu.org; Sun, 20 Oct 2024 15:19:00 -0400 Original-Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2e2fb304e7dso3121434a91.1 for <73133@debbugs.gnu.org>; Sun, 20 Oct 2024 12:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729451854; x=1730056654; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=8/T2v7iFy8YJbsEJZ/lbUjIajtIByr8/v+4e2Vgl4Jg=; b=mhtQbInyn/IONw5wXunLsZd8Ox2dG99XMnXo9PqXqo2Sa4IpD8mw4pjC2ciuqo+1Zn xDtKq6D0ZhM+A3jy5KVeRAXI2dvsQrSSThUYwyb4URIEHfbQyNtnZwUZTb4pliJiY+7C SQhYOsjkn5c14D+iw4tIkKQRETQpCqZ5GyGAa5DJ1or+IrfIsboTFRWuS+22EIzFdk19 Azwx4dLU2tyZGWZDSKjIkIioXuUxg4eaI03aOiy1yM0k7Rd2XWnRSaBDXwajYQRGBpPU unWY0qqHNMld3MD+c/hkMwlatNZB4yFjUbNqeAqrmfeZUcOmxlj0RAx0sKsCighHmtvB X8BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729451854; x=1730056654; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8/T2v7iFy8YJbsEJZ/lbUjIajtIByr8/v+4e2Vgl4Jg=; b=vaLDpQDc/ji704jim+9c/WPigAitc6D1juaQ+68EyEapmWHNPYax42C9tkK1jRmu76 S1FDF9gDzeCaeiRU5cFUY3AeQ0BXNkLx35Ll9dSrKxvWBn6zpPVQDOoRbtLI+ez3AVxO SI5HjXFUGl8pX916yHTBcf1CJmzfFbzSN6DVJOi4BPYvJSIyBbyn5/5zs5krKVXulH0t NthwQ8GZZxl8PRveq6xgBdvm+KM1EN4dND0TBUxag/iB2ztEqXKJloBAF60GwJhcSXB4 UnnCVL0HQ/pMbDPwdeTJp0IqysDXhgjDcCsbakQi9NqXqD+F0uIHba3lwz6VAUSdGjeh kzKw== X-Gm-Message-State: AOJu0YyXaVSh7cXPkfChmSEhKYCqMKn/Ku9OktG524v2tmGIMQTMXOf2 hy2pd5MNx8C6hktYY+XGXNE9QthzbOp3lcEf/Gbtc7s+5J1d8lPB X-Google-Smtp-Source: AGHT+IGg2B5+KAGSm3KF5CyffcGLurfAELcjHJop5vWjocr9Bc4hj3Bx/vvAALzwqKdnNRFJdG0Adg== X-Received: by 2002:a17:90b:3c47:b0:2e2:bd68:b8d8 with SMTP id 98e67ed59e1d1-2e5616dea4dmr10094356a91.8.1729451853704; Sun, 20 Oct 2024 12:17:33 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2e5ad518767sm1896964a91.56.2024.10.20.12.17.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2024 12:17:32 -0700 (PDT) Content-Language: en-US In-Reply-To: <87zfn0f03l.fsf@sebasmonia.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294006 Archived-At: On 10/19/2024 10:56 AM, Sebastián Monía wrote: > Thank you everyone for your help in this process. One last thought before I merge this: I notice that when we can't guess a Content-Type, we use "text/plain" as a fallback. Per RFC-9110[1], the fallback should be "application/octet-stream". I tested this out in EWW, and we still display "application/octet-stream" pages as text in EWW, so there's no difference in behavior by default vs "text/plain". However, users who customize 'eww-use-external-browser-for-content-type' could make pages like that open externally, which I think makes sense. For non-HTML pages with no actual Content-Type header, they're at least reasonably likely to be binary files, so you'd probably want to download them rather than display them. Does anyone else have any thoughts on the relative merits of falling back to "application/octet-stream" vs "text/plain"? If we go with the former, I can update the patch when I merge. [1] https://www.rfc-editor.org/rfc/rfc9110#section-8.3-5