aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/static-net-filtering.js
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-03-27 13:00:55 -0400
committergorhill <rhill@raymondhill.net>2015-03-27 13:00:55 -0400
commitf2ff0edfaf4fdc6e02a8a0e65db73a104c2b1f9c (patch)
treeb0a946702c48ec6e467355c04a35098dbe4b5efe /src/js/static-net-filtering.js
parent5f8fd229205cb1bf8836e86667707e716b6d3c0a (diff)
downloaduBlock-f2ff0edfaf4fdc6e02a8a0e65db73a104c2b1f9c.zip
uBlock-f2ff0edfaf4fdc6e02a8a0e65db73a104c2b1f9c.tar.gz
uBlock-f2ff0edfaf4fdc6e02a8a0e65db73a104c2b1f9c.tar.bz2
this fixes #1013, #1062 (draft)
Diffstat (limited to 'src/js/static-net-filtering.js')
-rw-r--r--src/js/static-net-filtering.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js
index 29c3789..ba88697 100644
--- a/src/js/static-net-filtering.js
+++ b/src/js/static-net-filtering.js
@@ -63,7 +63,6 @@ var typeNameToTypeValue = {
'xmlhttprequest': 5 << 4,
'sub_frame': 6 << 4,
'other': 7 << 4,
- 'main_frame': 12 << 4,
'cosmetic-filtering': 13 << 4,
'inline-script': 14 << 4,
'popup': 15 << 4
@@ -2117,7 +2116,7 @@ FilterContainer.prototype.matchString = function(context) {
// Use exact type match for anything beyond `other`
// Also, be prepared to support unknown types
var type = typeNameToTypeValue[context.requestType] || typeOtherValue;
- if ( type > (7 << 4) ) {
+ if ( type > typeOtherValue ) {
return this.matchStringExactType(context, context.requestURL, context.requestType);
}