From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#73133: 29.2; EWW fails to render some webpages Date: Wed, 23 Oct 2024 12:43:55 +0200 Message-ID: <86613F3D-B7C8-4498-B435-7AAF342264C2@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36466"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jim Porter , 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 23 12:45:55 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 1t3YsE-0009IT-O7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Oct 2024 12:45:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3Yrv-0004VW-Hi; Wed, 23 Oct 2024 06:45:35 -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 1t3Yru-0004T5-Eh for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 06:45:34 -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 1t3Yru-00047w-67 for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 06:45:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:Mime-Version:From:To:In-Reply-To:References:Subject; bh=Id5z+ipU3MxctaBS9i+vxt/wBSV/YFmnLRk6G45/9q0=; b=SU4XBKidJx9aApPqVpoEqnDOlJj5H6w+PhlLV3O8CZfYSS81bNYqUHve/t0Iaq/WpVFzF7bcJfGD+0c/e7MYgq/2HeftTqqtnLLEew4vfg6X3Y7sVb272JXGbWa4gvmVybhFbqVsw6nhsd2FH/CI18Zb+i95wZDD41pBHImqmP/G0/4GArAYcBHiNCQcSQydb0CJC+U4TtnFcnaJ+yu/VrsxUIpJ8jgsapt4H6MKvipfWh/zmzMYWL7lFCP+oBMsI9MRQuNXhRwXZ/z7SgzRD/oMFlVEx5okiPo8PnY0l6s2aINWXTi25F9Th6idWz36gEe5OvPV45I7joxVs7lA6A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t3YsM-00055l-9x for bug-gnu-emacs@gnu.org; Wed, 23 Oct 2024 06:46:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Oct 2024 10:46: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.172968033119181 (code B ref 73133); Wed, 23 Oct 2024 10:46:02 +0000 Original-Received: (at 73133) by debbugs.gnu.org; 23 Oct 2024 10:45:31 +0000 Original-Received: from localhost ([127.0.0.1]:58714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Yrr-0004zJ-F8 for submit@debbugs.gnu.org; Wed, 23 Oct 2024 06:45:31 -0400 Original-Received: from mail-lj1-f175.google.com ([209.85.208.175]:60462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t3Yro-0004zA-Pv for 73133@debbugs.gnu.org; Wed, 23 Oct 2024 06:45:30 -0400 Original-Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2fb5638dd57so66860391fa.0 for <73133@debbugs.gnu.org>; Wed, 23 Oct 2024 03:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729680238; x=1730285038; darn=debbugs.gnu.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=Id5z+ipU3MxctaBS9i+vxt/wBSV/YFmnLRk6G45/9q0=; b=gMwhxdqY3bkawXnB0sgw95F8rpHfXlLoWf4RL9bWedPqscx511o+uFNnKcoX2blHio MrLCjnYMycZ7BSVmYjxvZjwUCcAKiL476ZfWq0r/inacK98gPdwu2yKF8DaZEWSQYXsl 6HegDr51n16dF/2t1MrdDXp1r9y1mrNb+fsuT+42Pzz+Z0BaLAXdsjY4A37B+6DP3+pY GOlAFcGOS7lap4OQA8KZa5b/JuSXfvPInmWXUfSveo3K4aWao0cg0BN+0wL/RcHmZOho Ka6RQH4V33HKUnd4xvVgcfYMeJhfDJYWz4sRaX2PYHEY3aGqzEYKYJUUQKzdpgJ4u6xl jjyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729680238; x=1730285038; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Id5z+ipU3MxctaBS9i+vxt/wBSV/YFmnLRk6G45/9q0=; b=e9Hftbjdq6DJ/nAvGfBlY+o7OwGmQzzaahRkHbYLoecKUt3KkhRO5jaV+UfQg4Yfqj Ri0lRxxPdtutqVVonjY2Poe7AeA9Z23QEcqIlZxFzUq2XJ6E5HfNdtFyErNBKCI2rjms 4Te2SlCBeuVPLi8NNWCG3qqv1CJdqLeydJJ7YHZYVU1sig91PM2k5hN8yZk1FxdZBVeh KPbAYwCOM2mrvTSXfBVBh0hBMQeuHdvtFRMRqvgcXRfLZAXdOdA/YUu4UkSgUAP20d0Q dyqMOjeTGvZ50EJUFmdGrfiovZlj3VNrhw5rPD1SX+01A4BrWcM6SnIGaMk92FL4uejt mzdw== X-Forwarded-Encrypted: i=1; AJvYcCXIIrRmAp9kLyF8D55eBKHeQVJp+5ZLjRYxY5FysG8Fj5p2bHXV7oIAzEuGVn/10GDlHMH90A==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwxL+XSU3jim+CcogPlGzucX5AWgHDMg5VpZE/Uqqjq6v6eC0Mt 1L0lbUEX23hIVp3bHBlvsNYmsPGa2Z/LnDEToD+TLBFa6lOtTKhe X-Google-Smtp-Source: AGHT+IGpIbld5x/X7tlSEDGTuU9rHGCq4+FC8a+jlYvXN/oknwFI9mbNvpVTKUqDcuX4L0luIpZb4A== X-Received: by 2002:a05:6512:eaa:b0:539:f949:c027 with SMTP id 2adb3069b0e04-53b1a33e683mr1030525e87.18.1729680237899; Wed, 23 Oct 2024 03:43:57 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-183-180.bredband.tele2.se. [188.150.183.180]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53a223e5ad7sm1017760e87.56.2024.10.23.03.43.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2024 03:43:57 -0700 (PDT) X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:294139 Archived-At: Sebasti=C3=A1n, thanks for your contribution! A few minor points about = this part: 663 (let ((case-fold-search t) 664 (target 665 "\\|system = +\\(\\\"\\|'\\)+about:legacy-compat\\)")) 666 (with-current-buffer response-buffer First of all, `case-fold-search` becomes buffer-local if set, so binding = it before changing buffer won't help. You need to do it the other way = around. The regexp is a bit muddled. (Carets here apply to the quoted line = below.) 665 "\\|system = +\\(\\\"\\|'\\)+about:legacy-compat\\)")) ...................................^ Why match the terminating `>` in one branch (without DOCTYPE legacy = string) but not the other? ..................................................^^ Useless backslash(es) here. Did you mean to include something else? (Relint found this one, which is what brought me here.) .............................................................^ Why the `+`? According to the reference, there should be one single or = double quote here. = (https://html.spec.whatwg.org/multipage/syntax.html#doctype-legacy-string)= ................................^^^............^^^ These two capture groups don't seem to be used; you probably meant to = use non-capturing \(?:...\) brackets. ..................................................^^^^^^^^ A character alternative would be better here: ["']. An exact translation of your regexp to the rx notation might be: (rx "" (: "system" (+ " ") (+ (group (| "\"" "'"))) "about:legacy-compat")))) but perhaps you meant something like (rx "")