qutebrowser / qutebrowser

A keyboard-driven, vim-like browser based on Python and Qt.
https://www.qutebrowser.org/
GNU General Public License v3.0
9.45k stars 1.01k forks source link

Can't view page source when using the uBlock Origin filter 'Badware' #8237

Open cjbayliss opened 1 week ago

cjbayliss commented 1 week ago

Version info:

qutebrowser v3.2.0
Git commit: 
Backend: QtWebEngine 6.7.1
  based on Chromium 118.0.5993.220
  with security patches up to 124.0.6367.202 (plus any distribution patches)
  (source: api)
Qt: 6.7.1

CPython: 3.12.3
PyQt: 6.7.0

Qt wrapper info:
  PyQt6: success
  PyQt5: not imported
  -> selected: PyQt6 (via autoselect)

colorama: 0.4.6
jinja2: 3.1.4
pygments: 2.18.0
yaml: 6.0.1
adblock: 0.6.0
objc: no
PyQt6.QtWebEngineCore: 6.7.0
PyQt6.sip: 6.7.12
pdf.js: no
sqlite: 3.45.3
QtNetwork SSL: OpenSSL 3.0.13 30 Jan 2024

Style: Qt6CTProxyStyle
Platform plugin: wayland
OpenGL: Intel, 4.6 (Compatibility Profile) Mesa 24.0.9
Platform: Linux-6.9.4-gentoo-x86_64-Intel-R-_Core-TM-_i5-10310U_CPU_@_1.70GHz-with-glibc2.39, 64bit
Linux distribution: Gentoo Linux (gentoo)
Frozen: False
Imported from /usr/lib/python3.12/site-packages/qutebrowser
Using Python from /usr/bin/python3.12
Qt library executable path: /usr/lib64/qt6/libexec, data path: /usr/share/qt6

Paths:
cache: /run/user/1000/cache/qutebrowser
config: /home/cjb/.config/qutebrowser
data: /home/cjb/.local/share/qutebrowser
runtime: /run/user/1000/qutebrowser
system data: /usr/share/qutebrowser

Autoconfig loaded: no
Config.py: /home/cjb/.config/qutebrowser/config.py has been loaded
Uptime: 0:56:36

Does the bug happen if you start with --temp-basedir?:

No.

Description

You can't view the page source when using the uBlock Origin filter 'Badware'

How to reproduce

Add https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt to your adblock lists, update the adblock list, then press gf and see that the view source page gets blocked.

On some sites this is a qutebrowser based error page, but on https://chat.sr.ht this is a chromium based error page.

For a full copy of my config at the time of reporting: https://codeberg.org/cjb/conf/src/commit/43b1bb9b503b6065d6cf2adfe1dece05290b9514/.config/qutebrowser/config.py

The-Compiler commented 1 week ago

Reproducer with local file:

qutebrowser --debug --temp-basedir -s content.blocking.adblock.lists '["file:///home/florian/proj/qutebrowser/git/badware.txt"]' ':adblock-update' ':open qutebrowser.org' ':cmd-later 1000 view-source'

It's this rule in there: *$doc,domain=tikimall.*|~tiki.vn

Not sure off-hand why though! cc @ArniDagur if you happen to have a clue.