示例#1
0
 def javaScriptPrompt(self, url, js_msg, default):
     """Override javaScriptPrompt to use qutebrowser prompts."""
     if self._is_shutting_down:
         return (False, "")
     try:
         return shared.javascript_prompt(
             url, js_msg, default, abort_on=[self.loadStarted, self.shutting_down])
     except shared.CallSuper:
         return super().javaScriptPrompt(url, js_msg, default)
示例#2
0
 def javaScriptPrompt(self, url, js_msg, default):
     """Override javaScriptPrompt to use qutebrowser prompts."""
     if self._is_shutting_down:
         return (False, "")
     try:
         return shared.javascript_prompt(url, js_msg, default,
                                         abort_on=[self.loadStarted,
                                                   self.shutting_down])
     except shared.CallSuper:
         return super().javaScriptPrompt(url, js_msg, default)
示例#3
0
 def javaScriptPrompt(self, url, js_msg, default):
     """Override javaScriptPrompt to use qutebrowser prompts."""
     escape_msg = qtutils.version_check('5.11', compiled=False)
     if self._is_shutting_down:
         return (False, "")
     try:
         return shared.javascript_prompt(url, js_msg, default,
                                         abort_on=[self.loadStarted,
                                                   self.shutting_down],
                                         escape_msg=escape_msg)
     except shared.CallSuper:
         return super().javaScriptPrompt(url, js_msg, default)
示例#4
0
 def javaScriptPrompt(self, url, js_msg, default):
     """Override javaScriptPrompt to use qutebrowser prompts."""
     escape_msg = qtutils.version_check('5.11', compiled=False)
     if self._is_shutting_down:
         return (False, "")
     try:
         return shared.javascript_prompt(url, js_msg, default,
                                         abort_on=[self.loadStarted,
                                                   self.shutting_down],
                                         escape_msg=escape_msg)
     except shared.CallSuper:
         return super().javaScriptPrompt(url, js_msg, default)