From e4120c1fad6a2ec79ff37b1a2870a0a126d3e2cb Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 23 Dec 2017 09:53:53 +0100 Subject: Drain tab event queue before stopping --- crocoite/browser.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crocoite') diff --git a/crocoite/browser.py b/crocoite/browser.py index e1feda9..9f0c2d0 100644 --- a/crocoite/browser.py +++ b/crocoite/browser.py @@ -137,6 +137,8 @@ class SiteLoader: tab.Page.stopLoading () tab.Network.disable () tab.Page.disable () + # XXX: we can’t drain the event queue directly, so insert (yet another) wait + tab.wait (1) tab.Network.requestWillBeSent = None tab.Network.responseReceived = None tab.Network.loadingFinished = None -- cgit v1.2.3