[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-102.9.0esr-12.5-1] fixup! Bug 23247: Communicating security expectations for .onion
Pier Angelo Vendrame (@pierov)
git at gitlab.torproject.org
Fri Mar 31 18:01:59 UTC 2023
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/31088582234862718addd7c8f822cd3e55250fcd
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/31088582234862718addd7c8f822cd3e55250fcd
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20230331/4d534c90/attachment.htm>
More information about the tor-commits
mailing list