Review Mozilla 1699658: Non-https secure contexts are shown as insecure for PDFs

https://bugzilla.mozilla.org/show_bug.cgi?id=1699658

We should make sure this fix also carries over for our various onion service scenarios