[Pkg-mozext-maintainers] Bug#946808: webext-ublock-origin: Element picker and cosmetic filters broken with Chromium 78 due to symlinks
Daniel Gröber
deb at dxld.at
Mon Dec 16 01:19:40 GMT 2019
Package: webext-ublock-origin
Version: 1.22.2+dfsg-1~deb10u1
Severity: important
Dear Maintainer,
I belive a chromium security update (version 78.0.3904.108-1~deb10u1)
a while ago broke the use of symlinks in this extension. Strangely
most things still work but at least the content_scripts declared in
the extension manifest seem to be, silently, not loaded.
To reproduce the problem: click the "Element zapper mode" or "Element
picker mode" buttons in the extension menu and observe that nothing
happens.
Further it is possible to observe that the uBlock content scripts are
not loaded by trying to access the commonly used 'vAPI' variable in
DevTools:
- Open any page with uBlock active,
- Open DevTools,
- Enter 'vAPI' or 'window.vAPI' in "Console" window,
- Get the following error error: Uncaught ReferenceError: vAPI is not defined
If I copy the extension directory from /usr somewhere else while
dereferencing symlinks the element-picker starts working again:
$ cp -aL /usr/share/chromium/extensions/ublock-origin/ /tmp/
To confirm that the problem is not related to some extension settings
I also tried copying with symlinks still in place:
$ cd /tmp
$ mkdir -p usr/share/mozilla/extensions/\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}/
$ mkdir -p usr/share/chromium/extensions/
$ cp -a /usr/share/mozilla/extensions/\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}/uBlock0 at raymondhill.net/ \
usr/share/mozilla/extensions/\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}/
$ cp -a /usr/share/chromium/extensions/ublock-origin/ \
usr/share/chromium/extensions
(Awkward copying of mozilla extension is necessary due to use of
relative symlinks)
This copy of the extension also exhibits the same problem, confirming
that setting have nothing to do with it as the loaded extension ID is
different.
I've tested with the old chromium versions 76.0.3809.100-1~deb10u1 and
78.0.3904.97-1~deb10u1 in a VM and confirmed that the element-picker
still works there. After the upgrade to 78.0.3904.108-1~deb10u1 the
described breakage occurs.
Thanks,
--Daniel
-- System Information:
Debian Release: 10.2
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-3-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
webext-ublock-origin depends on no packages.
Versions of packages webext-ublock-origin recommends:
ii chromium 78.0.3904.108-1~deb10u1
ii firefox-esr 68.3.0esr-1~deb10u1
Versions of packages webext-ublock-origin suggests:
pn ublock-origin-doc <none>
-- no debconf information
More information about the Pkg-mozext-maintainers
mailing list