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

sysrqb at torproject.org sysrqb at torproject.org
Wed Oct 7 03:51:52 UTC 2020


commit b17829ec5fa8a1719a2443ba8a5c29fc1a8fae8e
Author: Alex Catarineu <acat at torproject.org>
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();





More information about the tbb-commits mailing list