diff --git a/qutebrowser/browser/browsertab.py b/qutebrowser/browser/browsertab.py index 0b1c8d8da..1e0d62c51 100644 --- a/qutebrowser/browser/browsertab.py +++ b/qutebrowser/browser/browsertab.py @@ -813,6 +813,12 @@ class AbstractTab(QWidget): self.url_changed.emit(url) url = self.url(requested=True) + + # Ignore blank QUrls to avoid crashes. + if not url.isValid(): + log.webview.debug("Not updating per-domain stylesheets due to the QUrl being blank") + return + self._update_stylesheet(url) @pyqtSlot()