Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vOuGi-00CF8F-1e for pgsql-www@arkaria.postgresql.org; Fri, 28 Nov 2025 08:55:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vOuGg-00A1co-2d for pgsql-www@arkaria.postgresql.org; Fri, 28 Nov 2025 08:55:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vOuGg-00A1cg-1l for pgsql-www@lists.postgresql.org; Fri, 28 Nov 2025 08:55:54 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vOuGe-001vkh-1B for pgsql-www@lists.postgresql.org; Fri, 28 Nov 2025 08:55:54 +0000 Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5959da48139so1633156e87.1 for ; Fri, 28 Nov 2025 00:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin.org; s=google; t=1764320151; x=1764924951; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=osA/vjuFiSFxfCZCK2t0DqRjB3/q2+7tdfg3K4nJzao=; b=I/E0lL+fB8wO66NC+8mFFDD+x3WNZ0fzS28YEz4Dz63tWVkfZjFEzRpt+nbnXpl17x OoYNy/gg8zYopvNssfMVIMaNMILhZWLU1mXFNIIu8wB5pKCZeF7F6eD9l75wCUptCFSo 01RC3njm5gWHyVofVeHIKEZtKPyBjyWKRQcXKCZEmWw+pzi3AVFlc7sKFpqJJh5o8P32 G9m6Z1+xvrmb4Nvqs+0nkCfA+Ang/SlxHueXwn7ts+STh2ceGVsQB5XKMf8gc88umPwD MLfHaix4QX5CeOYFQG02iON6yB0dlU9uPabCDMNQfKoCPNOBUdxm/hCNJMgbSxJO7gDs 7zYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764320151; x=1764924951; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=osA/vjuFiSFxfCZCK2t0DqRjB3/q2+7tdfg3K4nJzao=; b=PlVeS9685wLVOMFU9hzqFDYkM948ynCiY/Qliwr/S2a3yg246fRpnepQ0C2MzxoV9e MNnVihCBHcjYOOeMv+6JMkAzHER5wMv+CfA9I1+azJcUtO8GmO5h5n6S9z6Ms5iD77D4 6jm7bRscKOSIJrc1yD+ytRawe4mFeCdFEqv8hakxzR3nWzXV7AiDTvx2qEdS6gGi2yQk MLbA7tv6MdCwbNO5QpPPWq1NU7ss8pe1orjOUUYFUGqkXhcHwJvjdWO4RUxNJpmcTJF9 c0SWc6SZprUOTGIOhhFKIdIL8Zifge79uOVcY5xYfxySHksvD0J4FrqxaF4aWsoYADrp D0+g== X-Forwarded-Encrypted: i=1; AJvYcCXmv/MsQV8mVuaRTI6Yo8Oz3DJYPkuT7trdfwHJ4XFGwLZaL87otqqcXH1zDumZC3DvDiPIiICbolk=@lists.postgresql.org X-Gm-Message-State: AOJu0YyX9u1JgbQBoTZYQHaVeNYmeo6myfBb7gdLJStfbFhC48uqEQ/j PMxLcdNioRfa1k+1hAWBui2xXMOMvEJ9NJ66CeGa3K/KlBqqm+WgbUnZNSvT9tV/YJsjpxJgHYD 90LT2tRqdfdPxMQ0l+fxf6Lit7a0Q5Rh76IH2fL7i X-Gm-Gg: ASbGncteZkOE4BjwED8LvJFYdoyiGaYWash/KWEoemCtCvlhocSu4Jdd0ktEE59SJMR 46AEy57gscscWkkdLqE+DJldXSsxN7endmGC0BD63VpjBg+5g5oSEnuTLexjPZhttaMsNWahy43 MZCl6V9aP21judrcbcZMHF3UTDT+/WStxBYuw8bZ5jsbklfGGxbNdP/vql+mxL7+1k1ayYM4sWR +C6yY7jUPhd+r7IhOdb4Xfnl6ZLmpamivHkh0gl3LXCEdhYLCcVdLmtA2Ff0MrBKDjm8ilxfA== X-Google-Smtp-Source: AGHT+IFfZ3NFitdVpQnMHzWxlPvCWlbgUILgn1ic/JM7Y+g+sm3iHRQ/JFWiDe9NAY7GAvZYP2mbVlaGeTIxC+sjnGM= X-Received: by 2002:a05:6512:a85:b0:595:8200:9f79 with SMTP id 2adb3069b0e04-596b5294e26mr4717461e87.43.1764320150604; Fri, 28 Nov 2025 00:55:50 -0800 (PST) MIME-Version: 1.0 References: <202511261449.s7ij3hueoe5r@alvherre.pgsql> In-Reply-To: From: Dave Page Date: Fri, 28 Nov 2025 08:55:39 +0000 X-Gm-Features: AWmQ_blxIL0TGKCtV9FRbpn4rQb_cjNflfeHxiWaXx8LgzBGwKBCVeJ07kXtdyo Message-ID: Subject: Re: News review in dark mode To: "Jonathan S. Katz" Cc: =?UTF-8?Q?=C3=81lvaro_Herrera?= , PostgreSQL WWW Content-Type: multipart/alternative; boundary="000000000000d8e07d0644a3cb93" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000d8e07d0644a3cb93 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 27 Nov 2025 at 16:04, Jonathan S. Katz wrote= : > On 11/26/25 9:50 AM, =C3=81lvaro Herrera wrote: > > On 2025-Nov-26, Dave Page wrote: > > > >> It's bugged me for ages that the news preview in dark mode has been > broken > >> forever. Here's a patch to fix that, along with before/after > screenshots. > > > > Oh, yes _please_, thank you very much. > > +1 for the feature. > > Code overall looks fine to me. I'd prefer if we could make the > "try/catch" block be more discerning about opting to ignore the > Cross-Origin error, but given the contents of the try block are benign, > I wouldn't block the patch on that. > Thanks - this has been pushed with a minor tweak to the catch block: } catch (e) { /* Only ignore SecurityError/cross-origin errors, rethrow others */ if (e.name !=3D=3D 'SecurityError') { throw e; } } --=20 Dave Page pgAdmin: https://www.pgadmin.org PostgreSQL: https://www.postgresql.org pgEdge: https://www.pgedge.com --000000000000d8e07d0644a3cb93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, 27 Nov = 2025 at 16:04, Jonathan S. Katz <jkatz@postgresql.org> wrote:
On 11/26/25 = 9:50 AM, =C3=81lvaro Herrera wrote:
> On 2025-Nov-26, Dave Page wrote:
>
>> It's bugged me for ages that the news preview in dark mode has= been broken
>> forever. Here's a patch to fix that, along with before/after s= creenshots.
>
> Oh, yes _please_, thank you very much.

+1 for the feature.

Code overall looks fine to me. I'd prefer if we could make the
"try/catch" block be more discerning about opting to ignore the <= br> Cross-Origin error, but given the contents of the try block are benign, I wouldn't block the patch on that.

Thanks - this has been pushed with a minor tweak to the catch block:
=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } catch (e) {=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 /* Only ignore = SecurityError/cross-origin errors, rethrow others */
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (e.name= !=3D=3D 'SecurityError') {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 throw e;
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 }
=C2=A0
--
--000000000000d8e07d0644a3cb93--