Merge pull request #195 from lavendthomas/bf.webviewlinks

Do not follow links in the preview
ui^2
somas95 2020-01-23 17:36:12 +01:00 committed by GitHub
commit 66af5f8217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ if (canScroll && isRendered) {{
if decision_type == WebKit2.PolicyDecisionType.NAVIGATION_ACTION and \
decision.get_navigation_action().is_user_gesture():
webbrowser.open(decision.get_request().get_uri())
decision.ignore() # Do not follow the link in the WebView
return True
return False