コード例 #1
0
 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)
コード例 #2
0
ファイル: webpage.py プロジェクト: mkonig/qutebrowser
 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)
コード例 #3
0
 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)
コード例 #4
0
ファイル: webpage.py プロジェクト: The-Compiler/qutebrowser
 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)
コード例 #5
0
 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)
コード例 #6
0
ファイル: webview.py プロジェクト: mehak/qutebrowser
 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)