Skip to main content
Sign in
Snippets Groups Projects
Commit 31088582 authored by cypherpunks1's avatar cypherpunks1
Browse files

fixup! Bug 23247: Communicating security expectations for .onion

Bug 41533: Fix onion detection on the page info window
parent 50201d24
1 merge request!603Bug 41533: Fix onion detection on the page info window
......@@ -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;
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment