1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00
uBlock/platform
Raymond Hill cbfd2ad942
Create a MVP version of uBOLite for Firefox
What does not work at the time of commit:

Cosmetic filtering does not work:

The content scripts responsible for cosmetic filtering fail when
trying to inject the stylesheets through document.adoptedStyleSheets,
with the following error message:

  XrayWrapper denied access to property Symbol.iterator
  (reason: object is not safely Xrayable).
  See https://developer.mozilla.org/en-US/docs/Xray_vision for more
  information. ... css-declarative.js:106:8

A possible solution is to inject those content scripts in the
MAIN world. However Firefox scripting API does not support MAIN
world injection at the moment.

Scriptlet-filtering does not work:

Because scriptlet code needs to be injected in the MAIN world,
and this is currently not supported by Firefox's scripting API,
see https://bugzilla.mozilla.org/show_bug.cgi?id=1736575

There is no count badge on the toolbar icon in Firefox, as it
currently does not support the `DNR.setExtensionActionOptions`
method.

Other than the above issues, it does appear uBO is blocking
properly with no error reported in the dev console.

The adoptedStyleSheets issue though is worrisome, as the
cosmetic filtering content scripts were designed with ISOLATED
world injection in mind. Being forced to inject in MAIN world
(when available) make things a bit more complicated as uBO
has to ensure it's global variables do not leak into the page.
2023-04-07 10:19:43 -04:00
..
browser Rewrite static filtering parser 2023-01-23 16:53:18 -05:00
chromium Add 64px toolbar icon for 4K displays 2023-03-27 12:59:39 -04:00
common Flush memory cache at key filtering profile changes 2023-04-03 10:19:06 -04:00
dig Fix selection of lists test/benchmark platform 2022-12-23 12:55:15 -05:00
firefox Add 64px toolbar icon for 4K displays 2023-03-27 12:59:39 -04:00
mv3 Create a MVP version of uBOLite for Firefox 2023-04-07 10:19:43 -04:00
nodejs Rewrite static filtering parser 2023-01-23 16:53:18 -05:00
npm Fix npm dev dependencies -- this fixes "make test" 2022-12-14 10:55:02 -05:00
opera Add 64px toolbar icon for 4K displays 2023-03-27 12:59:39 -04:00
safari Clarify that the code base was really old and obsolete 2019-09-22 09:57:38 -04:00
thunderbird Fix popup panel for Thunderbird 2022-06-18 11:18:27 -04:00