diff options
author | Florian Bruhin <me@the-compiler.org> | 2023-06-30 15:32:46 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2023-06-30 15:32:46 +0200 |
commit | 693b25efd26d325a06ca8db516292b14094e7cbc (patch) | |
tree | 1490cdc5200ab7b17cae456b12d3b565dac08f55 /qutebrowser | |
parent | 7b630361789e6edfdaa0496af650db6521d37187 (diff) | |
download | qutebrowser-693b25efd26d325a06ca8db516292b14094e7cbc.tar.gz qutebrowser-693b25efd26d325a06ca8db516292b14094e7cbc.zip |
Add experimental_web_platform_features setting
Closes #7639
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/config/configdata.yml | 17 | ||||
-rw-r--r-- | qutebrowser/config/qtargs.py | 9 |
2 files changed, 25 insertions, 1 deletions
diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index bedcc2ade..8fbb67cb7 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -327,6 +327,23 @@ qt.chromium.sandboxing: - https://chromium.googlesource.com/chromium/src/\+/HEAD/docs/design/sandbox_faq.md[FAQ (Windows-centric)] # yamllint enable rule:line-length +qt.chromium.experimental_web_platform_features: + type: + name: String + valid_values: + - always: Enable experimental web platform features. + - auto: Enable experimental web platform features when using Qt 5. + - never: Disable experimental web platform features. + default: auto + backend: QtWebEngine + restart: true + desc: >- + Enables Web Platform features that are in development. + + This passes the `--enable-experimental-web-platform-features` flag to + Chromium. By default, this is enabled with Qt 5 to maximize compatibility + despite an aging Chromium base. + qt.highdpi: type: Bool default: false diff --git a/qutebrowser/config/qtargs.py b/qutebrowser/config/qtargs.py index 8b7a85b64..1dd60c2c2 100644 --- a/qutebrowser/config/qtargs.py +++ b/qutebrowser/config/qtargs.py @@ -25,6 +25,7 @@ import argparse import pathlib from typing import Any, Dict, Iterator, List, Optional, Sequence, Tuple +from qutebrowser.qt import machinery from qutebrowser.qt.core import QLocale from qutebrowser.config import config @@ -331,7 +332,13 @@ _WEBENGINE_SETTINGS: Dict[str, Dict[Any, Optional[str]]] = { 'enable-all': None, 'disable-seccomp-bpf': '--disable-seccomp-filter-sandbox', 'disable-all': '--no-sandbox', - } + }, + 'qt.chromium.experimental_web_platform_features': { + 'always': '--enable-experimental-web-platform-features', + 'never': None, + 'auto': + '--enable-experimental-web-platform-features' if machinery.IS_QT5 else None, + }, } |