def javaScriptConfirm(self, url, js_msg): """Override javaScriptConfirm to use qutebrowser prompts.""" if self._is_shutting_down: return False try: return shared.javascript_confirm( url, js_msg, abort_on=[self.loadStarted, self.shutting_down]) except shared.CallSuper: return super().javaScriptConfirm(url, js_msg)
def javaScriptConfirm(self, frame, js_msg): """Override javaScriptConfirm to use the statusbar.""" if self._is_shutting_down: return False try: return shared.javascript_confirm(frame.url(), js_msg, abort_on=[self.loadStarted, self.shutting_down]) except shared.CallSuper: return super().javaScriptConfirm(frame, js_msg)
def javaScriptConfirm(self, url, js_msg): """Override javaScriptConfirm to use qutebrowser prompts.""" if self._is_shutting_down: return False try: return shared.javascript_confirm(url, js_msg, abort_on=[self.loadStarted, self.shutting_down]) except shared.CallSuper: return super().javaScriptConfirm(url, js_msg)
def javaScriptConfirm(self, url, js_msg): """Override javaScriptConfirm to use qutebrowser prompts.""" if self._is_shutting_down: return False escape_msg = qtutils.version_check('5.11', compiled=False) try: return shared.javascript_confirm(url, js_msg, abort_on=[self.loadStarted, self.shutting_down], escape_msg=escape_msg) except shared.CallSuper: return super().javaScriptConfirm(url, js_msg)