diff --git a/qutebrowser/browser/webpage.py b/qutebrowser/browser/webpage.py index fd6e7a7c9..8e430efcb 100644 --- a/qutebrowser/browser/webpage.py +++ b/qutebrowser/browser/webpage.py @@ -478,22 +478,22 @@ class BrowserPage(QWebPage): return super().extension(ext, opt, out) return handler(opt, out) - def javaScriptAlert(self, _frame, msg): + def javaScriptAlert(self, frame, msg): """Override javaScriptAlert to use the statusbar.""" log.js.debug("alert: {}".format(msg)) if config.get('ui', 'modal-js-dialog'): - return super().javaScriptAlert(_frame, msg) + return super().javaScriptAlert(frame, msg) if (self._is_shutting_down or config.get('content', 'ignore-javascript-alert')): return self._ask("[js alert] {}".format(msg), usertypes.PromptMode.alert) - def javaScriptConfirm(self, _frame, msg): + def javaScriptConfirm(self, frame, msg): """Override javaScriptConfirm to use the statusbar.""" log.js.debug("confirm: {}".format(msg)) if config.get('ui', 'modal-js-dialog'): - return super().javaScriptConfirm(_frame, msg) + return super().javaScriptConfirm(frame, msg) if self._is_shutting_down: return False