Skip to content
Snippets Groups Projects
Commit dbec6cf6 authored by cypherpunks1's avatar cypherpunks1
Browse files

fixup! Bug 23247: Communicating security expectations for .onion

Bug 41785: Show http onion resources as secure in network monitor
parent 4c0986cb
Branches
No related tags found
1 merge request!646Bug 41785: Show http onion resources as secure in network monitor
......@@ -600,6 +600,9 @@ var NetworkHelper = {
// The request did not contain any security info.
if (!securityInfo) {
if (httpActivity.hostname && httpActivity.hostname.endsWith(".onion")) {
info.state = "secure";
}
return info;
}
......@@ -651,7 +654,11 @@ var NetworkHelper = {
// schemes other than https and wss are subject to
// downgrade/etc at the scheme level and should always be
// considered insecure
if (httpActivity.hostname && httpActivity.hostname.endsWith(".onion")) {
info.state = "secure";
} else {
info.state = "insecure";
}
} else if (state & wpl.STATE_IS_SECURE) {
// The connection is secure if the scheme is sufficient
info.state = "secure";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment