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:
parent
fca37abf55
commit
8c3906b784
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user