Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: lib/filterClasses.js

Issue 5672992042385408: Issue 2503 - Inconsistent behavior: $document flag implied for exception rules with protocol includ… (Closed)
Left Patch Set: Created May 18, 2015, 5:51 p.m.
Right Patch Set: Updated comment Created May 18, 2015, 6:05 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 DTD: 1, 735 DTD: 1,
736 MEDIA: 16384, 736 MEDIA: 16384,
737 FONT: 32768, 737 FONT: 32768,
738 738
739 BACKGROUND: 4, // Backwards compat, same as IMAGE 739 BACKGROUND: 4, // Backwards compat, same as IMAGE
740 740
741 POPUP: 0x10000000, 741 POPUP: 0x10000000,
742 ELEMHIDE: 0x40000000 742 ELEMHIDE: 0x40000000
743 }; 743 };
744 744
745 // ELEMHIDE, POPUP option shouldn't be there by default 745 // DOCUMENT, ELEMHIDE, POPUP options shouldn't be there by default
746 RegExpFilter.prototype.contentType &= ~(RegExpFilter.typeMap.DOCUMENT | RegExpFi lter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP); 746 RegExpFilter.prototype.contentType &= ~(RegExpFilter.typeMap.DOCUMENT | RegExpFi lter.typeMap.ELEMHIDE | RegExpFilter.typeMap.POPUP);
747 747
748 /** 748 /**
749 * Class for blocking filters 749 * Class for blocking filters
750 * @param {String} text see Filter() 750 * @param {String} text see Filter()
751 * @param {String} regexpSource see RegExpFilter() 751 * @param {String} regexpSource see RegExpFilter()
752 * @param {Number} contentType see RegExpFilter() 752 * @param {Number} contentType see RegExpFilter()
753 * @param {Boolean} matchCase see RegExpFilter() 753 * @param {Boolean} matchCase see RegExpFilter()
754 * @param {String} domains see RegExpFilter() 754 * @param {String} domains see RegExpFilter()
755 * @param {Boolean} thirdParty see RegExpFilter() 755 * @param {Boolean} thirdParty see RegExpFilter()
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 function ElemHideException(text, domains, selector) 930 function ElemHideException(text, domains, selector)
931 { 931 {
932 ElemHideBase.call(this, text, domains, selector); 932 ElemHideBase.call(this, text, domains, selector);
933 } 933 }
934 exports.ElemHideException = ElemHideException; 934 exports.ElemHideException = ElemHideException;
935 935
936 ElemHideException.prototype = 936 ElemHideException.prototype =
937 { 937 {
938 __proto__: ElemHideBase.prototype 938 __proto__: ElemHideBase.prototype
939 }; 939 };
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld