From c2f9cae770360848ca33083e628de79d8d0a1bc3 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 11 Feb 2015 23:33:31 +0100 Subject: [PATCH] Don't show line edit text in its repr(). Previously we showed self.text in the __repr__ of MinimalLineEdit. This however is a bad idea, because it exposes passwords to the debug log when the currently focused widget is logged. --- qutebrowser/misc/miscwidgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/misc/miscwidgets.py b/qutebrowser/misc/miscwidgets.py index c91589b60..e612b2db0 100644 --- a/qutebrowser/misc/miscwidgets.py +++ b/qutebrowser/misc/miscwidgets.py @@ -43,7 +43,7 @@ class MinimalLineEditMixin: self.setAttribute(Qt.WA_MacShowFocusRect, False) def __repr__(self): - return utils.get_repr(self, text=self.text()) + return utils.get_repr(self) class CommandLineEdit(QLineEdit):