From 388d771a2e79094c45618ab846c5d0268fe3cf92 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 19 Aug 2016 10:14:18 +0200 Subject: [PATCH] Use send_event with postpone=True in webelem.click For some reason, since 0557fea79e50086fdcef6b51fa1da4eeda28000b we're getting segfaults in misc.feature... --- qutebrowser/browser/webelem.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/webelem.py b/qutebrowser/browser/webelem.py index bf9a5da4d..0887bb745 100644 --- a/qutebrowser/browser/webelem.py +++ b/qutebrowser/browser/webelem.py @@ -384,7 +384,9 @@ class AbstractWebElement(collections.abc.MutableMapping): ] for evt in events: - self._tab.send_event(evt) + # For some reason, postpone=True is needed here to *not* cause + # segfaults in misc.feature because of :fake-key later... + self._tab.send_event(evt, postpone=True) def after_click(): """Move cursor to end and reset override_target after clicking."""