diff options
| -rw-r--r-- | lisp/net/eww.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index c3e927b74a6..0bf7fe5f307 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -828,6 +828,12 @@ This replaces the region with the preprocessed HTML." | |||
| 828 | (unless document | 828 | (unless document |
| 829 | (let ((dom (eww--parse-html-region (point) (point-max) charset))) | 829 | (let ((dom (eww--parse-html-region (point) (point-max) charset))) |
| 830 | (when (eww-default-readable-p url) | 830 | (when (eww-default-readable-p url) |
| 831 | ;; HACK: Work around bug#77299. By displaying the full | ||
| 832 | ;; document first, we can ensure that the `:title' property in | ||
| 833 | ;; `eww-data' gets set properly. This is inefficient, since | ||
| 834 | ;; it requires rendering the document twice. | ||
| 835 | (let ((shr-inhibit-images t)) | ||
| 836 | (eww-display-document (eww-document-base url dom) point buffer)) | ||
| 831 | (eww-score-readability dom) | 837 | (eww-score-readability dom) |
| 832 | (setq dom (eww-highest-readability dom)) | 838 | (setq dom (eww-highest-readability dom)) |
| 833 | (with-current-buffer buffer | 839 | (with-current-buffer buffer |