diff --git a/qutebrowser/browser/webengine/webenginetab.py b/qutebrowser/browser/webengine/webenginetab.py index 9bbe1b8aa..76a526670 100644 --- a/qutebrowser/browser/webengine/webenginetab.py +++ b/qutebrowser/browser/webengine/webenginetab.py @@ -369,12 +369,13 @@ class WebEngineHistory(browsertab.AbstractHistory): return self._history.canGoForward() def serialize(self): - # WORKAROUND for https://bugreports.qt.io/browse/QTBUG-59599 + # WORKAROUND (remove this when we bump the requirements to 5.9) + # https://bugreports.qt.io/browse/QTBUG-59599 if self._history.count() == 0: raise browsertab.WebTabError("Can't serialize page without " "history!") - # WORKAROUND for https://github.com/qutebrowser/qutebrowser/issues/2289 - # FIXME:qtwebengine can we get rid of this with Qt 5.8.1? + # WORKAROUND (FIXME: remove this when we bump the requirements to 5.9?) + # https://github.com/qutebrowser/qutebrowser/issues/2289 scheme = self._history.currentItem().url().scheme() if scheme in ['view-source', 'chrome']: raise browsertab.WebTabError("Can't serialize special URL!")