Handle NavigationTypeOther acceptNavigationRequest
This fixes hinting in some cases where javascript is used to load content, e.g. on duckduckgo. However it still doesn't seem to help with github files etc. See #488.
This commit is contained in:
parent
fcbd69e209
commit
4b4bb3af88
@ -498,7 +498,11 @@ class BrowserPage(QWebPage):
|
||||
request: QNetworkRequest
|
||||
typ: QWebPage::NavigationType
|
||||
"""
|
||||
if typ != QWebPage.NavigationTypeLinkClicked:
|
||||
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.
|
||||
return True
|
||||
url = request.url()
|
||||
urlstr = url.toDisplayString()
|
||||
|
Loading…
Reference in New Issue
Block a user