qutebrowser/tests/unit
Florian Bruhin 7462939868 Disable DocumentPictureInPicture API
The DocumentPictureInPicture JS API added in Chromium 116 is not implemented in
QtWebEngine. This results in createWindow() being called with a window type with
random value, which then causes qutebrowser to bail out:

    Traceback (most recent call last):
    File ".../qutebrowser/browser/webengine/webview.py", line 123, in createWindow
        raise ValueError("Invalid wintype {}".format(debug_type))
    ValueError: Invalid wintype 843995690

Until this is fixed in Qt, we pass an argument to Chromium to disable the API
entirely, so that web pages hopefully fall back to something else.

In the case of the new Google Huddle feature, this results in them still working
with an on-page overlay instead.

Thanks to Joshua Cold and Vivia for helping to debug this!

Fixes #8449
See https://bugreports.qt.io/browse/QTBUG-132681

(cherry picked from commit d272804126)
2025-01-09 12:20:45 +01:00
..
api reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
browser Fix lint 2024-12-09 17:57:21 +01:00
commands Fix remaining references to old commands 2023-08-15 20:15:48 +02:00
completion Add test to ensure `set_model(None)` cleans up 2024-06-09 18:16:01 +12:00
components Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
config Disable DocumentPictureInPicture API 2025-01-09 12:20:45 +01:00
extensions Revert "walk_module workaround for PyInstaller" 2023-10-28 10:44:55 +13:00
javascript Use str.removeprefix() and str.removesuffix() 2024-10-13 18:24:44 +02:00
keyinput Use str.removeprefix() and str.removesuffix() 2024-10-13 18:24:44 +02:00
mainwindow reuse: Replace last copyright texts 2023-07-23 12:59:11 +02:00
misc Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
scripts Fix lint/tests 2023-07-23 14:10:10 +02:00
utils Remove all importlib_resources backport usage 2024-10-13 18:24:44 +02:00
test_app.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00
test_qt_machinery.py Use builtin list/dict/set/... types for annotations 2024-10-15 11:54:49 +02:00
test_qutebrowser.py reuse: Initial copyright text update for myself 2023-07-23 12:49:05 +02:00