[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-81.0.1-10.0-1] fixup! Bug 23247: Communicating security expectations for .onion



commit b17829ec5fa8a1719a2443ba8a5c29fc1a8fae8e
Author: Alex Catarineu <acat@xxxxxxxxxxxxxx>
Date:   Fri Oct 2 17:23:33 2020 +0200

    fixup! Bug 23247: Communicating security expectations for .onion
    
    Fixes 40172: Security UI not updated for non-https .onion pages
---
 mobile/android/modules/geckoview/GeckoViewProgress.jsm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mobile/android/modules/geckoview/GeckoViewProgress.jsm b/mobile/android/modules/geckoview/GeckoViewProgress.jsm
index 9cfc7bf09b9c..475b7fc19a44 100644
--- a/mobile/android/modules/geckoview/GeckoViewProgress.jsm
+++ b/mobile/android/modules/geckoview/GeckoViewProgress.jsm
@@ -144,6 +144,10 @@ var IdentityHandler = {
       result.host = uri.host;
     }
 
+    if (!aBrowser.securityUI.secInfo) {
+      return result;
+    }
+
     const cert = aBrowser.securityUI.secInfo.serverCert;
 
     result.certificate = aBrowser.securityUI.secInfo.serverCert.getBase64DERString();



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits