1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-03 02:44:57 +12:00
Commit graph

83 commits

Author SHA1 Message Date
Raymond Hill 9b292304d3
Bring uMatrix up to date
Notably:
- Import logger improvements from uBO
- Import CNAME uncloaking from uBO
- Import more improvements from uBO
- Make use of modern JS features

This should un-stall further development of uMatrix.
2019-12-20 12:24:18 -05:00
Raymond Hill c3919da2c2
Add more cases for documentUrl to be safely used as root context
Related issue:
- https://github.com/uBlockOrigin/uMatrix-issues/issues/155
2019-05-28 11:09:11 -04:00
Raymond Hill d6471b3556
Fix https://github.com/uBlockOrigin/uMatrix-issues/issues/159 2019-05-24 13:08:27 -04:00
Raymond Hill 901c325eab
Use documentUrl for context purpose when available
Related issue:
- https://github.com/uBlockOrigin/uMatrix-issues/issues/155

documentUrl was currently used on onBeforeRequest but not
for onBeforeSendHeaders.
2019-05-20 12:07:02 -04:00
Raymond Hill fb94c85df1
Add ability to block early at launch; adapt to changes in Chromium 72+
Related issues:

- "Requests bypass uMatrix on Firefox start"
  <https://github.com/uBlockOrigin/uMatrix-issues/issues/69>

  Using same approach as with uBO:
  https://github.com/gorhill/uBloc/commit/41548be6be35

  `suspendTabsUntilReady` advanced setting added to "More" pane,
  useful only for Chromium -- the blocking of early network
  requests is enforced unconditionally on Firefox (because it
  supports returning Promises from webRequest handlers).

- "Cookies leaking temporarily"
  <https://github.com/uBlockOrigin/uMatrix-issues/issues/74>

  Changes in the webRequest API in Chromium 72+ caused uMatrix
  to fail to process `Cookie` and `Referer` headers on that
  platform.
2019-01-01 08:34:00 -05:00
Raymond Hill 0f7c82a2d9
fix obsolete comment 2018-10-09 20:18:11 -04:00
Raymond Hill 494cd9e95c
fix https://github.com/uBlockOrigin/uMatrix-issues/issues/72 2018-10-09 19:43:02 -04:00
Raymond Hill 886664abd4
fix https://github.com/uBlockOrigin/uMatrix-issues/issues/59 and other unrelated quirks
Unrelated quirks:

