diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-24 14:40:03 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-24 14:40:03 -0500 |
| commit | c097b5b4540d51fd279a81c0834b008331e936c9 (patch) | |
| tree | 50f58a77594d1ea98ae23cbcc1b747cab68b39e9 /modules/ui-theme.el | |
| parent | 94ef5242e72a39faa9eb14a705387ccad339be14 (diff) | |
| download | dotemacs-c097b5b4540d51fd279a81c0834b008331e936c9.tar.gz dotemacs-c097b5b4540d51fd279a81c0834b008331e936c9.zip | |
fix(elfeed): bound and clean up the synchronous YouTube fetch
cj/youtube-to-elfeed-feed-format called url-retrieve-synchronously with no timeout, so a hung YouTube request would block Emacs indefinitely, and it only killed the temporary URL buffer when an ID was successfully extracted — a page without the expected markers leaked the buffer.
Passed cj/elfeed-url-fetch-timeout (10s) to the synchronous fetch, and moved the fetch+parse into an unwind-protect that always kills the temp buffer (live-p guarded), including the parse-failure path. Tests mock the network boundary and cover a normal channel parse, that a timeout is passed, and that the buffer is not leaked when parsing fails.
Also added tests for the EWW user-agent advice (no code change): it already injects the desktop UA only from eww-mode buffers, so package.el and other non-EWW url callers pass through untouched — the tests pin that scoping and the replace-not-duplicate header behavior.
Diffstat (limited to 'modules/ui-theme.el')
0 files changed, 0 insertions, 0 deletions
