From 73210fb87cb73d74657901a646e13d7fca2afc0d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 18 Aug 2016 16:16:56 +0200 Subject: [PATCH] QtWebEngine: Fix tab passed to WebEngineElement --- qutebrowser/browser/webengine/webenginetab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index 7f4d29b5d..3f804e9d5 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -326,7 +326,7 @@ class WebEngineElements(browsertab.AbstractElements): """ elems = [] for js_elem in js_elems: - elem = webengineelem.WebEngineElement(js_elem, tab=self) + elem = webengineelem.WebEngineElement(js_elem, tab=self._tab) elems.append(elem) callback(elems) @@ -342,7 +342,7 @@ class WebEngineElements(browsertab.AbstractElements): if js_elem is None: callback(None) else: - elem = webengineelem.WebEngineElement(js_elem, tab=self) + elem = webengineelem.WebEngineElement(js_elem, tab=self._tab) callback(elem) def find_css(self, selector, callback, *, only_visible=False):