From 677e1888946d04cde79d840a7c056544ec16ae19 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 26 Jan 2018 09:37:35 +0100 Subject: [PATCH] Update docs --- doc/changelog.asciidoc | 3 +++ qutebrowser/browser/webengine/webenginetab.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index e450bae99..e09d78236 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -40,6 +40,7 @@ Changed - The sqlite history now uses write-ahead logging which should be a performance and stability improvement. - The `url.incdec_segments` option now also can take `port` as possible segment. +- `:view-source` now uses Chromium's `view-source:` scheme with QtWebEngine. Fixed ~~~~~ @@ -47,6 +48,8 @@ Fixed - Improved fullscreen handling with Qt 5.10. - URLs containing ampersands and other special chars are now shown correctly when filtering them in the completion. +- Hinting and scrolling now works properly on special `view-source:` pages. +- `:view-source` now displays a valid URL with QtWebKit. v1.1.1 ------ diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index c2bfe8a5d..8c10736fd 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -626,6 +626,8 @@ class WebEngineTab(browsertab.AbstractTab): utils.read_file('javascript/caret.js'), ]) script = QWebEngineScript() + # We can't use DocumentCreation here as WORKAROUND for + # https://bugreports.qt.io/browse/QTBUG-66011 script.setInjectionPoint(QWebEngineScript.DocumentReady) script.setSourceCode(js_code)