ef504e5b25
This fixes an exception when trying to run :open-editor with a comment field with QtWebKit: 16:37:51 DEBUG webelem webelem:is_editable:238 Checking if element is editable: <qutebrowser.browser.webkit.webkitelem.WebKitElement html='<div id="writer9997095275-writer" class="writer selectable no-lub put-art-here ui-droppable empty" style="min-height: 146px; width: 1169px;" contenteditable="true"></div>'> 16:37:51 ERROR misc crashsignal:exception_hook:205 Uncaught exception Traceback (most recent call last): File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 882, in eventFilter return handler(event) File "/home/florian/proj/qutebrowser/git/qutebrowser/app.py", line 842, in _handle_key_event return man.eventFilter(event) File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/modeman.py", line 337, in eventFilter return self._eventFilter_keypress(event) File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/modeman.py", line 168, in _eventFilter_keypress handled = parser.handle(event) File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/basekeyparser.py", line 307, in handle handled = self._handle_special_key(e) File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/basekeyparser.py", line 136, in _handle_special_key self.execute(cmdstr, self.Type.special, count) File "/home/florian/proj/qutebrowser/git/qutebrowser/keyinput/keyparser.py", line 44, in execute self._commandrunner.run(cmdstr, count) File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/runners.py", line 275, in run result.cmd.run(self._win_id, args, count=count) File "/home/florian/proj/qutebrowser/git/qutebrowser/commands/command.py", line 525, in run self.handler(*posargs, **kwargs) File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/commands.py", line 1600, in open_editor tab.elements.find_focused(self._open_editor_cb) File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/webkit/webkittab.py", line 589, in find_focused callback(webkitelem.WebKitElement(elem, tab=self._tab)) File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/commands.py", line 1580, in _open_editor_cb text = elem.value() File "/home/florian/proj/qutebrowser/git/qutebrowser/browser/webkit/webkitelem.py", line 116, in value assert isinstance(val, (int, float, str)), val AssertionError: None |
||
---|---|---|
.. | ||
browser | ||
commands | ||
completion | ||
config | ||
html | ||
img | ||
javascript | ||
keyinput | ||
mainwindow | ||
misc | ||
utils | ||
__init__.py | ||
__main__.py | ||
app.py | ||
qutebrowser.py | ||
resources.py |