No description
Instead of rewriting img src to file:// URIs, rewrite to a custom feedthemonkey-img:/// scheme. A WebKit URI scheme handler is registered on the WebView's WebContext that: - Serves the image directly from the cache directory if present. - On a cache miss (e.g. after the user deletes ~/.cache), spawns a reqwest download in the tokio runtime, then resumes on the GLib main loop via glib::spawn_future_local and serves the freshly downloaded bytes — all transparent to the WebView. This means deleting the cache directory never results in permanently broken images; they are silently re-fetched on first access. |
||
|---|---|---|
| data | ||
| html | ||
| src | ||
| .gitignore | ||
| .travis.yml | ||
| BACKLOG.md | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| COPYING | ||