Skip to content

Recover Firefox sessions with no initial page document - #34

Merged
adamXbot merged 1 commit into
mainfrom
codex/windows-startup-recovery
Sep 5, 2026
Merged

adamXbot merged 1 commit into
mainfrom
codex/windows-startup-recovery

Conversation

@adamXbot

@adamXbot adamXbot commented Sep 5, 2026 •

Copy link
Copy Markdown
Collaborator

Windows can open Firefox's chrome window while every tab remains without an initial page document. In the captured failure, creating and reselecting replacement tabs did not recover the process after more than a minute.

Check that the initial page document exists before setting up fixture tabs. If it does not appear within five seconds, stop the owned Firefox process and restart it once using the same prepared theme profile. A second failed startup remains an error, and unrelated failures are not retried. Startup exceptions now also close the owned process and clean up the temporary profile, including when the context manager never finishes entering.

Validation:

  • 360 local unit tests passed, with one expected platform-specific skip.
  • A real-Firefox regression deliberately destroys the first process's initial document, verifies a different browser process replaces it, and then checks loaded pages, persistent-context recovery, RTL overflow and idempotent setup.
  • Windows startup stress test: all 54 theme sessions passed across six Windows runners. The original missing-document fault occurred naturally three times and the new process restart recovered each session.
  • Firefox compatibility: Stable, ESR, Beta and Nightly passed.
  • Final real-theme preview passed on all three operating systems: render, publisher, cleanup. Verified the candidate revision, 87 published image paths, and 28 changed views plus one added variant per platform. Cleanup preserved all unrelated files; the temporary repository default branch was restored.
  • Cross-platform CI: all 17 required jobs passed for this exact commit, covering units, profile recovery, built packages, Firefox screenshots and repeatability.

This addresses the remaining Windows release blocker found after #33. The temporary investigation scripts and workflow are excluded from this PR.

@adamXbot
adamXbot merged commit ff20a36 into main Sep 5, 2026
22 checks passed
@AdamXweb
AdamXweb deleted the codex/windows-startup-recovery branch September 24, 2026 09:03
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