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: Tue, 8 Oct 2024 20:42:47 -0700 Message-ID: <9d90789a-ef06-1f7d-c340-2bba315dda5f@gmail.com> 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> 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="14696"; 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 Wed Oct 09 05:45:18 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 1syNdV-0003dg-DD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Oct 2024 05:45:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1syNd9-00055M-5E; Tue, 08 Oct 2024 23:44:55 -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 1syNd7-000559-SX for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2024 23:44:53 -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 1syNd7-00073X-7m for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2024 23:44:53 -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=0Naw0pmorlG/emG+3M1FNG6jomjJK+WdizLpbSmvHV8=; b=RAZJq5ikXi4MBxiuwFdUHf0qKkpCnPSu+LpLjZkynyvZvRWP9C0VNJttPtmyTGzx6daxVONlq0VDPst/Yb8Pf7iFJiYq6Q+C4s8DQydCLwa+NouYp/GTHfNAtGq6u36XXHblTAklpeTFhyZ0RsxBng57oiihtzpGXr5MdwYO6Obm20e+fZTS8PQW1Fdf/aC4wjaSSgY6JokCqqFRMuyh0jMn/RLzhevKy9fGyJGXfSieJOKReLX7feOEzA95larxSNSAkCMu33phAIyg8jr3E1BMT40Kf/6P4/d0gtv6PK0Hpfzokx2MkeqDXV57OUDhZ3X5QLXsSV5CfGDPQC9xwQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1syNdG-00026B-E0 for bug-gnu-emacs@gnu.org; Tue, 08 Oct 2024 23:45: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: Wed, 09 Oct 2024 03:45: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.17284454437939 (code B ref 73133); Wed, 09 Oct 2024 03:45:02 +0000 Original-Received: (at 73133) by debbugs.gnu.org; 9 Oct 2024 03:44:03 +0000 Original-Received: from localhost ([127.0.0.1]:55130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syNcJ-00023y-3Z for submit@debbugs.gnu.org; Tue, 08 Oct 2024 23:44:03 -0400 Original-Received: from mail-pf1-f178.google.com ([209.85.210.178]:56753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1syNcG-00023M-H1 for 73133@debbugs.gnu.org; Tue, 08 Oct 2024 23:44:01 -0400 Original-Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-71de9e1f374so3343363b3a.1 for <73133@debbugs.gnu.org>; Tue, 08 Oct 2024 20:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728445370; x=1729050170; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=0Naw0pmorlG/emG+3M1FNG6jomjJK+WdizLpbSmvHV8=; b=mk2L6t+etsmV9YK3KX/fdx/XIQ7DlkzS8cbqrPDNi9sZxAFJNgZ23lUTXB8/qA17oy hdR8lZk7+1nuxxq3eQfpeQQ+I2XibSi4egURQrR7LZDZMWzizEm1U+tfUtxWnXwVrwUP aF0bYj+9DK4cbeMySKtMU96KDb089riP9kjzvBZgUvrPDVNo35z+wJMpzrKIs4SIJxOD 0ykrmC4WmUMG7a/qSwIwMzUcLH8uQ5FFGaZjJVswKL84OVqEFQD20zcrnsJx1W41k2pv ZKNyN0OYBhkYyKvnYFZdwHPbTS1yFRfIe9oMApoZeNvNeQdIk4haXwNl+nC8+H8TLAoo C1ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728445370; x=1729050170; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0Naw0pmorlG/emG+3M1FNG6jomjJK+WdizLpbSmvHV8=; b=BFiAG5wYRLtbEzWI9V45Dos2paktA1kIVtHcB9yNf2FPzFd/kCm/xJt2OGPDtewPnE N5G+M9TzfxJkaVdfXusO2TSrR40rx4vGk/tFH0hcwXOeTezLlu07UdGLqkpNUK7Ibm/u ZsZk+wX0roaaswlRFd4VUdGVAj6sqgb1OcAc8RuoMpT24Azb6HCIzNYw8B9rxW44QBmb R0XFbHNF1g96yMqxzThuTSu4pn7fWKjyOGj6e+DuGRPG//LN1JpLDDU3yKCBH92zwbkO QMNgmf7+BMJyzKzD23/AudlEawxWB9dZZqm8SBi7daHV7zjdU2GgtXpdJWk4kKkD/Mdb YbYw== X-Forwarded-Encrypted: i=1; AJvYcCVJ8ZSt0grJZh1bfvqY6B+5hEIbfj9+g6QBlnkIb76vw+FId08unMafrG5Ohdp4wZMjIeiGmQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yz5tUH8CrMC3S07/J2UpVcBCL9irqEpq+DHnDYqfghImShNFmqd MIuAu6xFs770L1tK0CanXJ6izDBt47XAPur2cOWfIKAVuH+Pky1d X-Google-Smtp-Source: AGHT+IFIeNv8olcH0mfYmJ/jMHMra9B/H1vP+wFo5OL4lVXB2L3oeFO37c5jvo4d53KLaJZhUPJs5A== X-Received: by 2002:a05:6a00:c88:b0:71e:66b:c7ee with SMTP id d2e1a72fcca58-71e1db63d93mr1790682b3a.2.1728445369930; Tue, 08 Oct 2024 20:42:49 -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 d2e1a72fcca58-71df0d4535esm6794669b3a.120.2024.10.08.20.42.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 08 Oct 2024 20:42:49 -0700 (PDT) Content-Language: en-US In-Reply-To: <87y12y7y2s.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:293186 Archived-At: On 10/8/2024 8:30 PM, Sebastián Monía wrote: > Attached a new patch that goes in the direction outlined above, let me > know what you think. Thanks, I think this looks good overall (though I haven't run with your patch locally). Just one comment below. > + (let ((first-guess (seq-some > + (lambda (f) (funcall f headers response-buffer)) > + eww-guess-content-type-functions))) > + (or first-guess "text/plain"))) I believe this could be: (or (run-hook-with-args-until-success 'eww-guess-content-type-functions headers response-buffer) "text/plain")