| Index: background.js |
| =================================================================== |
| --- a/background.js |
| +++ b/background.js |
| @@ -50,6 +50,7 @@ |
| var NotificationStorage = require("notification").Notification; |
| var initAntiAdblockNotification = require("antiadblockInit").initAntiAdblockNotification; |
| var parseFilters = require("filterValidation").parseFilters; |
| +var composeFilters = require("filterComposer").composeFilters; |
| // Some types cannot be distinguished |
| RegExpFilter.typeMap.OBJECT_SUBREQUEST = RegExpFilter.typeMap.OBJECT; |
| @@ -562,6 +563,12 @@ |
| htmlPages.set(sender.page, null); |
| refreshIconAndContextMenu(sender.page); |
| break; |
| + case "compose-filters": |
| + sendResponse(composeFilters( |
| + msg.tagName, msg.id, msg.src, msg.style, |
| + msg.classes, msg.urls, new URL(msg.baseURL) |
| + )); |
| + break; |
| case "forward": |
| if (sender.page) |
| { |