diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-06-18 13:44:00 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-06-18 13:44:00 +0200 |
commit | f0eed465ab608061212366c6ebc26a0c47803060 (patch) | |
tree | 96c72c3eaa7a52f29931b7a9f8749a5372a8026e /.mypy.ini | |
parent | 0b5f41ac8c91f55830b3a04ac50ca311533b048b (diff) | |
download | qutebrowser-f0eed465ab608061212366c6ebc26a0c47803060.tar.gz qutebrowser-f0eed465ab608061212366c6ebc26a0c47803060.zip |
Work around segfaults when updating QWebEngineProfile HTTP headers
With Qt versions between 5.12 and 5.14 (inclusive), calling setHttpUserAgent()
or setHttpAcceptLanguage() can cause segfaults on subsequent loads:
https://bugreports.qt.io/browse/QTBUG-75884
The easiest way to reproduce this is by using WhatsApp Web and reloading after
setting the user-agent. While the bug should've been fixed in Qt 5.12.5, 5.13.1
and 5.14.0, that's not actually the case - only Qt 5.15 fixed it properly.
Since we use a request interceptor to set the headers anyways, just don't call
those problematic methods at all when updating settings at runtime.
Fixes #4657
Diffstat (limited to '.mypy.ini')
0 files changed, 0 insertions, 0 deletions