From 804d9bd93fbde602f571ab46342acf18bd5a3e95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sat, 13 Nov 2021 07:36:43 +0200
Subject: [PATCH 1/1] DocumentWidget: Trust button shown only when untrusted
src/ui/documentwidget.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 49ac9fb5..f2553632 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2845,7 +2845,8 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0;
const int requiredForTrust = (available_GmCertFlag | haveFingerprint_GmCertFlag |
timeVerified_GmCertFlag);
const iBool canTrust = ((d->certFlags & requiredForTrust) == requiredForTrust);
const iBool canTrust = ~d->certFlags & trusted_GmCertFlag &&
((d->certFlags & requiredForTrust) == requiredForTrust);
const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url);
const iString *meta = &d->sourceMime;
if (recent && recent->cachedResponse) {
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).