Pier Angelo Vendrame pushed to branch tor-browser-102.9.0esr-12.5-1 at The Tor Project / Applications / Tor Browser
Commits: 31088582 by cypherpunks1 at 2023-03-31T09:49:11-08:00 fixup! Bug 23247: Communicating security expectations for .onion
Bug 41533: Fix onion detection on the page info window
- - - - -
1 changed file:
- browser/base/content/pageinfo/security.js
Changes:
===================================== browser/base/content/pageinfo/security.js ===================================== @@ -66,7 +66,12 @@ var security = { Ci.nsIWebProgressListener.STATE_LOADED_MIXED_DISPLAY_CONTENT); var isEV = ui.state & Ci.nsIWebProgressListener.STATE_IDENTITY_EV_TOPLEVEL; var isOnion = false; - const hostName = this.windowInfo.hostName; + let hostName; + try { + hostName = Services.eTLD.getBaseDomain(this.uri); + } catch (e) { + hostName = this.windowInfo.hostName; + } if (hostName && hostName.endsWith(".onion")) { isOnion = true; }
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/31088582...
tbb-commits@lists.torproject.org