insert_text doesn't need javascript to be enabled

It runs in the context of an element, which seems possible, even without
javascript enabled (in qtwebkit?).
This commit is contained in:
Kevin Velghe 2016-10-20 15:54:06 +02:00
parent ebe656fdf9
commit efadbe64b5

View File

@ -1539,8 +1539,6 @@ class CommandDispatcher:
text: The text to insert.
"""
tab = self._current_widget()
if not tab.has_js():
raise cmdexc.CommandError("This command needs javascript enabled.")
def _insert_text_cb(elem):
if elem is None: