diff --git a/src/css/logger-ui.css b/src/css/logger-ui.css index 949754500..c95fb7627 100644 --- a/src/css/logger-ui.css +++ b/src/css/logger-ui.css @@ -454,6 +454,7 @@ body[dir="rtl"] #netFilteringDialog .dialog > div.headers > span.tools { border: 1px solid #ddc; border-radius: 4px; color: #888; + cursor: pointer; font-size: 1.8em; margin: 0.1em; padding: 0.25em 0.5em; diff --git a/src/js/messaging.js b/src/js/messaging.js index 776cf1928..c8b47c20a 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -1079,13 +1079,13 @@ var getURLFilteringData = function(details) { colorEntry = colors[url] = { r: 0, own: false }; if ( suf.evaluateZ(context, url, type).r !== 0 ) { colorEntry.r = suf.r; - colorEntry.own = suf.context === context && suf.url === url && suf.type === type; + colorEntry.own = suf.r !== 0 && suf.context === context && suf.url === url && suf.type === type; } if ( response.dirty ) { continue; } puf.evaluateZ(context, url, type); - response.dirty = colorEntry.own !== (puf.context === context && puf.url === url && puf.type === type); + response.dirty = colorEntry.own !== (puf.r !== 0 && puf.context === context && puf.url === url && puf.type === type); } return response; }; diff --git a/src/js/url-net-filtering.js b/src/js/url-net-filtering.js index 2891a268b..e5be493cc 100644 --- a/src/js/url-net-filtering.js +++ b/src/js/url-net-filtering.js @@ -274,9 +274,9 @@ URLNetFiltering.prototype.copyRules = function(other, context, urls, type) { while ( i-- ) { url = urls[i]; other.evaluateZ(context, url, type); - otherOwn = other.context === context && other.url === url && other.type === type; + otherOwn = other.r !== 0 && other.context === context && other.url === url && other.type === type; this.evaluateZ(context, url, type); - thisOwn = this.context === context && this.url === url && this.type === type; + thisOwn = this.r !== 0 && this.context === context && this.url === url && this.type === type; if ( otherOwn && !thisOwn ) { this.setRule(context, url, type, other.r); changed = true;