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:
Florian Bruhin 2015-02-26 20:02:31 +01:00
parent fcbd69e209
commit 4b4bb3af88

View File

@ -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()