From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Newsgroups: gmane.emacs.bugs Subject: bug#73133: 29.2; EWW fails to render some webpages Date: Wed, 25 Sep 2024 16:46:06 -0400 Message-ID: References: <86plox4bef.fsf@gnu.org> <7eb7b048-06ea-5751-56e1-590689c8c318@gmail.com> <8e285069-6e95-de49-dd46-92ce49b94372@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3735"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 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 Wed Sep 25 23:25:52 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 1stZW8-0000mN-Mv for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Sep 2024 23:25:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stZVz-0006Gh-HX; Wed, 25 Sep 2024 17:25:39 -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 1stZVw-0006F3-Qb for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 17:25:36 -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 1stZVw-00029c-49 for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 17:25:36 -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:Date:References:In-Reply-To:From:To:Subject; bh=DbyDVczvCv0xUX16vgDS7v79ll3ESvvuDMT2rUQUzdo=; b=cmt+X8vz1Z9Nx4VKc8uA7mBlu1JCyqKHuqXR7q3G0BzJWfuQmNpqWBBzkCWLg/mDyHCPOj5jPaRHESGHkCujCL5nxiWToQb+lAhP3jh+AebBzy9vrCQ7vFy4XqUoe6VodMH/fAWNOQuCC22gxaY703C7NyPttRU4yb2EvzfRV5Ec2cvoCOHE9CjchVrWkbFd6PFbNDtK8I7ZSkROV1TXwBJUH9r7tYDneso8poVCdeVEBhLLlA4lkGvOy4tqkHOgtgOIpjFQeNEpGGzc8J59yiKngJc7ECW9w2tV/xiZx+q/b0F3+DhEUGtkAUJerCCBNIbIndYIUDYCg7gN8e/QqQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stZWM-00038N-9p for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 17:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Sep 2024 21:26: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.172729951511427 (code B ref 73133); Wed, 25 Sep 2024 21:26:02 +0000 Original-Received: (at 73133) by debbugs.gnu.org; 25 Sep 2024 21:25:15 +0000 Original-Received: from localhost ([127.0.0.1]:56308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stZVa-0002yD-K0 for submit@debbugs.gnu.org; Wed, 25 Sep 2024 17:25:15 -0400 Original-Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]:33543) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stZ46-0000y2-VA for 73133@debbugs.gnu.org; Wed, 25 Sep 2024 16:56:51 -0400 Original-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id 9CE2F1380233; Wed, 25 Sep 2024 16:46:08 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Wed, 25 Sep 2024 16:46:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebasmonia.com; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1727297168; x=1727383568; bh=DbyDVczvCv0xUX16vgDS7v79ll3ESvvu DMT2rUQUzdo=; b=dPS/DDUnXs3JIfqDi7QMQR4+6x+2qXT9rdmIUwICOvFoSqyf DIEya7rI2gNHO5n5AWNOVBj5PuWLTMjNGw3FT8a+tTxN0urO/CfqDfAxA05cm8OW C3XphsAPagrxsevj3+IHNOhWpphcdCNh3JmkhDYQkUP3gGUvPpkqwbg01DhUSMzO vFlxW7a//vayL6qJTCaLqxs2W9RhGpgPyK979WIWrVzOFNtAkumezrGXX1L6ICWQ BhyMRoQDT6Ay5fivYddWxYNdYlS1R6C7U2XpnjDAIPqKgUqq6Noex01tO2eKY2X7 LzXma0BZbkZnEw43U/Dl5c/r3mpnnKE4XaPFbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1727297168; x= 1727383568; bh=DbyDVczvCv0xUX16vgDS7v79ll3ESvvuDMT2rUQUzdo=; b=j ebtFvBDBS8d8PJ7kX4oIZ0ejj+W5PC0MzakkvzGgIOjhpLaI/s7TzqJAAFEynbpg Hn3dpRAsWA4q641SWleN16yskkhB9wkxSAu1dj4pKVAA0lLTCCI0vJBNLsf6D3pr 3s1Z9SPg5Tir+zUgiZHzpTmOMZfujOWWEOl6dkYxjH8144b0EDJxT30KGL5I0TFf pt4ZN0dwXBME3RL+FNfaqshiDHGL0HZq29RxtD8FuukSxw7bhXOKgzuZECyLjj+m 9c2c/V6GzTQ7PTyRY0C2+p9fSxh56yThRaHKE0wK8MEp/5h4gqcgCPP952E8qfQd gZsLDj3ESwrXjSF5aMTbg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddthedgudehfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfgfgggtgfesthhqredttder udenucfhrhhomhepufgvsggrshhtihojnhcuofhonhovrgcuoehsvggsrghsthhirghnse hsvggsrghsmhhonhhirgdrtghomheqnecuggftrfgrthhtvghrnhepjeefkeetveeuvdff hedtgeeukedtveekveethfdvgfffieeiieetuefgvdeiveeknecuffhomhgrihhnpehsvg gsrghsmhhonhhirgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehsvggsrghsthhirghnsehsvggsrghsmhhonhhirgdrtghomhdpnh gspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepghgrnhhi mhgrrhgusehtuhhtrgdrihhopdhrtghpthhtohepjeefudeffeesuggvsggsuhhgshdrgh hnuhdrohhrghdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopehj phhorhhtvghrsghugh X-ME-Proxy: Feedback-ID: iab2c46da:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Sep 2024 16:46:07 -0400 (EDT) In-Reply-To: <8e285069-6e95-de49-dd46-92ce49b94372@gmail.com> (Jim Porter's message of "Tue, 24 Sep 2024 11:31:04 -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:292422 Archived-At: Hi Jim, Jim Porter writes: > I was actually thinking something more general, like a defcustom named > 'eww-guess-content-type-functions', which would be a list of functions > where the first non-nil result is the guessed Content-Type. That way, > we could extend this to other content types (for example, maybe we'd > want to look for the magic headers for various image formats too; we > don't have to do that in this bug). I think the functions for the new defcustom should accept the content-type, headers (since both are already parsed by that time), and the entire buffer. If you agree, I can give your suggestion a shot, if not let me know what do you think would work. > I think your 'eww--doctype-html-p' function would work nicely with a > couple small tweaks as one of the functions in > 'eww-guess-content-type-functions' though. Thanks! I would also have the current '(eww-html-p (car content-type))' wrapped in a function `eww--content-type-html-p` and put both functions in the defcustom, first content type then doctype. --=20 Sebasti=E1n Mon=EDa https://site.sebasmonia.com/