summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 293e4507..7d9ac154 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -3936,12 +3936,12 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
3936 const char *unchecked = red_ColorEscape "\u2610"; 3936 const char *unchecked = red_ColorEscape "\u2610";
3937 const char *checked = green_ColorEscape "\u2611"; 3937 const char *checked = green_ColorEscape "\u2611";
3938 const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0; 3938 const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0;
3939 const int requiredForTrust = (available_GmCertFlag | haveFingerprint_GmCertFlag | 3939 const int requiredForTrust =
3940 timeVerified_GmCertFlag); 3940 (available_GmCertFlag | haveFingerprint_GmCertFlag | timeVerified_GmCertFlag);
3941 const iBool canTrust = ~d->certFlags & trusted_GmCertFlag && 3941 const iBool canTrust = ~d->certFlags & trusted_GmCertFlag &&
3942 ((d->certFlags & requiredForTrust) == requiredForTrust); 3942 ((d->certFlags & requiredForTrust) == requiredForTrust);
3943 const iRecentUrl *recent = constMostRecentUrl_History(d->mod.history); 3943 const iRecentUrl *recent = constMostRecentUrl_History(d->mod.history);
3944 const iString *meta = &d->sourceMime; 3944 const iString *meta = &d->sourceMime;
3945 if (recent && recent->cachedResponse) { 3945 if (recent && recent->cachedResponse) {
3946 meta = &recent->cachedResponse->meta; 3946 meta = &recent->cachedResponse->meta;
3947 } 3947 }
@@ -4006,6 +4006,10 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
4006 if (haveFingerprint) { 4006 if (haveFingerprint) {
4007 pushBack_Array(items, &(iMenuItem){ "${dlg.cert.fingerprint}", 0, 0, "server.copycert" }); 4007 pushBack_Array(items, &(iMenuItem){ "${dlg.cert.fingerprint}", 0, 0, "server.copycert" });
4008 } 4008 }
4009 const iRangecc root = urlRoot_String(d->mod.url);
4010 if (!isEmpty_Range(&root)) {
4011 pushBack_Array(items, &(iMenuItem){ "${pageinfo.settings}", 0, 0, "document.sitespec" });
4012 }
4009 if (!isEmpty_Array(items)) { 4013 if (!isEmpty_Array(items)) {
4010 pushBack_Array(items, &(iMenuItem){ "---", 0, 0, 0 }); 4014 pushBack_Array(items, &(iMenuItem){ "---", 0, 0, 0 });
4011 } 4015 }
@@ -4937,7 +4941,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
4937 for (size_t i = 0; i < 64; ++i) { 4941 for (size_t i = 0; i < 64; ++i) {
4938 setByte_Block(seed, i, iRandom(0, 256)); 4942 setByte_Block(seed, i, iRandom(0, 256));
4939 } 4943 }
4940 setThemeSeed_GmDocument(view->doc, seed); 4944 setThemeSeed_GmDocument(view->doc, seed, NULL);
4941 delete_Block(seed); 4945 delete_Block(seed);
4942 invalidate_DocumentWidget_(d); 4946 invalidate_DocumentWidget_(d);
4943 refresh_Widget(w); 4947 refresh_Widget(w);