Deny HTML5 permissions when question is cancelled.

Before we just ignored the request but deleted the Question object, which lead
to a RuntimeError when the question was cancelled and the page was reloaded,
because on_permission_canceled tried to abort the question.
This commit is contained in:
Florian Bruhin 2015-02-10 21:15:17 +01:00
parent e44c5aee5b
commit d4ef66714f

View File

@ -316,6 +316,7 @@ class BrowserPage(QWebPage):
self.setFeaturePermission, frame, feature,
QWebPage.PermissionDeniedByUser)
q.answered_no.connect(no_action)
q.cancelled.connect(no_action)
q.completed.connect(q.deleteLater)