From 8c3906b784df09257a0e87fa1470b9cc8e796561 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 7 Sep 2016 12:49:57 +0200 Subject: [PATCH] Remove BrowserPage.shouldInterruptJavaScript This is useless due to a Qt bug anyways: https://bugreports.qt.io/issues/?jql=text%20~%20%22shouldInterruptJavascript%22 --- qutebrowser/browser/webkit/webpage.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/qutebrowser/browser/webkit/webpage.py b/qutebrowser/browser/webkit/webpage.py index fc9ff1686..18c45e878 100644 --- a/qutebrowser/browser/webkit/webpage.py +++ b/qutebrowser/browser/webkit/webpage.py @@ -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,