From efadbe64b5076463630e848e5030f6882c3818ff Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Thu, 20 Oct 2016 15:54:06 +0200 Subject: [PATCH] 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?). --- qutebrowser/browser/commands.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index dc17c598f..f1849b0bf 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -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: