From afd5d2c728f00e5a5cfd3028b32c2d588c7d43cd Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 6 Mar 2018 07:41:35 +0100 Subject: [PATCH] Reload page after content.javascript.can_access_keyboard changed See #3648 --- qutebrowser/browser/webengine/webenginetab.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index c9e58e69e..f9130f27a 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -940,7 +940,8 @@ class WebEngineTab(browsertab.AbstractTab): super()._on_navigation_request(navigation) if navigation.accepted and navigation.is_main_frame: changed = self.settings.update_for_url(navigation.url) - needs_reload = {'content.plugins', 'content.javascript.enabled'} + needs_reload = {'content.plugins', 'content.javascript.enabled', + 'content.javascript.can_access_clipboard'} if (changed & needs_reload and navigation.navigation_type != navigation.Type.link_clicked): # WORKAROUND for https://bugreports.qt.io/browse/QTBUG-66656