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

sysrqb at torproject.org sysrqb at torproject.org
Fri Oct 2 17:11:55 UTC 2020


commit 43e12213f3b4a8a67def1542cfd082668056e953
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