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: Wed, 25 Sep 2024 18:59:18 -0700 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=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 73133@debbugs.gnu.org, ganimard@tuta.io To: =?UTF-8?Q?Sebasti=C3=A1n_?= =?UTF-8?Q?Mon=C3=ADa?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 26 04:00:58 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 1stdoP-000629-Rg for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Sep 2024 04:00:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stdo6-0006LT-T8; Wed, 25 Sep 2024 22:00: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 1stdo4-0006Kt-9v for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 22:00: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 1stdo4-0007tk-0l for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 22:00:36 -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=ommC86R5bpE1G6I4dfZfFWYJo6jP7R4jAAXNXsKbNaU=; b=gHa0w4VN4foH/AKaB5nrdwcG4JgN7cX5CClNLeREl5st1CnWJsV7EWJ9+eFoUGjdAhNuNsSMuhBrSkXGxE7KmZ4HLKZo86BTkkuhLgjjnoC8w/ssLBpEzpVZkxEBWGYYzigqHi1U1rDdLiTLFC4dMaCf9Y3cbEYT48U8yxpigY08/2t0bMWR+553hmPNICzQQAanpVlw2yHxlZYtd02ONh8ny0U0lcRvOUNIBW+0Adq8qzPaBYQzMXZxKWi3WZY0qKAlaMIDKHQzm7tPB5SOZ/XsMhjG12dGgV9tcsf0Twxtq6XiyklS05nb++kihnu6O7SwXqB8Wj2X4+IaUN8KIQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stdoU-0004pC-6n for bug-gnu-emacs@gnu.org; Wed, 25 Sep 2024 22:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Sep 2024 02:01: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.172731605518525 (code B ref 73133); Thu, 26 Sep 2024 02:01:02 +0000 Original-Received: (at 73133) by debbugs.gnu.org; 26 Sep 2024 02:00:55 +0000 Original-Received: from localhost ([127.0.0.1]:39449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stdoM-0004oi-WF for submit@debbugs.gnu.org; Wed, 25 Sep 2024 22:00:55 -0400 Original-Received: from mail-pl1-f177.google.com ([209.85.214.177]:61800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stdoK-0004oS-ME for 73133@debbugs.gnu.org; Wed, 25 Sep 2024 22:00:53 -0400 Original-Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-20696938f86so3209335ad.3 for <73133@debbugs.gnu.org>; Wed, 25 Sep 2024 19:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727315959; x=1727920759; 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=ommC86R5bpE1G6I4dfZfFWYJo6jP7R4jAAXNXsKbNaU=; b=ZcJuAFMpiHOIYaiFtkTSoT6SeSEGup6p8l9cNd4RS9/CLZNCF87KCraGi60w1YVWt4 0HFqB1Q5IrtXQPFgHmmJZChMcVnC2vpA01bTn3kloSfYa+pYR9NCNrgVUt2b1v7tZ7Eh go2RwwQxDzwrDhwIIRnHT9R5G/U9/ivbvbOcAyYZ7JAUoUXN2NB68SXknGglklbM8vmw F/UCIodzhS/RtiZTwhp9Jl5nhnQG7Ly+zZu15rHyDnUHN3g+nFSuQPCP1El90ClBpxP1 aFyzQUcWTO2QQlynm2QAQeQjgeEk5vlh+n94A909QtmOmPgKpWJeykskCBaUjWHAkMrw DZDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727315959; x=1727920759; 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=ommC86R5bpE1G6I4dfZfFWYJo6jP7R4jAAXNXsKbNaU=; b=PPbcf85bkU9XjlQuYTqExF/mrqK+kyDstnOMS3Y89CbpRhGKLSY4QN+a4pWekJfkKY RmtaeBH36pHYMYe3CPi4ezxFxR3/vtC4x72MzwtzZn94R4eiK+ovVfg4oQJPEhgYl/pr pgHN2a/AXquLiVKZcCKqrEFTOkAUfPWBrxwJpoxSsRobOFx56gTHAKy1e+NS/+ecGAVK AJQwzdPSxIY/qOklsCX3GOGT8eTLaQh8Bk79yAwCrPKroF5/FzEf0ocvLaH82J0SkHEe uEO5FUH8KrphGGi53CiSppvLEs9oeBSGXnrQRHi+r1iBaxpFvHlyhXa2Z3yGJev3cqUh rBAg== X-Forwarded-Encrypted: i=1; AJvYcCXecL8gQENuS7nTJKQ5ooEZlt/MEoQ3c4veGXq7K/XVnCMEo3cMLskNxa0ytGBUlzAEWynfuA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzWtlyceSuDrOU8pp6rQ+aGUl7D0lXzONQoVHXx5mu1l/8w8wFZ Sg2esylw4hG+wIrdnCT0wwB7YTWOM27THDYYhk8RXGeavbqwm6nf X-Google-Smtp-Source: AGHT+IEPv24OPnID9hrUE20N1z+SpwiKs5ne9iPRMB7G2ngWgkvswoHj5iXO38Tl0Lrd4j6qd1JtEw== X-Received: by 2002:a17:903:24c:b0:206:9693:7d5b with SMTP id d9443c01a7336-20afc641ad4mr65942605ad.55.1727315959469; Wed, 25 Sep 2024 18:59:19 -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 41be03b00d2f7-7e6b7c37b92sm3280923a12.9.2024.09.25.18.59.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Sep 2024 18:59:19 -0700 (PDT) Content-Language: en-US In-Reply-To: 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:292432 Archived-At: On 9/25/2024 1:46 PM, Sebastián Monía wrote: > 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 we'd only want to run this hook if the Content-Type is absent from the headers (its job is to *guess* a content type, after all), so I'd expect the signature to be the list of headers + the buffer.