Index: webrequest.js |
=================================================================== |
--- a/webrequest.js |
+++ b/webrequest.js |
@@ -16,6 +16,7 @@ |
*/ |
var FilterNotifier = require("filterNotifier").FilterNotifier; |
+var RegExpFilter = require("filterClasses").RegExpFilter; |
var platform = require("info").platform; |
var onFilterChangeTimeout = null; |
@@ -36,6 +37,12 @@ |
'load': true |
}; |
+ext.webRequest.indistinguishableTypes.forEach(function(types) |
+{ |
+ for (var i = 1; i < types.length; i++) |
+ RegExpFilter.typeMap[types[i]] = RegExpFilter.typeMap[types[0]]; |
+}); |
+ |
FilterNotifier.addListener(function(action) |
{ |
if (action in importantNotifications) |