Report blocked navigation requests

This commit is contained in:
Kovid Goyal 2019-09-15 04:52:00 +05:30
parent b900419810
commit 277d1f8bad
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -282,6 +282,7 @@ class WebPage(QWebEnginePage):
return True
if url.scheme() in ('http', 'https'):
safe_open_url(url)
prints('Blocking navigation request to:', url.toString())
return False
def go_to_anchor(self, anchor):