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 @@ def acceptNavigationRequest(self, url, req_type, is_main_frame):
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):