Revert "Handle NavigationTypeOther acceptNavigationRequest"

This reverts commit 4b4bb3af88.

Fixes #567. #488 is still okay because of
f3b55d68db05247b5c3f5dc576dadb0aa1848ca3.
This commit is contained in:
Florian Bruhin 2015-03-19 19:05:40 +01:00
parent fb5fbd09da
commit d6732c64a3

View File

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