Due to a [change][] in webkit that introduced a default error page the
the webkit/test_tabhistory.py::test_titles broke with the active tab
because network access is disable in the webpage fixture.
This change disables the default error pages in the fixture by telling
the error notify thing that it doesn't support doing anything with the
errors. It also disables the `ChooseMultipleFilesExtension` which should
be used with this fixture since we override that for real in qutebrowser
I'm declaring the class inside the method because I don't know how to
skip declaring a class in stubs.py with importskip.
change: https://github.com/annulen/webkit/commit/3b3724183bbe
The check being done only catches lone % signs, and only on some versions of
Python: https://bugs.python.org/issue35066
Since we do the real formatting in sqlite anyways, just drop it, as we can't
realistically validate it.
Fixes#4693
By default, timers are not single-shot, which means they will keep
firing every `interval` seconds after being started. This is unnecessary
for the keyhint timer, and causes it to eat ~100% CPU with
keyhint.delay=0.
Fixes#4742.
If a window is closed when a prompt is displayed on all windows, leaving prompt
mode later would cause a crash.
This patch fixes the crash simply by ignoring the RegistryUnavailableError
caused by looking up a non-existent window.
Fixes#3378.
Otherwise, log.py tries to import QtCore, but at this early point (before
running earlyinit) we shouldn't rely on PyQt being available.
This restores the graphical error message shown when PyQt is missing.
This reverts 621dab5b04 which caused all tests to
depend on a QApplication.
This way, we make sure to initialize testdata_scheme early enough when the
webengineview fixture is used.
SVGs must have a maximum size of 256 pixels or smaller.
Not sure how that even makes sense for vector graphics.
Anyways, Flathub checks for compliance and will fail the
build if the icon is too big. This change should not have
any *real* consequences.
With an element like this in the page:
<h2 id="_qutebrowser">qutebrowser</h2>
accessing window._qutebrowser will return the HTMLElement (thanks, JS...),
making qutebrowser's JS think it's already initialized when it actually isn't.
Fixes#4633