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 | 2cc430ffa0cd3597589c6fdedfced0a76b7da255 (patch) | |
| tree | b3105065d9ee93d3ce9437fc57e12e4c3e8354b2 /docs | |
| parent | 5affa7a867c5b0999216b32a7d1f441b52889a0d (diff) | |
| download | dotemacs-2cc430ffa0cd3597589c6fdedfced0a76b7da255.tar.gz dotemacs-2cc430ffa0cd3597589c6fdedfced0a76b7da255.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 'docs')
0 files changed, 0 insertions, 0 deletions
