From 7a4c47db7bd480a04cc4da7cd829a548de9d9772 Mon Sep 17 00:00:00 2001 From: portix Date: Wed, 30 Nov 2011 10:44:55 +0100 Subject: Also add rules with attribute ~AA_DOCUMENT to the simple rules array. --HG-- branch : experimental --- src/adblock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/adblock.c') diff --git a/src/adblock.c b/src/adblock.c index 88a939a6..a88a8ca3 100644 --- a/src/adblock.c +++ b/src/adblock.c @@ -58,6 +58,7 @@ typedef enum _AdblockAttribute { /* inverse */ } AdblockAttribute; #define AA_FRAME (AA_SUBDOCUMENT | (AA_SUBDOCUMENT<pattern = rule; adrule->options = option; adrule->domains = domains; - if (!(attributes & ~(AA_DOCUMENT | AA_FRAME))) { + if (!(attributes & ~(AA_MAINFRAME | AA_FRAME))) { if (exception) g_ptr_array_add(_simple_exceptions, adrule); else -- cgit v1.2.3