From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73133: 29.2; EWW fails to render some webpages Date: Sat, 21 Sep 2024 12:13:44 +0300 Message-ID: <86plox4bef.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25367"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73133@debbugs.gnu.org, ganimard@tuta.io To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 21 11:14:57 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 1srwCf-0006QW-9Z for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Sep 2024 11:14:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srwCT-0006oT-5C; Sat, 21 Sep 2024 05:14:45 -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 1srwCQ-0006o5-Qy for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:14:42 -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 1srwCQ-0006Wn-Hl for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:14:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=gcVAXR6DufwfIvJSeW2XWmy76V7iNTkc7ecZdemyXZ4=; b=s6Y4hXWDvJZakqO7Q8+BXTyrvOM2QdpJfvzCRlyNyPhAOk720IgIovAYLse53ZXcb1se1SKn4PGlbU2Z+X3sGG7tIPnJ/TmkxyXAa5+ihW8mWPnceZTfgiE0hXB5wbQdZD4Y82gbvdYktcUDdgXNM4xbximnuaZb52tbGYD3UDPWOsAFR1SiL+NzoDs972NDJHFJVdwliCtX9Ee+3kTPTRmPALE0afu1B59n+qipOUWBDRCNygWzwCNudx4WWbhI6dGvsbYOc7XaGpQoayPrcWzbv1Q6QbxMY3kuJ5OcbLFV7OMyfyty1KF0yWVku/ZdHv4Qx5UFf91GW9q0w1+2BQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srwCk-0001vo-F8 for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Sep 2024 09:15:02 +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.17269100567338 (code B ref 73133); Sat, 21 Sep 2024 09:15:02 +0000 Original-Received: (at 73133) by debbugs.gnu.org; 21 Sep 2024 09:14:16 +0000 Original-Received: from localhost ([127.0.0.1]:37164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srwBz-0001uG-SS for submit@debbugs.gnu.org; Sat, 21 Sep 2024 05:14:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srwBx-0001u4-St for 73133@debbugs.gnu.org; Sat, 21 Sep 2024 05:14:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srwBX-0006Vv-Pe; Sat, 21 Sep 2024 05:13:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=gcVAXR6DufwfIvJSeW2XWmy76V7iNTkc7ecZdemyXZ4=; b=pf3O7IySBS/PHyjikuPo 0cx+buAGRDglsIomNr0EY64khjQIG02cZhqzHQLW/34NQ2r6VsAiZdWs0OZhd35MB93BEYA6e9EPv Mn0lGQWsuTrA8nzrWpEfrdySeTVnHYRfdbECI5qGKxWvYC1blUk82m2M/LsYDkvcI8niDAx3TAnm+ eSjc6L28INmY2bX2iGpZsyxid+xngJCpAp6apoi/YgSf0Na0qD8HgpZhGOnJFpmt0O2qfvGOA1BOv MnDg0a+BHfFf7uCjqcM/1kMH4UWkBHGiXaMULYk36GaUU4yqBvgtPgWLLeyzKTQSmSC2cgAxY35Na fzapJh2ai+grog==; In-Reply-To: (message from Jim Porter on Mon, 9 Sep 2024 23:06:56 -0700) 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:292159 Archived-At: > Date: Mon, 9 Sep 2024 23:06:56 -0700 > From: Jim Porter > > On 9/8/2024 1:52 PM, Ganimard via Bug reports for GNU Emacs, the Swiss > army knife of text editors wrote: > > I have recently discovered the website gastonle.ru, however it does not > > render with Emacs Web Wowser.  It appears to be a relatively simple > > website and I cannot see what would prohibit it from rendering. > > Checking that page via curl, it appears that it doesn't return a > Content-Type header. In the absence of that header, EWW assumes that the > page is plain text. > > > I have also tried it on an Ubuntu 22.04.4 LTS distro running Emacs 28.1 > > but it also fails to render.  This therefore appears to be a bug in EWW. > > From my reading of RFC9110[1], this is *technically* a bug (we should > assume application/octet-stream, not text/plain), but that wouldn't fix > the rendering here; it would probably make things worse. However, per > the RFC, EWW would be within its rights to guess that the page is HTML, > e.g. by checking for "". It also recommends having that > be an option that can be disabled, which is reasonable (and in keeping > with Emacs's design principles anyway). > > [1] https://www.rfc-editor.org/rfc/rfc9110#section-8.3-5 Thanks. Would someone like to submit a patch along these lines?