diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index f133a1646..21c0a080e 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -155,6 +155,8 @@ class AbstractSearch(QObject): Attributes: text: The last thing this view was searched for. + search_displayed: Whether we're currently displaying search results in + this view. _flags: The flags of the last search (needs to be set by subclasses). _widget: The underlying WebView widget. """ @@ -163,7 +165,6 @@ class AbstractSearch(QObject): super().__init__(parent) self._widget = None self.text = None - # Implementing classes will set this. self.search_displayed = False def search(self, text, *, ignore_case=False, reverse=False, diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index d4e3feaa2..3d6d381cb 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -251,8 +251,8 @@ class WebEngineCaret(browsertab.AbstractCaret): """Callback for javascript which clicks the selected element. Args: - js_elems: The elements serialized from javascript. - tab: Open in a new tab or not. + js_elem: The element serialized from javascript. + tab: Open in a new tab. """ if js_elem is None: return