Skip to content
This repository was archived by the owner on Nov 15, 2017. It is now read-only.

Commit 7b4b465

Browse files
committed
this fixes #237
1 parent 5cf9a3a commit 7b4b465

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

js/httpsb.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,11 @@ HTTPSB.autoCreateTemporarySiteScope = function(pageURL) {
339339
if ( !this.isGlobalScopeKey(scopeKey) ) {
340340
return;
341341
}
342+
// Do not auto-create a site-level scope if a matrix filtering is off.
343+
// https://github.com/gorhill/httpswitchboard/issues/237
344+
if ( this.getTemporaryMtxFiltering('*') !== true ) {
345+
return;
346+
}
342347
// Do not auto-create a site-level scope if there is a whitelist rule
343348
// for the domain or hostname of the pageURL
344349
var pageDomain = this.URI.domainFromURI(pageURL);
@@ -417,6 +422,11 @@ HTTPSB.whitelistPermanently = function(scopeKey, type, hostname) {
417422

418423
HTTPSB.autoWhitelistTemporarilyPageDomain = function(pageURL) {
419424
var scopeKey = this.temporaryScopeKeyFromPageURL(pageURL);
425+
// Do not auto-whitelist if a matrix filtering is off.
426+
// https://github.com/gorhill/httpswitchboard/issues/237
427+
if ( this.getTemporaryMtxFiltering(scopeKey) !== true ) {
428+
return false;
429+
}
420430
var domain = this.URI.domainFromURI(pageURL);
421431
// 'rp' as in 'red pale', i.e. graylisted-blocked:
422432
// Autowhitelist only if the domain is graylisted and blocked.

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "__MSG_extName__",
44
"short_name": "HTTPSB",
5-
"version": "0.8.7.0",
5+
"version": "0.8.7.1",
66
"description": "__MSG_extShortDesc__",
77
"icons": {
88
"16": "icon_16.png",

0 commit comments

Comments
 (0)