diff options
-rw-r--r-- | qutebrowser/mainwindow/tabbedbrowser.py | 1 | ||||
-rw-r--r-- | tests/end2end/features/hints.feature | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/qutebrowser/mainwindow/tabbedbrowser.py b/qutebrowser/mainwindow/tabbedbrowser.py index ca6409ba0..770e6a039 100644 --- a/qutebrowser/mainwindow/tabbedbrowser.py +++ b/qutebrowser/mainwindow/tabbedbrowser.py @@ -564,6 +564,7 @@ class TabbedBrowser(QWidget): newtab.history.private_api.deserialize(entry.history) newtab.set_pinned(entry.pinned) + newtab.setFocus() @pyqtSlot('QUrl', bool) def load_url(self, url, newtab): diff --git a/tests/end2end/features/hints.feature b/tests/end2end/features/hints.feature index 47153b741..d6f48a87c 100644 --- a/tests/end2end/features/hints.feature +++ b/tests/end2end/features/hints.feature @@ -620,3 +620,13 @@ Feature: Using hints # Changing tabs will leave hint mode And I wait until qute://pyeval/ is loaded Then the page should contain the plaintext "'Follow hint...'" + + Scenario: Hinting an input after undoing a tab close + When I open about:blank + And I open data/hints/link_input.html in a new tab + And I run :tab-close + And I run :undo + And I wait until data/hints/link_input.html is loaded + And I run :click-element id qute-input-existing + And I run :fake-key -g something + Then the javascript message "contents: existingsomething" should be logged |