Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/chrome/content/code/HTTPS.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ const HTTPS = {
var isSTS = securityService.isSecureURI(
CI.nsISiteSecurityService.HEADER_HSTS, channel.URI, 0);
if (blob === null) {
// Abort insecure requests if HTTP Nowhere is on
if (httpNowhereEnabled && channel.URI.schemeIs("http") && !isSTS) {
// Abort insecure non-onion requests if HTTP Nowhere is on
if (httpNowhereEnabled && channel.URI.schemeIs("http") && !isSTS && !/\.onion$/.test(channel.URI.host)) {
IOUtil.abort(channel);
}
return false; // no rewrite
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/content/toolbar_button.xul
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
command="https-everywhere-menuitem-resetToDefaults" class="hide-on-disable"/>
<menuitem label="&https-everywhere.menu.viewAllRules;"
command="https-everywhere-menuitem-viewAllRules" class="hide-on-disable" />
<menuitem type="checkbox" id="http-nowhere-item" label="&https-everywhere.menu.blockHttpRequests;"
<menuitem type="checkbox" id="http-nowhere-item" label="&https-everywhere.menu.blockUnencryptedRequests;"
oncommand="httpsEverywhere.toolbarButton.toggleHttpNowhere()" class="hide-on-disable"/>
<menuseparator class="hide-on-disable"/>
<menuitem type="checkbox" id="https-everywhere-counter-item" label="&https-everywhere.menu.showCounter;"
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/locale/en/https-everywhere.dtd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!ENTITY https-everywhere.menu.observatory "SSL Observatory Preferences">
<!ENTITY https-everywhere.menu.globalEnable "Enable HTTPS Everywhere">
<!ENTITY https-everywhere.menu.globalDisable "Disable HTTPS Everywhere">
<!ENTITY https-everywhere.menu.blockHttpRequests "Block all HTTP requests">
<!ENTITY https-everywhere.menu.blockUnencryptedRequests "Block all unencrypted requests">
<!ENTITY https-everywhere.menu.showCounter "Show Counter">
<!ENTITY https-everywhere.menu.viewAllRules "View All Rules">

Expand Down