mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Report blocked navigation requests
This commit is contained in:
parent
b900419810
commit
277d1f8bad
@ -282,6 +282,7 @@ class WebPage(QWebEnginePage):
|
|||||||
return True
|
return True
|
||||||
if url.scheme() in ('http', 'https'):
|
if url.scheme() in ('http', 'https'):
|
||||||
safe_open_url(url)
|
safe_open_url(url)
|
||||||
|
prints('Blocking navigation request to:', url.toString())
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def go_to_anchor(self, anchor):
|
def go_to_anchor(self, anchor):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user