From 87496617a44a4a72e6bf6b5ab074e6aa73920624 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 28 Jun 2016 20:46:06 +0200 Subject: [PATCH] Hide QtWebKit image format warning This was hidden for tests in c390c797b2de96b18db21eb3cdcf7829a6220598 but should be hidden for normal usage as well. --- pytest.ini | 1 - qutebrowser/utils/log.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 615cc21b6..e51475465 100644 --- a/pytest.ini +++ b/pytest.ini @@ -36,6 +36,5 @@ qt_log_ignore = ^Geoclue error: Process org\.freedesktop\.Geoclue\.Master exited with status 127 ^QObject::connect: Cannot connect \(null\)::stateChanged\(QNetworkSession::State\) to QNetworkReplyHttpImpl::_q_networkSessionStateChanged\(QNetworkSession::State\) ^QXcbClipboard: Cannot transfer data, no data available - ^Image of format '' blocked because it is not considered safe. If you are sure it is safe to do so, you can white-list the format by setting the environment variable QTWEBKIT_IMAGEFORMAT_WHITELIST= qt_wait_signal_raising = true xfail_strict = true diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 25ba515b5..37c1c6bcd 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -316,6 +316,10 @@ def qt_message_handler(msg_type, context, msg): 'QNetworkSession::State) to ' 'QNetworkReplyHttpImpl::_q_networkSessionStateChanged(' 'QNetworkSession::State)', + # https://bugreports.qt.io/browse/QTBUG-53989 + "Image of format '' blocked because it is not considered safe. If you " + "are sure it is safe to do so, you can white-list the format by " + "setting the environment variable QTWEBKIT_IMAGEFORMAT_WHITELIST=", ] if sys.platform == 'darwin': suppressed_msgs += [