Remove BrowserPage.shouldInterruptJavaScript

This is useless due to a Qt bug anyways:
https://bugreports.qt.io/issues/?jql=text%20~%20%22shouldInterruptJavascript%22
This commit is contained in:
Florian Bruhin 2016-09-07 12:49:57 +02:00
parent fca37abf55
commit 8c3906b784

View File

@ -506,14 +506,6 @@ class BrowserPage(QWebPage):
filename, _ = QFileDialog.getOpenFileName(None, None, suggested_file)
return filename
def shouldInterruptJavaScript(self):
"""Override shouldInterruptJavaScript to use the statusbar."""
answer = self._ask("Interrupt long-running javascript?",
usertypes.PromptMode.yesno)
if answer is None:
answer = True
return answer
def acceptNavigationRequest(self,
_frame: QWebFrame,
request: QNetworkRequest,