Revert "Handle NavigationTypeOther acceptNavigationRequest"
This reverts commit 4b4bb3af88
.
Fixes #567. #488 is still okay because of
f3b55d68db05247b5c3f5dc576dadb0aa1848ca3.
This commit is contained in:
parent
fb5fbd09da
commit
d6732c64a3
@ -527,11 +527,7 @@ class BrowserPage(QWebPage):
|
||||
request: QNetworkRequest
|
||||
typ: QWebPage::NavigationType
|
||||
"""
|
||||
if typ not in (QWebPage.NavigationTypeLinkClicked,
|
||||
QWebPage.NavigationTypeOther):
|
||||
# If the navigation request isn't a result of clicking or hinting
|
||||
# (form submit, back/forward, reload), we're not interested in
|
||||
# handling it ourselves.
|
||||
if typ != QWebPage.NavigationTypeLinkClicked:
|
||||
return True
|
||||
url = request.url()
|
||||
urlstr = url.toDisplayString()
|
||||
|
Loading…
Reference in New Issue
Block a user