From ef01566621cc6bf037ec4b37472fa4a86e7b0bc3 Mon Sep 17 00:00:00 2001 From: Jean-Louis Fuchs Date: Sat, 23 Jul 2016 09:44:43 +0000 Subject: [PATCH 1/2] Initialize qt logging to qutebrowser as early as possible --- qutebrowser/misc/earlyinit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py index c2b631f96..c53492360 100644 --- a/qutebrowser/misc/earlyinit.py +++ b/qutebrowser/misc/earlyinit.py @@ -309,13 +309,14 @@ def earlyinit(args): # Here we check if QtCore is available, and if not, print a message to the # console or via Tk. check_pyqt_core() + # Init logging as early as possible + init_log(args) # Now the faulthandler is enabled we fix the Qt harfbuzzing library, before # importing QtWidgets. fix_harfbuzz(args) # Now we can be sure QtCore is available, so we can print dialogs on # errors, so people only using the GUI notice them as well. check_qt_version() - check_ssl_support() remove_inputhook() check_libraries(args) - init_log(args) + check_ssl_support() From f040fd5a6dac338fd0f3eae48b5bb219e52aa449 Mon Sep 17 00:00:00 2001 From: Jean-Louis Fuchs Date: Sat, 23 Jul 2016 10:01:56 +0000 Subject: [PATCH 2/2] Ignore missing SSLv3 messages from Qt --- qutebrowser/utils/log.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 7f67ae9f2..76d8e0dc7 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -330,6 +330,10 @@ def qt_message_handler(msg_type, context, msg): "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=", + # Installing Qt from the installer may cause it looking for SSL3 which + # may not be available on the system + "QSslSocket: cannot resolve SSLv3_client_method", + "QSslSocket: cannot resolve SSLv3_server_method", ] if sys.platform == 'darwin': suppressed_msgs += [