Files
status-app/docs
Andrey Bocharnikov 3690001a17 refactor(browser): take Tabs out of the Downloads context
Retry correlation moves into DownloadsStore: armRetry mints the token and
attachDownload reattaches the Record the Backend echoed it with. That
replaces the URL match plus 10s expiry timer in the context — an unanswered
arm can no longer capture an unrelated Download of the same URL, so there
is nothing to expire.

The context no longer walks the Tab strip. It asks the host to re-issue on
a profile (downloadUrlFn) and reports who a Download belongs to
(downloadAttributed); BrowserLayout owns both platform answers. On desktop
the re-issue runs on a transient WebEngine page owned by the profile, so a
Retry now works with no matching Tab open at all — the Tab was only ever a
profile carrier there. Viewless re-issues reach QML through ProfileManager,
which needs no Tab either.

The pristine-popup close moves to BrowserLayout with the rest of the Tab
knowledge; its coverage went with it, and BrowserLayout has no test seam.

Stack-target: PR 21851
2026-08-13 09:42:17 +04:00
..
2026-07-07 10:44:53 +03:00