- missing icons for magnifier (because https://github.com/uBlockOrigin/uMatrix-issues/issues/68)
- missing i18n string
- use separate file for CSS styles
2018-10-06 10:51:34 -04:00
Raymond Hill 2256552899
fix https://github.com/gorhill/uMatrix/issues/951, https://github.com/uBlockOrigin/uMatrix-issues/issues/62 2018-09-29 06:31:59 -04:00
Raymond Hill f075f96c58
fix #589: use DOM-based CSP directive (idea from 6e80d3f130) 2018-09-17 07:38:28 -04:00
Raymond Hill 46669115dc
code review: various fixes
- Ensure REFERER spoofing is always reported in logger
- Fixed possible exception thrown when asynchronously reporting cookies
2018-06-17 08:22:47 -04:00
Raymond Hill fe995d2bc8
fix #995, #945; other minor fixes; opportunistic code review 2018-04-14 07:09:23 -04:00
Raymond Hill 98e012599c
code review: attempt to lookup actual tab id of behind-the-scene requests 2018-04-13 16:32:48 -04:00
Raymond Hill 31cc15ca6c
lots of informal fixes
- us integer tab id -- do not stringify anymore
- improved the parsing of hosts files
- better handling of behind-the-scene network requests when a
  context is provided by the webRequest API
- imported webextFlavor code from uBO
- converted instances of object-as-dict to Map()
2018-04-13 10:24:50 -04:00
Raymond Hill 9b9d7e586f
fix #967 2018-03-24 17:20:18 -04:00
Miguel de Moura 2f0f038668 Update hyperlink auditing HTML spec url (#942) 2018-02-04 15:27:43 -05:00
Raymond Hill 335709bc50
fix #940 2018-02-04 09:10:17 -05:00
Raymond Hill 01216b9520
code review: also take into account modifications to http headers 2018-02-02 07:51:11 -05:00
Raymond Hill ebfe08e0a2
fix #938 2018-02-01 08:25:23 -05:00
Raymond Hill c89a4cfe5e
use worker-src on Firefox 58+ -- turns out this was fixed weeks ago 2018-01-17 09:25:01 -05:00
Raymond Hill 08275aa527
code review: mind inline styles too 2018-01-16 10:44:06 -05:00
Raymond Hill 1228ee55d6
add mitigation for #912 2018-01-11 17:11:41 -05:00
Raymond Hill 6df5e5212c
code review following feedback: 821e45751a (commitcomment-26587989) 2018-01-02 08:16:25 -05:00
Raymond Hill 60cd27c347
code review for 821e45751a2dff18: simplify 2018-01-01 13:53:20 -05:00
Raymond Hill 821e45751a
reliably report web worker and inline script presence 2018-01-01 13:37:19 -05:00
Raymond Hill 6ecea191b4
put back space: turns out it's needed for detection 2017-12-31 19:30:25 -05:00
Raymond Hill 2d14874d69
code review for deeb211c5d 2017-12-31 19:25:50 -05:00
Raymond Hill deeb211c5d
add ability to block web workers on a per-site basis 2017-12-31 18:18:10 -05:00
Raymond Hill 19c32608f3
add visual cue to hint at relevance of per-scope switches 2017-12-21 08:30:05 -05:00
gorhill 8608b29ded
fix ##773 + added logger output for CSP modification 2017-12-09 18:25:32 -05:00
gorhill c4c0d450fd
code review of request headers processing code
- drop needless overhead now that legacy support is dropped
- output extra information about the headers which are
  modified and their value before/after modification
2017-12-09 12:32:41 -05:00
gorhill 73c8da05b7
Fix #335
Additionally, performance improvements:
- Reduce overhead of collapsing elements
  (see https://github.com/gorhill/uBlock/issues/2839)
- Cache decomposition of source hostname when matrix-filtering

Also, various code review.
2017-12-08 07:54:49 -05:00
gorhill 9e2dd8108c
code review: further simplifying; jshint-ing 2017-12-03 14:56:08 -05:00
gorhill ebac131247
code review: simplify code for counting distinct URLs 2017-12-03 11:40:27 -05:00
gorhill ad9d591b16
Fix #118, #271, #649, #771: removing flawed-at-the-core UA spoofer
The end result of the flawed UA spoofer was to accomplish the
OPPOSITE of the intended goal. UA spoofing for privacy purpose
turns out to be a whole complicated task on its own, and is
best undertaken as a separate dedicated extension -- assuming
it is possible at all.

In any case, this had no place in a "Privacy" section in uMatrix,
this was a bad idea to create this feature in the first place. It's
never too late to correct a bad idea, and this is the purpose of
this commit.
2017-12-01 08:17:30 -05:00
gorhill 4765db4d86 code review: simplify CSP injection code 2017-04-27 10:38:22 -04:00
gorhill 27dea59284 fix #759 2017-04-27 08:10:54 -04:00
gorhill e8bcc4ca9f fix #752 2017-04-02 15:35:40 -04:00
gorhill 6e8ebd8253 fix #727 2017-04-01 16:46:27 -04:00
gorhill 585802510a report raw type in logger instead of normalized type 2017-03-29 10:06:08 -04:00
gorhill c2d7096500 refactor assets management; working webextension version 2017-03-29 09:12:12 -04:00
Alexey Petrenko 3b5b572f36 Fixed broken link 2016-10-04 11:40:06 +05:00
gorhill 83b342d4e4 fix #597 + code review + merge media and image 2016-07-30 09:58:13 -04:00
gorhill 93f963bc6c this fixes #538 2016-03-31 08:57:54 -04:00
gorhill 6eaa85eee1 this should fix #357, #395 2015-11-15 17:33:05 -05:00
gorhill 8c6b94e213 this addresses #358 for the time being 2015-11-01 09:09:06 -05:00
gorhill c03d38a5c6 this fixes #349 2015-09-09 00:31:28 -04:00
gorhill 2224ece1a5 this fixes #320 2015-08-13 11:15:28 -04:00
gorhill 83cc6053eb more minor details fixed 2015-05-11 16:48:29 -04:00
gorhill 6bc728f8b8 refactoring of inline script blocking + improving AMO validation 2015-05-09 19:18:16 -04:00