diff --git a/qutebrowser/browser/webpage.py b/qutebrowser/browser/webpage.py index 642a45e67..2203ae18c 100644 --- a/qutebrowser/browser/webpage.py +++ b/qutebrowser/browser/webpage.py @@ -33,7 +33,7 @@ from qutebrowser.config import config from qutebrowser.browser import http, tabhistory from qutebrowser.browser.network import networkmanager from qutebrowser.utils import (message, usertypes, log, jinja, qtutils, utils, - objreg) + objreg, debug) class BrowserPage(QWebPage): @@ -538,6 +538,10 @@ class BrowserPage(QWebPage): return False tabbed_browser = objreg.get('tabbed-browser', scope='window', window=self._win_id) + log.webview.debug("acceptNavigationRequest, url {}, type {}, hint " + "target {}, open_target {}".format( + urlstr, debug.qenum_key(QWebPage, typ), + self._hint_target, self.open_target)) if self._hint_target is not None: target = self._hint_target else: