Merge remote-tracking branch 'origin/pr/4090'

This commit is contained in:
Florian Bruhin 2018-07-24 15:41:40 +02:00
commit e70d796dad

View File

@ -33,7 +33,7 @@ from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebEngineWidgets import QWebEnginePage, QWebEngineScript from PyQt5.QtWebEngineWidgets import QWebEnginePage, QWebEngineScript
from qutebrowser.config import configdata, config from qutebrowser.config import configdata, config
from qutebrowser.browser import browsertab, mouse, shared from qutebrowser.browser import browsertab, mouse, shared, webelem
from qutebrowser.browser.webengine import (webview, webengineelem, tabhistory, from qutebrowser.browser.webengine import (webview, webengineelem, tabhistory,
interceptor, webenginequtescheme, interceptor, webenginequtescheme,
cookies, webenginedownloads, cookies, webenginedownloads,
@ -360,7 +360,11 @@ class WebEngineCaret(browsertab.AbstractCaret):
if elem.is_link(): if elem.is_link():
log.webview.debug("Found link in selection, clicking. ClickTarget " log.webview.debug("Found link in selection, clicking. ClickTarget "
"{}, elem {}".format(click_type, elem)) "{}, elem {}".format(click_type, elem))
elem.click(click_type) try:
elem.click(click_type)
except webelem.Error as e:
message.error(str(e))
return
def follow_selected(self, *, tab=False): def follow_selected(self, *, tab=False):
if self._tab.search.search_displayed: if self._tab.search.search_displayed: