Commit Graph

46 Commits

Author SHA1 Message Date
Nik Rolls be8e514464 Prevent possible error when a node has no children (#2108)
Compat with Edge; SVG nodes don't have a `children` property and therefore this throws an error whenever an SVG is added, removed or moved in the DOM.
2016-10-30 16:04:53 -04:00
gorhill cd81f866b9 code review: benefit from ES6 Set() in content script
fall back on legacy browser-specific polyfill code if required.
2016-10-09 11:09:25 -04:00
gorhill a1fa4d0fe9 fix #2060 2016-10-08 15:14:24 -04:00
gorhill b20b43e351 fix #2011: improve heuristic on when to give up on DOM surveying 2016-10-06 10:49:46 -04:00
gorhill 21f3dc83ec code review re. #1912 2016-09-24 14:42:31 -04:00
gorhill 0a15a95ad9 fix #1912 2016-09-22 12:18:01 -04:00
gorhill 33234fdd8b fix #1952 2016-08-31 17:50:49 -04:00
gorhill e6d1a1f896 fix #1927 (revised commit msg due to missing quote) 2016-08-22 19:14:37 -04:00
gorhill 17724b2fec code review re. `matches-css`: to support pseudo class `:after` 2016-08-19 08:46:39 -04:00
gorhill 48416bebee code review: minor fine tuning 2016-08-14 08:51:52 -04:00
gorhill fb7bd0cc1d fix #1893 2016-08-13 21:45:01 -04:00
gorhill e9157bafb7 fix #1892, #1891 2016-08-13 16:42:58 -04:00
gorhill 839fed43ae minor code review 2016-08-12 11:31:13 -04:00
gorhill 6fd0bb4291 more refactoring of content script: better modularization of various components 2016-08-12 08:55:35 -04:00
gorhill 8d35a05c05 code review re. 6fab1fe585 2016-08-08 19:41:53 -04:00
gorhill 6fab1fe585 code review domCollapser: avoid duplicates -- helps for https://bugzilla.mozilla.org/show_bug.cgi?id=1232354 2016-08-08 09:59:57 -04:00
gorhill 458b9758ef minor code review 2016-08-06 23:29:58 -04:00
gorhill 5d572f54de fix #1873 2016-08-06 21:07:05 -04:00
gorhill 372f4b4c86 minor code review 2016-08-06 12:09:18 -04:00
gorhill 16acbca1fa minor code review re. https://bugzilla.mozilla.org/show_bug.cgi?id=1232354 2016-08-06 10:20:11 -04:00
gorhill a5a9e0ce7c replace `csstext()` with more flexible/efficient `matches-css()` 2016-08-03 09:20:55 -04:00
gorhill 1ca285f8bd add new cosmetic operator `csstext()` 2016-08-03 08:06:51 -04:00
gorhill 0165d2e066 minor code review 2016-07-31 18:43:17 -04:00
gorhill 788ff0a21f code review: do not delay injection of specific cosmetic filters 2016-07-26 08:21:03 -04:00
gorhill 4da4709ed5 hopefully fix #1782: treat data: URI as 1st-party resources 2016-07-25 08:18:17 -04:00
gorhill 6895e6c7f9 minor code reivew: no need to scope to root for re-styling filters 2016-07-16 18:15:42 -04:00
gorhill 9e7fbb857b cosmetic filtering: stop surveying and/or filtering after too many consecutive misses 2016-07-12 13:29:30 -04:00
gorhill dce5487fc0 i need a vacation 2016-07-09 21:49:28 -04:00
gorhill 7e4e69fd84 returning self.Set was not a good idea 2016-07-09 21:40:07 -04:00
gorhill d12ae9277c fix silly bug from last commit (breaking Pale Moon) 2016-07-09 20:00:18 -04:00
gorhill 02e6b088ef further refactoring + performance: skip surveying DOM after too many empty resultset 2016-07-09 19:21:46 -04:00
gorhill 682e0c8916 fix #1773 2016-07-02 11:07:12 -04:00
gorhill 973d3e79c1 minor code review 2016-07-01 14:33:43 -04:00
gorhill 9d8499b4b1 fix #1770 2016-07-01 12:54:10 -04:00
gorhill 7f9c01d38f fix https://github.com/gorhill/uBlock/issues/769#issuecomment-229873048 and more completely #762 + dom inspector regressions 2016-07-01 08:09:48 -04:00
gorhill eabeedcd04 code review: use already available collections where possible 2016-07-01 06:44:02 -04:00
gorhill 8374799c7d various minor code review 2016-06-30 22:03:29 -04:00
gorhill a3f6a4186a instrumenting content scripts to make for easy profiling when needed 2016-06-30 16:10:38 -04:00
gorhill e6c38257be fix broken xpath operator + various code review 2016-06-30 10:23:38 -04:00
gorhill 87d0cce9b2 remove stray comma separator in injected CSS declarations 2016-06-29 18:12:21 -04:00
gorhill 3752ac4880 fix #781: support for explicit style properties 2016-06-29 17:07:33 -04:00
gorhill a5f7cbf969 new content script code: fix regression 2016-06-29 09:33:04 -04:00
gorhill e99d993a4c new content script code: perf work re. high-high generics
Now splitting high-high generics in two subgroups: one group for
simple selectors, another group for complex selectors. Turns out
the great majority of high-high generics are simple selectors, and
simple selectors can be applied incrementally with DOM changes, as
opposed to complex selectors. This brings in a significant perf.
improvement in the processing of high-high generics (previously,
all high-high generic selectors were processed as one big complex
selector).
2016-06-28 22:01:15 -04:00
gorhill b65699aef2 new content script code: code review, fine tuning perf 2016-06-28 19:45:11 -04:00
gorhill 2d68c8ee6c new content script code: code review, fine tuning perf 2016-06-28 09:06:14 -04:00
gorhill 6c513629bf refactor content script code + add support for new `:has` & `:xpath` filters
Aside extending cosmetic filtering abilities, I expect this will
also take care of some long standing issues (I will have to find them
and mark them as "resolved" by this commit, as time allow).
2016-06-27 19:09:04 -04:00