Commit Graph

83 Commits (41133dffd29f79b5281dae254142c79d0493da63)

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.
5 years ago
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
5 years ago
Raymond Hill d6471b3556
Fix https://github.com/uBlockOrigin/uMatrix-issues/issues/159 5 years ago
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.
5 years ago
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.
6 years ago
Raymond Hill 0f7c82a2d9
fix obsolete comment 6 years ago
Raymond Hill 494cd9e95c
fix https://github.com/uBlockOrigin/uMatrix-issues/issues/72 6 years ago
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
6 years ago
Raymond Hill 2256552899
fix https://github.com/gorhill/uMatrix/issues/951, https://github.com/uBlockOrigin/uMatrix-issues/issues/62 6 years ago
Raymond Hill f075f96c58
fix #589: use DOM-based CSP directive (idea from 6e80d3f130) 6 years ago
Raymond Hill 46669115dc
code review: various fixes
- Ensure REFERER spoofing is always reported in logger
- Fixed possible exception thrown when asynchronously reporting cookies
6 years ago
Raymond Hill fe995d2bc8
fix #995, #945; other minor fixes; opportunistic code review 6 years ago
Raymond Hill 98e012599c
code review: attempt to lookup actual tab id of behind-the-scene requests 6 years ago
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()
6 years ago
Raymond Hill 9b9d7e586f
fix #967 6 years ago
Miguel de Moura 2f0f038668 Update hyperlink auditing HTML spec url (#942) 6 years ago
Raymond Hill 335709bc50
fix #940 6 years ago
Raymond Hill 01216b9520
code review: also take into account modifications to http headers 6 years ago
Raymond Hill ebfe08e0a2
fix #938 6 years ago
Raymond Hill c89a4cfe5e
use worker-src on Firefox 58+ -- turns out this was fixed weeks ago 7 years ago
Raymond Hill 08275aa527
code review: mind inline styles too 7 years ago
Raymond Hill 1228ee55d6
add mitigation for #912 7 years ago
Raymond Hill 6df5e5212c
code review following feedback: 821e45751a (commitcomment-26587989) 7 years ago
Raymond Hill 60cd27c347
code review for 821e45751a2dff18: simplify 7 years ago
Raymond Hill 821e45751a
reliably report web worker and inline script presence 7 years ago
Raymond Hill 6ecea191b4
put back space: turns out it's needed for detection 7 years ago
Raymond Hill 2d14874d69
code review for deeb211c5d 7 years ago
Raymond Hill deeb211c5d
add ability to block web workers on a per-site basis 7 years ago
Raymond Hill 19c32608f3
add visual cue to hint at relevance of per-scope switches 7 years ago
gorhill 8608b29ded
fix ##773 + added logger output for CSP modification 7 years ago
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
7 years ago
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.
7 years ago
gorhill 9e2dd8108c
code review: further simplifying; jshint-ing 7 years ago
gorhill ebac131247
code review: simplify code for counting distinct URLs 7 years ago
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.
7 years ago
gorhill 4765db4d86 code review: simplify CSP injection code 7 years ago
gorhill 27dea59284 fix #759 7 years ago
gorhill e8bcc4ca9f fix #752 7 years ago
gorhill 6e8ebd8253 fix #727 7 years ago
gorhill 585802510a report raw type in logger instead of normalized type 7 years ago
gorhill c2d7096500 refactor assets management; working webextension version 7 years ago
Alexey Petrenko 3b5b572f36 Fixed broken link 8 years ago
gorhill 83b342d4e4 fix #597 + code review + merge media and image 8 years ago
gorhill 93f963bc6c this fixes #538 8 years ago
gorhill 6eaa85eee1 this should fix #357, #395 9 years ago
gorhill 8c6b94e213 this addresses #358 for the time being 9 years ago
gorhill c03d38a5c6 this fixes #349 9 years ago
gorhill 2224ece1a5 this fixes #320 9 years ago
gorhill 83cc6053eb more minor details fixed 9 years ago
gorhill 6bc728f8b8 refactoring of inline script blocking + improving AMO validation 9 years ago