diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index 1b0ee5541..4c4de14c0 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -185,7 +185,8 @@ class WebEngineSearch(browsertab.AbstractSearch): result_cb=None): # When duplicate searching, don't search again (webkit behavior) if self.text == text and self.search_displayed: - log.webview.debug("Ignoring duplicate search request") + log.webview.debug("Ignoring duplicate search request" + " for {}".format(text)) return self.text = text diff --git a/tests/end2end/features/search.feature b/tests/end2end/features/search.feature index ae3f07999..e322b93a2 100644 --- a/tests/end2end/features/search.feature +++ b/tests/end2end/features/search.feature @@ -52,6 +52,13 @@ Feature: Searching on a page And I wait for "search didn't find blub" in the log Then the warning "Text 'blub' not found on page!" should be shown + @qtwebkit_skip: Supported by default on qtwebkit + Scenario: Searching text duplicates + When I run :search foo + And I wait for "search found foo" in the log + And I run :search foo + Then "Ignoring duplicate search request for foo" should be logged + ## search.ignore_case Scenario: Searching text with search.ignore_case = always