Skip to content

Retry failed favicons and settle cancelled network requests - #61

Merged
rangaNP merged 1 commit into
mainfrom
fix/favicon-retries-and-network-cancellation
Nov 22, 2026
Merged

rangaNP merged 1 commit into
mainfrom
fix/favicon-retries-and-network-cancellation

Conversation

@rangaNP

@rangaNP rangaNP commented Nov 22, 2026

Copy link
Copy Markdown
Member

Summary

A failed favicon request keeps its declared candidates and can retry on the next request after 5, 15, 60, or 300 seconds of backoff. Reload can retry immediately. If a refresh fails while an older icon is cached, Early can keep showing it while the failure remains eligible for retry.

Clearing website data stops affected icon requests across every window of the profile. It waits for their writes before deleting files, then starts queued requests. Cancelled loads hold their slot until they finish. Profile deletion also drains loads from windows that have already closed. Kept sidebar icons retain both appearance variants, and private stores have their own scope.

The shared URLSession reader keeps the terminal result if cancellation completes before the waiter registers. It resumes the waiter once and holds the network slot until URLSession completes, including when a response exceeds the byte limit.

Verification

  • All 1,050 Swift tests and eight release-script tests passed on macOS 27.2.1 with Xcode 27.2. The full suite includes favicon appearance and load-progress regressions.
  • Seven targeted regressions failed in isolated controls with the relevant fixes disabled. Coverage includes reload and retry, completion before waiter registration, the four-load cap, real disk deletion across two windows, an active write from a closed window, and clearing from Settings with every window closed.
  • A synthetic URLProtocol exercised 20 already-cancelled requests, active cancellation, redirect handling, oversized responses, and transport errors.
  • Native UI tests compiled in the Debug build for testing. Debug and Release app signatures passed deep, strict verification.

@rangaNP
rangaNP merged commit 03cb156 into main Nov 22, 2026
5 checks passed
@rangaNP
rangaNP deleted the fix/favicon-retries-and-network-cancellation branch November 22, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant